/* Custom styles for Multiservices Antonio */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar text color transitions */
.navbar-text {
    transition: color 0.3s ease;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobileMenu.open .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
    margin-left: 0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll reveal for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Selection color */
::selection {
    background-color: #4FBF96;
    color: #0A1628;
}

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

::-webkit-scrollbar-track {
    background: #F0FAF7;
}

::-webkit-scrollbar-thumb {
    background: #1B3663;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #244A85;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4FBF96;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, #contactForm, #successMsg {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
