/* Custom animations and overrides */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-10px) rotate(-12deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar scroll behavior */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 250, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.1);
}

/* Mobile menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* Testimonial card hover */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: #d1fae5;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delay {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card,
    .testimonial-card {
        transition: none;
    }

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

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .animate-float, .animate-float-delay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
