:root {
    --joy-yellow: #FFD700;
    --sadness-blue: #4169E1;
    --anger-red: #FF4500;
    --disgust-green: #32CD32;
    --fear-purple: #9370DB;
    --anxiety-orange: #FF8C00;
    --font-heading: 'Titan One', cursive;
    --font-body: 'Open Sans', sans-serif;
    --bg-dark: #1a1a2e;
}

body {
    background-color: #f0f4f8;
    color: #333;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Titan+One&family=Open+Sans:wght@400;600&display=swap');

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

h1.hero-title {
    font-size: 4rem;
    color: var(--joy-yellow);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--sadness-blue);
    position: relative;
    display: inline-block;
}

/* Components */
.memory-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--disgust-green);
    transition: transform 0.3s;
}

.memory-card:hover {
    transform: scale(1.02);
}

.memory-card.joy {
    border-color: var(--joy-yellow);
}

.memory-card.sadness {
    border-color: var(--sadness-blue);
}

.memory-card.anger {
    border-color: var(--anger-red);
}

.memory-card.fear {
    border-color: var(--fear-purple);
}

.icon-emotion {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Hero Animation - Memory Orbs */
.hero-wrapper {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    color: white;
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatOrb 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) translateX(0);
    }

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

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

/* Countdown */
.emotion-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 3rem;
}

.count-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.count-circle span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.count-circle small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Buttons */
.btn-emotion {
    background: var(--joy-yellow);
    color: #333;
    font-family: var(--font-heading);
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
}

.btn-emotion:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    color: #333;
    text-decoration: none;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.btn-music-pop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--anxiety-orange);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}