/* Custom styles for Limestone Pool - Morehead */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #2c5d98;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e4570;
}

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

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

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

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

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Navbar transition states */
.nav-text-color {
    color: #0d1c30;
}

.nav-subtext-color {
    color: #557dac;
}

.nav-link {
    color: #0d1c30;
}

/* Dark navbar state (applied via JS) */
.navbar-dark .nav-text-color,
.navbar-dark .nav-link {
    color: #f0f4f8;
}

.navbar-dark .nav-subtext-color {
    color: #a8bdd4;
}

/* Mobile nav links */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 100ms; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 200ms; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 300ms; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 400ms; }

/* Mobile menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-btn-active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2ecc71;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #2ecc71;
    color: #ffffff;
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
