/* ============================================================
   DIVING WEBSITE — Cinematic Underwater Theme
   ============================================================ */

/* -- 1. Reset & CSS Variables -------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #a8d0f0;
  --secondary: #00d9ff;
  --accent: #ff8ab5;
  --bg: #030d1a;
  --bg-alt: #071a2e;
  --bg-section: rgba(5, 15, 30, 0.7);
  --text: #e0e8f0;
  --text-muted: #7a9ab8;
  --card-bg: rgba(10, 25, 50, 0.65);
  --card-bg-solid: #0a1932;
  --card-border: rgba(0, 217, 255, 0.1);
  --card-glow: rgba(0, 217, 255, 0.06);
  --nav-bg: rgba(3, 13, 26, 0.92);
  --footer-bg: #020a14;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 40px rgba(0, 217, 255, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --glow-cyan: 0 0 30px rgba(0, 217, 255, 0.15);
}

[data-theme="light"] {
  --primary: #1e3a5f;
  --secondary: #00bcd4;
  --accent: #ff6b9d;
  --bg: #e8f0f8;
  --bg-alt: #dce8f4;
  --bg-section: rgba(230, 240, 250, 0.85);
  --text: #1a2a3a;
  --text-muted: #4a6a8a;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-solid: #fff;
  --card-border: rgba(0, 188, 212, 0.15);
  --card-glow: rgba(0, 188, 212, 0.08);
  --nav-bg: rgba(20, 50, 80, 0.95);
  --footer-bg: #0a1628;
  --shadow: 0 4px 16px rgba(0, 40, 80, 0.1);
  --shadow-hover: 0 8px 32px rgba(0, 188, 212, 0.2);
  --glow-cyan: 0 0 20px rgba(0, 188, 212, 0.1);
}

/* -- 2. Base / Body ------------------------------------------ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
ul, ol { list-style: none; }

/* -- 3. Underwater Background System ------------------------- */
.underwater-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.uw-gradient-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 60, 120, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 80% 120% at 20% 100%, rgba(0, 30, 80, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 80% 120% at 80% 100%, rgba(0, 50, 100, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #030d1a 0%, #051525 30%, #071d35 60%, #030d1a 100%);
}

[data-theme="light"] .uw-gradient-layer {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 140, 200, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 120% at 20% 100%, rgba(0, 100, 180, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #e8f0f8 0%, #dce8f4 30%, #d0e0f0 60%, #e8f0f8 100%);
}

.underwater-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Light rays */
.uw-light-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(0, 200, 255, 0.04) 0%, transparent 40%),
    linear-gradient(190deg, rgba(0, 180, 255, 0.03) 0%, transparent 35%),
    linear-gradient(160deg, rgba(0, 220, 255, 0.02) 0%, transparent 45%);
  animation: lightRayShift 12s ease-in-out infinite alternate;
}

[data-theme="light"] .uw-light-rays {
  background:
    linear-gradient(170deg, rgba(0, 150, 200, 0.06) 0%, transparent 40%),
    linear-gradient(190deg, rgba(0, 120, 180, 0.04) 0%, transparent 35%);
}

@keyframes lightRayShift {
  0% { opacity: 0.6; transform: translateX(-2%); }
  100% { opacity: 1; transform: translateX(2%); }
}

/* -- 4. Content sections base ------------------------------- */
.content-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

