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

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

body {
    background-color: #fefdf8;
}

/* ===== NAVIGATION ===== */
.nav-bar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 115, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-bar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: transform 0.3s ease;
}

.nav-bar:hover .nav-logo {
    transform: rotate(-5deg) scale(1.05);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d732a;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #1c4a1b 0%, #2d732a 30%, #448f41 60%, #6fad65 100%);
}

.hero-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float2 8s ease-in-out infinite;
}

.hero-float-3 {
    animation: float3 5s ease-in-out infinite;
}

.hero-float-4 {
    animation: float4 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(-10px, 15px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -12px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-12px, 10px) rotate(10deg); }
}

.hero-scroll {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ===== GEOMETRIC SHAPES (background decoration) ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 115, 42, 0.06) 0%, transparent 70%);
    top: 15%;
    right: -80px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 131, 90, 0.07) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    border-radius: 50%;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(45, 115, 42, 0.04);
    top: 45%;
    left: 5%;
    border-radius: 24px;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(232, 131, 90, 0.05);
    top: 70%;
    right: 8%;
}

.shape-dot-group {
    top: 30%;
    left: 3%;
    display: grid;
    grid-template-columns: repeat(3, 12px);
    gap: 16px;
    opacity: 0.4;
}

.shape-dot-group::before,
.shape-dot-group::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #2d732a;
    border-radius: 50%;
}

.shape-dot-group::before {
    grid-column: 1;
    grid-row: 1;
}

/* ===== CTA BANNER ===== */
.cta-gradient {
    background: linear-gradient(135deg, #2d732a 0%, #448f41 50%, #6fad65 100%);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(0);
}

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

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

/* Only apply animations when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left.animated {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right.animated {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default state: content is visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a:hover {
    transition: all 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #99c892;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(45, 115, 42, 0.2);
    color: #1c4a1b;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(160deg, #1c4a1b 0%, #2d732a 40%, #448f41 100%);
    }
    
    .geo-shape {
        display: none;
    }
    
    .shape-circle-1,
    .shape-circle-2,
    .shape-square-1,
    .shape-triangle {
        display: none;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #448f41;
    outline-offset: 2px;
    border-radius: 4px;
}
