/* ============================================
   CUSTOM VARIABLES - ESTETIKA BARU
   ============================================ */
:root {
    /* Rose Gold & Midnight Theme */
    --primary-rose: #E0B0B6;
    --primary-gold: #D4AF37;
    --deep-purple: #2D1B36;
    --dark-bg: #12081C;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #F8F5F2;
    --text-muted: #B8A8C0;
    --accent-glow: #FFD1DC;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ANIMATED BACKGROUND (Refined Stars)
   ============================================ */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%23E0B0B6" opacity="0.6"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="%23D4AF37" opacity="0.4"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2000px);
    }
}

/* ============================================
   NAVIGATION BAR (Glassmorphism)
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(20, 10, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Theme Override for Gallery Navigation */
.glass-nav {
    max-width: 1100px;
    background: rgba(20, 10, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(224, 176, 182, 0.05);
    padding: 10px 40px;
    top: 30px;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.4s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(224, 176, 182, 0.1);
    color: var(--primary-rose);
    box-shadow: 0 0 15px rgba(224, 176, 182, 0.1);
}

.nav-item .icon {
    font-size: 16px;
}

/* Hamburger for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary-rose);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    z-index: 1;
    overflow: hidden;
}

/* Glow Effect Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 176, 182, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
    font-size: 90px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #E0B0B6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -2px;
    /* Efek bayangan halus */
    filter: drop-shadow(0 0 15px rgba(224, 176, 182, 0.3));
}

.hero-name {
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.hero-name h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-gold);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 40px;
    background: rgba(20, 10, 30, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50px;
}

/* Floating Photos Improved */
.floating-photos {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-photo {
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    /* Gold Border Frame */
    border: 4px solid var(--primary-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    position: absolute;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.photo-1 {
    right: 15%;
    top: 30%;
    transform: rotate(6deg);
    animation: float 8s ease-in-out infinite;
}

.photo-2 {
    left: 15%;
    bottom: 25%;
    transform: rotate(-6deg);
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(6deg);
    }

    50% {
        transform: translateY(-25px) rotate(8deg);
    }
}

.heart-photo-wrapper {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: floatHeart 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(224, 176, 182, 0.5));
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-50%) translateY(-20px) scale(1.05);
    }
}

.heart-svg {
    overflow: visible;
}


/* ============================================
   DISTINCT SECTION THEMES (Romantic Gradients)
   ============================================ */
/* Hero: Deep Purple & Rose Gold (Already set in defaults) */

/* Journey: Soft Lavender & Midnight */
.journey-section {
    padding: 120px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #241235 100%);
    position: relative;
    z-index: 1;
}

/* Letters: Warm Pink & Peach (Romance) */
.letters-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #241235 0%, #3a1c31 100%);
    position: relative;
    z-index: 1;
}

/* Gallery: Sunset Orange & Gold (Warmth - Matching Reference) */
.gallery-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #3a1c31 0%, #301726 100%);
    position: relative;
    z-index: 1;
}

/* Photo Booth: Soft Periwinkle (Cool down) */
.photobooth-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #301726 0%, var(--dark-bg) 100%);
    position: relative;
    z-index: 1;
}

/* ============================================
   NEW MODERN GALLERY CARDS (Reference Style)
   ============================================ */
.gallery-card {
    background: rgba(255, 255, 255, 0.05);
    /* Base glass */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Change from fixed height to auto for flexibility */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Special Glass Style for Gallery (Orange/Peach Gradient) */
.glass-card-orange {
    background: linear-gradient(135deg,
            rgba(255, 160, 122, 0.1),
            /* Light Salmon */
            rgba(255, 107, 157, 0.05)
            /* Pink */
        );
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 160, 122, 0.5);
}

.card-image {
    /* Make image area square aspect ratio */
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.card-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 8px;
    opacity: 0.8;
}

.gallery-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.gallery-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ============================================
   NEW SQUARE MEMORIES PREVIEW
   ============================================ */
.memories-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 60px 0 40px;
    flex-wrap: wrap;
}

