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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 154, 42, 0.2);
    color: #102a43;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d49a2a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

.navbar-scrolled .nav-text {
    color: #102a43 !important;
}

.navbar-scrolled .nav-subtext {
    color: #627d98 !important;
}

.navbar-hero .nav-text {
    color: #102a43 !important;
}

.navbar-hero .nav-subtext {
    color: #627d98 !important;
}

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

.mobile-menu-btn.active .mobile-menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active .mobile-menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-nav-link {
    position: relative;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    background: #fafbfc;
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.06);
}

.service-card:hover .service-card__line {
    background: #f3dc9a;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    #mobile-menu {
        transition: none;
    }
}

/* ===== Form Styles ===== */
input:focus,
textarea:focus {
    border-color: #d49a2a !important;
}

input::placeholder,
textarea::placeholder {
    color: #bcccdc;
    font-weight: 300;
}

/* ===== Button Hover Effects ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Loading ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== Utility ===== */
.text-balance {
    text-wrap: balance;
}
