@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --color-primary: #091235;
    --color-secondary: #2b4257;
    --color-terciary: #092288;
    --color-accent: #0081D6;
    --color-dark: #000000;
    --color-light: #f0f8ff;
    --color-gray: #bebebe;
    --color-gray-dark: #474747;
    --color-circle: #0370b9;
}

body {
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

#loading-screen {
    z-index: 9999;
}

.loader {
    position: relative;
    width: 48px;
    height: 48px;
    color: var(--color-light);
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    will-change: opacity, transform;
}

/* órbita 1 */
.loader::before,
.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: spin 1s linear infinite;
}

/* órbita 2 (primary) */
.loader::after {
    color: var(--color-primary);
    /* troca do vermelho para a cor primária */
    transform: rotateY(70deg);
    animation-delay: .4s;
}

/* pausa as órbitas quando começa a sumir (JS adiciona .is-fading) */
.loader.is-fading::before,
.loader.is-fading::after {
    animation: none !important;
}

/* Keyframe do efeito orbital */
@keyframes spin {

    0%,
    100% {
        box-shadow: .2em 0 0 0 currentcolor;
    }

    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .2em 0 0 currentcolor;
    }

    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0 -.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--color-secondary);
}

.floating-whatsapp {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width .3s;
}

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

.nav-scrolled {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 2px 10px var(--color-primary);
    backdrop-filter: blur(10px);
}

.dashboard-image {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--color-primary);
}

.dashboard-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px var(--color-primary);
}