/* ============================================================
   Import Component Stylesheet (Header & Footer)
   ============================================================ */
@import url('Component/style.css');

/* ============================================================
   Enhanced Color Variables & Root Tokens
   ============================================================ */
:root {
  /* Futuristic Tech Accents */
  --color-cyan: #00f0ff;
  --color-cyan-glow: rgba(0, 240, 255, 0.4);
  --color-gold: #ffc068;
  --color-gold-glow: rgba(255, 192, 104, 0.4);
  
  /* Backgrounds & Cards */
  --color-card-bg: rgba(28, 28, 28, 0.65);
  --color-card-border: rgba(255, 255, 255, 0.07);
  --color-section-bg: #2b2b2b;
  --color-section-alternate-bg: #242424;

  /* Typography */
  --font-family-display: 'Outfit', sans-serif;
  --font-family-base: 'Inter', sans-serif;
}

/* ============================================================
   Global Enhancements
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-body-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Custom Webkit Scrollbars for premium feel */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-header-accent);
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
  border: 2px solid var(--color-header-accent);
}
::-webkit-scrollbar-thumb:hover {
  background: #666;
}



/* ============================================================
   Typography & Accents
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-family-display);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-family: var(--font-family-display);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.badge-gold {
  background: rgba(255, 192, 104, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(255, 192, 104, 0.25);
}

.highlight-cyan {
  color: var(--color-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.highlight-gold {
  color: var(--color-gold);
  text-shadow: 0 0 15px rgba(255, 192, 104, 0.2);
}

/* ============================================================
   Reusable Layout Components
   ============================================================ */
.section {
  padding: 100px 20px;
  width: 100%;
  box-sizing: border-box;
}

.terrain-section {
  background-color: var(--color-section-bg);
}

.road-section {
  background-color: var(--color-section-alternate-bg);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Glassmorphic Container Card */
.glass-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.iframe-container {
  height: 750px;
  width: 100%;
  position: relative;
}

.comparison-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   Comparison Grid and Card Details
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
  margin-top: 20px;
}

.grid-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-card-border);
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: -0.3px;
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-card .iframe-container {
  height: 600px;
}

/* ============================================================
   Hero Section (Jigsaw Puzzle Showcase)
   ============================================================ */
.hero-section {
  min-height: calc(100vh - var(--header-height) - var(--header-accent-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 37, 37, 0.6) 0%, rgba(18, 18, 18, 0.9) 90%),
              linear-gradient(180deg, #323232 0%, #2b2b2b 100%);
  position: relative;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 650px;
}

.hero-visual {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  height: auto;
  position: relative;
  margin: 0 auto;
}

.jig-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   Premium Buttons & Interactions
   ============================================================ */
.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family-display);
  letter-spacing: 0.5px;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--color-cyan);
  color: #0d0d0d;
  box-shadow: 0 4px 15px var(--color-cyan-glow);
  border: 1px solid var(--color-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
  background: #33f3ff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ============================================================
   Responsive Styles
   ============================================================ */
@media (max-width: 992px) {
  .hero-container {
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    margin: 0 auto 35px auto;
  }



  .section {
    padding: 70px 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .iframe-container {
    height: 600px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }



  .grid-card .iframe-container {
    height: 420px;
  }
}

/* ============================================================
   Header Inner & Mobile Responsive Styles
   ============================================================ */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--header-gap);
  width: 100%;
}

/* Hide toggle on desktop */
.mobile-nav-toggle {
  display: none;
}

/* Mobile responsive navigation overrides */
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    gap: 0;
    padding: 0 20px;
  }

  .header-top {
    position: relative;
    padding: 0; /* padding handled by header-inner */
  }

  .mobile-nav-toggle {
    display: block; /* Override display: none from desktop */
    position: relative;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
  }

  .hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Absolute position each line */
  .hamburger-line:nth-child(1) {
    top: 0;
  }
  .hamburger-line:nth-child(2) {
    top: 8px;
  }
  .hamburger-line:nth-child(3) {
    top: 16px;
  }

  /* Animate hamburger lines to an 'X' */
  .mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Slide down mobile menu */
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-header-primary);
    border-bottom: 3px solid var(--color-header-accent);
    padding: 25px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1050;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .main-nav a {
    font-size: 18px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }
}

/* ============================================================
   Play Overlay & On-Demand Loading Styles (User Played)
   ============================================================ */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 30, 30, 0.65) 0%, rgba(15, 15, 15, 0.93) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.play-overlay:hover {
  background: radial-gradient(circle at center, rgba(30, 30, 30, 0.5) 0%, rgba(15, 15, 15, 0.88) 100%);
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-cyan);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-cyan-glow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.25s ease;
  color: #0d0d0d;
  padding: 0;
}

.play-button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 6px; /* Center play triangle visually */
  display: block;
}

.play-overlay:hover .play-button {
  transform: scale(1.12);
  background: #33f3ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.75), 0 0 15px rgba(0, 240, 255, 0.35);
}

.play-button:active {
  transform: scale(0.95);
}

/* Fade out animation class */
.play-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}



