:root {
    --bg-primary: #0a0a0c;
    --bg-glass: rgba(20, 20, 25, 0.7);
    --border-glass: rgba(255, 182, 193, 0.15);
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent-pink: #ff6b8b;
    --accent-rose: #ff8e9e;
    --gold: #f3e7c4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glow */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 15% 20%, rgba(255, 107, 139, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(243, 231, 196, 0.05) 0%, transparent 40%);
}

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

.heart {
    position: absolute;
    color: rgba(255, 107, 139, 0.15);
    animation: floatUp 12s infinite linear;
    font-size: 1.2rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% {
        transform: translateY(-10vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeIn 1.2s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 107, 139, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-rose);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-rose) 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Added standard property to clear the warning */
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 107, 139, 0.3);
}

/* Countdown Timer */
.countdown-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gold);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.time-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0.5rem;
    border-radius: 16px;
}

.time-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Letter Section */
.letter-content {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e2e6;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
    min-height: 120px;
    transition: opacity 0.3s ease;
}

.interactive-btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    background: linear-gradient(135deg, var(--accent-pink), #e05373);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 139, 0.4);
}

.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 139, 0.6);
}

/* Challenge Card & Dodge Button Styles */
.challenge-card {
    position: relative;
    min-height: 220px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    min-height: 60px;
}

.no-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    box-shadow: none;
    position: relative;
    transition: top 0.2s ease, left 0.2s ease;
}

.hidden-success {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

.success-message {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent-rose);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.video-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    max-width: 100%;
}

/* Gallery Grid */
.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

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

.photo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

.photo-placeholder span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.photo-placeholder p {
    font-size: 0.85rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

@media (max-width: 600px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 2rem 1rem;
    }
}


/* Password Lock Screen Styles */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lock-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 2rem;
}

.pin-display {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    letter-spacing: 12px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.pin-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.85rem 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-btn:hover {
    background: rgba(255, 107, 139, 0.2);
    border-color: rgba(255, 107, 139, 0.4);
    transform: translateY(-2px);
}

.clear-btn {
    color: var(--accent-pink);
}

.enter-btn {
    background: linear-gradient(135deg, var(--accent-pink), #e05373);
    color: white;
}

.lock-error {
    color: #ff6b8b;
    font-size: 0.85rem;
    margin-top: 1rem;
    min-height: 20px;
}



.profile-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--accent-pink));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mery-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 320px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold), var(--accent-pink));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin: 0;
}