/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.5);
    --accent-1: #a78bfa;
    --accent-2: #818cf8;
    --accent-3: #6366f1;
    --glow: rgba(139, 92, 246, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ===== ANIMATED BACKGROUND BLOBS ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    animation: float 12s ease-in-out infinite;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    bottom: -80px;
    right: -60px;
    animation-delay: -4s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #c084fc, #a78bfa);
    top: 50%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 35px) scale(1.02);
    }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
}

/* ===== GLASSMORPHISM CARD ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12),
        0 0 40px rgba(139, 92, 246, 0.06);
}

/* ===== CARD LABEL ===== */
.card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    background: rgba(167, 139, 250, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

/* ===== QUOTE ===== */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* ===== AUTHOR ===== */
.author {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
}

/* ===== BUTTON ===== */
button {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
    border: none;
    border-radius: 14px;
    padding: 0.9rem 2.2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

button::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

button span,
button {
    position: relative;
    z-index: 1;
}

button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px var(--glow);
}

button:hover::before {
    opacity: 1;
}

button:hover::after {
    opacity: 0.6;
}

button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 16px var(--glow);
}

/* ===== FOOTER TEXT ===== */
.footer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== CARD FADE ANIMATIONS ===== */
.card.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.card.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.25rem;
    }

    button {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }

    .blob-1 {
        width: 280px;
        height: 280px;
    }

    .blob-2 {
        width: 220px;
        height: 220px;
    }

    .blob-3 {
        width: 180px;
        height: 180px;
    }
}