/* Custom styles & overrides */

/* Hero clip path */
.clip-hero-right {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Float animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-slow { animation: float-slow 6s ease-in-out infinite; }
.float-medium { animation: float-medium 4s ease-in-out infinite; }
.float-fast { animation: float-fast 3s ease-in-out infinite; }

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navbar solid background on scroll */
.navbar-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card gradient on hover */
.service-card {
    perspective: 1000px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #b9dfb9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86c486;
}

/* Selection color */
::selection {
    background: #b9dfb9;
    color: #184a18;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hide mobile menu by default */
#mobileMenu {
    opacity: 0;
    pointer-events: none;
}

/* Prevent body scroll when mobile menu open */
body.menu-open {
    overflow: hidden;
}
