/* ========================================
   CSS Variables for Theming
   ======================================== */
:root {
    /* Modern Color Palette - Better Readability */
    --primary-rose: #E91E63;
    --primary-purple: #9C27B0;
    --primary-indigo: #3F51B5;
    --accent-coral: #FF6B6B;
    --accent-teal: #4ECDC4;
    --accent-gold: #FFD93D;
    --soft-lavender: #B8A4C9;
    --soft-peach: #FFB4A2;
    
    /* Text Colors - High Contrast */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dark: #1a1a1a;
    
    /* Glass Effects - Darker for Better Contrast */
    --glass-bg: rgba(30, 30, 60, 0.4);
    --glass-bg-light: rgba(30, 30, 60, 0.5);
    --glass-bg-strong: rgba(30, 30, 60, 0.65);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-bright: rgba(255, 255, 255, 0.35);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --backdrop-blur: 25px;
    --backdrop-blur-heavy: 35px;
    
    /* Fonts - Stylish Yet Readable */
    --font-heading: 'Playfair Display', Georgia, serif; /* Elegant serif for titles */
    --font-script: 'Great Vibes', 'Brush Script MT', cursive; /* Stylish script for romantic text */
    --font-body: 'Cormorant Garamond', Georgia, serif; /* Readable serif for content */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Clean sans for UI elements */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(156, 39, 176, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(63, 81, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(78, 205, 196, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   Pre-loader Screen Styles
   ======================================== */
.preloader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #533483 50%, #e94560 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

.preloader-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.preloader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.entry-box {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    padding: var(--spacing-xl);
    border-radius: 30px;
    border: 2px solid var(--glass-border-bright);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: floatIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

@keyframes floatIn {
    0% {
        transform: translateY(-100px) scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) scale(1.05) rotate(2deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.entry-box h2 {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #4ECDC4, #E91E63, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 2px 8px rgba(78, 205, 196, 0.6));
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
}

.entry-box h2::after {
    content: '💕';
    position: absolute;
    right: -40px;
    top: 0;
    animation: heartBeat 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

@keyframes glow {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 105, 180, 0.5)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 105, 180, 0.8)); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.entry-box .hint {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.entry-box input {
    width: 100%;
    padding: var(--spacing-sm) 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border-bright);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    text-align: center;
    transition: all var(--transition-normal);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.entry-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.entry-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.entry-box button {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-purple), var(--accent-teal));
    background-size: 200% 200%;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.5);
    letter-spacing: 0.5px;
}

.entry-box button::before {
    content: '';
    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;
}

.entry-box button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.6);
    background-position: 100% 0;
}

.entry-box button:hover::before {
    left: 100%;
}

.entry-box button:active {
    transform: translateY(-1px) scale(0.98);
}

.error-msg {
    color: var(--text-primary);
    background: rgba(233, 30, 99, 0.4);
    border: 1px solid rgba(233, 30, 99, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    margin-top: var(--spacing-sm);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    animation: shake 0.5s;
    font-weight: 500;
}

.error-msg.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* ========================================
   Floating Hearts Animation
   ======================================== */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-hearts .heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: floatUp 8s infinite ease-in;
    filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.7));
}

.floating-hearts .heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    font-size: 2.5rem;
}

.floating-hearts .heart:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    font-size: 2rem;
}

.floating-hearts .heart:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

.floating-hearts .heart:nth-child(4) {
    left: 60%;
    animation-delay: 1s;
    font-size: 2.2rem;
}

.floating-hearts .heart:nth-child(5) {
    left: 75%;
    animation-delay: 3s;
    font-size: 2rem;
}

.floating-hearts .heart:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
    font-size: 1.5rem;
}

@keyframes floatUp {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(20px) rotate(360deg);
    }
}

/* ========================================
   Icon Styles
   ======================================== */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.4), rgba(156, 39, 176, 0.4));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.main-icon {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.9));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.7);
    }
}

.hint-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.input-wrapper {
    position: relative;
    margin-bottom: var(--spacing-sm);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.input-wrapper input {
    padding-left: 3rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform var(--transition-normal);
}

.entry-box button:hover .btn-icon {
    transform: translateX(5px);
}

.error-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

/* ========================================
   Particles Background
   ======================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   Confetti Canvas
   ======================================== */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    min-height: 100vh;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.main-content.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ========================================
   Navigation Bar (GLASSMORPHIC)
   ======================================== */
.birthday-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 300px;
    z-index: 2000;
    display: flex;
    gap: 1rem;
    transition: all var(--transition-normal);
    animation: navPulse 3s ease-in-out infinite;
}

