/* Base styles & custom properties */
:root {
    --color-forest-700: #1A4D2E;
    --color-cream-50: #FAFAF7;
    --color-cream-100: #F5F5F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream-50);
}

::-webkit-scrollbar-thumb {
    background: #b9d1bb;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8bb58e;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-forest-700);
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.1);
}

.nav-scrolled .nav-link {
    color: #1A4D2E;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-close-btn {
    transform: rotate(90deg);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* Hero animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFloat 0.6s ease forwards;
}

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-forest-700), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

/* Floating cards subtle animation */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.reveal-card:nth-child(1) { animation: gentleFloat 4s ease-in-out infinite; }
.reveal-card:nth-child(2) { animation: gentleFloat 5s ease-in-out infinite 0.5s; }
.reveal-card:nth-child(3) { animation: gentleFloat 4.5s ease-in-out infinite 1s; }

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Form inputs */
input::placeholder, textarea::placeholder {
    color: #b9d1bb;
}

/* Selection */
::selection {
    background: #dce8df;
    color: #1A4D2E;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Print styles */
@media print {
    nav, #mobile-menu { display: none; }
    body { color: #000; background: #fff; }
    section { page-break-inside: avoid; }
}
