/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}
.circle-1 {
    width: 400px; height: 400px;
    border: 3px solid #6ee7b7;
    border-radius: 50%;
    top: 5%; left: -8%;
    animation: float 8s ease-in-out infinite;
}
.circle-2 {
    width: 200px; height: 200px;
    background: #34d399;
    border-radius: 50%;
    top: 20%; right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}
.circle-3 {
    width: 120px; height: 120px;
    border: 3px solid #a7f3d0;
    border-radius: 50%;
    bottom: 15%; left: 15%;
    animation: float 7s ease-in-out infinite;
}
.triangle-1 {
    width: 0; height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #34d399;
    top: 30%; right: 15%;
    transform: rotate(25deg);
    animation: spin-slow 20s linear infinite;
}
.square-1 {
    width: 100px; height: 100px;
    background: #6ee7b7;
    border-radius: 16px;
    bottom: 25%; right: 8%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite;
}
.ring-1 {
    width: 160px; height: 160px;
    border: 4px solid #a7f3d0;
    border-radius: 50%;
    top: 10%; left: 25%;
    animation: float 5s ease-in-out infinite reverse;
}
.dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,254,248,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes spin-slow {
    from { transform: rotate(25deg); }
    to { transform: rotate(385deg); }
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #047857, #10b981, #34d399);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    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; }

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: #047857;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 60%; }
</style>
