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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9cc3a3;
}

/* Selection */
::selection {
    background: #e3efe6;
    color: #1d3122;
}

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

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

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

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

/* Navbar Scroll State */
#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(44, 77, 52, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .testimonial-card {
        transition: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2c4d34;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Form Styles */
input,
textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #c7dfca;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-bottom-color: #2c4d34;
}

input::placeholder,
textarea::placeholder {
    color: #9cc3a3;
}

/* Success Message */
.success-message {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Image Hover Effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button Hover */
button,
a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
