/* Noise Overlay CSS */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
    background-color: #030303;
    color: #FFFFFF;
    overflow-x: hidden;
}

.glass {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-glow {
    text-shadow: 0 0 24px rgba(245, 132, 42, 0.4);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #F5842A;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 132, 42, 0.5);
    transition: width 0.2s, height 0.2s;
}

/* Outline extension for links */
a:hover~.cursor-outline,
button:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(245, 132, 42, 0.1);
}

/* Reveal utility for GSAP */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
}

/* Advanced Navbar Styling */
.nav-link {
    position: relative;
    transition: color 0.4s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5842A;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 12px rgba(245, 132, 42, 0.6);
}

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

/* Linha decorativa abaixo do menu */
#nav-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 132, 42, 0.15) 20%,
        rgba(245, 132, 42, 0.45) 50%,
        rgba(245, 132, 42, 0.15) 80%,
        transparent 100%
    );
    opacity: 1;
    transition: opacity 0.6s ease, box-shadow 0.6s ease;
}

#nav-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 132, 42, 0.6) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Estado ao rolar: linha acende com glow */
.navbar-scrolled #nav-line {
    box-shadow: 0 0 12px rgba(245, 132, 42, 0.4), 0 0 28px rgba(245, 132, 42, 0.15);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 132, 42, 0.3) 15%,
        rgba(245, 132, 42, 0.8) 50%,
        rgba(245, 132, 42, 0.3) 85%,
        transparent 100%
    );
    animation: navLinePulse 3s ease-in-out infinite;
}

.navbar-scrolled #nav-line::after {
    opacity: 1;
    animation: navLineShine 3s ease-in-out infinite;
}

@keyframes navLinePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 132, 42, 0.35), 0 0 24px rgba(245, 132, 42, 0.12); }
    50%       { box-shadow: 0 0 18px rgba(245, 132, 42, 0.65), 0 0 40px rgba(245, 132, 42, 0.25); }
}

@keyframes navLineShine {
    0%, 100% { opacity: 0.6; transform: scaleX(0.85); }
    50%       { opacity: 1;   transform: scaleX(1); }
}

.navbar-scrolled {
    background: rgba(3, 3, 3, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.8);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(245, 132, 42, 0);
    transition: all 0.4s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(245, 132, 42, 0.4);
    transform: translateY(-2px);
}

/* WhatsApp pulse animation */
@keyframes waPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(37, 211, 102, 0.8);
        transform: scale(1.06);
    }
}

/* ===== HERO VIDEO SECTION ===== */
@keyframes heroScrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.hero-video-section {
    /* Garante 100% da viewport em todos os browsers, inclusive iOS Safari */
    height: 100vh;
    height: 100svh;
}

/* Evita resize do vídeo causar scroll horizontal */
.hero-video-wrapper video {
    min-width: 100%;
    min-height: 100%;
}
/* ===== /HERO VIDEO SECTION ===== */

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 300px;
    opacity: 1;
}

.hamburger-line {
    transition: all 0.3s ease;
}

#hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Floating Space Effect for Texts */
@keyframes floatSpace {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-float-space {
    animation: floatSpace 8s ease-in-out infinite;
    will-change: transform;
}