/* -- 5. Scroll Progress Bar ---------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), #00ffcc, var(--accent));
  z-index: 10000;
  transition: width 0.08s linear;
  will-change: width;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
}

/* -- 6. Back-to-Top Button ----------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  color: var(--secondary);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition), background-color var(--transition),
    box-shadow var(--transition);
  z-index: 9000;
  box-shadow: var(--glow-cyan);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.4);
}

/* -- 7. Navbar ----------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition), box-shadow var(--transition),
    background-color var(--transition);
  border-bottom: 1px solid rgba(0, 217, 255, 0.06);
}
.navbar.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(0, 217, 255, 0.1);
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), #00ffcc);
  transition: width var(--transition);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}
.theme-toggle:hover {
  background: rgba(0, 217, 255, 0.15);
  transform: rotate(15deg);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 0 2rem;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition);
  }
  .nav-links.active {
    max-height: 400px;
    padding: 1rem 2rem;
  }
}

/* -- 8. Hero Section ----------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 7rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 20%, rgba(0, 120, 200, 0.2) 0%, transparent 70%),
    radial-gradient(circle at 30% 80%, rgba(0, 180, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0, 100, 200, 0.06) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 100% 60% at 50% 20%, rgba(0, 120, 200, 0.1) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

[data-theme="light"] .hero h1 { color: #fff; }

.hero h1 span {
  background: linear-gradient(135deg, var(--secondary), #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-image-wrap {
  position: relative;
  animation: fadeInRight 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite alternate;
  z-index: 0;
}

[data-theme="light"] .hero-image-glow {
  background: radial-gradient(ellipse at center, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
}

@keyframes glowPulse {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 217, 255, 0.1),
    inset 0 0 0 1px rgba(0, 217, 255, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero-image-reflection {
  position: absolute;
  bottom: -40%;
  left: 5%;
  right: 5%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 217, 255, 0.06), transparent);
  filter: blur(20px);
  transform: scaleY(-0.5);
  opacity: 0.4;
  pointer-events: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--secondary), #00b8d4);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 217, 255, 0.4);
}
.hero-cta:hover::before { opacity: 1; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: fadeInUp 1s 1s both;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-image-wrap { order: -1; max-width: 500px; margin: 0 auto; }
  .hero-scroll-indicator { display: none; }
  .hero { padding: 6rem 1.5rem 3rem; }
}

/* -- 9. Section Headers -------------------------------------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), #00ffcc);
  border-radius: 2px;
  margin: 1rem auto 0;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

/* -- 10. Scroll Reveal --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- 11. Card Grid ------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.2);
}
.card:hover::before { opacity: 1; }

.card-image { width: 100%; height: 220px; overflow: hidden; position: relative; }
.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--card-bg-solid), transparent);
  pointer-events: none;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-image img { transform: scale(1.08); }
.card-body { padding: 1.5rem; }
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card-body p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

.benefits-section .emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* -- 12. Athletes Section ------------------------------------ */
.athletes-section { padding: 6rem 2rem; }
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.athlete-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.athlete-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.athlete-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.athlete-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.25);
}
.athlete-card.active {
  border-color: var(--secondary);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.athlete-avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.athlete-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  animation: none;
  transition: transform 0.4s ease;
}
.athlete-card:hover .athlete-avatar-ring {
  transform: scale(1.08);
}
.athlete-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
  background: var(--card-bg-solid);
}
.athlete-flag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 1.4rem;
  z-index: 2;
  background: var(--card-bg-solid);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-border);
}

.athlete-name {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.25rem;
  position: relative; z-index: 1;
}
.athlete-country {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.15rem;
  position: relative; z-index: 1;
}
.athlete-specialty {
  font-size: 0.8rem; color: var(--secondary);
  font-weight: 600; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}

/* Metric bars */
.athlete-bars { position: relative; z-index: 1; }
.metric-row {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
  font-weight: 500;
}
.metric-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .metric-track {
  background: rgba(0, 0, 0, 0.06);
}
.metric-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--secondary), #00ffcc);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}
.metric-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: right;
}

/* Athlete detail panel */
.athlete-detail {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease, padding 0.4s ease;
}
.athlete-detail.active {
  max-height: 600px;
  opacity: 1;
  padding: 2rem;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.detail-avatar {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.08);
  border-radius: 50%;
  border: 2px solid var(--card-border);
}
.detail-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.detail-info p { font-size: 0.9rem; color: var(--text-muted); }

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 217, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}
.stat-box:hover { transform: translateY(-2px); }
.stat-box .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}
.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.detail-signature {
  padding: 0.75rem 1rem;
  background: rgba(0, 217, 255, 0.06);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text);
}
.signature-label { font-weight: 700; color: var(--secondary); }

