*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-alt: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --nav-height: 4.5rem;
  --transition-fast: 150ms ease-out;
}

html {
  scroll-behavior: smooth;
  font-size: 17px; /* Increased base font size from 16px to 17px */
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 50%, #000 100%);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.3rem;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-decoration: none;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-dropdown-toggle {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(34, 197, 94, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.nav-links a.active {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.7);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(34, 197, 94, 0.15));
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(34, 197, 94, 0.4));
  z-index: -1;
  opacity: 0.5;
  filter: blur(4px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 180px;
  padding: 0.4rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  list-style: none;
  margin: 0;
  display: none;
}

.nav-dropdown-menu li:first-child a {
  margin-top: 0;
}

.nav-dropdown-menu li a {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  margin-top: 0.3rem;
  padding: 0.6rem 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
}

.nav-dropdown-menu li a:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.nav-dropdown-menu li a.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.2));
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.nav-toggle i {
  position: absolute;
  font-size: 1.2rem;
  color: var(--text);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-toggle .fa-bars {
  opacity: 1;
  transform: rotate(0deg);
}

.nav-toggle .fa-times {
  opacity: 0;
  transform: rotate(90deg);
}

.nav-toggle.active .fa-bars {
  opacity: 0;
  transform: rotate(-90deg);
}

.nav-toggle.active .fa-times {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-highlight {
  display: flex;
  justify-content: center;
}

.hero-stats-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.23), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
}

.hero-stats-card .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero-stats-card p {
  margin: 0;
  color: var(--text);
}

/* Generic sections */

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: radial-gradient(circle at top right, #111827 0, #020617 55%, #000 100%);
}

.section h1,
.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem !important;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.5rem;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem !important;
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* Scroll reveal animations */
.section:not(.hero) {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  opacity: 1;
}

.team-card,
.sponsor-card,
.tier-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.team-card.visible,
.sponsor-card.visible,
.tier-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover,
.sponsor-card:hover,
.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
}

.section-intro {
  max-width: 34rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #020617;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(34, 197, 94, 0.55);
}

.btn.outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.btn.outline:hover {
  border-color: rgba(148, 163, 184, 1);
}

/* Layout helpers */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Feature cards */

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%), rgba(15, 23, 42, 0.95);
  font-size: 0.9rem;
  text-align: center;
}

/* Stats */

.stats {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%), rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.25);
}

.stat h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tiers */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.tier-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem 1.4rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.tier-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Contact */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%), rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(56, 189, 248, 0.3);
}

.photo-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.team-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.3rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-photo {
  width: 100%;
  border-radius: 1.1rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.team-card h2,
.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--text);
}

.sponsor-card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.tier-card h3,
.tier-card h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--accent);
}

.team-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sponsors */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sponsor-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.sponsor-name {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.sponsor-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.sponsor-card p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.gallery-item {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 150ms ease-out;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Current events */

.current-event-card {
  margin-top: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  padding: 1.5rem;
}

.current-event-image {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at bottom, #020617 0, #000 70%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    order: -1;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: calc(var(--nav-height) + 0.75rem) 1.25rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-dropdown-menu {
    position: static;
    border-radius: 1.25rem;
    border-width: 0;
    box-shadow: none;
    background: transparent;
    padding-inline: 0;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scroll offset for sticky header */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}


.event-section {
  margin-top: 4rem;
}

.sponsor-name-container {
  display: flex;
  justify-content: space-between;
}

.sponsor-logo {
  width: 150px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: white;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-logo:hover {
  transform: translateY(-2px);
  
}

.nav-links a.active,
.nav-dropdown-toggle.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 1));
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.8);
}
