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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: #059669;
    color: #fefdf8;
}

/* HERO GEOMETRIC SHAPES */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    will-change: transform;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: #34d399;
    top: -100px;
    right: -80px;
    animation: float1 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #a7f3d0;
    bottom: 15%;
    left: 5%;
    animation: float2 10s ease-in-out infinite;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #6ee7b7;
    top: 40%;
    right: 10%;
    animation: float3 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 #a7f3d0;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin1 14s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid #6ee7b7;
    bottom: 25%;
    right: 15%;
    transform: rotate(-20deg);
    animation: spin2 11s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #d1fae5;
    top: 60%;
    left: 12%;
    transform: rotate(45deg);
    animation: float1 9s ease-in-out infinite reverse;
}

.square-2 {
    width: 60px;
    height: 60px;
    background: #34d399;
    top: 15%;
    right: 25%;
    transform: rotate(30deg);
    animation: float2 6s ease-in-out infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    border: 8px solid #6ee7b7;
    border-radius: 50%;
    top: 50%;
    left: 3%;
    animation: float3 8s ease-in-out infinite;
}

.ring-2 {
    width: 90px;
    height: 90px;
    border: 6px solid #a7f3d0;
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: spin1 12s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(25px) rotate(-5deg); }
}

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

@keyframes spin1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin2 {
    from { transform: rotate(-20deg); }
    to { transform: rotate(340deg); }
}

/* 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, #34d399);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* GALLERY */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 78, 59, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* TESTIMONIAL CARDS */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.15);
}

/* NAVBAR */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(5, 78, 59, 0.08);
}

#navbar.scrolled .menu-line {
    background: #064e3b;
}

/* MOBILE MENU */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* MENU BUTTON ANIMATION */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* SCROLL REVEAL (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .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.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; }
}

/* FOCUS STYLES */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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