:root {
    --bg-color: #1a1a1a;
    --text-primary: #ffffff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-alt: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
}
body {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Tela de Carregamento (Preloader) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #06070b;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    max-width: 146px; /* Largura exata da logo no desktop */
    width: 100%;
}

.preloader-logo-wrap {
    margin-bottom: 2px;
}

.preloader-logo {
    height: 44px;
    width: auto;
    transform: none !important; /* Logo perfeitamente estática, sem movimentos ou pulso físico */
    animation: preloaderPulseGlow 2.2s infinite ease-in-out;
}

@keyframes preloaderPulseGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 30px rgba(112, 0, 255, 0.6)); }
}

.preloader-bar-wrapper {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #7000ff);
    border-radius: 10px;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.preloader-text {
    font-family: 'Orbitron', 'Outfit', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .preloader-content {
        max-width: 106px; /* Largura exata da logo no mobile */
        gap: 10px;
    }

    .preloader-logo {
        height: 32px;
    }

    .preloader-bar-wrapper {
        height: 3px;
    }

    .preloader-text {
        font-size: 0.50rem;
        letter-spacing: 0.8px;
    }
}

/* Fades de Topo e Base (Esfumaçamento) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, 
        rgba(26, 26, 26, 1.0) 0%, 
        rgba(26, 26, 26, 0.8) 35%, 
        rgba(26, 26, 26, 0.4) 70%, 
        rgba(26, 26, 26, 0) 100%
    );
    z-index: 998; /* Fica logo abaixo do header e dos controles */
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, 
        rgba(26, 26, 26, 1.0) 0%, 
        rgba(26, 26, 26, 0.8) 35%, 
        rgba(26, 26, 26, 0.4) 70%, 
        rgba(26, 26, 26, 0) 100%
    );
    z-index: 998;
    pointer-events: none;
}

/* Typography */
.garrafal-text {
    font-family: var(--font-heading);
    font-size: clamp(22px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 20px;
    
    /* Efeito Cromado Prata */
    background: linear-gradient(270deg, #e5e5ea, #ffffff, #8a8a8f, #ffffff, #aeaeae, #ffffff, #e5e5ea);
    background-size: 600% 600%;
    animation: gradientShift 10s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.intro-impact-text {
    font-family: var(--font-heading);
    font-size: clamp(20px, 4.5vw, 36px);
    font-weight: 400;
    text-align: center;
}

.sub-garrafal-text {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: #999;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
}

/* Layout Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: opacity 0.8s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px; /* Aumentado para descolar do topo e das bordas laterais */
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Container de referência para a logo absoluta */
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Centraliza vertical e horizontalmente */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) brightness(1.15);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Menu Toggle Animation */
.menu-toggle.active {
    transform: scale(0.75);
}
.menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50vw;
    max-width: 50%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.05);
}

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

.nav-menu ul {
    list-style: none;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 15px;
    color: #888; /* Inativo fica cinza por padrão */
    text-decoration: none;
    font-family: var(--font-alt);
    font-size: 12px;
    font-weight: 400; /* Inativo sem negrito */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, font-weight 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff; /* Selecionado e ativo fica branco */
    font-weight: 700; /* Selecionado e ativo fica negrito */
}

/* Desktop Menu override */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    /* Move a Logo oficial para a esquerda no Desktop */
    .logo {
        position: static;
        transform: none;
    }
    
    /* Esconde a logo que está dentro do menu (ela só serve para a sidebar mobile) */
    .nav-menu > a:first-child {
        display: none !important;
    }
    
    /* Oculta os itens exclusivos mobile no desktop */
    .mobile-only {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        background: transparent;
        backdrop-filter: none; /* Remove a borda translúcida (blur) no desktop */
        -webkit-backdrop-filter: none;
        display: flex;
        justify-content: flex-end;
        box-shadow: none;
        border: none; /* Remove qualquer borda residual do mobile */
    }
    .nav-menu ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .nav-link {
        font-size: 11px;
        padding: 10px 15px;
        color: #888;
        font-weight: 400;
    }
}

.main-container {
    padding-top: 0;
}

/* Apple Scroll Sequence Container and Canvas */
.apple-scroll-sequence {
    position: relative;
    width: 100%;
}

.apple-scroll-sequence canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* Exibe o vídeo sem cortes laterais e com 100% da resolução nativa sem ampliação */
    pointer-events: none;
    z-index: 1;
}

/* Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 60px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    position: relative;
    z-index: 5;
}

.section-content {
    width: 100%;
    max-width: 700px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-content {
    background: transparent;
    border: none;
    padding: 0;
    min-height: 30vh;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(270deg, #e5e5ea, #ffffff, #8a8a8f, #ffffff, #aeaeae, #ffffff, #e5e5ea);
    background-size: 600% 600%;
    animation: gradientShift 10s ease infinite;
    color: #111111 !important; /* Texto escuro para contraste no fundo claro */
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-alt);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    text-align: center;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 140px;
    cursor: pointer;
    box-sizing: border-box;
    touch-action: manipulation;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Courses */
