:root {
    --orange: #FF5A1F;
    --orange-dark: #D9440F;
    --dark: #111111;
    --charcoal: #1E1E1E;
    --light: #F7F7F7;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    line-height: 1.6;
    background: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

header {
    padding: 1.3em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 700;
    color: var(--orange);
    margin: 0;
    font-size: 1.4em;
    letter-spacing: 0.05em;
}

nav a {
    margin-left: 1.4em;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    text-transform: none;
    position: relative;
    transition: color 0.2s ease;
}

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

.hero {
    text-align: center;
    padding: 6em 1.5em 4.5em;
    background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
    color: white;
}

.sample-banner {
    display: inline-block;
    background: #fff3cd;
    color: #665108;
    padding: 0.6em 1.2em;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid #f0d98c;
    border-radius: 30px;
    margin-bottom: 1.4em;
    text-transform: none;
    letter-spacing: normal;
    font-family: 'Nunito Sans', sans-serif;
}

.hero h2 {
    font-size: 3.2em;
    margin: 0 0 0.3em;
    line-height: 1.1;
    color: white;
}

.hero p {
    max-width: 520px;
    margin: 0 auto 1.8em;
    color: #ccc;
    font-family: 'Nunito Sans', sans-serif;
    text-transform: none;
}

.cta {
    display: inline-block;
    margin-top: 1em;
    padding: 1em 2.2em;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 20px rgba(255, 90, 31, 0.4);
}

.cta:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(255, 90, 31, 0.5);
}

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3em;
    background: var(--orange);
    color: white;
    padding: 2.2em 1.5em;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.4em;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
}

.stat-label {
    font-size: 0.85em;
    color: #fff0e8;
    margin-top: 0.1em;
    font-family: 'Nunito Sans', sans-serif;
    text-transform: none;
}

.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4.5em 2em;
}

.section.alt {
    background: var(--dark);
    max-width: 100%;
    color: white;
    position: relative;
    overflow: hidden;
}

.section.alt > *:not(.star-field) {
    position: relative;
    z-index: 1;
}

.section.alt h3 {
    color: white;
}

.section h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 1.2em;
}

.program-grid, .trainer-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4em;
}

.program-card {
    background: white;
    padding: 1.8em;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.program-card .icon {
    font-size: 2em;
    margin-bottom: 0.3em;
}

.program-card h4 {
    margin: 0 0 0.4em;
    font-size: 1.3em;
}

.program-card p {
    color: #555;
    font-size: 0.9em;
    margin: 0;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

.blog-card {
    background: var(--charcoal);
    padding: 1.8em;
    border-radius: 4px;
    border-left: 3px solid var(--orange);
}

.blog-date {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85em;
    margin-bottom: 0.5em;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

.blog-card h4 {
    margin: 0 0 0.5em;
    font-size: 1.3em;
    color: white;
}

.blog-card p {
    color: #bbb;
    font-size: 0.9em;
    margin: 0;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

.trainer-card {
    background: white;
    padding: 1.8em;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trainer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.trainer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 0 auto 0.6em;
}

.trainer-card h4 {
    margin: 0 0 0.2em;
    font-size: 1.2em;
}

.trainer-card p {
    color: #777;
    font-size: 0.85em;
    margin: 0;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4em;
}

.gallery-item {
    position: relative;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.92);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-caption h5 {
    margin: 0 0 0.3em;
    font-size: 1.2em;
    text-transform: none;
    font-family: 'Barlow Condensed', sans-serif;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.85em;
    color: #ccc;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 2em;
    background: var(--charcoal);
    color: #999;
    font-size: 0.9em;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

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

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

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 0.6em;
        padding: 1.2em 1em;
    }

    .hero h2 {
        font-size: 2.1em;
    }

    .stats-bar {
        gap: 1.5em;
        padding: 2em 1em;
    }
}

/* Blog cards as clickable links */
.blog-card {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.read-more {
    display: inline-block;
    margin-top: 0.8em;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85em;
    text-transform: none;
    font-family: 'Nunito Sans', sans-serif;
}

/* Gallery items */



/* Smooth scrolling for anchor nav links */
html {
    scroll-behavior: smooth;
}

/* Hero entrance animation on page load */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered cascading card entrance */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav underline hover effect */
nav a {
    position: relative;
    padding-bottom: 0.2em;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button shine sweep effect on hover */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta:hover::before {
    left: 125%;
}

/* One-time shine sweep across section headings when scrolled into view */
.scroll-shine {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.scroll-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 90, 31, 0.5), transparent);
    transform: skewX(-20deg);
}

.scroll-shine.shine-play::after {
    animation: shineSweep 1s ease forwards;
}

@keyframes shineSweep {
    to {
        left: 130%;
    }
}

/* Twinkling star field in the hero */
.hero {
    position: relative;
    overflow: hidden;
}

.star-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.8); }
}

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--orange), #ffb066);
    z-index: 300;
    transition: width 0.1s ease-out;
}

/* Glassmorphism nav on scroll */
header {
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Shimmering gradient headline */
.shimmer-text {
    background: linear-gradient(90deg, #ffffff 0%, #ffd8b0 25%, #ffffff 50%, #ffd8b0 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Combine the fade-up entrance AND the shimmer loop for the headline specifically */
.hero-animate.shimmer-text {
    animation: heroFadeUp 0.7s ease forwards, shimmerMove 4s linear infinite;
}

@keyframes shimmerMove {
    to {
        background-position: -200% center;
    }
}

/* Magnetic buttons need smooth easing back to place */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

/* Reviews streamer: review cards slide across continuously */
.reviews-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reviews-track {
    display: flex;
    width: max-content;
    animation: reviewsScroll 45s linear infinite;
}

.reviews-marquee:hover .reviews-track {
    animation-play-state: paused;
}

.reviews-set {
    display: flex;
    flex-shrink: 0;
    gap: 1.4em;
    padding-right: 1.4em;
}

.review-card {
    flex-shrink: 0;
    width: 320px;
    background: white;
    border-radius: 4px;
    border-top: 3px solid var(--orange);
    padding: 1.6em;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    white-space: normal;
}

.review-stars {
    color: var(--orange);
    letter-spacing: 2px;
    margin-bottom: 0.6em;
}

.review-text {
    margin: 0 0 0.9em;
    color: #333;
    font-family: 'Nunito Sans', sans-serif;
    text-transform: none;
    font-size: 0.95em;
    line-height: 1.55;
}

.review-author {
    margin: 0;
    color: #777;
    font-family: 'Nunito Sans', sans-serif;
    text-transform: none;
    font-size: 0.85em;
    font-weight: 700;
}

@keyframes reviewsScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        animation: none;
    }
}

@media (max-width: 640px) {
    .review-card {
        width: 260px;
    }
}