body:not(.sidebar-active) .birthday-nav {
    left: 20px;
}

.birthday-nav.collapsed {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.nav-toggle {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 2px solid var(--glass-border-bright);
    border-top: none;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-toggle:hover {
    background: var(--glass-bg-light);
    transform: translateX(-50%) translateY(2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-teal);
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.6));
}

.birthday-nav.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.nav-container {
    padding: 1rem 0;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 1;
}

.birthday-nav.collapsed .nav-container {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.nav-title-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-teal);
    animation: pulse 2s ease-in-out infinite;
}

.nav-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(156, 39, 176, 0.25));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(78, 205, 196, 0.6);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.4), 0 0 20px rgba(78, 205, 196, 0.3);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform var(--transition-normal);
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

.nav-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active State */
.nav-btn.active {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(255, 20, 147, 0.3));
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.nav-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.5);
}

.nav-btn.active .nav-badge {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
    }
}

/* Locked State */
.nav-btn.locked {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.locked:hover {
    transform: none;
}

.nav-btn.locked .lock-icon {
    animation: lockShake 2s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.nav-btn.locked .nav-badge {
    background: rgba(255, 165, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

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

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

/* ========================================
   Hero Section (GLASSMORPHIC)
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3), transparent);
    bottom: 10%;
    right: 10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: heroFloatUp 12s infinite ease-in;
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.7));
}

.float-heart:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    font-size: 2.5rem;
}

.float-heart:nth-child(2) {
    left: 15%;
    animation-delay: 2s;
    font-size: 2rem;
}

.float-heart:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    font-size: 2.2rem;
}

.float-heart:nth-child(4) {
    left: 45%;
    animation-delay: 1s;
    font-size: 1.8rem;
}

.float-heart:nth-child(5) {
    left: 60%;
    animation-delay: 3s;
    font-size: 2.3rem;
}

.float-heart:nth-child(6) {
    left: 75%;
    animation-delay: 5s;
    font-size: 2rem;
}

.float-heart:nth-child(7) {
    left: 85%;
    animation-delay: 6s;
    font-size: 1.5rem;
}

.float-heart:nth-child(8) {
    left: 95%;
    animation-delay: 7s;
    font-size: 2.4rem;
}

@keyframes heroFloatUp {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(30px) rotate(720deg) scale(1);
    }
}

.hero-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-glass-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    padding: var(--spacing-xl);
    border-radius: 40px;
    border: 2px solid var(--glass-border);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(255, 105, 180, 0.2);
    text-align: center;
    animation: heroCardAppear 1s ease 0.5s both;
}

@keyframes heroCardAppear {
    0% {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.hero-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(255, 20, 147, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--glass-border);
    animation: heroIconPulse 3s ease-in-out infinite;
}

@keyframes heroIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 50px rgba(255, 105, 180, 0.6);
    }
}

.hero-main-icon {
    width: 50px;
    height: 50px;
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.9));
}

.hero-title {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--soft-peach), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInScale 0.8s ease 0.8s both;
}

.title-name {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose), var(--accent-coral), #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInScale 0.8s ease 1s both, gradientText 5s ease infinite;
    text-shadow: 0 0 40px rgba(255, 105, 180, 0.5);
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.subtitle-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-teal);
    animation: heartBeat 1.5s ease-in-out infinite;
}

.hero-cake-container {
    margin: var(--spacing-lg) 0;
    animation: fadeInUp 0.8s ease 1.4s both;
}

.cake-placeholder {
    font-size: 6rem;
    margin-bottom: var(--spacing-sm);
    animation: cakeBounce 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes cakeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.cake-text {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    margin-top: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 1.6s both;
}

.hero-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose), var(--accent-coral));
    background-size: 200% 200%;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn::before {
    content: '';
    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.6s;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.7);
    background-position: 100% 0;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-btn-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-normal);
}

.hero-btn:hover .hero-btn-icon {
    transform: translateY(3px);
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(3px);
    }
    50% {
        transform: translateY(8px);
    }
}

.content-wrapper {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Section Headers (Shared)
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease;
}

.section-icon {
    width: 60px;
    height: 60px;
    color: var(--new-accent);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.7));
    animation: pulse 2s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* ========================================
   A-Z Love Stories Section (GLASSMORPHIC)
   ======================================== */
.az-section {
    padding: var(--spacing-xl) 0;
    max-width: 1400px;
    margin: 0 auto;
}

.az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.az-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCard 0.6s ease forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.az-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.az-card:hover::before {
    left: 100%;
}

.az-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 
        0 12px 40px rgba(255, 105, 180, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.letter-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(255, 20, 147, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
    transition: all var(--transition-normal);
}

.az-card:hover .letter-badge {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    flex-grow: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.card-emoji {
    font-size: 2.5rem;
    text-align: center;
    margin-top: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: emojiFloat 3s ease-in-out infinite;
}

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

/* ========================================
   Journey Cards Section (GLASSMORPHIC)
   ======================================== */
.journey-section {
    padding: var(--spacing-xl) 0;
    max-width: 1400px;
    margin: 0 auto;
}

.journey-cards-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.journey-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCard 0.8s ease forwards;
}

.journey-card:nth-child(1) { animation-delay: 0.1s; }
.journey-card:nth-child(2) { animation-delay: 0.2s; }
.journey-card:nth-child(3) { animation-delay: 0.3s; }
.journey-card:nth-child(4) { animation-delay: 0.4s; }
.journey-card:nth-child(5) { animation-delay: 0.5s; }
.journey-card:nth-child(6) { animation-delay: 0.6s; }

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.journey-card:hover::before {
    left: 100%;
}

.journey-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--glass-border-bright);
    box-shadow: 
        0 12px 40px rgba(78, 205, 196, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.journey-card.special {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.journey-card.special:hover {
    box-shadow: 
        0 12px 40px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.journey-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(156, 39, 176, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    border: 2px solid var(--glass-border-bright);
    transition: all var(--transition-normal);
}

.journey-card.special .journey-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(233, 30, 99, 0.3));
    animation: specialGlow 2s ease-in-out infinite;
}

@keyframes specialGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.7);
    }
}

.journey-card:hover .journey-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.journey-icon {
    width: 35px;
    height: 35px;
    color: white;
    filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.8));
}

