/* 3D Luxury Homepage Styles - Online Earn Solution */

/* Import Futuristic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for 3D Theme */
:root {
    /* Dark Futuristic Background */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    
    /* Neon Accent Colors */
    --neon-cyan: #00FFF0;
    --neon-magenta: #FF00A8;
    --neon-blue: #0080FF;
    --neon-purple: #8000FF;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: rgba(0, 255, 240, 0.3);
    
    /* Text Colors */
    --text-primary: #E0E0E0;
    --text-secondary: #B8B8B8;
    --text-muted: #888;
    
    /* Shadows & Glows */
    --shadow-neon: 0 0 20px rgba(0, 255, 240, 0.5);
    --shadow-magenta: 0 0 20px rgba(255, 0, 168, 0.5);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.8);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00FFF0, #FF00A8);
    --gradient-secondary: linear-gradient(135deg, #0080FF, #8000FF);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section 3D */
.hero-3d {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 255, 240, 0.1) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-text {
    margin-bottom: 3rem;
}

/* 3D Title with Glow Effect */
.hero-title {
    position: relative;
    font-family: 'Montserrat', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 240, 0.8);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.title-main {
    position: relative;
    z-index: 2;
    display: block;
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 1;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Neon Buttons */
.btn-neon {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.btn-neon.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.btn-neon.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 240, 0.3);
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 240, 0.6);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    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 ease;
}

.btn-neon:hover .btn-glow {
    left: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-deep);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 240, 0.3);
}

.stat-number {
    font-family: 'Montserrat', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    font-family: 'Montserrat', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    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);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 3D Glass Cards */
.glass-card-3d {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-deep);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.glass-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glass-card-3d:hover::before {
    opacity: 1;
}

.glass-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 255, 240, 0.3);
    border-color: var(--neon-cyan);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glass-card-3d:hover .card-glow {
    opacity: 0.3;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    position: relative;
    z-index: 2;
    text-align: center;
}

.product-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 240, 0.6);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.2) rotateY(180deg);
    color: var(--neon-magenta);
    text-shadow: 0 0 30px rgba(255, 0, 168, 0.8);
}

.product-title {
    font-family: 'Montserrat', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', monospace;
    font-size: 1.8rem;
    font-weight: 700;
}

.currency {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 240, 0.6);
}

.amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-product {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    position: relative;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 0, 168, 0.6);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.3) rotateZ(360deg);
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 255, 240, 0.8);
}

.feature-title {
    font-family: 'Montserrat', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: radial-gradient(ellipse at center, rgba(255, 0, 168, 0.1) 0%, var(--bg-primary) 70%);
    padding: 6rem 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Montserrat', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.products-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.features-section {
    background: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        width: 200px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-neon {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .glass-card-3d {
        padding: 1.5rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection */
::selection {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

/* Focus States */
.btn-neon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 240, 0.3);
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    animation: ripple 0.6s linear;
}

/* Performance Optimizations */
.glass-card-3d {
    will-change: transform;
}

.btn-neon {
    will-change: transform, box-shadow;
}

.hero-title {
    will-change: transform;
}

/* Additional 3D Effects */
.glass-card-3d:hover .product-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Neon Text Glow */
.neon-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

/* 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(0, 255, 240, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}
