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

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

body {
    margin: 0;
    background-color: #fefdf8;
}

::selection {
    background-color: #8fb572;
    color: #101a0a;
}

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

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

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #e07a5f;
    bottom: 10%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #b9d0a8;
    top: 40%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #f2cc8f;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: #e07a5f;
    bottom: 20%;
    right: 15%;
    transform: rotate(20deg);
    animation: spin-slow 20s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #b9d0a8;
    top: 60%;
    left: 5%;
    animation: float-slow 18s ease-in-out infinite;
    opacity: 0.08;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #f2cc8f;
    bottom: 5%;
    right: 5%;
    animation: float-slow 22s ease-in-out infinite reverse;
    opacity: 0.08;
}

/* Dots pattern */
.dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ===== Scroll Reveal ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s 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;
    }
}

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 77, 28, 0.08);
}

/* ===== Mobile Menu ===== */
.menu-line {
    display: block;
}

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

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

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

/* ===== Smooth anchor offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Image hover container ===== */
.relative.overflow-hidden {
    will-change: transform;
}

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

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

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

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