/* Custom styles for Emigrant Savings Bank */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.2s ease-out;
}

/* Testimonial card hover */
.bg-white\/10:hover {
    transform: translateY(-4px);
}

/* Image hover effect */
.rounded-3xl.overflow-hidden {
    overflow: hidden;
}
.rounded-3xl.overflow-hidden img {
    transition: transform 0.5s ease;
}
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-up,
    .stagger-children > * {
        animation: none;
    }
    .rounded-3xl.overflow-hidden img {
        transition: none;
    }
}
