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

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

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

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

.navbar-scrolled .nav-text {
    color: #14532d !important;
}

.navbar-scrolled .nav-link {
    color: #14532d !important;
}

/* Mobile menu */
.mobile-link {
    color: #14532d;
    transition: color 0.2s;
}

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

/* Geometric hero shapes */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fbbf24;
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #34d399;
    bottom: 15%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f472b6;
    top: 30%;
    right: 10%;
    animation: float-slow 7s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #fbbf24;
    top: 20%;
    left: 8%;
    opacity: 0.08;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #34d399;
    bottom: 25%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.dot-cluster {
    top: 60%;
    left: 15%;
    display: flex;
    gap: 12px;
    opacity: 0.15;
}

.dot-cluster span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
}

.dot-cluster span:nth-child(2) {
    background: #34d399;
    align-self: flex-end;
}

.dot-cluster span:nth-child(3) {
    background: #f472b6;
    align-self: flex-start;
}

.stripe-1 {
    width: 300px;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #fbbf24 0px,
        #fbbf24 20px,
        transparent 20px,
        transparent 30px
    );
    bottom: 30%;
    left: -50px;
    transform: rotate(-10deg);
    opacity: 0.1;
}

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

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

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
    margin-left: 0;
    margin-right: 0;
}

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

/* Selection */
::selection {
    background: #166534;
    color: #fefdf8;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
