:root {
    --bg-color: #faf7f5;
    --text-primary: #2c2424;
    --text-secondary: #7a6e6e;
    --accent: #d4a373;
    --blush: rgba(245, 219, 212, 0.45);
    --gold: rgba(235, 203, 140, 0.35);
    --white-glass: rgba(255, 255, 255, 0.75);
    --heart-red: #ff4b4b;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: 75px; /* Space for sticky header */
    padding-bottom: 85px; /* Space for fixed footer */
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--white-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.glass-blush {
    background: var(--blush);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(230, 190, 180, 0.12);
}

/* Header & Footer */
.sticky-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sticky-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.heartbeat-icon {
    color: var(--heart-red);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
}

.fixed-footer {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: none;
}

.fixed-footer p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Gallery & Cards */
#gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px;
    gap: 45px;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
    position: relative;
    /* Framer Motion Style Initial State */
    opacity: 0;
    transform: translateY(45px);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card.visible {
    /* Framer Motion Style Animated State */
    opacity: 1;
    transform: translateY(0);
}

.img-wrapper {
    width: 100%;
    /* Fixed Aspect Ratio prevents alignment issues */
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.img-wrapper:hover img {
    transform: scale(1.04);
}

.date-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Interactions */
.interaction-bar {
    padding: 16px 8px 8px;
    display: flex;
    align-items: center;
}

.heart-btn {
    background: none;
    border: none;
    font-size: 1.9rem;
    color: #e2d8d8;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.heart-btn.liked {
    color: var(--heart-red);
    animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Babu's Note */
.note-container {
    margin-top: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    position: relative;
}

.note-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    font-style: italic;
}

.note-text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-primary);
}

/* Zoom Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(20, 15, 15, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.4);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #f1f1f1;
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--accent); }
