/* Custom styles for Clearlake Imaging */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 28, 35, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #1a1c23 !important;
}

.nav-scrolled .nav-link {
    color: #51545c !important;
}

.nav-scrolled .nav-link:hover {
    color: #ff6b4a !important;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
}

/* Floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

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

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

.animate-float-fast {
    animation: float-fast 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Custom selection color */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1a1c23;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.25rem;
    }
}
