/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(45, 94, 48, 0.2);
    color: #1b3a1e;
}

/* ── Floating Background Shapes ── */
.floating-shapes {
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #aad0ab, #7fb880);
    animation-delay: 0s;
}

.shape-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d5e5d6, #aad0ab);
    animation-delay: -3s;
}

.shape-triangle {
    top: 45%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(170, 208, 171, 0.3);
    animation-delay: -5s;
}

.shape-square {
    top: 70%;
    right: 10%;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d5e5d6, #aad0ab);
    transform: rotate(45deg);
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* ── Navbar ── */
.nav-header {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 94, 48, 0.08);
}

.nav-header.scrolled {
    box-shadow: 0 4px 20px rgba(27, 58, 30, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2d5e30;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

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

/* ── Mobile Menu ── */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ── Service Cards ── */
.service-card {
    perspective: 1000px;
}

.service-card .h-full {
    will-change: transform;
}

/* ── Scroll Indicator ── */
@keyframes scrollIndicator {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Back to Top ── */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 60px;
        height: 60px;
    }
    .shape-circle-2 {
        width: 40px;
        height: 40px;
    }
    .shape-triangle {
        border-left-width: 20px;
        border-right-width: 20px;
        border-bottom-width: 35px;
    }
    .shape-square {
        width: 30px;
        height: 30px;
    }
}
