@charset "UTF-8";
:root {
  --primary: #001f3f;
  --secondary: #00334d;
  --accent: #a0e1ff;
  --accent-strong: #7fcfff;
  --button-bg: var(--secondary);
  --card-shadow: rgba(0, 0, 0, 0.25);
  --focus-outline: 3px solid rgba(160, 225, 255, 0.3);
  --max-width: 1200px;
}

/* -------------------------
   Reset & base
   ------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  color: var(--accent);
  text-align: center;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::-moz-selection {
  background: rgba(160, 225, 255, 0.2);
  color: var(--primary);
}

::selection {
  background: rgba(160, 225, 255, 0.2);
  color: var(--primary);
}

/* -------------------------
   Header / nav
   ------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  container-type: scroll-state;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  background: rgba(0, 40, 80, 0.75);
  transition: box-shadow 0.35s ease, background 0.35s ease;
  flex-wrap: wrap;
}

.logo {
  width: 150px;
  max-width: 35%;
}

.main-nav {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a:focus {
  color: var(--accent-strong);
}

.header-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.header-buttons button,
.header-buttons .skip-link {
  background: var(--button-bg);
  border: 0;
  padding: 12px 28px;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease;
}

.header-buttons button:focus,
.header-buttons .skip-link:focus {
  outline: var(--focus-outline);
}

.header-buttons button:hover,
.header-buttons .skip-link:hover {
  transform: scale(1.05);
}

/* sticky header styling */
@container scroll-state(stuck: top) {
  .header-container {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    background: rgba(0, 40, 80, 0.88);
  }
}
/* -------------------------
   Responsive tweaks for nav
   ------------------------- */
@media (max-width: 900px) {
  .header-container {
    padding: 22px;
    justify-content: center;
    gap: 16px;
  }
  .logo {
    width: 140px;
  }
  .main-nav {
    gap: 24px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }
  .main-nav {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .header-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 420px) {
  .main-nav {
    gap: 12px;
  }
  .hero h1 {
    font-size: 1.8rem;
    margin: 20px 0;
  }
  .header-buttons {
    width: 100%;
  }
  .header-buttons button,
  .header-buttons .skip-link {
    width: 100%;
  }
}
/* -------------------------
   Hero
   ------------------------- */
.hero {
  max-width: var(--max-width);
  margin: 36px auto;
  padding: 0 20px;
}

.hero img {
  width: 100%;
  max-height: 600px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 28px 0;
  color: var(--accent-strong);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.45);
}

/* -------------------------
   About
   ------------------------- */
.about {
  max-width: 700px;
  margin: 40px auto;
  background: rgba(0, 40, 80, 0.75);
  padding: 48px;
  border-radius: 12px;
  text-align: left;
  color: var(--accent);
}

/* -------------------------
   Trainer
   ------------------------- */
.trainer {
  max-width: 700px;
  margin: 50px auto;
  background: rgba(0, 40, 80, 0.75);
  padding: 44px;
  border-radius: 12px;
}

.trainer img {
  width: 180px;
  border-radius: 50%;
  margin: 0 auto 18px auto;
  display: block;
}

/* -------------------------
   Programs → Horizontal Carousel
   ------------------------- */
.program-carousel-container {
  overflow: hidden;
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(160, 225, 255, 0.35);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: -16px;
}

.carousel-btn.next {
  right: -16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 12px;
}

