:root {
    --color-branco-futuro: #FFFFFF;
    --color-preto-premium: #000000;
    --color-azul-eletrico: #0C2AFD;
    --color-gray-dark: #1a1a1a;
    --heading-font: 'Arial', sans-serif;
    --body-font: 'Arial', sans-serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-preto-premium);
    color: var(--color-branco-futuro);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid rgba(12, 42, 253, 0.3);
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Maintain white logo visibility */
}

.nav-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 4px;
    color: var(--color-branco-futuro);
    /* Fix button text color */
}

/* Hero Section Refinement */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: #000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 30%, transparent 70%);
    z-index: 2;
}

#hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(12, 42, 253, 0.15) 0%, transparent 70%);
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.8);
    border-left: 2px solid var(--color-azul-eletrico);
    padding-left: 20px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Above video background until active */
    transition: opacity 1s ease;
}

.video-background.video-active .video-fallback {
    opacity: 0;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-foreground iframe,
.video-foreground #youtube-player {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    /* Hidden by default */
    transition: opacity 1s ease;
}

.video-active .video-foreground iframe,
.video-active .video-foreground #youtube-player {
    opacity: 1;
    /* Show only when playing */
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Landscape Section */
#track-landscape {
    padding: 100px 0;
}

.landscape-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.landscape-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.8s;
}

.landscape-wrapper:hover img {
    transform: scale(1.05);
}

.landscape-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-branco-futuro);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Gallery Section */
#gallery {
    padding-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Details Section */
#details {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.details-card {
    background: var(--color-gray-dark);
    padding: 40px;
    border-left: 4px solid var(--color-azul-eletrico);
    transition: transform 0.3s;
}

.details-card:hover {
    transform: translateY(-10px);
}

.details-card h3 {
    font-size: 0.9rem;
    color: var(--color-azul-eletrico);
    margin-bottom: 10px;
}

.details-card p {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Copy Section */
#copy {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.copy-text {
    margin-bottom: 60px;
}

.copy-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.copy-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.copy-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Form Section Premium UI */
#inscricao {
    background-color: #f3f5f6;
    /* Matching MS Forms default light background */
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

#inscricao::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #000, #f3f5f6);
}

.form-container {
    max-width: 950px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1); */
    /* Removed shadow to blend better */
}

.form-inner {
    background: #f3f5f6;
    border-radius: 0;
    overflow: hidden;
    height: 950px;
    /* Base height for Desktop */
    /* Fixed height to match iframe and avoid scrollbars */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .logo {
        height: 60px;
        /* Slightly larger vertical logo for mobile */
    }

    .hero-content {
        text-align: center;
        padding-top: 40px;
    }

    .hero-content p {
        border-left: none;
        border-top: 2px solid var(--color-azul-eletrico);
        padding-left: 0;
        padding-top: 15px;
        margin: 0 auto 30px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        top: 0;
        right: 0;
        transform: none;
        margin-top: 20px;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    }

    #hero {
        flex-direction: column;
        height: auto;
        padding-bottom: 100px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-card {
        padding: 30px;
        text-align: center;
    }

    .details-card p {
        font-size: 1.5rem;
    }

    .landscape-caption {
        padding: 20px;
        font-size: 1.1rem;
    }

    .copy-images {
        grid-template-columns: 1fr;
    }

    .copy-text h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .copy-text p {
        text-align: center;
    }

    .form-title h2 {
        font-size: 2rem !important;
    }

    .form-inner {
        height: 1400px;
        /* Forms are much taller on mobile */
    }

    .form-inner iframe {
        height: 1400px;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        /* Further reduced to prevent 'PERFORMANCE' break */
        line-height: 1.1;
        letter-spacing: -0.5px;
        word-break: break-word;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 18px 20px;
        font-size: 1rem;
    }

    .btn-primary {
        background-color: var(--color-azul-eletrico) !important;
        color: #fff !important;
        box-shadow: 0 10px 20px rgba(12, 42, 253, 0.4);
    }

}

/* Buttons */
.btn-primary {
    background-color: var(--color-azul-eletrico);
    padding: 20px 40px;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(12, 42, 253, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 40px;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-azul-eletrico);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.play-icon {
    font-size: 0.8rem;
    color: var(--color-azul-eletrico);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-logo {
    height: 30px;
    margin-bottom: 20px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-speed) ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        position: relative;
        width: 100%;
        right: 0;
        transform: none;
        top: 0;
        margin-top: 40px;
    }

    #hero {
        flex-direction: column;
        height: auto;
        padding-bottom: 100px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .copy-images {
        grid-template-columns: 1fr;
    }

    .copy-text h2 {
        font-size: 2rem;
    }
}