.preview-frame {
    display: block;
    width: 250px;
    height: 250px;
    position: relative;
    border-radius: 20px;
    transition: all 0.5s ease;
    text-decoration: none;
    z-index: 1;
}

/* Floating Animation for Preview (Simple) */
@keyframes floatSimple {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.preview-frame {
    animation: floatSimple 4s ease-in-out infinite;
}

.preview-frame:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Center Frame Styling */
.preview-frame.center {
    width: 280px;
    height: 280px;
    z-index: 2;
}

.frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.preview-frame:hover .frame-inner {
    border-color: var(--primary-rose);
    box-shadow: 0 20px 50px rgba(224, 176, 182, 0.5);
}

.frame-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.preview-frame:hover img {
    transform: scale(1.1);
}


/* ============================================
   MEMORIES PAGE - FLOATING GALLERY
   ============================================ */
/* Randomized Floating Animations for Gallery */
@keyframes float1 {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(-2deg);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }

    50% {
        transform: translateY(-8px) rotate(0deg);
    }
}

.gallery-card {
    background: transparent;
    border-radius: 15px;
    /* Slightly smaller radius for smaller cards */
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
    border: none;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Persegi (Square) as requested */
    margin-bottom: 0;
    /* Remove bottom margin to let grid gap handle spacing */
}

/* Specific Grid for Memories Page - Smaller & Tighter */
#fullGallery {
    display: grid;
    /* 4 items per row on desktop, automatic wrapping */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    /* Tighter gap */
    padding-bottom: 80px;
    margin-top: 20px;
}

/* Apply randomized animations to gallery cards */
.memories-page .gallery-card:nth-child(4n+1) {
    animation: float1 4s ease-in-out infinite;
}

.memories-page .gallery-card:nth-child(4n+2) {
    animation: float2 5s ease-in-out infinite;
}

.memories-page .gallery-card:nth-child(4n+3) {
    animation: float3 4.5s ease-in-out infinite;
}

.memories-page .gallery-card:nth-child(4n+4) {
    animation: float4 5.5s ease-in-out infinite;
}

.memories-page .gallery-card:nth-child(odd) {
    animation-delay: 0.5s;
}

.memories-page .gallery-card:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Lighter shadow for smaller items */
}

.gallery-card:hover .card-image {
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.1);
}

/* Hide text content for this pure photo grid style if simple */
.card-content {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .preview-frame {
        width: 100px;
        height: 100px;
    }

    .preview-frame.center {
        width: 120px;
        height: 120px;
    }

    .memories-preview {
        gap: 15px;
    }
}

.view-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    opacity: 0;
    transition: 0.4s;
    background: rgba(45, 27, 54, 0.6);
    /* Romantic dark overlay */
    backdrop-filter: blur(3px);
}

.preview-frame:hover .view-text {
    opacity: 1;
}

/* Glass shine effect */
.frame-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.click-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 30px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .memories-preview {
        gap: 15px;
    }

    .preview-frame {
        width: 100px;
        height: 100px;
    }
}