.journey-card.special .journey-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
}

.journey-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.journey-card.special .journey-card-title {
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-card-description {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.journey-emoji {
    font-size: 3rem;
    text-align: center;
    margin-top: var(--spacing-sm);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
    animation: emojiFloat 3s ease-in-out infinite;
}

.journey-card.special .journey-emoji {
    animation: emojiFloat 2s ease-in-out infinite, specialPulse 2s ease-in-out infinite;
}

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

/* ========================================
   Comfort Place Section (GLASSMORPHIC)
   ======================================== */
.comfort-section {
    padding: var(--spacing-xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.comfort-container {
    padding: 2rem;
}

.comfort-selector {
    margin-bottom: var(--spacing-lg);
}

.selector-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.selector-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--accent-teal);
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.6));
}

.emotion-dropdown {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 4rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

.emotion-dropdown:focus {
    outline: none;
    border-color: rgba(255, 105, 180, 0.6);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
    transform: translateY(-2px);
}

.emotion-dropdown:hover {
    border-color: rgba(255, 105, 180, 0.5);
    transform: translateY(-2px);
}

.emotion-dropdown option {
    background: rgba(139, 69, 139, 0.95);
    color: white;
    padding: 1rem;
    font-size: 1rem;
}

.dropdown-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 2;
}

.comfort-message {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-slow);
    max-width: 700px;
    margin: 0 auto;
}

.comfort-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.comfort-message.hidden {
    display: none;
}

.message-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: var(--spacing-lg);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: messageAppear 0.6s ease;
}

@keyframes messageAppear {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.message-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-teal);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

.message-content p {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   Expandable Love Letter (GLASSMORPHIC)
   ======================================== */
.letter-section {
    padding: var(--spacing-xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

.letter-container {
    padding: 2rem;
}

.letter-trigger {
    max-width: 400px;
    margin: 0 auto;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    position: relative;
    overflow: hidden;
}

.letter-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.letter-trigger:hover::before {
    left: 100%;
}

.letter-trigger:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.4);
}

.envelope-icon {
    margin-bottom: var(--spacing-sm);
}

.envelope {
    width: 60px;
    height: 60px;
    color: var(--accent-teal);
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6));
    animation: envelopeBob 2s ease-in-out infinite;
}

