:root {
    /* Color Palette */
    --soft-rose-gold: #f2d8d8;
    --rose-gold-light: #fdf5f5;
    --creamy-white: #fdfbf7;
    --deep-burgundy: #4a0e17;
    --burgundy-light: #6b1422;
    --gold-metallic: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-text: #d4af37;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--creamy-white);
    color: var(--deep-burgundy);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass-container {
    background: rgba(253, 251, 247, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(74, 14, 23, 0.1);
    padding: 2.5rem;
}

/* Typography styles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

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

/* 1. Top Section - Hero */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/romantic_couple_cover.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(74, 14, 23, 0.2), rgba(253, 251, 247, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeIn 2s ease-out;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    
    /* Gold Metallic Effect */
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.couple-names .ampersand {
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 400;
    margin: 0 0.5rem;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--deep-burgundy);
    margin-top: 1rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    color: var(--deep-burgundy);
    animation: bounce 2s infinite;
}

/* 2. Middle Section - Countdown */
.countdown-section {
    padding: 4rem 1.5rem;
    margin-top: -120px;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
}

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

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.time-box .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--burgundy-light);
    font-weight: 600;
}

/* 3. Music Player Section */
.soundtrack-section {
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
}

.player-container {
    width: 100%;
    max-width: 400px;
    background: rgba(242, 216, 216, 0.3); /* Soft rose gold tint */
}

.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.vinyl-record {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1a1a1a;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.vinyl-record.playing {
    animation-play-state: running;
}

.record-center {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-metallic);
    border: 3px solid #111;
    z-index: 2;
}

.record-grooves {
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 0 4px #1a1a1a, inset 0 0 0 5px rgba(255,255,255,0.05), inset 0 0 0 9px #1a1a1a, inset 0 0 0 10px rgba(255,255,255,0.05);
}

.song-details {
    flex: 1;
}

.song-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.2rem;
}

.artist {
    font-size: 0.9rem;
    color: var(--burgundy-light);
    opacity: 0.85;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--deep-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    color: var(--gold-text);
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-metallic);
    color: var(--creamy-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.play-btn:hover {
    color: var(--creamy-white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(74, 14, 23, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-metallic);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* 4. Bottom Section - Gallery (Masonry Grid) */
.gallery-section {
    padding: 3rem 1.5rem 5rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(74, 14, 23, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--soft-rose-gold);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(74, 14, 23, 0.25);
}

.grid-item.tall {
    grid-row: span 2;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .couple-names { font-size: 6rem; }
    .couple-names .ampersand { font-size: 4.5rem; }
    .timer { gap: 2rem; }
    .time-box .number { font-size: 3.5rem; }
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
        max-width: 900px;
    }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
