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

:root {
  --ink: #04060d;
  --midnight: #0d1220;
  --slate: #1b2233;
  --cloud: #f7f9ff;
  --accent: #ff3b55;
  --accent-alt: #ff6f61;
  --glow: rgba(79, 157, 255, 0.65);
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-soft: 0 28px 70px rgba(0, 0, 0, 0.5);
}

html,
body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 20% 20%, rgba(79, 157, 255, 0.08), transparent 55%),
    var(--ink);
  color: var(--cloud);
  line-height: 1.6;
}

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

a:hover,
a:focus {
  color: var(--accent-alt);
}

.grain {
  position: fixed;
  inset: -100px;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSIjMDAwIi8+CjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIwLjQiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4yIi8+CjxjaXJjbGUgY3g9IjkiIGN5PSI0IiByPSIwLjMiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8Y2lyY2xlIGN4PSI0IiBjeT0iOSIgcj0iMC41IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMTUiLz4KPGNpcmNsZSBjeD0iNyIgY3k9IjIiIHI9IjAuNCIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjEiLz4KPC9zdmc+Cg==');
  animation: grainShift 20s steps(10) infinite;
  z-index: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 130, 0.35), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(79, 157, 255, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(24, 4, 12, 0.94), rgba(6, 9, 21, 0.82));
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(255, 107, 130, 0.28), transparent 55%),
    radial-gradient(circle at 80% 35%, rgba(79, 157, 255, 0.35), transparent 60%);
  opacity: 0.5;
  z-index: 1;
  filter: blur(0.4px);
  animation: heroGlow 18s ease-in-out infinite;
}

.overlay {
  position: relative;
  z-index: 2;
  background: rgba(12, 17, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 5vw, 3.4rem) clamp(2rem, 6vw, 3.6rem);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: clamp(120px, 18vw, 160px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 8px;
}

.title {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 249, 255, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 2.6rem;
  margin-top: 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cloud);
  background: linear-gradient(135deg, var(--accent), var(--glow));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(255, 59, 85, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 56px rgba(255, 59, 85, 0.4);
}

.section {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.section.dark {
  background: linear-gradient(140deg, rgba(6, 9, 18, 0.95), rgba(18, 24, 38, 0.85));
  color: var(--cloud);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section {
  position: relative;
  color: var(--cloud);
  background: #04060d;
  background-image: url('./grouppic.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 95vh;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 9, 21, 0.72), rgba(9, 13, 24, 0.45));
  pointer-events: none;
}

.about-section .content {
  position: relative;
  z-index: 1;
  background: rgba(4, 7, 18, 0.42);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.2rem);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.about-section a {
  color: var(--accent);
}

.about-section a:hover,
.about-section a:focus {
  color: var(--accent-alt);
}

.coach-section {
  position: relative;
  color: var(--cloud);
  padding: clamp(5.2rem, 10vw, 7.8rem) 1.5rem;
  background-color: #05070f;
  background-image: url('./skyline-backdrop-far.jpg');
  background-size: auto 95%;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 105vh;
  overflow: hidden;
}

.coach-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(4, 6, 13, 0.7), rgba(6, 10, 18, 0.45));
  pointer-events: none;
}

.coach-section .content {
  position: relative;
  z-index: 1;
  background: rgba(6, 10, 18, 0.45);
  padding: clamp(2.4rem, 4.8vw, 3.4rem) clamp(1.5rem, 5vw, 3.2rem);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.content {
  width: min(840px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  font-size: 1.05rem;
  color: inherit;
}

.section.dark a {
  color: rgba(255, 255, 255, 0.86);
}

.section.dark a:hover,
.section.dark a:focus {
  color: var(--accent-alt);
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.schedule thead {
  background: rgba(6, 9, 18, 0.75);
}

.schedule th,
.schedule td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
}

.schedule th {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.08);
}

.schedule tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  background: #02040a;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes grainShift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  25% {
    transform: translate3d(-10%, -6%, 0) scale(1.03);
  }
  50% {
    transform: translate3d(8%, -8%, 0) scale(1.06);
  }
  75% {
    transform: translate3d(-12%, 6%, 0) scale(1.04);
  }
}

@media (max-width: 1024px) {
  .about-section,
  .coach-section {
    background-attachment: scroll;
    min-height: auto;
  }

  .about-section .content,
  .coach-section .content {
    padding: 2.2rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding-top: 6rem;
  }

  .overlay {
    padding: 2.2rem 1.6rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .about-section .content,
  .coach-section .content {
    padding: 2rem 1.5rem;
  }

  .coach-section {
    padding: 4.5rem 1.25rem;
  }

  .schedule {
    font-size: 0.95rem;
  }

  .schedule th,
  .schedule td {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    align-items: center;
    justify-content: flex-end;
    padding: 5.2rem 1.2rem 2rem;
  }

  .overlay {
    background: rgba(12, 17, 29, 0.12);
    padding: 1.3rem 1.05rem;
    backdrop-filter: blur(8px);
    width: min(82%, 320px);
    gap: 0.75rem;
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-section .content,
  .coach-section .content {
    background: rgba(6, 10, 18, 0.12);
    padding: 1.4rem 1.05rem;
    backdrop-filter: blur(8px);
    width: min(86%, 380px);
  }

  .content {
    gap: 0.95rem;
  }

  .about-section::before {
    background: linear-gradient(135deg, rgba(5, 9, 21, 0.28), rgba(9, 13, 24, 0.12));
  }

  .coach-section::before {
    background: linear-gradient(150deg, rgba(4, 6, 13, 0.24), rgba(6, 10, 18, 0.12));
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .subtitle {
    letter-spacing: 0.08em;
  }

  .schedule th,
  .schedule td {
    font-size: 0.9rem;
  }
}
