/* ==============================================
   FITNFLEX - Hero Section Styles
   Cinematic 3D Skeleton Experience
   ============================================== */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* Push section below fixed nav */
    margin-top: 60px;
    min-height: calc(100vh - 60px);

    /* Background image */
    background-image: url('../assets/images/bg.png');
    background-size: cover;
    background-position: center 80px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay so text stays readable over the image */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 17, 31, 0.82) 0%,
        rgba(7, 17, 31, 0.65) 50%,
        rgba(11, 32, 56, 0.78) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Animated Background Layers */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.mri-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(30, 136, 229, 0.03) 2px,
            rgba(30, 136, 229, 0.03) 4px
        );
    animation: mri-scan 3s linear infinite;
}

@keyframes mri-scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.volumetric-light {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at center, rgba(30, 136, 229, 0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: volumetric-pulse 4s ease-in-out infinite;
}

@keyframes volumetric-pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

/* 3D Skeleton Container */
.hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#hero3DSkeleton {
    width: 100%;
    height: 100%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    text-align: center;
}

.hero-title {
    margin-top: 170px;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line-1 {
    background: linear-gradient(135deg, #FFFFFF, #C4CED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite;
}

.title-line-2 {
    background: linear-gradient(135deg, #1E88E5, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite 0.5s;
}

@keyframes title-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

/* CTA Button Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #1E88E5, #00D9FF);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.7);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-hero-secondary {
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1E88E5, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: rgba(30, 136, 229, 0.8);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 28px; opacity: 0; }
}

.scroll-indicator p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        align-items: flex-start;
        /* Mobile nav is 70px */
        margin-top: 70px;
        min-height: calc(100svh - 70px);
        /* Remove background image on mobile */
        background-image: none;
        background: var(--primary-bg);
    }

    .hero-content {
        padding: 0 clamp(1rem, 5vw, 1.5rem) 4rem;
    }

    .hero-title {
        margin-top: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-call,
    .btn-hero-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .trust-badges {
        gap: 1.25rem;
        padding: 1.25rem 0;
    }

    .trust-number {
        font-size: 1.75rem;
    }

    .trust-label {
        font-size: 0.8rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.825rem 1.25rem;
        font-size: 0.875rem;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-number {
        font-size: 1.5rem;
    }
}
