/* ===== BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO GRADIENT ===== */
.hero-gradient {
    background: linear-gradient(135deg, #1f3414 0%, #2f5020 25%, #4a7c34 50%, #6a964e 75%, #8fb574 100%);
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #8fb574;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #dce8d8;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #b8d0aa;
    top: 20%;
    left: 8%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: #f0f5ee;
    bottom: 20%;
    right: 10%;
    border-radius: 12px;
    transform: rotate(20deg);
    animation: float 7s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #b8d0aa;
    top: 30%;
    right: 5%;
    animation: float 9s ease-in-out infinite;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #dce8d8 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 30%;
    left: 15%;
    opacity: 0.3;
}

/* About section shapes */
.geo-about-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #3a6328;
    top: -200px;
    right: -150px;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.geo-about-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #6a964e;
    bottom: -80px;
    left: -80px;
    opacity: 0.2;
    animation: float 7s ease-in-out infinite reverse;
}

.geo-about-rect {
    width: 150px;
    height: 150px;
    border: 3px solid #8fb574;
    top: 50%;
    left: 5%;
    border-radius: 24px;
    transform: rotate(30deg);
    opacity: 0.15;
    animation: spin-slow 25s linear infinite;
}

/* Testimonial section shapes */
.geo-testimonial-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #2f5020;
    top: -100px;
    left: -100px;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.geo-testimonial-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #4a7c34;
    bottom: -100px;
    right: -50px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== NAVBAR ===== */
.nav-fixed {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 124, 52, 0.1);
    transition: all duration-500;
}

.nav-fixed.scrolled {
    background: rgba(253, 252, 248, 0.98);
    box-shadow: 0 4px 20px rgba(31, 52, 20, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* ===== HERO BUTTONS ===== */
.hero-btn {
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-outline {
    border: 2px solid rgba(46, 80, 32, 0.3);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
}

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

.gallery-img {
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

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

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

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===== CTA BUTTONS ===== */
.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn-outline {
    border: 2px solid rgba(46, 80, 32, 0.3);
}

/* ===== FORM ===== */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 52, 20, 0.3);
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== MOBILE MENU ===== */
.nav-mobile {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
.nav-toggle.active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active #hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 70px;
        height: 70px;
    }
    
    .geo-square-2 {
        width: 50px;
        height: 50px;
    }
    
    .geo-triangle {
        border-left: 45px solid transparent;
        border-right: 45px solid transparent;
        border-bottom: 78px solid #b8d0aa;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero p {
        font-size: 1.125rem;
    }
}
