/* Global Variables & Reset */
:root {
  --bg-color: #050505;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --scarlet: #CC0000;
  --accent-gradient: linear-gradient(135deg, #8B0000, #CC0000, #FF3333);
  --accent-glow: rgba(204, 0, 0, 0.35);
  --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --container-width: 1280px;
  --header-height: 60px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: var(--header-height);
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

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

/* Hidden sport content must win over display:grid/flex on .stats-grid etc. */
[hidden] {
  display: none !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Utility */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header — mobile: fixed bottom bar */
header {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  border-bottom: none;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -20%;
  width: clamp(280px, 80vw, 800px);
  height: clamp(280px, 80vw, 800px);
  background: var(--accent-gradient);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -20%;
  width: clamp(240px, 70vw, 600px);
  height: clamp(240px, 70vw, 600px);
  background: #888888;
  filter: blur(80px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  z-index: 1;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--scarlet);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  transition: background 0.3s ease, transform 0.3s ease;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
}

.hero-img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 3px);
  display: block;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Sport Switch — segmented control inside the hero */
.sport-switch {
  display: flex;
  gap: 0.25rem;
  width: 100%;
  max-width: 360px;
  margin: 2rem auto 0;
  padding: 0.3rem;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.sport-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.sport-btn:hover {
  color: var(--text-primary);
}

.sport-btn.active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Stats Bar */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-color);
}

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

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Sections */
section {
  padding: 4rem 0;
  /* Keep anchored sections clear of the fixed header */
  scroll-margin-top: var(--header-height);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  order: -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Highlight Videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  background: #111;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.video-placeholder span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.video-placeholder small {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Season Stats table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.stats-table th,
.stats-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.stats-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--surface-border);
}

.stats-table td {
  color: var(--text-primary);
}

.stats-table tbody tr+tr td {
  border-top: 1px solid var(--surface-border);
}

.stats-table td:first-child {
  font-weight: 600;
}

/* Awards & Honors */
.awards-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.award {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.award-year {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.award-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* Academics */
.academics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.academic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.academic-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.academic-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.academics-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.5s ease;
}

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

/* Contact */
.contact-content {
  text-align: center;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.contact-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  display: inline-flex;
  color: var(--scarlet);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-subheading {
  margin: 3rem 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.pdf-btn {
  margin-top: 2.5rem;
}

.contact-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* === Tablet (480px+) === */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

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

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

  .contact-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .contact-card {
    width: auto;
    min-width: 200px;
    max-width: none;
    padding: 2rem 3rem;
  }
}

/* === Desktop (968px+) === */
@media (min-width: 968px) {
  :root {
    --header-height: 80px;
  }

  body {
    padding-bottom: 0;
  }

  header {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--surface-border);
    background: rgba(5, 5, 5, 0.92);
  }

  header .container {
    justify-content: space-between;
  }

  .logo {
    display: block;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: 4rem;
  }

  .hero::before {
    right: 10%;
    filter: blur(180px);
  }

  .hero::after {
    left: -10%;
    filter: blur(150px);
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
    margin: 0 0 2.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero .sport-switch {
    margin: 2.5rem 0 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 2.5rem;
  }

  .stats-bar {
    padding: 3rem 0;
  }

  .stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about-image {
    order: 0;
  }

  .about-text p {
    font-size: 1.1rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
  }

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

  .academics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .awards-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-table {
    font-size: 1rem;
  }

  .contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  footer {
    padding: 3rem 0;
    font-size: 0.9rem;
  }
}
