/* Reset e Base - Critical CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Critical above-the-fold styles */
body {
    font-family: 'Inter', sans-serif;
    background: #0d1421;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0d1421, #1a2332);
    overflow: hidden;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-display: swap;
    will-change: transform;
    transform: translateZ(0);
}

:root {
    /* Cores principais */
    --primary-color: #d73700;
    --secondary-color: #ffa20f;
    --accent-color: #ff6b35;
    --dark-bg: #0d1421;
    --darker-bg: #08101a;
    --card-bg: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #b8d4f0;
    --text-muted: #7a9cc4;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #d73700, #ffa20f);
    --gradient-secondary: linear-gradient(135deg, #ff6b35, #d73700);
    --gradient-dark: linear-gradient(135deg, #0d1421, #1a2332);
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffed4e);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(215, 55, 0, 0.3);
    
    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transições */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Body styles moved to critical CSS above */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.loading-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    animation: loading 3s ease-in-out forwards;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

@keyframes loading {
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 20, 33, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(215, 55, 0, 0.2);
    padding: 0 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: visible;
    padding: 1rem 0;
    margin-top: 0px;
    padding-top: 20px; /* Espaço mínimo para o header fixo */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23d73700" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(215, 55, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 2;
    padding: 1rem 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    min-height: 50vh;
    will-change: transform;
    transform: translateZ(0);
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-display: swap;
    will-change: transform;
    transform: translateZ(0);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.open-sans {
    font-family: 'Open Sans', sans-serif !important;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    font-display: swap;
    will-change: transform;
    transform: translateZ(0);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 1;
    transform: translateY(0);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(215, 55, 0, 0.4);
}

/* Botão vermelho customizado */
.btn-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

.btn-red:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}


/* Hero Image Container */
.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
    padding: 1rem 0;
    width: 100%;
}


.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--dark-bg);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.hero-video-wrapper iframe,
.hero-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    object-position: center;
}

/* Estilos específicos para o elemento video */
.hero-video-wrapper video {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    transition: var(--transition);
}