/* Memories Page Specifics - ENHANCED AESTHETICS */
.memories-page {
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(224, 176, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

.page-header {
    padding: 160px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(224, 176, 182, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23E0B0B6" opacity="0.2"/></svg>') repeat;
    opacity: 0.5;
    mask-image: radial-gradient(circle, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black, transparent 80%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.hero-title.small {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #fff 10%, var(--primary-rose) 50%, var(--primary-gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(224, 176, 182, 0.5));
    animation: fadeUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: -2px;
}

.glass-nav {
    border-radius: 50px;
    top: 20px;
    width: 90%;
    max-width: 1000px;
    background: rgba(20, 10, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Gallery Card Styles for Memories Page */
.memories-page .gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.memories-page .gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(224, 176, 182, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.memories-page .gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(224, 176, 182, 0.2);
    border-color: rgba(224, 176, 182, 0.4);
    z-index: 10;
}

.memories-page .gallery-card:hover::before {
    opacity: 1;
}

.memories-page .gallery-card .card-image {
    border: none;
    box-shadow: none;
    border-radius: 0;
    height: 100%;
    transform: scale(1.01);
    /* Fix hairline gap */
}

/* Override existing animation styles if needed to be smoother */
.memories-page .gallery-card:nth-child(even) {
    margin-top: 30px;
    /* Staggered grid effect */
}

/* ============================================
   JOURNEY SECTION - TIMER
   ============================================ */
.section-title {
    font-size: 56px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-rose);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.timer-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 20px;
    min-width: 140px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-rose);
    box-shadow: 0 10px 30px rgba(224, 176, 182, 0.1);
}

/* Shine effect on hover */
.timer-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}


/* ============================================
   MOUSE TRAIL ANIMATION
   ============================================ */
.trail-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    animation: floatTrail 1s ease-out forwards;
    opacity: 0;
}

@keyframes floatTrail {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   FALLING PETALS ANIMATION
   ============================================ */
.petal {
    position: fixed;
    top: -10px;
    width: 15px;
    height: 15px;
    background: linear-gradient(to bottom right, #ffb7b2, #ff9e99);
    border-radius: 15px 0 15px 0;
    opacity: 0.8;
    z-index: 0;
    /* Behind content */
    pointer-events: none;
    animation: fall linear forwards;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   FLOATING MUSIC BUTTON
   ============================================ */
.music-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-rose);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-float-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(224, 176, 182, 0.4);
}

/* Pulse animation when playing */
.music-float-btn.playing {
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 176, 182, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(224, 176, 182, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(224, 176, 182, 0);
    }
}

/* ============================================
   TIMER TITLE TYPOGRAPHY
   ============================================ */
.timer-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 28px;
    color: var(--primary-gold);
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative lines */
.timer-title::before,
.timer-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-rose));
}

.timer-title::before {
    right: 100%;
    margin-right: 20px;
}

.timer-title::after {
    left: 100%;
    margin-left: 20px;
}

.timer-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    background: linear-gradient(135deg, var(--primary-rose), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-top: 5px;
}

/* Days Alive */
.days-alive {
    text-align: center;
    margin-top: 80px;
}

.days-alive h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.days-counter {
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    color: var(--primary-rose);
    line-height: 1;
    text-shadow: 0 0 30px rgba(224, 176, 182, 0.3);
}

/* ============================================
   LOVE LETTERS SECTION
   ============================================ */
.music-player {
    text-align: center;
    margin-bottom: 50px;
}

.music-btn {
    background: linear-gradient(135deg, var(--primary-rose), var(--deep-purple));
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 176, 182, 0.4);
    border-color: var(--primary-rose);
}

.music-note {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Grid otomatis responsive dengan auto-fit */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.letter-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-gold);
    transition: 0.5s;
}

.letter-card:hover::before {
    height: 100%;
}

.letter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(224, 176, 182, 0.3);
}

.letter-icon {
    font-size: 50px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(224, 176, 182, 0.4));
}

.letter-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-rose);
}

.letter-card p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
    display: grid;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--primary-rose);
}

/* Class untuk ukuran foto berbeda */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20, 10, 30, 0.95), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: var(--primary-rose);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   PHOTO BOOTH SECTION
   ============================================ */