#treinamentos-cursos {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente o bloco de conteúdo */
    padding: 60px 15px; /* Volta para o padding original da seção */
}

#treinamentos-cursos .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 100%;
    background: transparent;
    border: none;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.course-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.course-img {
    width: 100%;
    height: 120px; /* Altura aumentada para preencher melhor a tela no mobile */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.course-badge {
    display: inline-block;
    background: #ff3b30;
    color: #fff;
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.course-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-alt);
    text-transform: uppercase;
}

.course-desc {
    font-size: 13px; /* Igualado a .sub-garrafal-text no mobile */
    color: #999;
    line-height: 1.4;
    text-align: justify;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita texto a 2 linhas no mobile */
    -webkit-box-orient: vertical;
}

/* Contacts & Instagram Group Mobile */
.contact-instagram-group {
    width: 100%;
}

@media (max-width: 768px) {
    .instagram-section {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 95px !important;
        padding-bottom: 50px !important;
        box-sizing: border-box;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .instagram-section .section-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 15px !important;
        margin: 0 auto !important;
        overflow: hidden;
    }

    .instagram-section .garrafal-text {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .instagram-feed-wrapper {
        flex: 1;
        min-height: 0;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }
}

.contact-section {
    padding: 60px 20px;
}

.contact-container {
    width: 100%;
    max-width: 700px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
}

.info-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-family: var(--font-alt);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
}

