body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1e40af; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* Hamburger animation */
.hamburger-line {
    transition: all 0.3s ease;
}
.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Smooth scroll and base font size scaling */
html {
    scroll-behavior: smooth;
    font-size: 18px;
}

@media (max-width: 1023px) {
    html {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 16px;
    }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow {
    transition: all 0.4s ease;
}
.card-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* Gradient border */
.gradient-border-top {
    position: relative;
}
.gradient-border-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #0ea5e9, #38bdf8, #3b82f6, #1e40af);
}

/* Pulse animation for scroll indicator */
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Inline text links (paragraph/list content) */
p a,
li a,
blockquote a,
td a,
figcaption a,
article a {
    color: #6b7d9c;
    text-decoration: underline;
    text-decoration-color: #8ea0bf;
    transition: color 0.2s ease;
}

p a:hover,
li a:hover,
blockquote a:hover,
td a:hover,
figcaption a:hover,
article a:hover {
    color: #4f6288;
}

.service-page h1, .service-page h2, .service-page h3, .service-page h4, .service-page h5, .service-page h6,
.contact-page h1, .contact-page h2, .contact-page h3, .contact-page h4, .contact-page h5, .contact-page h6 {
    font-family: 'IBM Plex Sans', sans-serif;
}

.nav-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%
    );
}

@media (max-width: 1023px) {
    h1,
    h2 {
        text-align: center;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2.9rem;
    }
    h2 {
        font-size: 2.1rem;
    }
}

.nav-marquee {
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
}

.nav-marquee {
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
}

.nav-marquee-track {
    display: flex;
    width: max-content;
    animation: navScrollMobile 12s linear infinite;
    will-change: transform;
}

.nav-marquee {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem 0;
    scrollbar-width: none;
}

.nav-marquee::-webkit-scrollbar {
    display: none;
}

.nav-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: none;
}

.nav-marquee-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.nav-marquee-duplicate {
    display: none;
}

@media (min-width: 768px) {
    .nav-marquee {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            black 48px,
            black calc(100% - 48px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            black 48px,
            black calc(100% - 48px),
            transparent 100%
        );
    }

    .nav-marquee-track {
        animation: navScroll 18s linear infinite;
    }

    .nav-marquee-duplicate {
        display: flex;
    }

    .nav-marquee-track:hover {
        animation-play-state: paused;
    }
}

@keyframes navScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.titulo-estado-online {
    font-size: 1.5rem;
}

@media (min-width: 640px) {
    .titulo-estado-online {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .titulo-estado-online {
        font-size: 2.7rem;
    }
}