/* ============================================
   JOURNEY EAST — Custom Styles
   Premium Dark Luxury | Plum + Amber
   ============================================ */

/* --- 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;
    background-color: #080510;
}

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

::-webkit-scrollbar-track {
    background: #0f0a18;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7e22ce, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9333ea, #f59e0b);
}

/* --- Selection --- */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #fbbf24;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(8, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #a855f7, #f59e0b);
    transition: width 0.3s ease;
}

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

/* --- Hero Orbs --- */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    animation-delay: 0s;
}

.orb-2 {
    animation-delay: -3s;
}

.orb-3 {
    animation-delay: -5s;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* These are progressive enhancement — content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-up {
        transform: translateY(40px);
    }
    
    .reveal-left {
        transform: translateX(-40px);
    }
    
    .reveal-left.revealed {
        transform: translateX(0);
    }
    
    .reveal-right {
        transform: translateX(40px);
    }
    
    .reveal-right.revealed {
        transform: translateX(0);
    }
}

/* --- Product Card Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Button Focus --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* --- Form Select Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* --- Gold shimmer effect on accent elements --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* --- Image aspect ratios --- */
img {
    display: block;
    max-width: 100%;
}

/* --- 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;
    }
    
    .hero-orb {
        animation: none;
    }
}

/* --- Mobile Menu Button Animation --- */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Card hover lift --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up:hover {
        transform: translateY(-4px) !important;
    }
}

/* --- Smooth image loading --- */
img {
    background: linear-gradient(135deg, #1a1025 0%, #0f0a18 100%);
    min-height: 100px;
}
