/* Plexarra Inc — styles matched to reference template palette & layout */

:root {
  --primary-color: #ff2e2e;
  --primary-dark: #d90429;
  --secondary-color: #1a1a2e;
  --accent-color: #00c2ff;
  --dark-color: #0d0d0d;
  --light-color: #f8f9fa;
  --gray-color: #8d99ae;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --gradient-primary: linear-gradient(135deg, #ff2e2e 0%, #ff6b6b 100%);
  --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 30px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Poppins, sans-serif;
  line-height: 1.7;
  color: #333;
  overflow-x: hidden;
  background: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loader {
  width: 200px;
  height: 200px;
  position: relative;
}

.loader-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--primary-color);
  border-right-color: var(--accent-color);
  animation: rotate 1.2s linear infinite;
  position: relative;
}

.loader-circle::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.loader-needle {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 3px;
  height: 40%;
  background: linear-gradient(to top, transparent, var(--accent-color));
  transform-origin: bottom;
  transform: translateX(-50%) rotate(0);
  animation: needle 1.2s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes needle {
  0%, 100% { transform: translateX(-50%) rotate(-30deg); }
  50% { transform: translateX(-50%) rotate(30deg); }
}

/* Navbar */
.navbar {
  background: rgba(26, 26, 46, 0.95);
  padding: 1.2rem 0;
  border-bottom: 2px solid rgba(255, 46, 46, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  color: var(--light-color);
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
}

.navbar-brand span {
  color: var(--primary-color);
  position: relative;
}

.navbar-brand span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.navbar-brand:hover span::after {
  transform: scaleX(1);
}

.nav-link {
  color: var(--light-color) !important;
  font-weight: 500;
  margin: 0 0.8rem;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  overflow: hidden;
  z-index: 1;
  position: relative;
  box-shadow: 0 10px 20px rgba(255, 46, 46, 0.3);
  transition: var(--transition);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 46, 46, 0.4);
}

.btn-outline-light {
  border: 2px solid #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--dark-color) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
    url("https://images.unsplash.com/photo-1571624436279-b272aff752b5?w=1920&q=80") center/cover fixed;
  padding: 12rem 0 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--light-color);
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 46, 46, 0.1), rgba(0, 194, 255, 0.1));
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

/* Inquiry / search filter box */
.search-filter {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.search-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.search-filter h4 {
  font-size: 18px;
}

.search-filter .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 1rem;
  transition: var(--transition);
  font-size: 1rem;
}

.search-filter .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 46, 46, 0.1);
  transform: translateY(-2px);
}

/* Section titles */
.section-title {
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 80px;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

/* Product cards (car-card style) */
.car-card {
  background: #fff;
  border-radius: 20px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

.car-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.car-card:hover .car-img img {
  transform: scale(1.1);
}

.car-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(255, 46, 46, 0.3);
  z-index: 2;
}

.car-info {
  padding: 1.2rem;
}

.car-info h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.car-price {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 0 !important;
}

.car-features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px dashed #e9ecef;
}

.car-features span {
  display: flex;
  align-items: center;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.car-features i {
  margin-right: 6px;
  color: var(--primary-color);
  font-size: 1rem;
}

/* Service / rental cards */
.rental-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.rental-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.rental-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.rental-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.02);
}

.rental-card.popular::after {
  content: "POPULAR";
  position: absolute;
  top: 20px;
  right: -35px;
  padding: 0.5rem 2rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(255, 46, 46, 0.3);
}

.rental-price {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1.5rem 0;
}

/* Feature boxes */
.feature-box {
  padding: 3rem 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
  height: 100%;
}

.feature-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 46, 46, 0.05), rgba(0, 194, 255, 0.05));
  z-index: 1;
}

.feature-box > * {
  position: relative;
  z-index: 2;
}

.feature-box i {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.feature-box h4 {
  font-size: 1.1rem;
}

.feature-box:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

/* Process steps */
.step-box {
  padding: 3rem 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.step-box:hover {
  transform: translateY(-10px);
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(255, 46, 46, 0.3);
}

.step-box h3 {
  font-size: 1.2rem;
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  min-height: 320px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  margin: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 6rem;
  color: rgba(255, 46, 46, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 1.2rem;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  padding: 2px;
}

/* Brand / tech logos */
.brand-logo {
  background: #fff;
  position: relative;
  overflow: hidden;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  padding: 3rem 1.6rem 1.6rem;
  margin-bottom: 1rem;
}

.brand-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.brand-logo h5 {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
}

.brand-logo:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.brand-logo:hover h5 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}

/* CTA */
.cta-section {
  background:
    linear-gradient(rgba(26, 26, 46, 0.92), rgba(22, 33, 62, 0.92)),
    url("https://images.unsplash.com/photo-1510074377623-8cf13fb86c08?w=1920&q=80") center/cover fixed;
  color: #fff;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 46, 46, 0.1), rgba(0, 194, 255, 0.1));
}

.cta-section > .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Contact */
.contact-form,
.contact-info {
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form::before,
.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.contact-form {
  background: #fff;
}

.contact-form .form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.9rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 46, 46, 0.1);
}

.contact-form .form-control.error {
  border-color: var(--primary-color);
}

.error-message {
  color: var(--primary-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error + .error-message {
  display: block;
}

.contact-info {
  background: var(--gradient-secondary);
  color: #fff;
  height: 100%;
}

.contact-info i {
  color: #fe4042;
  font-size: 1.5rem;
  width: 40px;
  flex-shrink: 0;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  height: 450px;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 4rem 0 2rem;
}

footer p,
footer h4,
footer h5,
footer li,
footer .text-muted,
footer .navbar-brand {
  color: #fff !important;
}

footer .navbar-brand span {
  color: #fff !important;
}

footer .navbar-brand span::after {
  background: rgba(255, 255, 255, 0.5);
}

.footer-links h5 {
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #fff !important;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}

/* Scroll to top */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(255, 46, 46, 0.3);
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 46, 46, 0.4);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .rental-card.popular {
    transform: none;
  }

  .rental-card.popular::after {
    right: -30px;
    font-size: 0.7rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 10rem 0 5rem;
    background-attachment: scroll;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .cta-section {
    background-attachment: scroll;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
