/* ===== CUSTOM STYLES ===== */

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

/* Custom selection color */
::selection {
    background-color: #C9A84C;
    color: #0A1628;
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#menu-icon-close {
    opacity: 0 !important;
}

#mobile-menu.open ~ div #menu-icon-close,
body.menu-open #menu-icon-close {
    opacity: 1 !important;
}

body.menu-open #menu-icon-open {
    opacity: 0 !important;
}

#menu-icon-open {
    opacity: 1 !important;
}

body.menu-open #menu-icon-open {
    opacity: 0 !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.4s ease, 
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}
