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

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

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

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

::selection {
    background-color: #58d689;
    color: #0d1133;
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #58d689;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #58d689;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* ========== HIGHLIGHT CARDS ========== */
.highlight-card {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.highlight-card:hover {
    background-color: #f0faf4;
    transform: translateY(-4px);
}

.highlight-card:hover .w-14 {
    background-color: #abebc6;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Staggered delays for grid items */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========== GALLERY HOVER ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #58d689;
    outline-offset: 4px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #abebc6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #82e0aa;
}

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

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 767px) {
    #site-header {
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }
}

/* ========== LOADING STATE ========== */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}
