/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #1a5c2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #145020;
}

/* Geometric Shape Animations */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #86efac;
    top: -100px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #a5d6a7;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #86efac;
    bottom: -50px;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #4caf50;
    top: -200px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #86efac;
    top: 20%;
    left: 8%;
    animation: rotate 12s linear infinite;
    opacity: 0.06;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #66bb6a;
    bottom: 10%;
    right: 5%;
    animation: rotate 15s linear infinite reverse;
    opacity: 0.05;
}

.shape-diamond {
    width: 120px;
    height: 120px;
    background: #a5d6a7;
    top: 40%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #86efac;
    bottom: -60px;
    left: 10%;
    transform: rotate(20deg);
    animation: rotate 20s linear infinite;
    opacity: 0.1;
}

.shape-arc {
    width: 400px;
    height: 200px;
    border: 40px solid #66bb6a;
    border-radius: 50% 50% 0 0;
    border-bottom: 0;
    bottom: -20px;
    left: -100px;
    opacity: 0.05;
    animation: float 11s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 42, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 92, 42, 0.1);
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Button Focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1a5c2a;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: #1a5c2a;
    color: #fdfbf7;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    .shape-triangle {
        border-left-width: 80px;
        border-right-width: 80px;
        border-bottom-width: 139px;
    }
}
