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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #10b981;
    color: #fefdf8;
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.nav-scrolled {
    background-color: rgba(2, 44, 34, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== SCROLL REVEAL (below fold only) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* ========== MOBILE MENU TRANSITIONS ========== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTON RIPPLE ========== */
.btn-shine:active {
    transform: scale(0.98);
}

/* ========== IMAGE LAZY LOAD FADE ========== */
img {
    transition: opacity 0.3s ease;
}

/* ========== FOCUS STYLES ========== */
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;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    nav, #contact-form, .btn-shine { display: none; }
    body { background: white; color: black; }
    section { padding: 1rem 0; }
}
