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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #ff5252, #26a69a);
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
}

.card.flipped {
    background: white;
    color: #333;
    transform: rotateY(180deg);
}

.card.matched {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    animation: pulse 0.5s ease-in-out;
}

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

.birthday-message {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

.balloon-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.floating-balloon {
    position: absolute;
    font-size: 2.5rem;
    animation: balloonFloat 4s ease-out forwards;
    opacity: 0.9;
}

@keyframes balloonFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
        transform: translateY(90vh) translateX(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(30vh) translateX(var(--drift)) scale(1);
    }
    100% {
        transform: translateY(-20vh) translateX(var(--drift)) scale(0.8);
        opacity: 0;
    }
}

.balloon-string {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    border-radius: 1px;
}

.hearts {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.progress {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

.name-display {
    font-size: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin: 20px 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { text-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
}

.year-selector {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.year-display {
    font-size: 4rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    animation: yearGlow 2s ease-in-out infinite;
}

@keyframes yearGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slider-container {
    position: relative;
    margin: 20px 0;
}

.year-slider {
    width: 100%;
    height: 8px;
    border-radius: 50px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #ff6b6b 100%);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.year-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.year-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

@media (max-width: 600px) {
    .container { padding: 20px; }
    .title { font-size: 2rem; }
    .name-display { font-size: 2.2rem; }
    .memory-game { grid-template-columns: repeat(3, 1fr); }
}

/* Album Styles */
.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.album-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-in-out;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.album-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-photo img {
    transform: scale(1.05);
}

.album-caption {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    padding: 0 5px;
}

@media (max-width: 600px) {
    .album-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}