/* Modern CSS Reset & Custom Properties */
:root {
    --bg-dark: #070a13;
    --bg-dark-accent: #0f172a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Canvas styling */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto; /* Allow interaction */
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 480px;
    padding: 20px;
    perspective: 1000px;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        var(--glow-shadow);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 0 40px rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Badge */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    text-transform: uppercase;
    animation: pulseBadge 2s infinite ease-in-out;
}

/* Title & Glitch Effect */
.glitch-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

/* Subtitle and Dynamic Greetings */
.subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    min-height: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), rgba(255, 255, 255, 0.15), var(--glass-border));
    margin: 24px 0;
}

/* Description */
.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
}

/* Interactive Button */
.interactive-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    border: none;
    outline: none;
    padding: 16px 28px;
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    margin-top: 32px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.interactive-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

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

.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
}

.interactive-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.interactive-btn:hover .btn-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Animations */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.97);
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .glass-card {
        padding: 24px;
    }
    .glitch-title {
        font-size: 2.8rem;
    }
}
