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

::selection {
    background: #1a5c3a;
    color: #faf8f4;
}

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

#navbar.scrolled {
    background: rgba(10, 39, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

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

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

.circle-3 {
    width: 150px;
    height: 150px;
    border: 2px solid white;
    border-radius: 50%;
    top: 30%;
    left: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid white;
    top: 20%;
    right: 10%;
    transform: rotate(15deg);
    animation: rotate-slow 25s linear infinite;
    opacity: 0.05;
}

.rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid white;
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation: rotate-slow 20s linear infinite reverse;
    opacity: 0.06;
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 5%;
    opacity: 0.1;
}

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

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

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Default state for reveal — visible for progressive enhancement */
.reveal {
    transform: translateY(0);
}

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

/* ========== MENU TABS ========== */
.menu-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: white;
    color: #1a5c3a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
    display: block;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
    color: white;
    padding-left: 8px;
}

/* ========== BUTTON HOVER EFFECTS ========== */
a, button {
    transition: all 0.25s ease;
}

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5fb57e;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .circle-3, .rect-1, .triangle-1 {
        display: none;
    }
}
