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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal.revealed:nth-child(2) { transition-delay: 100ms; }
    .reveal.revealed:nth-child(3) { transition-delay: 200ms; }
    .reveal.revealed:nth-child(4) { transition-delay: 300ms; }
}

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffaf0;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== SELECTION ===== */
::selection {
    background: #065f46;
    color: #fff7ed;
}

/* ===== FORM FOCUS STYLES ===== */
input:focus, textarea:focus {
    outline: none;
}

/* ===== NAV ACTIVE STATE ===== */
nav a.active {
    color: #059669;
}

/* ===== GEOMETRIC DECORATIVE ELEMENTS ===== */
.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 1rem;
}

/* ===== IMAGE LOADING ===== */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== BUTTON HOVER EFFECTS ===== */
button, a {
    transition: all 0.2s ease;
}
