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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.nav-scrolled #navbar {
    background: rgba(254, 253, 248, 0.95) !important;
    box-shadow: 0 1px 20px rgba(5, 96, 70, 0.08);
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ========== SELECTION ========== */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* ========== FORM FOCUS RING ANIMATION ========== */
input:focus, select:focus, textarea:focus {
    animation: ring-pulse 2s ease infinite;
}

@keyframes ring-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
}

/* ========== LOADING SHIMMER ========== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========== BUTTON RIPPLE ========== */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== HERO FLOATING ANIMATION ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ========== GRADIENT ANIMATION ========== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== SERVICE CARD HOVER LIFT ========== */
.service-card {
    transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s cubic-bezier(.22,.61,.36,1);
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ========== GALLERY IMAGE HOVER ========== */
.gallery-img {
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== UTILITY ========== */
.text-gradient {
    background: linear-gradient(135deg, #059669, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
