/* Custom styles for G and C Ohana Home Advisors */

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

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

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

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

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

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

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(30, 58, 95, 0.08);
}

.nav-scrolled .nav-link {
    color: #1e3a5f !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #1e3a5f;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Card hover glow */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text fallback */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
