@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400;1,400&family=Archivo:ital,wdth,wght@0,100,400;0,100,600;0,100,700;0,125,900;1,100,400;1,100,600;1,100,700&display=swap');

:root {
  --primary-color: #5881BC;
  /* Racing Red */
  --bg-light: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-darker: #f1f3f5;
  --text-dark: #212529;
  --text-muted: #6c757d;
}

html, body {
  font-family: 'Archivo', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.text-dark {
  color: var(--text-dark) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.btn {
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ZXMOTO Navbar */
.header-zxmoto {
  background-image: none !important;
  border-bottom: none;
  padding: 0;
  /* Removed padding to maximize logo height */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: saturate(180%) blur(2px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 9999;
  transition: 0.5s;
}

.header-zxmoto .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0;
  /* Removed padding to maximize logo height */
  transition: color 0.5s ease;
}

.header-zxmoto .navbar-brand img {
  height: 80px;
}

.header-zxmoto .z-logo path {
  transition: fill 0.5s ease;
}

.header-zxmoto .nav-link {
  font-weight: 500;
  padding: 10px 15px !important;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.header-zxmoto .nav-link::after {
  display: none;
}

.header-zxmoto .search-icon,
.header-zxmoto .region-icon {
  transition: color 0.5s ease;
}

/* PC Default (Dark) & Hover (White) */
@media (min-width: 992px) {
  .header-zxmoto {
    box-shadow: none;
  }

  .header-zxmoto .nav-item {
    height: 80px;
  }

  .header-zxmoto .nav-link {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .header-zxmoto .navbar-brand,
  .header-zxmoto .nav-link,
  .header-zxmoto .search-icon,
  .header-zxmoto .region-icon {
    color: #ffffff !important;
  }

  .header-zxmoto .z-logo path {
    fill: #ffffff;
  }

  .header-zxmoto .nav-link.active,
  .header-zxmoto .nav-link:hover {
    color: #5881BC !important;
  }

  /* Hover State (White) */
  .header-zxmoto:hover {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .header-zxmoto:hover .navbar-brand,
  .header-zxmoto:hover .nav-link,
  .header-zxmoto:hover .search-icon,
  .header-zxmoto:hover .region-icon,
  .header-zxmoto:hover .navbar-toggler,
  .header-zxmoto:hover .toggler-icon {
    color: #333333 !important;
  }

  .header-zxmoto:hover .z-logo path {
    fill: #333333;
  }

  .header-zxmoto:hover .nav-link.active,
  .header-zxmoto:hover .nav-link:hover {
    color: #5881BC !important;
  }

  .header-zxmoto:hover .region-icon {
    background-color: #f1f3f5 !important;
    padding: 4px 10px !important;
    border-radius: 4px;
    border: 1px solid #e9ecef;
  }

  /* Mega Menu positioning */
  .zxmoto-dropdown .dropdown-menu {
    border-radius: 0;
    margin-top: 0;
    background-color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid #eee !important;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }

  .zxmoto-dropdown .dropdown-menu .text-muted,
  .zxmoto-dropdown .dropdown-menu h6,
  .zxmoto-dropdown .dropdown-menu i {
    color: #5881BC !important;
  }

  .zxmoto-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Removed mobile light header overrides so the header stays dark and transparent, matching desktop default */

/* Mobile Night Mode & Layout */
@media (max-width: 991px) {
  .header-zxmoto .navbar-collapse {
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 20px 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .header-zxmoto .nav-item {
    border-bottom: 1px solid #eee;
  }

  .header-zxmoto .nav-item:last-child {
    border-bottom: none;
  }

  .header-zxmoto .nav-link {
    padding: 15px 0 !important;
    font-size: 1rem;
    color: #333 !important;
  }

  .header-zxmoto .dropdown-menu {
    border: none;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.05);
  }

  /* Night Mode */
  @media (prefers-color-scheme: dark) {

    .header-zxmoto,
    .header-zxmoto .navbar-collapse {
      background-color: rgba(20, 20, 20, 0.98) !important;
    }

    .header-zxmoto .navbar-brand,
    .header-zxmoto .nav-link,
    .header-zxmoto .search-icon,
    .header-zxmoto .region-icon,
    .header-zxmoto .navbar-toggler,
    .header-zxmoto .toggler-icon {
      color: #ffffff !important;
    }

    .header-zxmoto .z-logo path {
      fill: #ffffff;
    }

    .header-zxmoto .nav-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-zxmoto .region-icon {
      background-color: transparent !important;
      padding: 0 !important;
      border: none;
    }

    .header-zxmoto .nav-link {
      color: #ffffff !important;
    }

    .header-zxmoto .nav-link.active,
    .header-zxmoto .nav-link:hover {
      color: #5881BC !important;
    }

    .header-zxmoto .dropdown-menu {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }
}

/* Logo display */
.logo-hover {
  display: none;
}

@media (min-width: 992px) {
  .header-zxmoto:hover .logo-default {
    display: none !important;
  }

  .header-zxmoto:hover .logo-hover {
    display: inline-block !important;
  }
}

/* Toggler icon */
.navbar-toggler {
  color: inherit;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.text-inherit {
  color: inherit;
}

/* Hero Slider */
.hero-slider {
  background-color: #000;
}

.hero-slide-content {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.carousel-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background-color: var(--primary-color);
  width: 0;
  z-index: 10;
}

.carousel-item.active .carousel-loader {
  animation: loadProgress 8s linear forwards;
}

@keyframes loadProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.carousel-indicators-vertical button.active {
  background-color: var(--primary-color) !important;
  opacity: 1 !important;
}

.custom-carousel-btn {
  transition: opacity 0.3s ease;
}

.custom-carousel-btn:hover {
  opacity: 0.7 !important;
}

.social-sidebar a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-sidebar a:hover {
  color: var(--primary-color) !important;
  transform: scale(1.1);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--primary-color);
  border-color: #fff;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-outline-light {
  border-radius: 0;
  padding: 12px 35px;
  font-weight: 600;
  border-width: 2px;
}

.btn-outline-light:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Sections */
.section-padding {
  padding: 50px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title span {
  color: var(--primary-color);
}

/* Cards */
.model-card {
  background-color: var(--bg-darker);
  border: 1px solid #222;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
}

.model-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(88, 129, 188, 0.2);
  border-color: var(--primary-color);
}

.model-card .card-img-top {
  border-radius: 0;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.model-card:hover .card-img-top {
  transform: scale(1.1);
}

.model-card .card-body {
  padding: 2rem;
  position: relative;
  z-index: 2;
  background-color: var(--bg-darker);
  display: flex;
  flex-direction: column;
}

.model-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.model-card .card-text {
  color: var(--text-muted);
  flex-grow: 1;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.specs-list li {
  border-bottom: 1px solid #333;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
}

.specs-list li span:last-child {
  color: var(--text-dark);
  font-weight: bold;
}

/* Launch Section */
.launch-section {
  position: relative;
  padding: 150px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.launch-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.launch-content {
  position: relative;
  z-index: 2;
}

.launch-badge {
  color: var(--primary-color);
  font-family: 'Archivo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.launch-badge .line {
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin-right: 15px;
}

.launch-title {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
}

.launch-title .highlight {
  color: #5881bc;
  /* Gold/Yellow accent */
}

.launch-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  line-height: 1.6;
}

.btn-accent {
  background-color: #5881bc;
  color: #000;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.btn-accent:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Versatility Section Redesign */
.versatility-section {
  background-color: #050505;
  overflow: hidden;
}

.overlap-panel {
  margin-left: -100px;
  z-index: 3;
}

@media (max-width: 991px) {
  .overlap-panel {
    margin-left: 0;
    margin-top: -60px;
  }
}

.glass-panel {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-right: 4px solid var(--primary-color);
}

.versatility-badge {
  color: var(--primary-color);
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.versatility-badge .line {
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
  margin-right: 10px;
}

.versatility-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
}

.versatility-title .highlight {
  color: var(--primary-color);
}

.versatility-subtitle {
  color: #bbb;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid #333;
  padding: 60px 0 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--primary-color);
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
  background: #cc2222;
}

/* Image wrappers for overflow hidden */
.img-wrapper {
  overflow: hidden;
  position: relative;
}

/* Micro-animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-box {
  text-align: center;
  padding: 30px;
  background: var(--bg-darker);
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Archivo', sans-serif;
}

/* Contact form */
.form-control {
  background-color: transparent;
  border: 1px solid #444;
  border-radius: 0;
  color: #fff;
  padding: 15px;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: none;
}

/* News Card Styles */
.date-box {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #5881BC;
  color: white;
  padding: 10px 15px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.news-card-img-wrapper {
  position: relative;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-top: 15px;
  margin-bottom: 10px;
}

.news-desc {
  font-size: 0.95rem;
  color: #666;
}

/* Sub-page Hero Fixes */
.hero {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  /* Offset for fixed header */
  width: 100%;
}

/* Modern Footer */
.modern-footer {
  background-color: rgb(33 37 41 / 97%) !important;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.modern-subscribe input:focus {
  border-color: var(--primary-color) !important;
  color: #fff;
}

.modern-subscribe button:hover {
  color: #fff !important;
}

.modern-footer .text-muted,
.modern-footer p,
.modern-footer a {
  color: #aaa !important;
}

.modern-footer h6 {
  color: #ffffff !important;
}

.modern-footer a:hover {
  color: #5881BC !important;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #5881BC;
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: #5881BC !important;
  transform: translateX(5px);
}

.footer-nav a:hover::after {
  width: 100%;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn i {
  color: #6c757d;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(88, 129, 188, 0.4);
}

.social-btn:hover i {
  color: #5881BC;
}

.legal-links a:hover {
  color: #fff !important;
}

/* Premium Contact Page Styles */
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
  border-color: var(--primary-color) !important;
}

.contact-card:hover .icon-box {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.icon-box {
  transition: all 0.3s ease;
}

.premium-input {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.premium-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(88,129,188,0.25) !important;
  background-color: #222 !important;
}

.custom-floating > label {
  color: #777;
}

.custom-floating > .form-control:focus ~ label,
.custom-floating > .form-control:not(:placeholder-shown) ~ label,
.custom-floating > .form-select ~ label {
  color: var(--primary-color);
}

.custom-floating > label::after {
  background-color: transparent !important;
}

.custom-floating > .form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: white !important;
}

/* Global Mobile Responsiveness */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  /* Fix index slider content alignment and padding */
  .hero-slide-content {
    text-align: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Reduce heavy padding on mobile containers */
  .text-center.p-5 {
    padding: 1.5rem !important;
  }
  
  /* Ensure header elements fit */
  .header-zxmoto .navbar-brand img {
    height: 50px !important;
  }
  
  /* Optimize mega menu icons for mobile */
  .model-category i.fa-2x {
    font-size: 1.5em !important;
  }
  .model-category h6 {
    font-size: 0.7rem !important;
    letter-spacing: 0px !important;
  }
  
  /* Fix launch section text size */
  .launch-title {
    font-size: 2.5rem !important;
  }
}