/* ===== Landing Page Styles ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Animations ===== */

/* Scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-400 {
    transition-delay: 0.4s;
}

/* Floating animation for hero decorations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(15px) scale(1.03); }
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite 2s;
}

/* ===== Navbar Scrolled State ===== */
#navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled #navBrand {
    color: white;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled .nav-link:hover {
    color: white;
}

/* ===== FAQ Styles ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #8B0000;
    box-shadow: 0 4px 6px -1px rgba(139, 0, 0, 0.1), 0 2px 4px -2px rgba(139, 0, 0, 0.1);
}

.faq-item.active .faq-toggle {
    background-color: rgba(139, 0, 0, 0.02);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #8B0000;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content.show {
    max-height: 500px;
}

/* ===== Counter Animation ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== Feature Cards ===== */
.feature-card {
    will-change: transform, box-shadow;
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.show {
    max-height: 400px;
}

/* ===== Responsive Fixes ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .counter {
        font-size: 1.25rem;
    }
}

/* ===== 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-color: rgba(139, 0, 0, 0.2);
    color: #8B0000;
}