@keyframes envelopeBob {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.trigger-text {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
}

.letter-sparkles {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.letter-sparkles span {
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.letter-sparkles span:nth-child(1) {
    animation-delay: 0s;
}

.letter-sparkles span:nth-child(2) {
    animation-delay: 0.5s;
}

.letter-sparkles span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.letter-content {
    margin-top: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
    max-height: 0;
    overflow: hidden;
}

.letter-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
}

.letter-content.hidden {
    display: none;
}

.letter-paper {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--spacing-xl);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: letterUnfold 0.8s ease;
}

@keyframes letterUnfold {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

.letter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 105, 180, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-close:hover {
    background: rgba(255, 105, 180, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.close-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.letter-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.letter-date {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.letter-greeting {
    font-family: var(--font-script);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--soft-peach), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.letter-body {
    font-family: var(--font-script);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: var(--spacing-lg);
}

.letter-body p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.letter-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.letter-signature {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
}

.signature-name {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.letter-ps {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

.glass-container {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    padding: var(--spacing-xl);
    border-radius: 30px;
    border: 2px solid var(--glass-border);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.success-icon {
    width: 80px;
    height: 80px;
    color: #4ade80;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.6));
    animation: checkmark 0.8s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-message h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.success-message p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    animation: fadeInUp 0.6s ease 0.5s both;
}

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

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
    display: none !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .entry-box {
        padding: var(--spacing-md);
        max-width: 380px;
    }
    
    .entry-box h2 {
        font-size: 2rem;
    }

    .entry-box h2::after {
        right: -35px;
        font-size: 1.5rem;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .main-icon {
        width: 35px;
        height: 35px;
    }

    .success-message h1 {
        font-size: 2.5rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .floating-hearts .heart {
        font-size: 1.5rem;
    }

    .floating-hearts .heart:nth-child(1) {
        font-size: 2rem;
    }

    .floating-hearts .heart:nth-child(4) {
        font-size: 1.8rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .nav-btn {
        min-width: 150px;
        padding: 0.8rem 1rem;
    }

    .nav-text {
        font-size: 1rem;
    }

    .nav-toggle {
        width: 45px;
        height: 35px;
    }

    .toggle-icon {
        width: 20px;
        height: 20px;
    }

    /* Hero Section */
    .hero-section {
        padding: 6rem 1rem 3rem;
    }

    .hero-glass-card {
        padding: var(--spacing-md);
    }

    .hero-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .hero-main-icon {
        width: 40px;
        height: 40px;
    }

    .title-line {
        font-size: 2rem;
    }

    .title-name {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cake-placeholder {
        font-size: 4.5rem;
    }

    .hero-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .hero-gradient-orb {
        filter: blur(60px);
    }

    .orb-1, .orb-2 {
        width: 300px;
        height: 300px;
    }

    .orb-3 {
        width: 250px;
        height: 250px;
    }

    /* A-Z Section */
    .section-title {
        font-size: 2.5rem;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .az-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .az-card {
        padding: 1.5rem;
        min-height: 280px;
    }

    /* Journey Map */
    .world-map {
        height: 500px;
    }

    .marker-popup {
        width: 240px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .entry-box {
        padding: 1.5rem;
        max-width: 340px;
    }
    
    .entry-box h2 {
        font-size: 1.8rem;
    }

    .entry-box h2::after {
        right: -30px;
        font-size: 1.2rem;
    }
    
    .entry-box input,
    .entry-box button {
        font-size: 1rem;
    }

    .entry-box .hint {
        font-size: 0.85rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .main-icon {
        width: 30px;
        height: 30px;
    }

    .success-message h1 {
        font-size: 2rem;
    }

    .success-message p {
        font-size: 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .glass-container {
        padding: var(--spacing-md);
    }

    .nav-toggle {
        width: 40px;
        height: 30px;
    }

    .toggle-icon {
        width: 18px;
        height: 18px;
    }

    /* A-Z Section Mobile */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
    }

    .az-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .az-card {
        padding: 1.5rem;
        min-height: 260px;
    }

    .letter-badge {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .card-emoji {
        font-size: 2rem;
    }

    /* Journey Map Mobile */
    .world-map {
        height: 400px;
    }

    .marker-pin {
        width: 40px;
        height: 40px;
    }

    .pin-icon {
        width: 20px;
        height: 20px;
    }

    .marker-popup {
        width: 220px;
        padding: 1rem;
        bottom: 50px;
    }

    .popup-icon {
        width: 28px;
        height: 28px;
    }

    .popup-content h3 {
        font-size: 1.1rem;
    }

    .popup-content p {
        font-size: 0.85rem;
    }

    .popup-emoji {
        font-size: 1.5rem;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
