:root {
    --cursor-size: 20px;
    --cursor-hover-size: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050a14;
    color: white;
    overflow-x: hidden;
    cursor: none;
}

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

::-webkit-scrollbar-track {
    background: #050a14;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007bff;
}

/* Liquid Glass Card Style */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 20;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.glass-panel:hover::before {
    left: 100%;
    transition: 0.7s ease-in-out;
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-light:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.tech-card {
    transition: none !important; /* Desabilita transição CSS para não conflitar com o lerp do JS */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

.glass-panel-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 20;
}

.glass-panel-light:hover::before {
    left: 100%;
    transition: 0.7s ease-in-out;
}

/* Ambient Liquid Blobs */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    animation: float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
    mix-blend-mode: difference;
}

#cursor.hovered {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    opacity: 0.5;
    background-color: rgba(0, 123, 255, 0.5);
    mix-blend-mode: normal;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

/* Masked Text Reveal */
.text-reveal-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.text-reveal-content {
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    display: block;
}

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

/* Base Reveal (Scroll Triggered) */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-700 {
    transition-delay: 0.7s;
}

/* Marquee Animation */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    white-space: nowrap;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 100%;
    width: fit-content;
    animation: scroll 60s linear infinite;
    padding-right: 3rem;
    will-change: transform;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .logo-box {
        width: 180px;
        height: 70px;
    }

    .marquee-content {
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .logo-box {
        width: 220px;
        height: 80px;
    }

    .marquee-content {
        padding-right: 5rem;
    }
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-bright {
    filter: brightness(0) invert(1);
}

.logo-knockout {
    filter: grayscale(1) invert(1) contrast(1000%);
}

/* Utilities */
iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Subtle Infinite Zoom Out */
@keyframes slowZoom {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.animate-slow-zoom {
    animation: slowZoom 8s ease-in-out infinite alternate;
    will-change: transform;
}

/* Glass Typography Effect with Vertical Fade */
.glass-typography {
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.12);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 25%,
            rgba(255, 255, 255, 0.28) 65%,
            rgba(255, 255, 255, 0.22) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Glass Typography Effect (Black Variant for White Backgrounds) */
.glass-typography-dark {
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 35%,
            rgba(0, 0, 0, 0.4) 75%,
            rgba(0, 0, 0, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Nav Dynamic Contrast (Light Mode) */
#main-nav.nav-light-mode .text-white {
    color: #00030a !important;
}

#main-nav.nav-light-mode .text-white\/50 {
    color: rgba(0, 3, 10, 0.5) !important;
}

#main-nav.nav-light-mode .hover\:text-white:hover {
    color: #00030a !important;
}

#main-nav.nav-light-mode #nav-container {
    background: rgba(0, 3, 10, 0.05);
    border-color: rgba(0, 3, 10, 0.1);
    backdrop-filter: blur(20px) saturate(200%);
}

#main-nav.nav-light-mode .text-\[\#007bff\] {
    color: #035BFB !important;
}

#main-nav.nav-light-mode .nav-logo-img {
    filter: invert(1) brightness(0.2);
}

/* Preloader Styles */
body.preloader-active {
    overflow: hidden !important;
}

@keyframes plFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}

@keyframes plPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.9; }
}

@keyframes plFadeOut {
    0% { opacity: 1; transform: scale(1); }
    60% { opacity: 0.6; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.14); }
}

/* Scroll Progress Indicator */
#scroll-progress-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) translateY(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#scroll-progress-indicator.visible {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

/* Cyber Scramble Footer Marquee */
@keyframes marquee-cyber {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.animate-marquee-cyber {
    animation: marquee-cyber 45s linear infinite;
}

/* Language Switcher */
#lang-switcher {
    backdrop-filter: none; /* Inherit from container */
}

.lang-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(3, 91, 251, 0.2);
    border: 1px solid rgba(3, 91, 251, 0.4);
    opacity: 1;
}

.lang-btn iconify-icon {
    font-size: 1.25rem;
}

/* Nav Dynamic Contrast support for Switcher */
#main-nav.nav-light-mode .lang-btn {
    background: rgba(0, 3, 10, 0.05);
}

#main-nav.nav-light-mode .lang-btn.active {
    background: rgba(3, 91, 251, 0.1);
    border-color: rgba(3, 91, 251, 0.2);
}

#main-nav.nav-light-mode #lang-switcher {
    border-left-color: rgba(0, 3, 10, 0.1);
}
