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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a227;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b03a;
}

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

/* Navbar transition */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.navbar-scrolled .menu-line {
    background: #0a1628 !important;
}

.navbar-scrolled .font-serif.text-lg.font-bold {
    color: #0a1628 !important;
}

.navbar-scrolled .text-\[10px\] {
    color: #1b3a6e !important;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Service cards */
.service-card {
    background: transparent;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
}

/* Area cards */
.area-card {
    cursor: pointer;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 0;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.area-card:hover::after {
    border-color: rgba(201, 162, 39, 0.5);
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a227, #e0be4d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.hidden-reveal {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.hidden-reveal {
    opacity: 0;
    transform: translateX(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal.hidden-reveal,
    .reveal-left.hidden-reveal,
    .reveal-right.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .area-card {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
}
