@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Dark Luxury Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #181818;
    
    --gold: #D4A84B;
    --gold-light: #E5C77E;
    --gold-dark: #B8903D;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-gold: #D4A84B;
    
    --border-default: #2a2a2a;
    --border-gold: #D4A84B;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
}

/* Custom Scrollbar - Gold Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A84B 0%, #B8903D 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E5C77E 0%, #D4A84B 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base utilities */
.container-custom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Three.js Canvas Container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Glass Card Effect */
.glass-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 168, 75, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Premium Navigation Link Effect - Gold */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #D4A84B, #E5C77E);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #D4A84B;
}

.nav-link:hover::after {
    width: 100%;
}

/* Luxury Gold Button Effect */
.tilt-btn {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
    box-shadow: 0 10px 30px -10px rgba(212, 168, 75, 0.4);
    background: linear-gradient(135deg, #D4A84B 0%, #B8903D 100%);
    color: #000000;
    overflow: hidden;
}

/* Gold Shine effect */
.tilt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.tilt-btn:hover::before {
    left: 100%;
    transition: left 0.7s;
}

.tilt-btn:hover {
    box-shadow: 0 20px 40px -10px rgba(212, 168, 75, 0.6);
}

/* Dark Cart Drawer */
.cart-drawer {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #111111;
    border-left: 1px solid #2a2a2a;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

.page-transition-exit {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Gold Accents */
.text-gold {
    color: #D4A84B;
}

.bg-gold {
    background-color: #D4A84B;
}

.border-gold {
    border-color: #D4A84B;
}

.gold-gradient {
    background: linear-gradient(135deg, #D4A84B 0%, #E5C77E 50%, #B8903D 100%);
}

.gold-text-gradient {
    background: linear-gradient(135deg, #D4A84B 0%, #E5C77E 50%, #D4A84B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold Glow Effects */
.glow-gold {
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

.glow-gold-hover:hover {
    box-shadow: 0 0 30px rgba(212, 168, 75, 0.5);
}

/* Dark Form Inputs */
input, textarea, select {
    background-color: #181818 !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #D4A84B !important;
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.2) !important;
}

input::placeholder, textarea::placeholder {
    color: #666666 !important;
}

/* Dark Cards Override */
.bg-white {
    background-color: #181818 !important;
}

.bg-gray-50 {
    background-color: #111111 !important;
}

.bg-gray-100 {
    background-color: #1a1a1a !important;
}

/* Text Color Overrides for Dark Mode */
.text-black {
    color: #ffffff !important;
}

.text-gray-900 {
    color: #ffffff !important;
}

.text-gray-800 {
    color: #e0e0e0 !important;
}

.text-gray-700 {
    color: #c0c0c0 !important;
}

.text-gray-600 {
    color: #a0a0a0 !important;
}

.text-gray-500 {
    color: #888888 !important;
}

/* Border Overrides */
.border-gray-100 {
    border-color: #2a2a2a !important;
}

.border-gray-200 {
    border-color: #333333 !important;
}

.border-gray-300 {
    border-color: #404040 !important;
}

/* Luxury Product Cards */
.product-card {
    background: linear-gradient(145deg, #181818 0%, #111111 100%);
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #D4A84B;
    box-shadow: 0 10px 40px rgba(212, 168, 75, 0.15);
    transform: translateY(-4px);
}

/* Hero Section Enhancement */
.hero-luxury {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
}

.hero-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer Dark */
footer {
    background: #0a0a0a !important;
    border-top: 1px solid #1a1a1a;
}

/* Header Dark */
header, nav {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
}

/* Modal Dark Override */
.modal-content {
    background: #111111 !important;
    border: 1px solid #2a2a2a;
}