/* 
   ENDURAMA -- 2026 
   Style System - Modern Dark Theme for MTB
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Oswald:wght@400;500;700&display=swap');

:root {
  --color-bg: #121212;
  --color-surface: #1E1E1E;
  --color-surface-hover: #2C2C2C;
  --color-text-main: #FFFFFF;
  --color-text-muted: #A0A0A0;
  
  /* Vibrant Accents */
  --color-accent: #C6FF00; /* Neon Lime/Yellow */
  --color-accent-hover: #B2E600;
  --color-primary: #FF5722; /* Deep Orange for emphasis */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Borders / Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-sm); }
h3 { font-size: 1.75rem; color: var(--color-accent); margin-bottom: var(--spacing-xs); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, background 0.3s;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text-main);
  color: var(--color-text-main);
}

.btn-outline:hover {
  background: var(--color-text-main);
  color: #000;
}

/* Layout Components */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  /* padding: var(--spacing-sm) 0; */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 1px;
}

.logo img {
  position:absolute;
  top: 20px
} 

.logo span { color: var(--color-accent); }

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 300px);
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: var(--spacing-md);
}

/* Sections */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 3rem;
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-body);
  font-weight: 600;
}

/* Race Card */
.race-highlight {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.race-info {
  padding: var(--spacing-md);
}

.race-date {
  display: inline-block;
  background: var(--color-surface-hover);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.race-map {
  background: #2a2a2a;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* Bikes Grid */
.bikes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.bike-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  group: hover;
}

.bike-card:hover {
  transform: translateY(-10px);
}

.bike-img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  background: #111;
}

.bike-details {
  padding: var(--spacing-sm);
}

/* Footer */
footer {
  background: var(--color-surface);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid #333;
  margin-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.social-links a {
  margin-right: var(--spacing-sm);
  font-size: 1.2rem;
}

/* Specific Page: Bike Detail */
.product-hero {
  min-height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  background: #000;
  padding-top: 70px; /* navbar offset */
}

.product-hero img {
  /* position: absolute; */
  /* right: 0; */
  /* top: 0; */
  height: 100%;
  width: 60%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent);
  opacity: 0.8;
}

.product-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding-left: var(--spacing-md);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.spec-item strong {
  display: block;
  color: var(--color-text-main);
}

.spec-item span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .bikes-grid { grid-template-columns: 1fr; }
  .race-highlight { grid-template-columns: 1fr; }
  .product-hero img { width: 100%; position: relative; mask-image: none; -webkit-mask-image: none; opacity: 1; height: auto; }
  .product-hero { flex-direction: column-reverse; }
  .product-content { width: 100%; padding: var(--spacing-sm); }
}
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 25px; /* Aligned with logo vertically roughly */
    right: 20px;
    z-index: 200;
}

.menu-toggle .bar {
    width: 20px;
    height: 2px;
    background-color: var(--color-text-main);
    margin: 2px 0;
    transition: 0.4s;
}

/* Mobile Menu Animation classes */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .logo img {
        position: absolute;
        top: 20px;
        height: 80%;
    } 
    .navbar .container {
        height: 70px;
    }
    .navbar {
        height: 70px;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh; /* Full viewport height */
        position: absolute;
        top: 0; /* Start from top covering everything if needed, or below navbar */
        left: -100%; /* Hidden by default */
        opacity: 0;
        transition: all 0.5s ease;
        background: #000; /* Solid background */
        align-items: center;
        justify-content: center;
        z-index: 150; /* Below toggle button */
        padding-top: 80px; /* Space for logo/header */
    }

    .nav-links.active {
        left: 0;
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .hero {
        background-attachment: scroll;
    }
}


/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

