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

::selection {
    background-color: #15803d;
    color: white;
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: shapeAppear 1s ease-out forwards;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation-delay: 0.2s;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.06) 0%, transparent 70%);
    border: 2px solid rgba(21, 128, 61, 0.1);
    border-radius: 24px;
    bottom: 15%;
    left: -40px;
    transform: rotate(15deg);
    animation-delay: 0.4s;
}

.shape-circle-2 {
    width: 120px;
    height: 120px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    top: 35%;
    right: 38%;
    animation-delay: 0.6s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(21, 128, 61, 0.05);
    top: 25%;
    left: 8%;
    transform: rotate(-20deg);
    animation-delay: 0.8s;
}

.shape-line-1 {
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
    top: 60%;
    left: 5%;
    transform: rotate(-10deg);
    animation-delay: 1s;
}

@keyframes shapeAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
}

.shape-circle-1 { --rotation: 0deg; }
.shape-rect-1 { --rotation: 15deg; }
.shape-triangle-1 { --rotation: -20deg; }
.shape-line-1 { --rotation: -10deg; }

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0) 0%, rgba(21, 128, 61, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(255, 254, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(21, 128, 61, 0.1);
}

.nav-scrolled #navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }

    .shape-rect-1 {
        width: 120px;
        height: 120px;
    }

    .shape-circle-2 {
        display: none;
    }

    .shape-triangle-1 {
        display: none;
    }

    .shape-line-1 {
        display: none;
    }
}
