/* ============================================
   NEUROGYM — Layout / Sections / Responsive
   Light Theme
   ============================================ */

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: var(--color-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--color-text-heading);
    letter-spacing: 0.02em;
}

.logo-text .text-cyan {
    color: var(--color-indigo);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-link:hover {
    color: var(--color-indigo);
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-text-heading);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Sections ── */
.section {
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--color-bg-secondary);
}

.section-center {
    text-align: center;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: var(--header-height);
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-lg);
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    object-fit: contain;
}

.hero-title {
    margin-bottom: var(--space-sm);
    color: var(--color-text-heading);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* ── Benefits Grid ── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--space-md);
}

.benefit-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-heading);
}

.benefit-text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── Stats Row ── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Gallery Mosaic ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 1;
    position: relative;
    transition: all var(--transition-base);
    background: var(--color-bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    border-color: var(--color-indigo);
    box-shadow: var(--shadow-glow-indigo);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(30, 41, 59, 0.85));
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-base);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA Final ── */
.cta-final {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background:
        radial-gradient(ellipse at center, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

.cta-final h2 {
    margin-bottom: var(--space-sm);
}

.cta-final p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

/* ── Footer ── */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-text {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.footer-text .text-cyan {
    font-weight: 700;
    color: var(--color-indigo);
}

/* ── About section split layout ── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--space-sm);
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.about-text .highlight {
    color: var(--color-indigo);
    font-weight: 700;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
}

.about-img-main {
    width: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow-indigo);
    z-index: 2;
    position: relative;
}

.about-img-float {
    position: absolute;
    width: 100px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.about-img-float:nth-child(2) {
    top: 0;
    right: 10%;
    animation: float 5s ease-in-out infinite;
}

.about-img-float:nth-child(3) {
    bottom: 10px;
    left: 5%;
    animation: float 6s ease-in-out infinite 1s;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ── Tablet ── */
@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-images {
        min-height: 260px;
        margin-top: var(--space-md);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats-row {
        gap: var(--space-lg);
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: right var(--transition-base);
        border-left: 1px solid var(--color-border);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        gap: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ── Mobile nav overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}