/* ============================================
   BIRTHDAY WEBSITE - CUTE & AESTHETIC THEME
   ============================================ */

/* CSS Variables - Pastel Color Palette */
:root {
    /* Primary Colors */
    --color-primary: #FF9A9E;
    --color-primary-light: #FECFEF;
    --color-primary-dark: #F68084;
    
    /* Secondary Colors */
    --color-secondary: #A8EDEA;
    --color-secondary-light: #FED6E3;
    --color-secondary-dark: #7FD3D3;
    
    /* Accent Colors */
    --color-accent-1: #FFD1FF;
    --color-accent-2: #FBC2EB;
    --color-accent-3: #A6C1EE;
    --color-accent-4: #C2E9FB;
    
    /* Background Colors */
    --bg-gradient-start: #FFF5F7;
    --bg-gradient-mid: #F0F8FF;
    --bg-gradient-end: #FFF0F5;
    
    /* Text Colors */
    --text-primary: #4A4A6A;
    --text-secondary: #6B6B8B;
    --text-light: #9A9AB0;
    --text-white: #FFFFFF;
    
    /* Card Colors */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 8px 32px rgba(255, 154, 158, 0.15);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float-shape 20s infinite ease-in-out;
    filter: blur(0.5px);
}

.shape-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 15%; animation-delay: 3s; }
.shape-3 { top: 60%; left: 5%; animation-delay: 6s; }
.shape-4 { bottom: 20%; right: 10%; animation-delay: 9s; }
.shape-5 { top: 40%; right: 30%; animation-delay: 12s; }
.shape-6 { bottom: 30%; left: 20%; animation-delay: 15s; }

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-30px) rotate(5deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(-5deg); opacity: 0.4; }
    75% { transform: translateY(-40px) rotate(3deg); opacity: 0.5; }
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orb-pulse 15s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-2));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent-3));
    bottom: 20%;
    left: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-4));
    top: 40%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ============================================
   BALLOONS
   ============================================ */
.balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: balloon-float 15s infinite linear;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes balloon-float {
    0% {
        transform: translateY(100vh) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(5deg);
        opacity: 0;
    }
}

/* ============================================
   CONFETTI & HEARTS
   ============================================ */
.confetti-container,
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti-piece,
.heart-piece {
    position: absolute;
    animation: fall linear forwards;
}

.confetti-piece {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.heart-piece {
    font-size: 1.5rem;
    animation: heart-fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes heart-fall {
    0% {
        transform: translateY(-10vh) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) scale(1.2);
    }
    100% {
        transform: translateY(110vh) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   MUSIC TOGGLE
   ============================================ */
.music-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.music-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 154, 158, 0.25);
}

.music-toggle.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-white);
}

.music-icon {
    font-size: 1.25rem;
    animation: music-pulse 2s infinite;
}

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

.music-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--section-padding) 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: hero-entrance 1.2s ease-out;
}

@keyframes hero-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-2));
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: badge-glow 3s infinite ease-in-out;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 154, 158, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 154, 158, 0.6); }
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -1px;
    animation: title-reveal 1s ease-out 0.3s both;
}

.title-name {
    display: block;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin: 0.5rem 0;
    animation: title-reveal 1s ease-out 0.5s both;
}

.title-emoji {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 1rem;
    animation: emoji-bounce 2s infinite ease-in-out;
}

@keyframes title-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
    animation: fade-in 1s ease-out 0.7s both;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    animation: fade-in 1s ease-out 1s both;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: scroll-bounce 2s infinite;
}

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2.5rem;
    animation: float-around 8s infinite ease-in-out;
    opacity: 0.7;
}

.float-1 { top: 20%; left: 10%; animation-delay: 0s; }
.float-2 { top: 30%; right: 15%; animation-delay: 1.5s; }
.float-3 { bottom: 30%; left: 20%; animation-delay: 3s; }
.float-4 { bottom: 20%; right: 10%; animation-delay: 4.5s; }
.float-5 { top: 50%; left: 5%; animation-delay: 6s; }

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -30px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */
.countdown-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.countdown-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    min-width: 120px;
    text-align: center;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 154, 158, 0.2);
}

