/* ============================================
   NEXWAVE - 3D Landing Page Styles
   ============================================ */

/* Three.js Canvas Container */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#three-container canvas {
    display: block;
}

/* Landing Page Enhancements */
.page-landing {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero-landing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-landing-content {
    max-width: 900px;
    position: relative;
}

/* Animated Badge */
.hero-badge-animated {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--accent-primary);
    margin-bottom: var(--space-8);
    animation: badgePulse 3s ease-in-out infinite, fadeInDown 0.6s ease forwards;
    backdrop-filter: blur(10px);
}

.hero-badge-animated::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Main Title with Gradient Animation */
.hero-title-3d {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.05;
    margin-bottom: var(--space-6);
    color: #ffffff;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title-gradient {
    background: linear-gradient(135deg,
            #fff 0%,
            #6366f1 25%,
            #a855f7 50%,
            #ec4899 75%,
            #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Subtitle */
.hero-subtitle-3d {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto var(--space-10);
    line-height: var(--line-height-relaxed);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* CTA Buttons */
.hero-cta-3d {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Feature Cards with Glass Effect */
.features-grid-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.feature-card-3d {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card-3d:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 102, 241, 0.1);
}

.feature-card-3d:hover::before {
    opacity: 1;
}

.feature-icon-3d {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform var(--transition-base);
}

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

.feature-title-3d {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: #ffffff;
}

.feature-text-3d {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-8);
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-1);
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    animation: fadeInUp 0.8s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 1.2s, 1.5s;
    opacity: 0;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 16px;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid-3d {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stats-section {
        flex-wrap: wrap;
        gap: var(--space-8);
    }

    .hero-title-3d {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-subtitle-3d {
        font-size: var(--font-size-base);
    }

    .scroll-indicator {
        display: none;
    }
}