:root {
    /* Colors - Brand Identity */
    --primary: #091721;    /* Navy */
    --secondary: #C09B2A;  /* Gold */
    --accent: #C09B2A;
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.3);
    --bg-dark: #091721;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: initial;
    background: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

/* Utils */
.container-max {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Video Background */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.noir-video {
    filter: brightness(0.4) contrast(1.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 23, 33, 0.6) 0%, transparent 50%, rgba(9, 23, 33, 1) 100%);
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
#mobile-menu.translate-x-full {
    transform: translateX(100%);
    visibility: hidden;
}
#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
    visibility: visible;
}

.mobile-link {
    position: relative;
    overflow: hidden;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
}

.mobile-link:hover::after {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .reveal-text {
        opacity: 1 !important;
        transform: none !important;
    }
    
    h1 {
        font-size: 8.5vw !important;
    }

    section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Glass Navbar Mobile Adjustments */
.glass-nav {
    background: rgba(14, 21, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(192, 155, 42, 0.3);
    transform: translateY(-5px);
}

/* Marquee */
.marquee-wrapper {
    background: var(--secondary);
    color: var(--primary);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Partner Cards - Otimização de Espaço e Hierarquia */
.partner-wrapper {
    position: relative;
    height: 460px;
    z-index: 10;
}
.partner-wrapper:hover, .partner-wrapper:focus-within {
    z-index: 50;
}

.partner-modal {
    background: rgba(9, 23, 33, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    padding: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.partner-wrapper:hover .partner-modal, .partner-wrapper:focus-within .partner-modal {
    background: #091721;
    border-color: var(--secondary);
    height: 520px;
    width: calc(280% + 2rem);
    flex-direction: row;
    gap: 3rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.partner-info-main {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    transition: width 0.6s ease;
    display: flex;
    flex-direction: column;
}

.partner-wrapper:hover .partner-info-main {
    width: 38%;
}

.partner-info-main .relative {
    height: 320px;
    transition: height 0.6s ease;
}

.partner-wrapper:hover .partner-info-main .relative {
    height: 100%; /* Foto ocupa altura total no hover */
}

/* Esconder prévia textual no hover para focar na bio completa */
.partner-wrapper:hover .partner-info-main .mt-6 {
    display: none;
}

.partner-bio-content {
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s ease 0.15s;
    width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alterado para flex-start para evitar corte no título */
    padding-top: 1rem; /* Espaço de segurança no topo */
}

.partner-wrapper:hover .partner-bio-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: 62%;
}

/* Estilização interna da Bio */
.bio-header h3 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}
.bio-header p {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.partner-left .partner-modal { left: 0; }
.partner-center .partner-modal { left: 50%; transform: translateX(-50%); }
.partner-right .partner-modal { right: 0; }

@media (max-width: 1024px) {
    .partner-wrapper { height: auto; min-height: 500px; }
    .partner-modal { position: relative; height: auto !important; flex-direction: column !important; }
    .partner-wrapper:hover .partner-modal, .partner-wrapper:focus-within .partner-modal { width: 100% !important; transform: none !important; left: 0 !important; }
    .partner-info-main, .partner-bio-content { width: 100% !important; }
    .partner-info-main .relative { height: 400px; }
    .partner-wrapper:hover .partner-info-main .mt-6 { display: block; }
    .partner-bio-content { opacity: 1 !important; visibility: visible !important; transform: none !important; width: 100% !important; margin-top: 2rem; }
    .bio-header h3 { font-size: 1.75rem; }
}

.partner-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    filter: none !important;
}

.partner-modal:hover img {
    transform: scale(1.05);
}

/* Form Styles */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(192, 155, 42, 0.05);
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 155, 42, 0.2);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 155, 42, 0.8);
}

/* Expanding Modal Cards */
.area-wrapper {
    position: relative;
    height: 200px;
    z-index: 10;
}
.area-wrapper:hover, .area-wrapper:focus-within {
    z-index: 50;
}

.area-modal {
    background: rgba(9, 23, 33, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
    padding: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.area-wrapper:hover .area-modal, .area-wrapper:focus-within .area-modal {
    background: #091721;
    border-color: var(--secondary);
    height: 500px;
    width: calc(200% + 1rem); /* Covers 2 columns */
    box-shadow: 0 40px 100px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(192, 155, 42, 0.1);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .area-wrapper:hover .area-modal, .area-wrapper:focus-within .area-modal {
        width: 100%;
        height: 550px;
    }
}

/* Origins for expansion */
.area-left .area-modal { left: 0; }
.area-center .area-modal { left: 50%; transform: translate(-50%, -50%); }
.area-right .area-modal { right: 0; }
