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

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: #166534;
    border-radius: 50%;
}

.geo-circle-2 {
    top: 45%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: #166534;
    border-radius: 50%;
}

.geo-circle-3 {
    bottom: 10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: #166534;
    border-radius: 50%;
}

.geo-square-1 {
    top: 30%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: #166534;
    transform: rotate(30deg);
}

.geo-square-2 {
    bottom: 25%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: #166534;
    transform: rotate(15deg);
}

.geo-triangle-1 {
    top: 60%;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #166534;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
}

#mobile-menu.open {
    max-height: 400px;
}

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

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9ecd9;
    transition: color 0.2s;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #166534;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52a552;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
    border-radius: 4px;
}
