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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #34d399 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6ee7b7 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
    top: 40%;
    left: 30%;
    border-radius: 50%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: #047857;
    top: 15%;
    left: 8%;
    border-radius: 24px;
    transform: rotate(45deg);
    opacity: 0.2;
    animation: rotate-slow 25s linear infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: #10b981;
    bottom: 25%;
    right: 15%;
    border-radius: 16px;
    transform: rotate(20deg);
    opacity: 0.25;
    animation: rotate-slow 20s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #34d399;
    top: 60%;
    right: 5%;
    opacity: 0.12;
    animation: float-slow 18s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

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

/* ===== Navigation ===== */
.nav-fixed {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-fixed.scrolled .nav-logo-text {
    color: #064e3b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

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

.nav-fixed.scrolled .nav-link {
    color: #065f46;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #059669;
}

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

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

.mobile-link {
    position: relative;
    display: block;
    padding: 8px 0;
}

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

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

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(16, 185, 129, 0.08);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card.bg-emerald-700::before {
    color: rgba(255, 255, 255, 0.06);
}

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

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

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

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

/* ===== Selection ===== */
::selection {
    background: #047857;
    color: #fefdf8;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card::before {
        font-size: 5rem;
        top: 5px;
        left: 15px;
    }
}

@media (max-width: 640px) {
    #hero {
        padding-top: 100px;
    }

    .font-display {
        font-family: 'Playfair Display', Georgia, serif;
    }
}
