/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Quicksand', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #E8EDF5;
}
::-webkit-scrollbar-thumb {
    background: #1B2A4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* Mobile Menu */
#mobile-menu {
    animation: menuSlideIn 0.3s ease forwards;
}
#mobile-menu.hidden {
    animation: menuSlideOut 0.2s ease forwards;
}
@keyframes menuSlideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes menuSlideOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.3);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1B2A4A, #D4A843);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}
.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: #D4A843;
    opacity: 0.1;
    line-height: 1;
}

/* FAQ */
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-content {
    max-height: 200px;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Mobile link animation */
.mobile-link {
    animation: fadeUp 0.3s ease forwards;
    opacity: 0;
}
.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-link:nth-child(5) { animation-delay: 0.25s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating animation for decorative shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, 0deg)); }
}
.float-1 { animation: float 6s ease-in-out infinite; --rotation: 45deg; }
.float-2 { animation: float 8s ease-in-out infinite; --rotation: 12deg; }
.float-3 { animation: float 5s ease-in-out infinite; --rotation: -12deg; }