/* -- 13. Videos Section -------------------------------------- */
.videos-section { padding: 6rem 2rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.video-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.2);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-body { padding: 1.25rem; }
.video-body h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.4rem;
}
.video-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Video modal (kept for backwards compat) */
.video-modal {
  position: fixed; inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal .modal-content {
  width: 90%; max-width: 560px;
  background: var(--card-bg); color: var(--text);
  padding: 2.5rem; position: relative; text-align: center;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.15);
}

/* -- 14. Highlights Section ---------------------------------- */
.highlights-section { padding: 6rem 2rem; }

.sub-header {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}
.sub-header:first-of-type { margin-top: 0; }
.sub-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.sub-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width); margin: 0 auto;
}
.record-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.record-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.2);
}

.record-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.record-value {
  font-size: 2rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 0.3rem;
}
.record-unit { font-size: 0.9rem; font-weight: 500; opacity: 0.7; }
.record-label {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
}
.record-desc {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.record-bar {
  width: 100%; height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px; overflow: hidden;
}
[data-theme="light"] .record-bar {
  background: rgba(0, 0, 0, 0.06);
}
.record-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), #00ffcc);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width); margin: 0 auto;
}
.achieve-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.achieve-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.2);
}
.achieve-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.achieve-count {
  font-size: 1.8rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 0.3rem;
}
.achieve-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.3rem;
}
.achieve-top {
  font-size: 0.78rem; color: var(--secondary);
  font-weight: 500; margin-bottom: 0.5rem;
}
.achieve-desc {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
}

/* -- 15. Stats Section --------------------------------------- */
.stats-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.6) 0%, rgba(0, 60, 100, 0.4) 50%, rgba(0, 30, 60, 0.6) 100%);
  z-index: -1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: rgba(0, 217, 255, 0.04);
  border: 1px solid rgba(0, 217, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--secondary);
  line-height: 1.1; margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -- 16. CTA Section ----------------------------------------- */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 180, 220, 0.2) 0%, rgba(0, 100, 160, 0.15) 100%);
  z-index: -1;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 1rem;
  color: var(--text);
}
.cta-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--secondary), #00b8d4);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(0, 217, 255, 0.3);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0, 217, 255, 0.45);
}

/* -- 17. Footer ---------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0, 217, 255, 0.06);
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer h3 {
  color: #fff; font-size: 1.1rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.footer a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer a:hover { color: var(--secondary); }

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

/* -- 18. Keyframe Animations --------------------------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.85); }
  60%  { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* Bubble float animation (for hero) */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.2), rgba(0, 217, 255, 0.05));
  border: 1px solid rgba(0, 217, 255, 0.1);
  animation: bubbleFloat linear infinite;
  pointer-events: none;
}

@keyframes bubbleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* Game overlay */
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 10, 20, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10;
  display: none; align-items: center; justify-content: center;
}
.game-overlay.active { display: flex; }

/* -- 19. Accessibility --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubble { display: none; }
  .uw-light-rays { animation: none; }
}

/* -- 20. Touch Device Overrides ------------------------------ */
@media (hover: none) {
  .card:hover,
  .athlete-card:hover,
  .record-card:hover,
  .achieve-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  .card:hover .card-image img { transform: none; }
  .video-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  .nav-links a:hover::after { width: 0; }
  .theme-toggle:hover { transform: none; }
  .hero-cta:hover,
  .cta-btn:hover { transform: none; }
  .back-to-top:hover { background: var(--card-bg); color: var(--secondary); }
}

/* -- Screen-reader only utility ------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
