:root {
    --bg-color: #0b0c16;
    --card-bg: rgba(22, 24, 45, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --primary-grad: linear-gradient(135deg, #ff007f, #7928ca, #00d4ff);
    --neon-glow: 0 0 30px rgba(121, 40, 202, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: #00f0ff;
}

[data-theme="cyberpunk"] {
    --bg-color: #05050d;
    --card-bg: rgba(18, 14, 38, 0.75);
    --card-border: rgba(255, 0, 128, 0.3);
    --primary-grad: linear-gradient(135deg, #ffe600, #ff007f, #00f0ff);
    --neon-glow: 0 0 35px rgba(255, 0, 128, 0.7), 0 0 70px rgba(0, 240, 255, 0.4);
    --accent-glow: #ffe600;
}

[data-theme="aurora"] {
    --bg-color: #041315;
    --card-bg: rgba(6, 32, 38, 0.7);
    --card-border: rgba(56, 239, 125, 0.25);
    --primary-grad: linear-gradient(135deg, #38ef7d, #11998e, #00d2ff);
    --neon-glow: 0 0 35px rgba(56, 239, 125, 0.6), 0 0 70px rgba(0, 210, 255, 0.4);
    --accent-glow: #38ef7d;
}

[data-theme="sunset"] {
    --bg-color: #14070e;
    --card-bg: rgba(38, 12, 24, 0.7);
    --card-border: rgba(255, 94, 98, 0.25);
    --primary-grad: linear-gradient(135deg, #ff416c, #ff4b2b, #ffb199);
    --neon-glow: 0 0 35px rgba(255, 65, 108, 0.6), 0 0 70px rgba(255, 75, 43, 0.4);
    --accent-glow: #ff4b2b;
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: background-color 0.8s ease;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Background animated orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrb 12s infinite alternate ease-in-out;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ff007f 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7928ca 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -4s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -40px) scale(1.15);
    }
    100% {
        transform: translate(-40px, 50px) scale(0.9);
    }
}

/* Main Container */
.card-container {
    position: relative;
    z-index: 10;
    padding: 20px;
    perspective: 1000px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 48px 56px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--neon-glow);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    transform-style: preserve-3d;
    max-width: 680px;
    width: 100%;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Title & Letter Animations */
.title-container {
    margin: 12px 0 20px;
    overflow: visible;
}

.animated-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    user-select: none;
}

.letter {
    display: inline-block;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(60px) rotateX(-90deg) scale(0.5);
    animation: letterDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.letter.space {
    width: 0.35em;
}

.letter:hover {
    transform: translateY(-16px) scale(1.25) rotate(8deg);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

@keyframes letterDrop {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(-90deg) scale(0.5);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px) rotateX(10deg) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* Continuous floating shimmer */
.title-animated-floating {
    animation: floatTitle 4s ease-in-out infinite alternate;
}

@keyframes floatTitle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* Subtitle with Typewriter */
.subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    min-height: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor {
    display: inline-block;
    color: var(--accent-glow);
    animation: blink 0.9s infinite;
    font-weight: 700;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Action Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(121, 40, 202, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(121, 40, 202, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

@media (max-width: 640px) {
    .glass-card {
        padding: 32px 24px;
    }
    .actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
