*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #F5F3EB;
    color: #10241A;
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background-color: rgba(245, 243, 235, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 58, 42, 0.08);
}

.navbar-scrolled .nav-brand-color,
.navbar-scrolled .nav-link-color {
    color: #1C3A2A !important;
}

.navbar-scrolled a.nav-link-color:hover {
    color: #3d5c40 !important;
}

/* Mobile menu animations */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open #menu-line-2 {
    opacity: 0;
}

.mobile-menu-open #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3d5c40;
    transition: width 0.3s ease;
}

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

/* Fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d5c40;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: #1C3A2A;
    color: #F5F3EB;
}

/* Form placeholder */
::placeholder {
    color: #b8ccb7;
}

/* Image lazy loading shimmer */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #b8ccb7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fad8d;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(28, 58, 42, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
