:root {
    --primary-color: #d4af37; /* Metallic Gold */
    --secondary-color: #f3e5ab; /* Champagne */
    --accent-color: #b8860b; /* Dark Goldenrod */
    --text-color: #e2e8f0; /* Light Gray */
    --bg-color: #0f172a; /* Slate 900 (Navy/Dark Blue) */
    --white: #ffffff;
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 0 rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

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

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* --- Countdown Screen --- */
#countdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #020617, #0f172a, #1e293b);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

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

.lock-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.time-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    color: var(--secondary-color);
}

/* --- Global Elements & Buttons --- */
.floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.floating-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}
.primary-btn:hover {
    background-color: var(--accent-color);
}
.pulse {
    animation: pulse 2.5s infinite;
}

/* --- Hero Section --- */
.full-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    background: rgba(15, 23, 42, 0.7);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.main-title {
    font-size: 4.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-height: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- Floating Ambient Items --- */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.ambient-particle {
    position: absolute;
    bottom: -10vh;
    animation: float linear infinite;
    opacity: 0.8;
}

/* --- Sections --- */
.section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.section-desc {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.5;
}
.timeline-item {
    padding: 10px 40px 40px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    top: 20px;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.timeline-content {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.timeline-content h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--secondary-color);}
.img-placeholder {
    width: 100%;
    height: 180px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.1);
}

.story-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s;
}
.story-img:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* --- Gallery --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}
.gallery-item .img-placeholder { margin: 0; height: 220px; border: none; }
.bg-light { background-color: rgba(255, 255, 255, 0.05); color: #94a3b8;}
.blurred {
    filter: blur(12px);
    background-color: #0f172a;
}
.overlay, .lock-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay {
    background: rgba(15, 23, 42, 0.8);
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:not(.locked):hover .overlay { opacity: 1; }
.lock-icon {
    font-size: 2.5rem;
    pointer-events: none;
    color: var(--primary-color);
}

/* --- "Who's More Likely To..." --- */
.switchboard-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.question-row {
    margin-bottom: 40px;
    text-align: center;
}
.question-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.label {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 80px;
}
/* Custom Slider */
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #1e293b;
    outline: none;
    opacity: 0.8;
    transition: opacity .2s;
}
.styled-slider:hover { opacity: 1; }
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
#compatibility-result {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}
#compatibility-result h3 { font-size: 2rem; margin-bottom: 10px;}

/* --- Gifts --- */
.gifts-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.gift-box {
    cursor: pointer;
    transition: transform 0.3s;
    width: 100px;
}
.gift-box:hover {
    animation: wiggle 0.6s infinite ease-in-out;
}
.gift-lid {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: -15px;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.gift-body {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.gift-body::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 100%;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}
#gift-modal .modal-content {
    background: var(--bg-color);
    padding: 50px 40px;
    text-align: center;
    border-radius: 12px;
    max-width: 450px;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
#gift-message {
    font-size: 1.4rem;
    margin-top: 25px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* --- Friends Wishes (Video) --- */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}


/* --- Secret Section --- */
#secret-lock {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 450px;
    margin: 0 auto;
}
#secret-password {
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    width: 80%;
    margin: 25px 0;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
    color: white;
}
#secret-password:focus { outline: none; border-color: var(--primary-color); }
.error { color: #ef4444; margin-top: 15px; font-size: 0.9rem; }

#secret-content .letter {
    background: #f8fafc;
    color: #1e293b;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 750px;
    margin: 0 auto;
    background-image: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-left: 5px solid var(--primary-color);
}
#secret-content .letter h3 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #0f172a;
}

/* Utils */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}
.close-modal:hover { color: var(--primary-color); }

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 3.5rem; }
    .subtitle { font-size: 1.4rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 23px !important; }
    #secret-content .letter { padding: 40px 25px; }
    .slider-wrapper { flex-direction: column; }
    .slider-wrapper .label { display: none; }
    .video-wrapper { padding: 10px; }

}