.count-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.count-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-date {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 2rem;
}

/* ============================================
   MESSAGE SECTION
   ============================================ */
.message-section {
    padding: var(--section-padding) 0;
}

.message-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.message-header {
    text-align: center;
    margin-bottom: 2rem;
}

.message-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: icon-float 3s infinite ease-in-out;
}

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

.message-content {
    text-align: center;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.message-text.highlight {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-2));
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.message-signature {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.message-signature span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.signature-name {
    font-family: var(--font-display);
    font-size: 1.5rem !important;
    color: var(--color-primary-dark) !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

.message-decoration {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    opacity: 0.5;
}

.deco-item {
    font-size: 1.5rem;
    animation: deco-float 4s infinite ease-in-out;
}

.deco-item:nth-child(2) { animation-delay: 1s; }
.deco-item:nth-child(3) { animation-delay: 2s; }

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

/* ============================================
   MEMORIES SECTION
   ============================================ */
.memories-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.memory-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 50px rgba(255, 154, 158, 0.25);
}

.memory-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.memory-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
}

.memory-1 .memory-placeholder { background: linear-gradient(135deg, #FFD1A9, #FBC2EB); }
.memory-2 .memory-placeholder { background: linear-gradient(135deg, #A8EDEA, #FED6E3); }
.memory-3 .memory-placeholder { background: linear-gradient(135deg, #FBC2EB, #A6C1EE); }
.memory-4 .memory-placeholder { background: linear-gradient(135deg, #C2E9FB, #A8EDEA); }
.memory-5 .memory-placeholder { background: linear-gradient(135deg, #FED6E3, #FFD1FF); }
.memory-6 .memory-placeholder { background: linear-gradient(135deg, #A6C1EE, #FBC2EB); }

.memory-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: memory-bounce 3s infinite ease-in-out;
}

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

.memory-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-content {
    padding: 1.5rem;
}

.memory-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.memory-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   SURPRISE SECTION
   ============================================ */
.surprise-section {
    padding: var(--section-padding) 0;
    text-align: center;
}

.surprise-content {
    max-width: 600px;
    margin: 0 auto;
}

.surprise-button {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    margin: 2rem 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
}

.surprise-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.6);
}

.surprise-button:active {
    transform: scale(0.98);
}

.surprise-btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.surprise-button:hover .surprise-btn-glow {
    left: 100%;
}

/* Hidden Message */
.hidden-message {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.hidden-message.revealed {
    max-height: 1000px;
    opacity: 1;
}

.message-reveal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    animation: reveal-pop 0.6s ease-out;
}

@keyframes reveal-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal-header {
    margin-bottom: 1.5rem;
}

.reveal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: icon-spin 2s ease-out;
}

@keyframes icon-spin {
    0% { transform: rotate(-180deg) scale(0); }
    100% { transform: rotate(0) scale(1); }
}

.reveal-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
}

.reveal-content {
    text-align: center;
}

.reveal-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.reveal-quote {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-primary-dark);
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-2));
    border-radius: 15px;
    margin: 1.5rem 0;
}

.reveal-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.reveal-hearts span {
    animation: heart-beat 1.5s infinite ease-in-out;
}

.reveal-hearts span:nth-child(2) { animation-delay: 0.2s; }
.reveal-hearts span:nth-child(3) { animation-delay: 0.4s; }
.reveal-hearts span:nth-child(4) { animation-delay: 0.6s; }
.reveal-hearts span:nth-child(5) { animation-delay: 0.8s; }

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-year {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }
    
    .music-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .music-text {
        display: none;
    }
    
    .hero-section {
        padding: 6rem 1rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1rem;
        min-width: 80px;
    }
    
    .count-number {
        font-size: 2rem;
    }
    
    .message-card {
        padding: 2rem 1.5rem;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .surprise-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown-item {
        min-width: auto;
    }
    
    .title-name {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 1.75rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--color-primary-light);
    color: var(--text-primary);
}