/* Custom styles for Eland Title Company */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F0F4F8;
}
::-webkit-scrollbar-thumb {
    background: #0A2540;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0F3460;
}

/* Selection color */
::selection {
    background: #40E0D0;
    color: #0A2540;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

header.scrolled .nav-link {
    color: #0A2540;
}

header.scrolled .nav-link:hover {
    color: #0A2540;
}

/* Hero image animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
}
.stagger-children.animate > * {
    animation: fadeInUp 0.5s ease-out forwards;
}
.stagger-children.animate > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.animate > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.animate > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.animate > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.animate > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.animate > *:nth-child(6) { animation-delay: 0.3s; }

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #40E0D0;
    outline-offset: 2px;
}

/* Subtle pattern for hero */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
