body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Ocultar controles APENAS no vídeo de fundo do Hero */
.hero-video-loop::-webkit-media-controls {
    display: none !important;
}

.hero-video-loop::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-video-loop::-webkit-media-controls-panel {
    display: none !important;
}

/* Ocultar botão de play central que o iOS/Android força às vezes */
.hero-video-loop::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero-video-loop::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video-loop::-webkit-media-controls-status-display {
    display: none !important;
}

.font-serif {
    font-family: 'Playfair+Display', serif;
}

.glass {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.text-gradient {
    background: linear-gradient(to bottom, #ffffff, #71717a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* Animações de Revelação (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.17, 0.55, 0.55, 1);
}

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

/* Aspect Ratio Helpers */
.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.aspect-9-16 {
    padding-bottom: 177.77%;
}

.aspect-16-9 {
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Custom spacing for fixed header */
.scroll-mt-header {
    scroll-margin-top: 80px;
}

/* Mantém proporção original no Fullscreen nativo (Remove crop) */
video:-webkit-full-screen {
    object-fit: contain !important;
}
video:fullscreen {
    object-fit: contain !important;
}

/* Efeito Glitch de Troca de Fonte Melhorado e Centralizado */
@keyframes fontGlitch {
    0% { font-family: 'Playfair Display', serif; transform: translate(-50%, -50%) skewX(0deg); text-shadow: none; }
    15% { font-family: 'Space Mono', monospace; font-style: italic; transform: translate(-50%, -50%) skewX(-5deg); text-shadow: 2px 0 red, -2px 0 cyan; }
    30% { font-family: 'Anton', sans-serif; transform: translate(-50%, -50%) skewX(5deg) scale(1.0); text-shadow: none; }
    45% { font-family: 'Permanent Marker', cursive; transform: translate(-50%, -50%) skewX(-2deg); text-shadow: 2px 2px 0px rgba(255,0,0,0.5); }
    60% { font-family: 'Cinzel', serif; font-weight: 700; transform: translate(-50%, -50%) skewX(0deg); text-shadow: -1px 0 red; }
    75% { font-family: 'Bebas Neue', sans-serif; font-style: normal; transform: translate(-50%, -50%) skewX(2deg) scale(1.02); text-shadow: none; }
    90% { font-family: 'Space Mono', monospace; transform: translate(-50%, -50%) skewX(0deg); text-shadow: -2px 0 red; }
    100% { font-family: 'Playfair Display', serif; transform: translate(-50%, -50%) skewX(0deg); text-shadow: none; }
}

.glitch-font {
    animation: fontGlitch 1.2s infinite steps(1);
    display: inline-block;
    white-space: nowrap;
}

.preserve-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Glassmorphism Inner Gradient */
.inner-gradient {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Behind Glow Effect */
.behind-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--glow-color, rgba(220, 38, 38, 0.2)) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.group:hover .behind-glow {
    opacity: 1;
}

/* Glow Border (Spotlight) */
/* Magic Bento Effects */
.magic-bento-card {
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 400px;
    position: relative;
    overflow: hidden; /* REATIVADO PARA MANTER TUDO DENTRO */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.magic-bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px; /* Grossura da borda */
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(220, 38, 38, calc(var(--glow-intensity) * 0.8)) 0%,
        rgba(220, 38, 38, calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%
    );
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.magic-bento-card:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
}

/* Global spotlight styles */
.global-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
        rgba(220, 38, 38, 0.08) 0%,
        rgba(220, 38, 38, 0.04) 25%,
        rgba(220, 38, 38, 0.01) 65%,
        transparent 70%
    );
    z-index: 100;
    opacity: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: left, top, opacity;
}

/* Particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 8px #dc2626;
    pointer-events: none;
    z-index: 5;
}

/* Ripple effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10;
    transform: scale(0);
}

/* Magnet Lines */
.magnet-container {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, 1fr);
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.magnet-line {
    width: 2px;
    height: 30px;
    background: tomato;
    margin: auto;
    transition: transform 0.1s ease-out;
}

/* Advanced Tilted Card Overlay (Fixed) */
.tilted-card-caption {
    pointer-events: none;
    position: absolute;
    right: 3rem; /* Recuo maior para segurança */
    top: 3rem;   /* Recuo maior para segurança */
    border-radius: 6px;
    background-color: white;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 900;
    color: #0c0c0c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    z-index: 50;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: translateZ(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

/* Layers for Parallax Effect */
.advanced-tilt-card {
    transform-style: preserve-3d !important;
    perspective: 1000px;
    will-change: transform;
}

/* Ícones e Textos internos: Repouso (Salto Inicial para 3D) */
.advanced-tilt-card svg, 
.advanced-tilt-card .relative.z-10 {
    transform: translateZ(40px); /* Já começa flutuando para mostrar a inclinação */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Ícones e Textos internos: Hover (Salto Extra + Escala) */
.advanced-tilt-card:hover svg, 
.advanced-tilt-card:hover .relative.z-10 {
    transform: translateZ(60px) scale(1.1); /* Aumenta o salto na interação */
}

/* Legenda Branca: Hover (Salto Máximo) */
.advanced-tilt-card .tilted-card-caption {
    transform: translateZ(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.advanced-tilt-card:hover .tilted-card-caption {
    transform: translateZ(100px);
    opacity: 1;
}

.char {
    display: inline-block;
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    /* Desativar Efeitos 3D */
    .advanced-tilt-card, 
    .preserve-3d {
        transform: none !important;
        transform-style: flat !important;
        perspective: none !important;
    }

    .advanced-tilt-card svg, 
    .advanced-tilt-card .relative.z-10,
    .advanced-tilt-card:hover svg,
    .advanced-tilt-card:hover .relative.z-10 {
        transform: none !important;
        scale: 1 !important;
    }

    /* Ocultar legendas flutuantes no mobile */
    .tilted-card-caption {
        display: none !important;
    }

    /* Ajuste de escala para os cards de contato (Botões Horizontais) */
    .advanced-tilt-card {
        padding: 1.5rem !important;
        min-height: auto !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 1.5rem !important;
    }

    .advanced-tilt-card svg {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .advanced-tilt-card p {
        font-size: 0.9rem !important;
        word-break: break-all;
    }

    .advanced-tilt-card span {
        font-size: 8px !important;
    }

    /* Garantir visibilidade dos vídeos no bento */
    .magic-bento-card video {
        position: relative !important;
        height: 250px !important;
    }



    /* Rodapé ajustes */
    footer .container {
        gap: 2.5rem !important;
        text-align: center;
    }
}