.email-style {
    background: linear-gradient(270deg, #e5e5ea, #ffffff, #8a8a8f, #ffffff, #aeaeae, #ffffff, #e5e5ea);
    background-size: 600% 600%;
    animation: gradientShift 10s ease infinite;
    color: #111111 !important;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
}

.email-style:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-style {
    background: linear-gradient(270deg, #25D366, #1fad51, #34d058, #128C7E, #25D366);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #ffffff !important; /* Volta para a fonte branca para contraste no fundo verde */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
}

.whatsapp-style:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.instagram-feed-wrapper {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    padding: 8px;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Instagram Grid */
.custom-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
}

.custom-instagram-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.custom-instagram-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.custom-instagram-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Footer */
.minimal-footer {
    text-align: center;
    padding: 5px 20px 45px 20px; /* Reserva espaço para não cobrir nem ser coberto pelos controles de som */
    color: #666;
    font-size: 10px;
    width: 100%;
}

.footer-content p {
    margin: 2px 0;
}

.instagram-section {
    border-bottom: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Music Player */
.music-controls-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transition: opacity 0.8s ease-in-out;
}

.music-toggle-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.3s;
}

.music-toggle-btn.playing {
    color: #fff;
}

.sound-waves {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.sound-waves span {
    display: inline-block;
    width: 3px;
    height: 4px;
    background: #666;
    border-radius: 2px;
    transition: height 0.2s, background 0.3s;
}

.sound-waves.playing span {
    background: #fff;
    animation: wave 1.2s infinite ease-in-out;
}

.sound-waves.playing span:nth-child(2) { animation-delay: 0.1s; }
.sound-waves.playing span:nth-child(3) { animation-delay: 0.2s; }
.sound-waves.playing span:nth-child(4) { animation-delay: 0.3s; }
.sound-waves.playing span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (min-width: 769px) {
    /* Adjustments for desktop if needed */
    .section-content {
        max-width: 1000px;
        padding: 60px 40px;
    }

    .sub-garrafal-text {
        font-size: 16px;
        line-height: 1.6;
        max-width: 750px;
    }

    /* Treinamentos Desktop */
    #treinamentos-cursos {
        min-height: 100vh;
        height: auto;
        max-height: none;
        padding-top: 100px;
        padding-bottom: 80px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #treinamentos-cursos .section-content {
        max-width: 1200px !important;
        width: 100%;
        margin: 0 auto !important;
        padding: 0 !important;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .courses-grid {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 25px;
        flex: none;
        align-items: stretch;
        width: 100%;
        margin-bottom: 30px;
    }

    .course-card {
        flex: 1 1 30%;
        min-width: 250px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .course-img {
        height: 240px; /* Imagem ainda maior no desktop para preencher melhor a tela */
        margin-bottom: 15px;
    }

    .course-title {
        white-space: nowrap;
        font-size: 16px;
    }

    .course-desc {
        font-size: 16px; /* Igualado a .sub-garrafal-text no desktop */
        line-height: 1.6;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    #btn-inscricao {
        margin-top: 25px;
    }

    .contact-instagram-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        height: 100vh;
        max-height: 100vh;
        max-width: 1200px;
        margin: 0 auto;
        gap: 40px;
        box-sizing: border-box;
        padding-top: 100px; /* Espaço para o cabeçalho fixo */
        padding-bottom: 90px; /* Espaço para os controles de som/footer */
    }

    .contact-section, .instagram-section {
        height: 100%;
        min-height: auto;
        width: 100%;
        border-bottom: none;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .contact-container, .contact-content {
        height: 100%;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* O form-card e o section-content do instagram são os dois cards visíveis e terão estilo 100% IDÊNTICO */
    .info-card.form-card,
    .instagram-section .section-content {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px !important;
        margin: 0 !important; /* Remove qualquer margem herdada como o margin: 20px auto */
        box-sizing: border-box;
        border-radius: 20px !important;
        background: rgba(255,255,255,0.03) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
    }

    /* Títulos garrafais alinhados de forma idêntica */
    .info-card.form-card .garrafal-text,
    .instagram-section .section-content .garrafal-text {
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        padding-top: 0 !important;
        line-height: 1.1;
        height: auto;
    }

    /* Formulário ocupa o espaço vertical restante */
    .info-card.form-card form {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px !important;
    }

    .info-card.form-card .form-group.msg-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .info-card.form-card .form-group.msg-group textarea {
        flex: 1;
        min-height: 100px;
        resize: none;
    }
    
    .instagram-feed-wrapper {
        flex: 1;
        display: flex;
        align-items: stretch;
        min-height: 0;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        overflow: hidden;
    }

    /* Rodapé dividido nas extremidades no Desktop (separado pelo player central) */
    .minimal-footer {
        position: fixed !important;
        bottom: 22px !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 40px !important;
        z-index: 999 !important;
        pointer-events: none;
    }

    .footer-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        font-size: 11px !important;
        letter-spacing: 1px;
    }

    .footer-content p {
        margin: 0 !important;
        color: #777 !important;
    }
}

/* Custom Alert Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0) scale(1);
}

.modal-logo {
    height: 30px;
    width: auto;
    margin-bottom: 20px;
}

/* Video Transitions */
.video-transition {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Below content sections */
}

/* Apple-style Scroll Sequence */
.apple-scroll-sequence {
    position: relative;
    width: 100%;
    min-height: 550vh; /* 5.5 telas de altura para rolagem suave da animação completa de 684 quadros */
    z-index: 1;
}

.apple-scroll-sequence .canvas-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#sequence-canvas-1 {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.fade-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    z-index: -1;
    pointer-events: none; /* Garante que o touch nunca será bloqueado */
}



.fade-video.visible {
    opacity: 0.8; /* Brilho do vídeo de fundo da seção */
}

/* Global Background Video */
#global-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; /* Atrás do bg color e de todas as seções */
    pointer-events: none;
    opacity: 0.3; /* Opacidade do vídeo de fundo global */
    filter: blur(6px); /* Desfoque cinematográfico mais leve */
    transform: scale(1.05); /* Escala leve para esconder bordas do blur */
    transition: opacity 0.7s ease-in-out, filter 0.3s ease;
}

/* Blur background when mobile menu is open */
body.menu-open .main-container {
    filter: blur(8px);
}
body.menu-open #global-bg-video {
    filter: blur(15px);
}
body.menu-open .logo-link .logo-img {
    filter: blur(8px);
}

.main-container {
    transition: filter 0.3s ease, opacity 0.8s ease-in-out;
}

/* Video Overlay Modal (Laser Gate Expansion) */
.video-overlay {
    position: fixed;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-sizing: border-box;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Border glow when expanding */
.video-overlay.laser-expanding {
    border: 2px solid #00f0ff;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.9), inset 0 0 25px rgba(0, 240, 255, 0.6);
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 10001;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
}

/* When expansion is complete, hide laser border, show video */
.video-overlay.expansion-complete {
    border-color: transparent;
    box-shadow: none;
}

.video-overlay.expansion-complete video {
    opacity: 1; /* Transparência removida: vídeo com opacidade máxima */
    filter: blur(0px);
}

/* Efeito de vinheta (esfumaçamento escuro nas bordas) */
.video-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 10002;
}

.close-overlay-btn {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 10003;
    margin-top: 0 !important;
}

.close-overlay-btn:hover {
    transform: translateX(-50%) translateY(-2px) !important;
    filter: brightness(1.15);
}

.close-overlay-btn:active {
    transform: translateX(-50%) scale(0.95) !important;
}

/* Hide main site content when video is playing to show only bg video */
body.video-playing .main-container,
body.video-playing .main-header,
body.video-playing .music-controls-wrapper {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Garante que o toque/clique no celular vá direto para o botão e não seja interceptado pelo ícone SVG */
.btn-assista * {
    pointer-events: none !important;
}

