/* ===== BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #050305;
    color: white;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #F0D9A8;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A060A;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D4A574, #A67B4F);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #F0D9A8, #D4A574);
}

/* ===== HERO ===== */
.hero-img {
    transition: transform 8s ease-out;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #D4A574 !important;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GOLD SHIMMER TEXT ===== */
.text-transparent.bg-clip-text.bg-gradient-to-r {
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== BUTTON HOVER EFFECTS ===== */
button[type="submit"],
a[href="#contact"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before,
a[href="#contact"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

button[type="submit"]:hover::before,
a[href="#contact"]:hover::before {
    transform: translateX(100%);
}

/* ===== INPUT FOCUS RING ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.2), 0 0 20px rgba(212, 165, 116, 0.05);
}

/* ===== PRODUCT CARD GLOW ===== */
.group:hover .absolute {
    transition: all 0.5s ease;
}

/* ===== PARALLAX-LIKE SUBTLE EFFECTS ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== MOBILE MENU TRANSITIONS ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* ===== DECORATIVE LINE ANIMATION ===== */
.divider-line {
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ===== IMAGE LOADING PLACEHOLDER ===== */
img {
    background: linear-gradient(135deg, #1A0A1A 0%, #0A060A 100%);
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
    border-radius: 4px;
}
