/* ============================================
   OSCURO FITNESS — Global Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --gray: #888;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HERO — Dual text layers + image
   ============================================ */
.hero {
    position: relative;
    height: 250vh;
    background: var(--black);
    overflow: hidden;
}

/* Shared text layer styles */
.hero-text-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Filled text — BEHIND image */
.hero-text-filled {
    z-index: 1;
}

.hero-text-filled .hero-line {
    color: var(--white);
    -webkit-text-stroke: none;
}

/* Outline text — ON TOP of image */
.hero-text-outline {
    z-index: 3;
}

.hero-text-outline .hero-line {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
}

.hero-line {
    font-size: clamp(4rem, 15vw, 18rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
    will-change: transform;
    white-space: nowrap;
}

/* Image layer — BETWEEN text layers */
.hero-image-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    will-change: transform, opacity;
}

.hero-image-layer img {
    width: 55vw;
    max-width: 700px;
    height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    will-change: transform;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
    will-change: transform, opacity;
}

.scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
}

.scroll-indicator-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   GALLERY — Scroll-driven vertical reveal
   ============================================ */
.gallery-section {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--black);
    overflow: hidden;
    z-index: 5;
    cursor: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    will-change: transform, opacity;
    cursor: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

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

/* Custom cursor VER */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--white);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.custom-cursor.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-img {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* ============================================
   LOGO SECTION — White bg
   ============================================ */
.logo-section {
    position: relative;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-img {
    width: clamp(200px, 40vw, 500px);
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.03);
}

/* ============================================
   SERVICES SECTION — Dark bg
   ============================================ */
.services-section {
    position: relative;
    padding: clamp(4rem, 10vw, 10rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--black);
    z-index: 5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
}

.service-box {
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 0.8;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-box h3 {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-box p {
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray);
}

/* ============================================
   PLANS SECTION
   ============================================ */
.plans-section {
    position: relative;
    padding: clamp(4rem, 10vw, 10rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--black);
    z-index: 5;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

.plan-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-image {
    width: 100%;
    overflow: hidden;
}

.plan-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.plan-card:hover .plan-image img {
    transform: scale(1.05);
}

.plan-content {
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.plan-content h3 {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.plan-price {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.plan-content ul {
    list-style: none;
    padding: 0;
}

.plan-content li {
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
    position: relative;
}

.plan-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.plan-content li:last-child {
    border-bottom: none;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
    overflow: hidden;
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 5;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
    align-items: center;
}

.marquee-word {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    flex-shrink: 0;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.marquee-word:hover {
    opacity: 1;
}

.marquee-dot {
    font-size: clamp(1rem, 2vw, 2rem);
    color: var(--white);
    opacity: 0.2;
    flex-shrink: 0;
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}

.contact-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: circle(0% at 50% 50%);
    will-change: clip-path;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    will-change: opacity;
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: clamp(2rem, 5vw, 4rem);
}

.contact-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.85;
}

.contact-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn-wa {
    background: #25D366;
    color: var(--white);
    border: none;
}

.contact-btn-wa:hover {
    background: #1ebe5a;
}

.contact-btn-email {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn-email:hover {
    background: var(--white);
    color: var(--black);
}

/* ============================================
   FADE-IN ELEMENTS
   ============================================ */
.fade-in-element {
    opacity: 0;
    transform: translateY(60px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-line {
        font-size: clamp(3rem, 12vw, 10rem);
    }

    .hero-image-layer img {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero-line {
        font-size: clamp(2.5rem, 13vw, 6rem);
    }

    .hero-text-outline .hero-line {
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    }

    .hero-image-layer img {
        width: 85vw;
        height: 70vh;
    }

    .contact-title {
        white-space: normal;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .services-section,
    .plans-section {
        padding: 3rem 1rem;
    }

    .hero-line {
        font-size: clamp(2rem, 14vw, 4.5rem);
    }

    .hero-text-outline .hero-line {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    }
}