.hero-video-container:hover .hero-video-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.video-info {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Título do vídeo - fora da caixa azul */
.video-title {
    color: rgb(255, 255, 255);
    font-size: 2.0rem;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    text-align: center;
    margin: 0 0 2rem 0;
    letter-spacing: 2px;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Layout responsivo para os cards da About Section */
@media (max-width: 480px) {
    .about-text {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Carrossel Mobile - Versão Simples */
.mobile-carousel {
    display: none;
}

@media (max-width: 480px) {
    .desktop-cards {
        display: none;
    }
    
    .mobile-carousel {
        display: block;
        width: 100%;
        margin: 2rem 0;
        padding-bottom: 2rem;
        position: relative;
        z-index: 100;
    }
    
    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease;
        width: 300%;
    }
    
    .carousel-slide {
        width: 33.333%;
        flex-shrink: 0;
        padding: 0 10px;
    }
    
    .carousel-slide .feature-card {
        margin: 0;
        width: 100%;
        min-height: 250px;
    }
    
    .carousel-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 30px;
        margin-bottom: 20px;
        padding: 20px;
        position: relative;
        z-index: 1000;
    }
    
    .carousel-btn {
        background: #d73700;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        z-index: 1001;
        position: relative;
        pointer-events: auto;
        user-select: none;
        box-shadow: 0 4px 12px rgba(215, 55, 0, 0.3);
        margin: 0 5px;
    }
    
    .carousel-btn:hover {
        background: #ffa20f;
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(215, 55, 0, 0.4);
    }
    
    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .carousel-dots {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        position: relative;
        z-index: 1001;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1000;
        position: relative;
        pointer-events: auto;
        user-select: none;
    }
    
    .dot.active {
        background: #d73700;
        transform: scale(1.2);
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image {
    opacity: 1;
    transform: translateX(0);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    height: 200px;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    min-height: 200px;
    aspect-ratio: 1;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Prize Section */
.prize {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.prize-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(215, 55, 0, 0.1) 0%, transparent 50%);
}

.prize-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.prize-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.prize-text {
    opacity: 1;
    transform: translateX(0);
}

.prize-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.prize-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.prize-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.highlight {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prize-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
}

.prize-card {
    position: relative;
    background: var(--card-bg);
    padding: 0 !important;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(215, 55, 0, 0.3);
}

.prize-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* How Section */
.how {
    padding: 6rem 0;
    background: var(--darker-bg);
    scroll-margin-top: 100px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--dark-bg);
    scroll-margin-top: 100px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: rgba(215, 55, 0, 0.05);
}

.faq-question h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(215, 55, 0, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-header h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.video-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.video-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.video-modal-body {
    padding: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--dark-bg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Responsividade - Padrão de 2 estados: Mobile (<480px) e Desktop (≥480px) */
@media (max-width: 480px) {
    .header {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 20, 33, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(215, 55, 0, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
        width: 200px;
        text-align: center;
    }

    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 2rem;
    }

    .hero {
        min-height: 100vh;
        padding: 2rem 0;
        padding-top: 40px; /* Espaço mínimo para o menu fixo */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        min-height: 70vh;
        text-align: center;
        padding-top: 2rem; /* Espaço extra no topo */
    }

    .hero-text {
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding: 1rem 0;
    }

    .hero-image {
        max-width: 100%;
        padding: 1rem 0;
        justify-content: center;
        align-items: center;
    }

    .hero-gallery-item {
        height: 300px;
        width: 250px;
        margin: 0 auto;
    }

    .hero-gallery-item:hover {
        width: 350px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 2rem; /* Espaço extra no mobile */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-video-container {
        max-width: 100%;
        margin: 0 1rem;
        border-radius: var(--border-radius);
    }
    
    .hero-video-wrapper {
        padding-bottom: 56.25%; /* Mantém proporção 16:9 */
        border-radius: var(--border-radius);
    }
    
    .hero-video-wrapper iframe {
        border-radius: var(--border-radius);
        object-fit: contain;
    }

    .video-info h3 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }

    .about-content {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        height: 250px;
        gap: 1.5rem;
    }
    
    .gallery-item {
        min-height: 130px;
    }
    
    .prize-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .whoIsFRC {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .prize-card {
        padding: 0.75rem !important;
        min-height: 350px;
    }

    .prize-image {
        max-width: 400px !important;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    /* Regras específicas para mobile muito pequeno */
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .hero-video-container {
        margin: 0 0.5rem;
    }

    .hero-video-overlay {
        padding: 1rem;
    }

    .video-info h3 {
        font-size: 1rem;
    }

    .video-info p {
        font-size: 0.7rem;
    }
    
    /* Responsividade do título do vídeo */
    .video-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        letter-spacing: 1px;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 1.5rem;
    }
    
    .gallery-item {
        min-height: 180px;
        aspect-ratio: 1;
    }

    .prize-card {
        padding: 0.5rem !important;
        min-height: 300px;
    }

    .prize-image {
        max-width: 300px !important;
    }

    /* Regras para telas muito pequenas (iPhone 12 Pro, etc.) */
    @media (max-width: 390px) {
        .hero-title {
            font-size: 1.5rem;
            line-height: 1.1;
            margin-bottom: 0.5rem;
        }
        
        .hero-content {
            padding: 0.5rem;
        }
        
        .hero-text {
            padding: 0.5rem 0;
        }
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}


.btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Scroll margin para seções com IDs específicos */
#home {
    scroll-margin-top: 100px;
}

#about {
    scroll-margin-top: 100px;
}

#whoIsFRC {
    scroll-margin-top: 150px;
}

#how {
    scroll-margin-top: 100px;
}

#faq {
    scroll-margin-top: 100px;
}


/* Otimizações para CLS */
img, iframe {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text, .hero-image {
    will-change: transform, opacity;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
