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

:root {
  /* Light Theme Defaults */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #191919;
  --text-secondary: #555555;
  --brand-red: #b73235;
  --brand-red-hover: #d13a3e;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-card-bg: rgba(248, 249, 250, 0.8);
  --glass-card-hover: rgba(255, 255, 255, 0.95);
  --input-bg: rgba(0, 0, 0, 0.03);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme Overrides */
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --nav-bg: rgba(15, 15, 15, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-card-bg: rgba(26, 26, 26, 0.8);
  --glass-card-hover: rgba(30, 30, 30, 0.8);
  --input-bg: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: var(--nav-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  object-fit: contain;
  transform: scale(1.8);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: var(--transition-smooth);
}

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

/* Premium Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(183, 50, 53, 0.3);
}

.btn-primary:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 50, 53, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Hero Section */
.hero-scroll-container {
  height: 250vh; /* Scrollable distance to reveal parts */
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 80px 5% 20px;
}

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

/* Dynamic Gradients Background */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(183, 50, 53, 0.15) 0%, rgba(15, 15, 15, 0) 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(15, 15, 15, 0) 70%);
  border-radius: 50%;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-top: 5vh;
}

.hero-part.part-1 {
  opacity: 1;
  transform: translateY(0);
}

.hero-super {
  font-family: var(--font-heading);
  color: var(--brand-red);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-part h1 {
  font-size: 4.5rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

.hero-part p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 800px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Sponsors Marquee */
.sponsors-marquee {
  width: 100vw;
  max-width: 1000px;
  overflow: hidden;
  margin-top: 1.5rem;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-track img {
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.marquee-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 2rem)); }
}

/* Sections */
section {
  padding: 8rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header .super {
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

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

/* Glass Cards (Team/Services) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: var(--glass-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-red);
}

.glass-card:hover::before {
  transform: scaleX(1);
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--brand-red);
  padding: 2px;
  background: var(--bg-primary);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.glass-card .role {
  color: var(--brand-red);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

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

/* Features/Services */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(183, 50, 53, 0.1);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact/Footer */
footer {
  background: var(--bg-secondary);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--brand-red);
}

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

/* Form Styles */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  background: var(--input-bg);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--glass-border);
  color: var(--brand-red);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Hero parts */
.hero-part {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-part.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hamburger button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 1002;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile full-screen nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1001;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-nav.closing {
  transform: translateX(100%);
}
.mobile-nav a.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.mobile-nav a.mobile-nav-link:hover { color: var(--brand-red); }
.mobile-nav-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Back button inside mobile nav */
.mobile-nav-back {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}
.mobile-nav-back:hover { color: var(--brand-red); }
.mobile-nav-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 1rem 5%; }
  .navbar.scrolled { padding: 0.75rem 5%; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .logo img { transform: scale(1.3); }

  /* Hero */
  .hero-scroll-container { height: 200vh; }
  .hero-sticky { padding: 70px 6% 20px; }
  .hero-part h1 { font-size: 2.4rem; line-height: 1.15; }
  .hero-part p { font-size: 1.05rem; line-height: 1.7; }
  .hero-super { font-size: 0.7rem; letter-spacing: 1.5px; }
  .hero-btns { flex-direction: column; align-items: center; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .hero-content { gap: 1.2rem; margin-top: 0; }

  /* Marquee */
  .marquee-track img { height: 74px; }
  .marquee-track { gap: 2.5rem; }

  /* Sections */
  section { padding: 4rem 5%; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 2rem; }

  /* Cards grid → single column */
  .grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .glass-card { padding: 1.75rem; }
  .glass-card:hover { transform: none; }

  /* Footer */
  footer { padding: 3rem 5% 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Buttons */
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}


@media (max-width: 480px) {
  .hero-part h1 { font-size: 1.9rem; }
  .section-header h2 { font-size: 1.7rem; }
  .glass-card { padding: 1.4rem; }
  .marquee-track img { height: 59px; }
}

/* ── About Section ── */
.about-content {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-lead {
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.about-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.about-vision {
  background: rgba(183, 50, 53, 0.05);
  border: 1px solid rgba(183, 50, 53, 0.2);
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

.about-vision .super {
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.75rem;
}

.about-vision p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Reduce bottom padding so accordion doesn't float in a sea of whitespace */
#services {
  padding-bottom: 0;
  border-top: 1px solid var(--glass-border);
}

/* ── Accordion Styles ── */
.accordion-container {
  border-top: 1px solid var(--glass-border);
}

/* Centered flex grid for 5-card layout (3 + 2 centered) */
.grid-why {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-why .glass-card {
  flex: 0 1 320px;
}

.custom-accordion {
  border-top: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.custom-accordion:first-child {
  border-top: none;
}

.custom-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 3rem 2rem;
  user-select: none;
}

.custom-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.accordion-header .super {
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.accordion-header h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin: 0;
}

.accordion-header .arrow {
  font-size: 0.9rem;
  color: var(--brand-red);
  margin-top: 0.9rem;
  transition: transform 0.3s ease;
  display: block;
}

.custom-accordion[open] .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 2rem 3rem;
  overflow: hidden;
  transition: height 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.38s ease,
              transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .about-lead { font-size: 1.15rem; }
  .about-body { font-size: 1rem; }
  .grid-why .glass-card { flex: 0 1 100%; }
  .accordion-header h2 { font-size: 1.7rem; }
  .custom-accordion summary { padding: 2rem 1rem; }
}