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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

/* ========== HERO GEOMETRIC SHAPES ========== */
.hero-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.06) 0%, rgba(27, 67, 50, 0.02) 100%);
    border: 2px solid rgba(27, 67, 50, 0.08);
}

.shape-circle-2 {
    top: 45%;
    right: 15%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.1);
    border: 2px solid rgba(245, 166, 35, 0.2);
}

.shape-circle-3 {
    bottom: 15%;
    left: 8%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(26, 188, 156, 0.1);
    border: 2px solid rgba(26, 188, 156, 0.2);
}

.shape-rect-1 {
    top: 25%;
    left: 3%;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(26, 188, 156, 0.08);
    border: 2px solid rgba(26, 188, 156, 0.15);
    transform: rotate(45deg);
}

.shape-triangle-1 {
    bottom: 25%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 107, 107, 0.08);
    transform: rotate(-15deg);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    background: rgba(253, 255, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .font-heading,
#navbar.scrolled .font-body {
    color: #1B4332 !important;
}

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

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

.mobile-link {
    display: block;
}

/* ========== PRODUCT CARD HOVER ========== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ========== BUTTON FOCUS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2ECC71;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #0F1F18;
}
