/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #314231;
    color: #faf9f6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===== SCROLL REVEAL ===== */
.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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        animation: none;
        opacity: 1;
    }
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 209, 197, 0.4);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(197, 209, 197, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #314231;
    transition: color 0.3s ease;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: background-color 0.4s ease;
}

.service-card:hover {
    background-color: #faf9f6;
}

.service-card:hover svg {
    color: #314231;
    transform: scale(1.05);
}

.service-card svg {
    transition: color 0.5s ease, transform 0.5s ease;
}

/* ===== FORM FOCUS ===== */
input:focus,
textarea:focus {
    border-color: #96ad96 !important;
    box-shadow: 0 0 0 1px #96ad96;
}

/* ===== LINK UNDERLINE ===== */
a {
    text-decoration: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f3ee;
}

::-webkit-scrollbar-thumb {
    background: #c5d1c5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #96ad96;
}
