/* === Custom Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

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

/* === Navbar Scroll Effect === */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

nav.scrolled .logo-text {
    color: #1B5E20;
}

/* === Mobile Menu === */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B5E20;
    transition: width 0.3s ease;
}

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

/* === Service Card Hover === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #1B5E20;
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* === Focus Styles === */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* === Mobile Menu Animation === */
.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Counter Animation === */
.counter {
    display: inline-block;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1B5E20;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #144517;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .service-card::before {
        width: 0;
        height: 4px;
    }
    
    .service-card:hover::before {
        width: 100%;
        height: 4px;
    }
}
