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

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

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

/* Navigation */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 251, 247, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-scrolled.scrolled .font-serif {
    color: #064e3b !important;
}

.nav-scrolled.scrolled span:last-child {
    color: #059669 !important;
}

/* Mobile Menu */
.hamburger-line {
    transform-origin: center;
}

#menu-btn[aria-expanded="true"] #line1 {
    transform: translateY(8px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] #line2 {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] #line3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 20px;
}

#mobile-menu.active {
    pointer-events: all;
    opacity: 1;
}

#mobile-menu.active #menu-panel {
    transform: translateX(0);
}

/* Floating stat cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.stat-card {
    animation: float-slow 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-name: float-medium;
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-name: float-slow;
    animation-delay: 1s;
}

/* 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, #065f46, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* Gallery */
.gallery-item {
    cursor: pointer;
}

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

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

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.1);
}

/* Form inputs */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        display: none;
    }
}
