/* ===============================================
   ONLINE EARN SOLUTION - LUXURY THEME V2
   Premium 3D Purple & Gold Glassmorphism Design
   =============================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Purple & Gold Color Palette */
    --bg-primary: #0A0A0F;
    --bg-secondary: #1A1A2E;
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-nav: rgba(255, 255, 255, 0.08);
    --bg-glass-nav-scrolled: rgba(255, 255, 255, 0.12);
    --glass-blur: 20px;
    --glass-blur-intense: 25px;
    --accent-purple: #8B5CF6;
    --accent-gold: #F59E0B;
    --accent-pink: #EC4899;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --glass-border: rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
    --shadow-glow-gold: 0 0 20px rgba(245, 158, 11, 0.4);
    --gradient-primary: linear-gradient(135deg, #8B5CF6, #EC4899);
    --gradient-secondary: linear-gradient(135deg, #F59E0B, #8B5CF6);
    --gradient-gold: linear-gradient(135deg, #F59E0B, #FCD34D);
    --gradient-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(245, 158, 11, 0.1));
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Orbitron', monospace;
    --font-ui: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 3D Effects */
    --transform-3d: perspective(1000px) rotateX(0deg) rotateY(0deg);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.4);
    --glow-intensity: 0.8;
}

/* Base Body Styles */
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-top: 75px; /* Fixed header height */
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: backgroundFlow 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFlow {
    0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.7; transform: scale(1.1) rotate(120deg); }
    66% { opacity: 0.5; transform: scale(0.9) rotate(240deg); }
}

@keyframes glassGlow {
    0% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(139, 92, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 20px rgba(139, 92, 246, 0.1);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

h1 { 
    font-size: 3.5rem; 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2.8rem; 
    color: var(--accent-purple);
}

h3 { 
    font-size: 2.2rem; 
    color: var(--text-primary);
}

h4 { 
    font-size: 1.8rem; 
    color: var(--text-primary);
}

h5 { 
    font-size: 1.4rem; 
    color: var(--text-secondary);
}

h6 { 
    font-size: 1.2rem; 
    color: var(--text-secondary);
}

/* Luxury Glassmorphism Cards */
.luxury-card {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-3d);
}

.luxury-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.luxury-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        var(--shadow-3d),
        var(--shadow-glow);
    border-color: var(--accent-purple);
}

.luxury-card:hover::before {
    opacity: 1;
}

/* 3D Glass Cards */
.glass-card-3d {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-normal);
}

.glass-card-3d:hover {
    transform: translateY(-12px) rotateX(8deg) rotateY(8deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--accent-purple);
}

.glass-card-3d:hover::before {
    opacity: 1;
    box-shadow: 0 0 25px var(--accent-purple);
}

/* Luxury Buttons */
.btn-luxury {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--transition-slow);
}

.btn-luxury:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-luxury:hover::before {
    left: 100%;
}

.btn-luxury:active {
    transform: translateY(-1px) scale(1.02);
}

/* Gold Buttons */
.btn-gold {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-gold) !important;
    border: none;
    border-radius: var(--radius-full);
    color: #1F2937 !important;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(245, 158, 11, 0.6),
        0 0 40px rgba(245, 158, 11, 0.4);
}

/* Neon Buttons */
.btn-neon {
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    border: 2px solid var(--accent-purple);
    border-radius: var(--radius-full);
    color: var(--accent-purple);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn-neon:hover {
    color: white;
    box-shadow: 
        0 0 25px var(--accent-purple),
        0 0 50px var(--accent-purple),
        inset 0 0 25px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-neon:hover::before {
    width: 100%;
}

/* Primary Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4);
}

/* Secondary Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Form Elements */
.luxury-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(15px);
}

.luxury-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.2),
        0 0 25px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.luxury-input::placeholder {
    color: var(--text-muted);
}

