/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(30, 58, 95, 0.08);
}

.nav-scrolled .nav-text {
    color: #1e3a5f;
}

.nav-scrolled .menu-line {
    background-color: #1e3a5f;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Service cards */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Hero decorative line animation */
@keyframes drawLine {
    from {
        height: 0;
    }
    to {
        height: 160px;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #c9a84c !important;
}

/* Selection color */
::selection {
    background-color: #c9a84c;
    color: #0a1628;
}
