/* ============================================
   Need To Know Testing — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #1a3614;
    background-color: #faf9f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #8dbf80;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #448938;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 54, 20, 0.08);
    padding: 0;
}

#navbar.scrolled .font-heading {
    color: #1a3614 !important;
}

/* ============================================
   Hero Geometric Shapes
   ============================================ */
.hero-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    background: #285420;
    border-radius: 50%;
    top: -80px;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite;
}

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

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #ff6b5a;
    top: 25%;
    left: 42%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 200px;
    background: #4db8d4;
    bottom: 10%;
    right: 35%;
    border-radius: 40px;
    animation: float-slow 7s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #448938;
    top: 20%;
    left: 3%;
    opacity: 0.08;
    animation: spin-slow 25s linear infinite reverse;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #285420 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.3;
    bottom: 25%;
    left: 40%;
}

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

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #448938;
    padding-left: 8px;
}

/* Menu button animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-shape {
        animation: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    .shape-rect-1,
    .shape-rect-2,
    .shape-triangle {
        display: none;
    }
}

@media (max-width: 640px) {
    .font-heading {
        font-family: 'Outfit', sans-serif;
    }
    .font-body {
        font-family: 'Space Grotesk', sans-serif;
    }
}