/* Navigation Styles - Premium Glass Morphism Effect */
.navbar-luxury {
    background: var(--bg-glass-nav);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, all var(--transition-normal);
    padding: 15px 0;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-visible {
    transform: translateY(0);
}

.navbar-luxury.scrolled {
    background: var(--bg-glass-nav-scrolled);
    backdrop-filter: blur(var(--glass-blur-intense));
    -webkit-backdrop-filter: blur(var(--glass-blur-intense));
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-logo .brand-link:hover {
    transform: translateY(-2px);
}

.nav-logo .brand-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.nav-logo .brand-link:hover .brand-icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link-luxury {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.nav-link-luxury:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.cart-badge {
    background: var(--accent-purple);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cart-badge.show {
    display: inline-block;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-ui);
    font-weight: 500;
    background: transparent;
    margin-bottom: 4px;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    transform: translateX(5px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav-toggle:hover .bar {
    background: var(--accent-gold);
    box-shadow: 0 0 10px currentColor;
}

/* Hero Section */
.hero-luxury {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg);
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-text {
    margin-bottom: var(--spacing-xxl);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    animation: titleGlow 4s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes titleGlow {
    0% { filter: brightness(1) hue-rotate(0deg); }
    100% { filter: brightness(1.3) hue-rotate(20deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.hero-stats .stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.hero-stats .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.hero-stats .stat-content {
    flex: 1;
}

.hero-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.hero-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.product-card {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-12px) rotateX(8deg) rotateY(8deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-purple);
}

.product-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 25px var(--accent-purple);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto var(--spacing-lg);
    transition: all var(--transition-normal);
}

.product-card:hover .product-icon {
    transform: scale(1.15) rotateY(15deg);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    opacity: 1 !important;
    visibility: visible !important;
}

.product-description {
    color: var(--text-secondary) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    min-height: 60px;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.currency {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold) !important;
    font-weight: 600;
    opacity: 1 !important;
    visibility: visible !important;
}

.amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-product {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 3D Effects */
.transform-3d {
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.transform-3d:hover {
    transform: rotateX(8deg) rotateY(8deg) translateZ(25px);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

.float-animation {
    animation: float 7s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

.pulse-animation {
    animation: pulse 2.5s ease-in-out infinite;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.8); }
}

.glow-animation {
    animation: glow 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-luxury {
        top: 0;
        left: 0;
        right: 0;
        padding: 12px 0;
        border-radius: 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .brand-link {
        font-size: 1.2rem;
    }
    
    .nav-link-luxury {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .luxury-card {
        padding: var(--spacing-md);
    }
    
    .btn-luxury,
    .btn-neon,
    .btn-gold {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* Utility Classes */
.text-glow {
    text-shadow: 0 0 15px currentColor;
}

.border-glow {
    box-shadow: 0 0 25px currentColor;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ===============================================
   PRODUCT CARD VISIBILITY FIXES
   =============================================== */

/* Ensure all product cards are visible */
.product-card,
.product-card * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force text visibility in product cards */
.product-card .product-title,
.product-card .product-description,
.product-card .product-price,
.product-card .currency,
.product-card .amount {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force button visibility in product cards */
.product-card .btn-gold,
.product-card .btn-product,
.product-card button {
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--gradient-gold) !important;
    color: #1F2937 !important;
}

/* Ensure product grid items are properly displayed */
.product-grid .product-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix any potential z-index issues */
.product-card {
    z-index: 1 !important;
    position: relative !important;
}

/* Ensure product cards are visible by default (before JS loads) */
.product-card,
.glass-card-3d {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force all product card content to be visible */
.product-card *,
.glass-card-3d * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Specific fixes for product card elements */
.product-card .product-title,
.product-card .product-description,
.product-card .product-price,
.product-card .currency,
.product-card .amount,
.product-card .btn-gold,
.product-card button {
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

/* 3D Circle Product Display Styles */
.products-3d-container {
    position: relative;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
}

.products-3d-circle {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.products-3d-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-3d-controls .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.products-3d-controls .btn:hover {
    background: var(--gradient-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.products-3d-controls .btn-primary {
    background: var(--gradient-gold);
    color: #1F2937;
    border-color: var(--accent-gold);
}

.products-3d-controls .btn-primary:hover {
    background: linear-gradient(45deg, #F59E0B, #FFD700);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Ensure all glass-card variants are visible */
.glass-card,
.glass-card-3d,
.product-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.glass-card *,
.glass-card-3d *,
.product-card * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force visibility for all product elements */
.glass-card .product-title,
.glass-card .product-description,
.glass-card .product-price,
.glass-card button,
.glass-card-3d .product-title,
.glass-card-3d .product-description,
.glass-card-3d .product-price,
.glass-card-3d button {
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--text-primary) !important;
}

/* Futuristic Fallback CSS-only 3D effect with product cards */
.products-3d-circle.fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    perspective: 1000px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 240, 0.2);
    backdrop-filter: blur(20px);
}

.products-3d-circle.fallback .fallback-product-card {
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 240, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    animation: float3D 3s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 240, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.products-3d-circle.fallback .fallback-product-card:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.products-3d-circle.fallback .fallback-product-card:nth-child(2) {
    animation-delay: 0.5s;
}

.products-3d-circle.fallback .fallback-product-card:nth-child(3) {
    animation-delay: 1s;
}

.products-3d-circle.fallback .fallback-product-card:nth-child(4) {
    animation-delay: 1.5s;
}

.products-3d-circle.fallback .fallback-product-card:nth-child(5) {
    animation-delay: 2s;
}

.products-3d-circle.fallback .fallback-product-card:nth-child(6) {
    animation-delay: 2.5s;
}

.fallback-card-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.fallback-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.fallback-card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.fallback-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.3;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.fallback-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fallback-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fallback-btn-buy {
    background: linear-gradient(90deg, #00FFF0, #FF00A8);
    color: #0D0D1A;
    font-weight: 600;
}

.fallback-btn-buy:hover {
    background: linear-gradient(90deg, #FF00A8, #00FFF0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 240, 0.4);
}

.fallback-btn-cart {
    background: rgba(0, 255, 240, 0.1);
    color: #00FFF0;
    border: 1px solid rgba(0, 255, 240, 0.3);
    font-weight: 600;
}

.fallback-btn-cart:hover {
    background: rgba(0, 255, 240, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 240, 0.4);
}

.fallback-btn-wishlist {
    background: rgba(255, 0, 168, 0.1);
    color: #FF00A8;
    border: 1px solid rgba(255, 0, 168, 0.3);
    font-weight: 600;
}

.fallback-btn-wishlist:hover {
    background: rgba(255, 0, 168, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 168, 0.4);
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        color: var(--accent-purple);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-gold);
    }
}

/* Responsive 3D container */
@media (max-width: 768px) {
    .products-3d-container {
        margin: 2rem 0;
        padding: 1rem;
    }
    
    .products-3d-circle {
        height: 300px;
    }
    
    .products-3d-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .products-3d-controls .btn {
        width: 200px;
    }
    
    .products-3d-circle.fallback .fallback-product-card {
        width: 150px;
        height: 200px;
        padding: 1rem;
    }
    
    .fallback-card-icon {
        font-size: 1.5rem;
    }
    
    .fallback-card-title {
        font-size: 1rem;
    }
    
    .fallback-card-price {
        font-size: 1.1rem;
    }
    
    .fallback-card-description {
        font-size: 0.8rem;
    }
    
    .fallback-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

/* ========================================
   MOBILE MENU TOGGLE & RESPONSIVE NAVIGATION
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: relative;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.mobile-menu-toggle:hover span {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Tablet & Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
    /* Show mobile menu toggle on tablet and smaller */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hide desktop nav menu items */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(25px);
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Style nav links for mobile */
    .nav-menu .nav-link-luxury {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .nav-menu .nav-link-luxury:hover {
        background: rgba(139, 92, 246, 0.15);
        border-left: 3px solid var(--accent-purple);
        padding-left: calc(1.5rem - 3px);
    }
    
    .nav-menu .nav-link-luxury i {
        font-size: 1.3rem;
        min-width: 24px;
    }
    
    .nav-menu .nav-link-luxury span {
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Dropdown Styles for Mobile */
    .nav-menu .dropdown {
        width: 100%;
    }
    
    .nav-menu .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .nav-menu .dropdown-item {
        padding: 0.8rem 1.5rem 0.8rem 3rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    }
    
    .nav-menu .dropdown-item:hover {
        background: rgba(139, 92, 246, 0.1);
        padding-left: calc(3rem - 3px);
        border-left: 3px solid var(--accent-pink);
    }
    
    .nav-menu .dropdown-divider {
        margin: 0.5rem 1.5rem;
        border-color: rgba(139, 92, 246, 0.2);
    }
    
    /* Cart Count Badge Mobile Adjustment */
    .nav-menu .cart-count {
        position: absolute;
        top: 0.75rem;
        right: 1.5rem;
        left: auto;
    }
    
    /* Button Styles for Mobile Nav */
    .nav-menu .btn-luxury {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
        justify-content: center;
    }
    
    /* Mobile Overlay for Nav */
    .mobile-menu-toggle.active::after {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smaller Tablet Adjustments */
@media screen and (max-width: 768px) {
    .nav-menu {
        width: 260px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
}

/* Mobile Phone Adjustments */
@media screen and (max-width: 480px) {
    .nav-menu {
        width: 100%;
        max-width: 100vw;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }
    
    .mobile-menu-toggle span {
        height: 2.5px;
    }
}

/* Landscape Mobile Adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1rem 0;
    }
    
    .nav-menu .nav-link-luxury {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-menu .dropdown-item {
        padding: 0.6rem 1.5rem 0.6rem 3rem;
    }
}
