/* ========== BASE RESET & GLOBALS ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #166534;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.btn-primary:hover {
    background: #1f5430;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(22, 101, 52, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #166534;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: 2px solid #166534;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.btn-secondary:hover {
    background: #166534;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========== NAVIGATION ========== */
#site-header {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

#site-header.scrolled {
    background: rgba(253, 252, 250, 0.97);
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #166534;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Mobile menu */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: inset 0 -1px 0 rgba(22, 101, 52, 0.1);
}

.mobile-nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
    color: #166534;
    transform: scale(1.05);
}

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

.shape-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 237, 223, 0.6) 0%, rgba(217, 237, 223, 0) 70%);
    top: -80px;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(22, 101, 52, 0.07);
    bottom: 15%;
    left: 5%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(22, 101, 52, 0.1);
    top: 40%;
    right: 3%;
    animation: float-slow 7s ease-in-out infinite;
}

.shape-rect-1 {
    width: 100px;
    height: 100px;
    background: rgba(217, 237, 223, 0.5);
    border-radius: 20px;
    top: 25%;
    left: 2%;
    transform: rotate(45deg);
    animation: spin-slow 12s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(22, 101, 52, 0.06);
    bottom: 25%;
    right: 8%;
    animation: float-medium 5s ease-in-out infinite reverse;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

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

/* Floating card animation */
.floating-card {
    animation: card-float 4s ease-in-out infinite;
}

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

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(22, 101, 52, 0.06);
}

.service-card:hover {
    box-shadow: 0 20px 40px -12px rgba(22, 101, 52, 0.12);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    .shape-circle-2, .shape-circle-3 {
        display: none;
    }
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
    .shape-triangle-1 {
        display: none;
    }
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
}
