/*
 * A Fantástica Aventura do Circo - Modern Hero Styles
 * Escola Maria Cacko Ballet Infantil
 */

/* ===== Modern Hero Section ===== */
.hero-section {
    height: 75vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    perspective: 1000px; /* For 3D effects */
}

.hero-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform-style: preserve-3d;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transform: translateZ(-10px) scale(1.1); /* Parallax effect */
    transition: transform 0.5s ease;
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 276 276" fill="none"><circle cx="138" cy="138" r="5" fill="white" fill-opacity="0.8"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
    transform: translateZ(-5px) scale(1.05); /* Parallax effect */
    animation: twinkle 4s ease-in-out infinite;
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle, var(--color-primary) 1px, transparent 1px),
        radial-gradient(circle, var(--color-accent) 1px, transparent 1px),
        radial-gradient(circle, var(--color-secondary) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 100px 100px;
    background-position: 0 0, 25px 25px, 50px 50px;
    animation: particlesDrift 20s linear infinite;
    opacity: 0.3;
}

.hero-particles::after {
    background-size: 80px 80px, 90px 90px, 120px 120px;
    background-position: 10px 10px, 35px 35px, 60px 60px;
    animation-duration: 30s;
    animation-direction: reverse;
    opacity: 0.2;
}

@keyframes particlesDrift {
    0% {
        background-position: 0 0, 25px 25px, 50px 50px;
    }
    100% {
        background-position: 100px 100px, 125px 125px, 150px 150px;
    }
}

/* Floating elements for dynamic background */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(2px);
}

.star-1 {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-2 {
    width: 40px;
    height: 40px;
    background-color: var(--color-blue);
    top: 25%;
    right: 15%;
    animation: float 6s ease-in-out infinite 1s;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.circle-1 {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary);
    bottom: 20%;
    left: 20%;
    animation: float 10s ease-in-out infinite 2s;
    border-radius: 50%;
}

.circle-2 {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    bottom: 30%;
    right: 25%;
    animation: float 7s ease-in-out infinite 1.5s;
    border-radius: 50%;
}

/* Modern Hero Content */
.hero-content-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 5;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-container {
    text-align: center;
    max-width: 650px;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    animation: fadeIn 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    margin: 0 auto var(--spacing-md);
    transform: translateY(-10px);
    animation: float 5s ease-in-out infinite;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(91, 42, 138, 0.3));
    animation: glow 3s ease-in-out infinite alternate;
    display: block;
    margin: 0 auto;
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(189, 120, 200, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(189, 120, 200, 0.8));
    }
}

.hero-mascot {
    position: relative;
    width: 250px;
    height: 250px;
    margin-right: 2rem;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-hero {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(91, 42, 138, 0.3));
    animation: floatWithRotate 6s ease-in-out infinite;
    transform-origin: center bottom;
    display: block;
}

.hero-subtitle {
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 0.5s;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 1s;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Glowing button effect */
.btn-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    box-shadow: 0 0 15px rgba(189, 120, 200, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(189, 120, 200, 0.8);
    transform: translateY(-5px) scale(1.05);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shineEffect 3s infinite;
}

@keyframes shineEffect {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    background-color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(189, 120, 200, 0.5);
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 10rem;
        padding-bottom: 6rem;
    }

    .hero-content-modern {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
    }

    .hero-mascot {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 180px;
        height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-text-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-subtitle {
        font-size: 2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-logo {
        max-width: 350px;
        margin: 0 auto 2rem;
    }

    .hero-cta {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 8rem;
    }

    .hero-mascot {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .btn-large {
        padding: 1.2rem 2.4rem;
        font-size: 1.8rem;
    }
}
