/* ===== Custom Styles for Vintage Mall Plus ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ef;
}
::-webkit-scrollbar-thumb {
    background: #b8284e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #951c3e;
}

/* Selection color */
::selection {
    background: #fce4ec;
    color: #671830;
}

/* ===== Navigation ===== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b8284e, #ff87a8);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #671830;
}

.nav-scrolled .nav-link {
    color: #671830 !important;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger[data-reveal-state="visible"] > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
    padding-left: 16px;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b8284e;
    opacity: 0.5;
}

/* ===== Button hover effects ===== */
a[href="tel:+17312130063"] {
    text-decoration: none;
}

/* ===== Image loading ===== */
img {
    image-rendering: auto;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
    .animate-float, .animate-float-delayed {
        animation: none;
    }
}

/* ===== Focus styles ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #b8284e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Back to top ===== */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Card hover glow ===== */
.group:hover .rounded-2xl {
    box-shadow: 0 20px 60px -15px rgba(139, 26, 74, 0.15);
}

/* ===== Gradient text utility ===== */
.text-gradient {
    background: linear-gradient(135deg, #b8284e, #ff87a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