.carousel-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(160, 225, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots span.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* Keep your existing .program-list styles for horizontal carousel */
.program-list {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 3.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.program-list::-webkit-scrollbar {
  display: none;
}

.program-list .program {
  flex: 0 0 400px;
  background: rgba(0, 40, 80, 0.75);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--card-shadow);
  scroll-snap-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.program-list .program img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}

.program-list .program .content {
  padding: 22px;
  text-align: left;
}

.program-list .program:nth-child(1) {
  animation-delay: 0.08s;
}

.program-list .program:nth-child(2) {
  animation-delay: 0.18s;
}

.program-list .program:nth-child(3) {
  animation-delay: 0.28s;
}

.program-list .program:nth-child(4) {
  animation-delay: 0.38s;
}

.program-list .program:nth-child(5) {
  animation-delay: 0.48s;
}

/* :has() hover/focus effects */
@supports selector(:has(*)) {
  .program-list .program:has(img:hover),
  .program-list .program:has(img:focus) {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}
/* sibling-index animation enhancement */
@supports (animation-delay: calc(sibling-index() * 0.12s)) {
  .program-list .program {
    animation-delay: calc(sibling-index() * 0.12s);
  }
}
/* -------------------------
   SCROLL ANIMATION
   ------------------------- */
@supports (animation-timeline: view()) {
  .program-list .program {
    animation-name: reveal;
    animation-timeline: view();
    animation-range: entry 15% cover 40%;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
    opacity: 1;
  }
}
/* -------------------------
   SHOWCASE (cards)
   ------------------------- */
.showcase {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

/* showcase item base */
.item {
  background: rgba(0, 40, 80, 0.75);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--card-shadow);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeIn 0.6s ease forwards;
  will-change: transform, opacity, box-shadow;
}

/* stagger fallback nth-child for showcase */
.showcase .item:nth-child(1) {
  animation-delay: 0.06s;
}

.showcase .item:nth-child(2) {
  animation-delay: 0.16s;
}

.showcase .item:nth-child(3) {
  animation-delay: 0.26s;
}

.showcase .item:nth-child(4) {
  animation-delay: 0.36s;
}

.showcase .item:nth-child(5) {
  animation-delay: 0.46s;
}

.showcase .item:nth-child(6) {
  animation-delay: 0.56s;
}

/* progressive sibling-index stagger if supported */
@supports (animation-delay: calc(sibling-index() * 0.12s)) {
  .showcase .item {
    animation-delay: calc(sibling-index() * 0.12s);
  }
}
.item img {
  width: 100%;
  height: 320px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.item .content {
  padding: 24px;
  text-align: left;
  color: var(--accent);
}

/* feature item span */
.item.feature {
  grid-column: span 2;
  grid-row: span 1;
}

/* -------------------------
   MODERN :has() USE (progressive)
   style parent card when child image is hovered/focused
   ------------------------- */
@supports selector(:has(*)) {
  .showcase .item:has(img:hover),
  .showcase .item:has(img:focus) {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}
/* -------------------------
   SCROLL-DRIVEN ANIMATIONS (progressive)
   Uses animation-timeline if supported
   ------------------------- */
@supports (animation-timeline: view()) {
  /* make scroll-driven reveal for programs and showcase items */
  .program-list .program,
  .showcase .item {
    animation-name: reveal;
    animation-timeline: view();
    animation-range: entry 15% cover 40%;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
    opacity: 1;
  }
}
/* reveal keyframes (used by scroll-driven support only) */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* fallback basic fadeIn for non-scroll-driven browsers */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* -------------------------
   MODAL STYLES - FIXED AND IMPROVED
   ------------------------- */
.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-container.modal-visible {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: white;
  color: var(--primary);
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-visible .modal-box {
  transform: scale(1);
}

.modal-box h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.modal-box p {
  margin: 1rem 0;
  color: #333;
  font-size: 1.1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background-color: rgba(0, 31, 63, 0.1);
}

.close-modal:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* -------------------------
   Footer
   ------------------------- */
.footer {
  margin-top: 70px;
  padding: 36px 20px;
  background: rgba(0, 40, 80, 0.85);
  color: var(--accent);
  text-align: center;
}

/* small-screen tweak so modal fits comfortably */
@media (max-width: 420px) {
  .modal-container {
    padding: 1rem;
  }
  .modal-box {
    padding: 1.5rem;
    max-width: 95%;
  }
}
/* -------------------------
   Responsive tweaks
   ------------------------- */
@media (max-width: 900px) {
  .header-container {
    padding: 22px;
  }
  .logo {
    width: 140px;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 14px;
  }
  .header-buttons {
    flex-direction: row;
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .item img {
    height: 260px;
  }
  .program-list .program img {
    height: 180px;
  }
}
/* small screens */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .main-nav {
    gap: 18px;
  }
}/*# sourceMappingURL=style.css.map */