/* Custom Styles for Central Market Mall */

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.reveal-on-scroll.stagger-1 { transition-delay: 0.1s; }
.reveal-on-scroll.stagger-2 { transition-delay: 0.2s; }
.reveal-on-scroll.stagger-3 { transition-delay: 0.3s; }
.reveal-on-scroll.stagger-4 { transition-delay: 0.4s; }
.reveal-on-scroll.stagger-5 { transition-delay: 0.5s; }
.reveal-on-scroll.stagger-6 { transition-delay: 0.6s; }

/* Navigation Scroll State */
.nav-scrolled #nav-bg {
    opacity: 1;
}

.nav-scrolled #navbar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection Color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Image Loading Placeholder */
img {
    background-color: #f1f5f9;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Image Hover */
.group:hover img {
    transform: scale(1.05);
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Thin Divider Lines */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* Subtle Card Hover */
.group {
    transition: transform 0.3s ease;
}

/* Print Styles */
@media print {
    .reveal-on-scroll,
    .animate-fade-in-up {
        opacity: 1;
        transform: none;
    }
    
    nav,
    footer {
        display: none;
    }
}
