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

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

body {
    overflow-x: hidden;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #047857;
    color: #FDFBF7;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #047857;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background-color: transparent;
    color: #047857;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #047857;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #047857;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover {
    background-color: #047857;
    color: #FDFBF7;
}

/* Service Cards */
.service-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    background-color: #FDFBF7;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(4, 78, 59, 0.08);
}

/* Gallery Images */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navbar */
#navbar {
    background-color: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.1);
}

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

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

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

.nav-link::after {
    background-color: currentColor;
}

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

#mobile-menu.open .mobile-menu-link {
    animation: menuLinkIn 0.4s ease forwards;
    opacity: 0;
}

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

@keyframes menuLinkIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    text-decoration: none;
}

/* Mobile Menu Lines */
.mobile-menu-line {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Form Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Selection */
::selection {
    background-color: rgba(4, 120, 87, 0.15);
    color: #064e3b;
}
