/* LUXURY ENHANCEMENTS - Ultra Premium Layer */

/* Enhanced Body & Root */
html {
    scroll-behavior: smooth;
}

body {
    background: #fafafa;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Ultra Premium Typography */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Navigation Enhancements */
.navbar {
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1), 0 2px 40px rgba(0,0,0,0.04);
}

.nav-brand h1 {
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.1);
    animation: shimmer 3s ease-in-out infinite;
}

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

.nav-brand h1 {
    background-size: 200% auto;
}

/* Enhanced Hero */
.hero {
    box-shadow: inset 0 -2px 100px rgba(212, 175, 55, 0.05);
}

.hero-title {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Cards - Ultra Luxury */
.store-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-12px);
    }
    50% {
        transform: translateY(-16px);
    }
}

/* Product Cards - Premium 3D Effect */
.product-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    animation: tilt 0.6s ease-out forwards;
}

@keyframes tilt {
    0% {
        transform: translateY(0) rotateX(0);
    }
    100% {
        transform: translateY(-8px) rotateX(2deg);
    }
}

/* Button Shine Effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Section Reveal Animation */
section {
    opacity: 0;
    animation: sectionFadeIn 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Shadows & Depth */
.store-card,
.product-card,
.btn-primary {
    will-change: transform, box-shadow;
}

/* Gold Accent Animations */
.section-title::before {
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #c9a227);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e5c048, #d4af37);
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.2);
    color: #1a1a1a;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.2);
    color: #1a1a1a;
}

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Smooth Page Transitions */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Premium Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
    100% {
        left: 100%;
    }
}

/* Ultra Premium Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Premium Image Overlay */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* Luxury Link Hover Effects */
.footer-section a {
    position: relative;
    display: inline-block;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.footer-section a:hover::before {
    width: 100%;
}

/* Premium Badge Pulse */
.badge-ai {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    }
    50% {
        box-shadow: 0 4px 24px rgba(102, 126, 234, 0.3);
    }
}

/* Enhanced Product Price Shimmer */
.product-price {
    background-size: 200% auto;
    animation: priceShimmer 4s linear infinite;
}

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

/* Premium Form Inputs */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    transition: all 0.3s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* Luxury Cursor Effect */
@media (hover: hover) {
    .btn,
    .product-card,
    .store-card {
        cursor: pointer;
    }

    .btn:hover,
    .product-card:hover,
    .store-card:hover {
        cursor: pointer;
    }
}

/* Premium Glassmorphism */
.nav-menu a,
.btn-secondary {
    position: relative;
}

/* Micro-interactions */
.store-icon,
.feature-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover .store-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Premium Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body {
    animation: pageLoad 0.6s ease-out;
}

/* Enhanced Section Backgrounds */
.stores-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
}

.features-section {
    background:
        linear-gradient(180deg, #f8f8f8 0%, #ffffff 50%, #f8f8f8 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

/* Premium Depth & Layering */
.navbar {
    position: relative;
    z-index: 1000;
}

.hero {
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
}

/* Ultra Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Performance Optimizations */
.product-card,
.store-card,
.btn {
    backface-visibility: hidden;
    transform: translateZ(0);
}
