/* Parallax Background */
.parallax-wrapper {
    position: absolute;
    inset: -10%;
    /* Larger to allow movement */
    width: 120%;
    height: 120%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.parallax-bg {
    width: 100%;
    height: 100%;
    background-image: url('../../mundi-map.jpg');
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.95);
    /* Slightly toned down from pure white */
}

:is(.dark .parallax-bg) {
    /* Deixa a imagem escurecida e com mais contraste ao entrar no modo escuro, mas menos que antes */
    filter: brightness(0.5) contrast(1.1);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
}

/* Glassmorphism Menu */
.glass-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom Button Styles */
.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

/* Light mode specific ghost button */
:is(.dark .ghost-btn) {
    border-color: rgba(255, 255, 255, 0.8);
}

:not(.dark) .ghost-btn {
    border-color: rgba(0, 0, 0, 0.3);
    color: #111827;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #000 !important;
    /* Forces black text on hover in both modes for contrast */
}

:not(.dark) .ghost-btn:hover {
    background: #111827;
    color: #ffffff !important;
}

.btn-green {
    background-color: #39B54A;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(57, 181, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-green::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scale(0.5);
}

.btn-green:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(57, 181, 74, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-green:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Floating Videos */
.video-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

:not(.dark) .video-panel {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.video-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

:not(.dark) .video-panel::before {
    background: linear-gradient(125deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
}

.play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(57, 181, 74, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(57, 181, 74, 0.5);
    padding-left: 4px;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-1.5deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(15px) rotate(1deg);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-2deg);
    }
}

.panel-1 {
    top: 15%;
    left: 8%;
    width: 260px;
    height: 160px;
    animation: float-1 7s ease-in-out infinite;
}

.panel-2 {
    top: 65%;
    left: 4%;
    width: 240px;
    height: 150px;
    animation: float-2 6s ease-in-out infinite 1s;
}

.panel-3 {
    top: 18%;
    right: 6%;
    width: 280px;
    height: 170px;
    animation: float-3 8s ease-in-out infinite 0.5s;
}

.panel-4 {
    top: 70%;
    right: 8%;
    width: 220px;
    height: 140px;
    animation: float-4 7.5s ease-in-out infinite 1.5s;
}

/* Neon Logo Pulse */
.neon-logo {
    animation: neon-pulse 4s infinite alternate;
    position: relative;
    z-index: 10;
}

:not(.dark) .neon-logo {
    animation: neon-pulse-light 4s infinite alternate;
}

@keyframes neon-pulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3)) drop-shadow(0 0 20px rgba(57, 181, 74, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 40px rgba(57, 181, 74, 0.5));
    }
}

@keyframes neon-pulse-light {
    0% {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.2)) drop-shadow(0 0 10px rgba(57, 181, 74, 0.1));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 25px rgba(57, 181, 74, 0.4));
    }
}

@keyframes shimmer {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* 3D Card Effect */
.perspective-1000 {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-3d:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: -15px 25px 40px -5px rgba(0, 0, 0, 0.4);
}

/* Floating Blob Animation for Plataforma */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 10s ease-in-out infinite alternate;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Hide Scrollbar for Horizontal Lists */
.hide-scroll {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}