/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

/* ── Geometric Decorations ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}
.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    animation: float-slow 8s ease-in-out infinite;
}
.geo-square-1 {
    top: 25%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: rgba(5, 150, 105, 0.06);
    border-radius: 16px;
    transform: rotate(15deg);
    animation: float-medium 6s ease-in-out infinite;
}
.geo-triangle-1 {
    bottom: 20%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(5, 150, 105, 0.05);
    animation: float-slow 7s ease-in-out infinite reverse;
}
.geo-circle-2 {
    bottom: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 205, 191, 0.3) 0%, transparent 70%);
    animation: float-medium 9s ease-in-out infinite;
}
.geo-dots {
    top: 40%;
    right: 15%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(5, 150, 105, 0.15) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    animation: float-slow 5s ease-in-out infinite;
}

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

/* ── Service cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ── Mobile link hover ── */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ── Scroll animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Selection color ── */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .geo-circle-1, .geo-square-1, .geo-triangle-1, .geo-circle-2, .geo-dots {
        display: none;
    }
}
