/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Lite Mode: White & Pink Professional Palette */
    --primary-pink: #ff85a2;    /* Soft Rose */
    --accent-pink: #f9a8d4;     /* Pastel Blush */
    --pearl-white: #ffffff;     /* Pure White */
    --soft-bg: #fff5f7;         /* Very faint pink tint */
    --text-main: #4a4a4a;       /* Elegant charcoal */
    --glass-white: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--soft-bg);
    color: var(--text-main);
    transition: background-color 0.6s ease, color 0.6s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. REUSABLE COMPONENTS
   ========================================= */
.ambient-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 133, 162, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-pink), var(--accent-pink));
    margin: 20px auto;
    border-radius: 10px;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    backdrop-filter: blur(8px);
    z-index: 100;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-initials {
    background: var(--primary-pink);
    color: white;
    padding: 6px 14px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.3);
}

.logo-full {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-left: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.theme-switch {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-pink);
    transition: transform 0.3s ease;
}

.theme-switch:hover { transform: scale(1.2); }

/* =========================================
   4. HERO SECTION & PROFILE PIC
   ========================================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.profile-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    animation: fadeInDown 1.2s ease-out;
}

.birthday-pic {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 15px 35px rgba(255, 133, 162, 0.25);
    transition: var(--transition);
}

.birthday-pic:hover { transform: scale(1.08); }

.date-stamp {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.75rem;
    color: var(--primary-pink);
    font-weight: 600;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    color: #333;
    margin: 1rem 0;
}

.name-accent {
    color: var(--primary-pink);
    font-style: italic;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #666;
}

/* =========================================
   5. INTERACTIVE CARDS & GRID
   ========================================= */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 10% 80px;
}

.glass-card {
    background: var(--glass-white);
    border: 1px solid rgba(255, 133, 162, 0.1);
    padding: 45px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 133, 162, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-12px);
    background: #ffffff;
    border: 1px solid var(--primary-pink);
    box-shadow: 0 20px 45px rgba(255, 133, 162, 0.15);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

/* =========================================
   6. MOMENTS PAGE SPECIFIC
   ========================================= */
.content-body {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(255, 133, 162, 0.1);
}

.moment-item {
    border-left: 3px solid var(--primary-pink);
    padding-left: 20px;
    margin-bottom: 40px;
}

.moment-date {
    color: var(--primary-pink);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.back-btn {
    text-decoration: none;
    color: var(--primary-pink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: 0.3s;
}

.back-btn:hover { transform: translateX(-5px); }

/* =========================================
   7. ANIMATIONS
   ========================================= */
.pink-heart-icon {
    color: var(--primary-pink);
    font-size: 0.7em;
    margin-left: 7px;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 70%, 100% { transform: scale(1); }
    14%, 42% { transform: scale(1.15); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   8. DARK MODE OVERRIDES
   ========================================= */
body.dark-mode {
    background-color: #1a1012;
    color: #fce7eb;
}

body.dark-mode .ambient-glow {
    background: radial-gradient(circle, rgba(255, 133, 162, 0.08) 0%, rgba(26, 16, 18, 0) 70%);
}

body.dark-mode .glass-card, 
body.dark-mode .content-body, 
body.dark-mode .paper-sheet,
body.dark-mode .polaroid {
    background: rgba(42, 27, 30, 0.9) !important;
    border: 1px solid rgba(255, 133, 162, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    color: #fce7eb;
}

body.dark-mode .main-title, 
body.dark-mode .logo-full,
body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode .birthday-pic {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode p, 
body.dark-mode .subtitle {
    color: #d1c1c4;
}

body.dark-mode .moment-item h3,
body.dark-mode .letter-content h4,
body.dark-mode .signature {
    color: var(--primary-pink);
}

/* =========================================
   9. FOOTER & RESPONSIVE
   ========================================= */
.minimal-footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.8rem;
    color: var(--primary-pink);
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .hero { padding: 40px 15px; }
    .birthday-pic { width: 140px; height: 140px; }
    .memory-grid { padding: 20px 5%; }
}