@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary-color: #009de0;
  /* Muthoot Logo Blue */
  --secondary-color: #E2231A;
  /* Yamaha Red */
  --bg-dark: #ffffff;
  /* Main background, now white */
  --bg-darker: #f9f9f9;
  /* Secondary background, light grey */
  --text-light: #222222;
  /* Main text, dark grey/black */
  --text-muted: #666666;
  /* Muted text */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

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

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 2px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Hero Section / Banner */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.hero-content {
  text-align: left;
  max-width: 800px;
  padding: 0 5%;
  width: 100%;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.hero-content .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-content .btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
}

/* Sections */
.section {
  padding: 80px 5%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
}

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

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Vehicle Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

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

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 40px 5% 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.05);
}

/* Vehicle Details Page */
.vehicle-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 100px;
  /* offset navbar */
}

.vehicle-showcase img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.color-selector {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-btn.active {
  border-color: var(--text-light);
  transform: scale(1.1);
}

.color-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Responsive Layout Utilities */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.product-showcase-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 20px;
}

.showcase-features {
  flex: 0 0 320px;
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-self: flex-start;
}

.showcase-image {
  flex: 1;
  min-width: 400px;
  position: relative;
}

.showcase-colors {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-self: flex-start;
}

.responsive-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Stage and Bike Images */
.stage-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 370;
  margin: 0 auto;
  padding: 0 !important;
}

.stage-container .swiper {
  width: 100%;
  height: 100%;
}

.stage-container .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-bike-img {
  height: 53% !important;
  max-height: none !important;
  width: auto;
  object-fit: contain;
  transform: translate(-5%, -6%) !important;
  transition: opacity 0.3s ease;
}

/* Tablet Media Query */
@media (max-width: 1024px) {
  .product-showcase-container {
    flex-direction: column;
    justify-content: center;
  }

  .showcase-features {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    max-width: 600px;
    align-self: center;
  }

  .showcase-image {
    order: 1;
    min-width: 0;
    width: 100%;
    max-width: 600px;
  }

  .showcase-colors {
    order: 3;
    flex: 1 1 auto;
    width: 100%;
    max-width: 600px;
    align-self: center;
  }

  .responsive-cards-grid {
    gap: 30px;
  }
}

/* Hamburger Menu Base */
.menu-toggle {
  display: none;
  /* hidden on desktop */
}

/* Mobile Media Query */
@media (max-width: 768px) {
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .hero-grid h2 {
    font-size: 1.5rem !important;
  }

  .hero-grid p {
    font-size: 0.9rem !important;
  }

  .hero-grid img {
    max-width: 150px !important;
    margin: 0 auto;
  }

  header {
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .hero {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto;
    margin-top: 85px !important;
  }

  .hero-slider .slide {
    background-position: center center !important;
  }

  /* Mobile Sidebar Nav */
  nav ul {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    display: flex !important;
    /* Override desktop layout */
    margin: 0;
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    margin-bottom: 20px;
    width: 100%;
  }

  nav ul li a {
    color: #111;
    font-size: 1.2rem;
    display: block;
    width: 100%;
  }

  .menu-toggle {
    display: block !important;
    cursor: pointer;
    z-index: 1000;
    margin-left: auto;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
  }

  /* Hamburger animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-grid .btn-group {
    justify-content: center;
  }

  .section {
    padding: 50px 5% !important;
  }

  .section-title {
    margin-bottom: 30px !important;
  }

  .responsive-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  /* Tablet and Mobile Footer Layout */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-col:first-child {
    grid-column: 1 / -1 !important;
    text-align: center;
  }
  .footer-col:first-child img {
    margin: 0 auto 20px !important;
  }
  .footer-col:first-child p {
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .premium-tab-btn {
    min-width: 130px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Mobile Footer Adjustments */
  .footer-grid {
    grid-template-columns: 40% 60% !important;
    gap: 10px !important;
  }
  .footer-col h4 {
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    letter-spacing: 0 !important;
  }
  .footer-col ul li a, 
  .footer-col ul li span {
    font-size: 0.75rem !important;
  }
  .footer-col ul li svg {
    width: 15px !important;
    height: 15px !important;
  }
  .footer-col ul li {
    gap: 6px !important;
  }
}

/* Banner Dividers */
.banner-divider {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  position: relative;
}

.banner-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* 3D Animation Style */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card-3d:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(-5deg);
  box-shadow: 15px 25px 40px rgba(0, 0, 0, 0.2);
}

.card-3d-inner {
  transform: translateZ(30px);
}