/* Global Custom Properties & Design Tokens */
:root {
  --color-bg: #050505;
  --color-bg-darker: #020202;
  --color-bg-panel: #0a0a0a;
  --color-primary: #dfff1a; /* Volt Yellow */
  --color-primary-rgb: 223, 255, 26;
  --color-secondary: #ff5722; /* Racing Orange */
  --color-text-primary: #f3f4f6;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #4b5563;
  --color-glass-bg: rgba(15, 15, 15, 0.6);
  --color-glass-border: rgba(255, 255, 255, 0.06);
  
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-meta: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 255, 26, 0.3) transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(223, 255, 26, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

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

/* Custom Selection */
::selection {
  background: var(--color-primary);
  color: #000;
}

/* Global Buttons & UI Elements */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-meta);
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(223, 255, 26, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary:hover {
  color: #000;
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-meta);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-primary);
  cursor: pointer;
}

.btn-primary-sm:hover {
  background: transparent;
  color: var(--color-primary);
  transform: scale(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-meta);
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

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

.btn-secondary i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-secondary:hover i {
  transform: translateX(4px);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  z-index: 1000;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 60%, rgba(5, 5, 5, 0));
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-container {
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.logo-txt {
  color: #fff;
}

.logo-accent {
  color: var(--color-primary);
  margin-left: 4px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

/* Split-screen Layout styling */
.split-container {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Left Sticky Panel (Interactive morphing images) */
.sticky-panel {
  width: 50%;
  height: 100vh;
  position: relative;
  background-color: var(--color-bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Baseline path */
}

/* Interactive Overlay for depth */
.morph-shape-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0) 40%, rgba(5, 5, 5, 0) 60%, rgba(5, 5, 5, 0.4) 100%),
              linear-gradient(to bottom, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0) 20%, rgba(5, 5, 5, 0) 80%, rgba(5, 5, 5, 0.8) 100%);
  z-index: 5;
  pointer-events: none;
}

.panel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  filter: grayscale(35%) contrast(110%) brightness(85%);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.panel-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  filter: grayscale(0%) contrast(100%) brightness(95%);
}

.image-meta {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  color: var(--color-text-secondary);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-tag {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: #fff;
}

/* Right Scrollable Panel */
.scroll-panel {
  width: 50%;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background-color: var(--color-bg);
  padding-top: 80px; /* account for header */
}

/* Scroll Sections */
.content-section {
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 6rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-content {
  max-width: 600px;
  width: 100%;
}

/* Special Hero Design */
.hero-content {
  max-width: 680px;
}

.tagline-reveal {
  font-family: var(--font-meta);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.8rem;
  background: linear-gradient(135deg, #fff 30%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.scroll-down-hint {
  position: absolute;
  bottom: 40px;
  left: 6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scroll-text {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.scroll-indicator {
  width: 20px;
  height: 35px;
  border: 2px solid var(--color-text-muted);
  border-radius: 10px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* Program Section Elements */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(223, 255, 26, 0.08);
  border: 1px solid rgba(223, 255, 26, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.section-tag i {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.section-quote {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  border-left: 3px solid var(--color-primary);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(223, 255, 26, 0.3);
  transform: translateY(-4px);
}

.feature-card.highlighted {
  border-color: rgba(223, 255, 26, 0.4);
  box-shadow: 0 4px 20px rgba(223, 255, 26, 0.05);
}

.feature-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Contact / Location Page Specific styles */
.contact-content {
  max-width: 600px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-icon i {
  width: 22px;
  height: 22px;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.info-text p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-note p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Responsive Styles for Mobile & Tablets */
@media (max-width: 992px) {
  /* Re-stack the split container to vertical flow */
  .split-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  header {
    height: 70px;
  }
  
  .header-container {
    padding: 0 1.5rem;
  }
  
  .header-right {
    display: none; /* Hide secondary join button to save room */
  }
  
  nav {
    display: none; /* Hide desktop nav, simple single scroll screen */
  }

  /* Fixed Background container */
  .sticky-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }
  
  .image-wrapper {
    clip-path: none !important; /* Disable clip-path morphing on mobile for battery and rendering efficiency */
  }
  
  .panel-img {
    filter: grayscale(40%) contrast(110%) brightness(40%) !important; /* Darken for readability */
  }

  /* Scroll Panel overlays on top of fixed background */
  .scroll-panel {
    width: 100%;
    height: auto;
    overflow-y: visible;
    background-color: transparent;
    padding-top: 70px;
    scroll-snap-type: none;
  }
  
  .content-section {
    min-height: 100vh;
    height: auto;
    padding: 6rem 1.5rem 4rem 1.5rem;
    scroll-snap-align: none;
    border-bottom: none;
  }
  
  .section-content {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 1.8rem;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2.0rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr; /* Stack grids */
  }
  
  .scroll-down-hint {
    left: 1.5rem;
  }
  
  .image-meta {
    display: none; /* Hide meta tags on mobile overlay */
  }
}