.photobooth-section {
    padding: 100px 20px;
    background: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.photobooth-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Camera view styles moved to frame selection section below */

.photobooth-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.booth-btn {
    padding: 15px 35px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booth-btn.primary {
    background: linear-gradient(135deg, var(--primary-rose), var(--deep-purple));
    color: white;
}

.booth-btn.secondary {
    background: transparent;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.booth-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.booth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-frames {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.photo-frames p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.frames-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Frame Button with Image Thumbnail */
.frame-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
}

.frame-btn img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.frame-btn .frame-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.frame-btn:hover {
    border-color: var(--primary-rose);
    background: rgba(224, 176, 182, 0.1);
    transform: translateY(-5px);
}

.frame-btn:hover img {
    transform: scale(1.05);
}

.frame-btn:hover .frame-label {
    color: var(--primary-rose);
}

.frame-btn.active {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.frame-btn.active .frame-label {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Camera View with Frame Overlay Support */
.camera-view {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Video Wrapper - contains both video and frame overlay */
.video-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    /* Lebar strip di preview */
    height: 606px;
    /* Tinggi strip (berdasarkan 1320:2500) */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

/* Live Frame Overlay - positioned relative to video wrapper */
.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Supaya pas dengan wrapper */
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
    display: none;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect for selfie camera */
    display: block;
}

#photo {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

/* Countdown Overlay */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 8, 28, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
}

#countdownNumber {
    font-family: 'Playfair Display', serif;
    font-size: 150px;
    color: var(--primary-gold);
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    animation: countdownPulse 1s ease-in-out infinite;
}

#photoCounter {
    font-size: 24px;
    color: var(--primary-rose);
    margin-top: 20px;
    letter-spacing: 3px;
}

@keyframes countdownPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile Responsive for Frame Selection */
@media (max-width: 768px) {
    .frame-btn {
        width: 100px;
        padding: 8px;
    }

    .frame-btn img {
        height: 120px;
    }

    .frame-btn .frame-label {
        font-size: 12px;
    }

    .camera-view {
        min-height: 400px;
        padding: 10px;
    }

    #countdownNumber {
        font-size: 100px;
    }

    #photoCounter {
        font-size: 18px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0a0510;
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-heart {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-rose);
    filter: drop-shadow(0 0 10px var(--primary-rose));
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-subtext {
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 1px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   📱 RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 15px 20px;
        background: rgba(20, 10, 30, 0.95);
    }

    .nav-brand {
        font-size: 20px;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #1a0e24;
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-name h2 {
        font-size: 18px;
        padding: 12px 25px;
    }

    .floating-photos {
        display: none;
    }

    .section-title {
        font-size: 36px;
    }

    .letters-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: auto;
        grid-row: auto;
    }

    .timer-box {
        min-width: 80px;
        padding: 20px 10px;
    }

    .timer-value {
        font-size: 32px;
    }

    .camera-view {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
    }

    .timer {
        gap: 10px;
    }

    .timer-box {
        flex: 1;
        min-width: 70px;
    }

    .days-counter {
        font-size: 60px;
    }
}

/* ============================================
   IMAGE MODAL (POPUP) STYLES - GLOBAL
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    position: relative;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-frame {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 24px;
    border: 3px solid var(--primary-gold);
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.4),
        0 0 100px rgba(224, 176, 182, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    display: inline-block;
    animation: floatModal 3s ease-in-out infinite;
}

@keyframes floatModal {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.modal-frame img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 16px;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.modal-caption {
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-style: italic;
    color: var(--primary-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4), transparent);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    animation: fadeUp 0.6s ease 0.3s backwards;
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    color: var(--text-light);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

.close-modal:hover {
    color: var(--primary-rose);
    transform: rotate(90deg) scale(1.2);
    opacity: 1;
}

/* ============================================
   FLOATING MUSIC BUTTON - GLOBAL  
   ============================================ */
.floating-music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-rose), var(--deep-purple));
    border: 3px solid var(--primary-gold);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow:
        0 5px 25px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(224, 176, 182, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {

    0%,
    100% {
        box-shadow:
            0 5px 25px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(224, 176, 182, 0.3);
    }

    50% {
        box-shadow:
            0 5px 35px rgba(212, 175, 55, 0.7),
            0 0 60px rgba(224, 176, 182, 0.5);
    }
}

.floating-music-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 50px rgba(224, 176, 182, 0.8);
}

.floating-music-btn.playing i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   PHOTO BOOTH COUNTDOWN OVERLAY
   ============================================ */
.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 16, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.countdown-overlay #countdownNumber {
    font-family: 'Playfair Display', serif;
    font-size: 150px;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.5);
    animation: pulseCount 1s ease-in-out infinite;
}

@keyframes pulseCount {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.countdown-overlay #photoCounter {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    color: var(--primary-rose);
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}