/* ===== Custom Styles for Bank Of Sunset ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8734a;
}

/* Selection color */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #f0f0f0;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}
.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}
.floating-card:nth-child(3) {
    animation-delay: -3s;
}
.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at center, rgba(232, 115, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(46, 46, 46, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Testimonial card stagger */
#testimonials .bg-charcoal-700\/50 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

#testimonials .bg-charcoal-700\/50.visible {
    opacity: 1;
    transform: translateY(0);
}

#testimonials .bg-charcoal-700\/50:nth-child(1) { transition-delay: 0.1s; }
#testimonials .bg-charcoal-700\/50:nth-child(2) { transition-delay: 0.2s; }
#testimonials .bg-charcoal-700\/50:nth-child(3) { transition-delay: 0.3s; }

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Gold accent line */
.gold-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, #e8734a, #d4a853);
    border-radius: 1px;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(232, 115, 74, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    #top {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .font-display {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
