/* ============================================
   D&I General Store — Custom Styles
   Premium Dark Luxury Theme
   Charcoal + Coral + Gold Accents
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #f5f5f5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.animate-scroll-indicator {
    height: 100%;
    width: 100%;
    animation: scrollIndicator 1.8s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right,
.hero-element,
.hero-image {
    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);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.hero-element.revealed,
.hero-image.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.15s; }
.reveal-up:nth-child(3) { transition-delay: 0.25s; }
.reveal-up:nth-child(4) { transition-delay: 0.35s; }

/* Hero stagger */
.hero-element:nth-child(1) { transition-delay: 0.1s; }
.hero-element:nth-child(2) { transition-delay: 0.25s; }
.hero-element:nth-child(3) { transition-delay: 0.4s; }
.hero-element:nth-child(4) { transition-delay: 0.55s; }

.hero-image {
    transition-delay: 0.2s;
}

/* --- Navbar Glass Effect --- */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}

.nav-scrolled .menu-line {
    background: #e0e0e0;
}

/* --- Mobile Menu Animation --- */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Custom Select --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Image hover shimmer --- */
.rounded-xl.overflow-hidden {
    position: relative;
}

.rounded-xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rounded-xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* --- Focus styles --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .font-display {
        word-spacing: -0.02em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments if needed */
}
