/* ══════════════════════════════════════════════
   Sorry Joeta — Premium Stylesheet
   Design System: Burgundy + Rose + Cream
   ══════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    --cream: #FDF8F4;
    --cream-dark: #F8F0EA;
    --burgundy: #4E1E26;
    --burgundy-light: #6B2D37;
    --rose-accent: #D67C7A;
    --rose-medium: #E6A2A0;
    --rose-light: #FDEFE7;
    --rose-pale: #FFF3ED;
    --charcoal: #7D6864;
    --soft-pink: #F5D0D7;
    --white: #FFFFFF;
    --shadow-rose: rgba(214, 124, 122, 0.12);
    --shadow-dark: rgba(78, 30, 38, 0.08);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 1.7;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
    color: var(--burgundy);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--rose-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--burgundy); }

/* ══════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════ */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--soft-pink), var(--rose-light));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.loader-spinner {
    position: relative;
    width: 160px; height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 16px rgba(186, 120, 130, 0.3));
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--white);
    animation: loader-spin 1.5s linear infinite;
}

.loader-ring:nth-child(1) { width: 100%; height: 100%; opacity: 1; }
.loader-ring:nth-child(2) { width: 80%; height: 80%; opacity: 0.8; animation-duration: 2s; animation-direction: reverse; }
.loader-ring:nth-child(3) { width: 60%; height: 60%; opacity: 0.6; animation-duration: 2.5s; }

.loader-center-icon {
    font-size: 32px;
    color: var(--white);
    animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.loader-text {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(186, 120, 130, 0.4);
    display: flex;
    align-items: center;
    gap: 2px;
}

.loader-dot {
    display: inline-block;
    animation: loader-bounce 1.4s infinite both;
}
.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════════
   SECURITY OVERLAY
   ══════════════════════════════════════════════ */
#security-screen {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--burgundy);
    z-index: 100000;
    color: var(--cream);
    font-family: var(--font-serif);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 22px;
    padding: 20px;
}

#security-screen .shield-icon {
    font-size: 64px;
    color: var(--rose-accent);
    margin-bottom: 20px;
    animation: float-gentle 3s ease-in-out infinite;
}

#security-screen h2 {
    color: var(--cream);
    font-size: 28px;
    margin-bottom: 12px;
}

#security-screen p {
    color: rgba(253, 248, 244, 0.6);
    font-family: var(--font-sans);
    font-size: 14px;
    max-width: 400px;
}

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 248, 244, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214, 124, 122, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 40px;
    box-shadow: 0 4px 30px var(--shadow-rose);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--burgundy);
}

.navbar-brand .brand-star {
    color: var(--rose-accent);
    font-size: 16px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(214, 124, 122, 0.15);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: var(--rose-accent);
    color: var(--white);
    border-color: var(--rose-accent);
    transform: scale(1.08);
}

.nav-icon-btn.heart-btn {
    background: linear-gradient(135deg, var(--rose-accent), var(--burgundy));
    color: var(--white);
    border: none;
}

.nav-icon-btn.heart-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(214, 124, 122, 0.4);
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    padding: 100px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(214, 124, 122, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-decoration-2 {
    position: absolute;
    bottom: -150px; left: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245, 208, 215, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-photo-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(78, 30, 38, 0.15);
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 3px solid rgba(214, 124, 122, 0.2);
    z-index: 2;
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.hero-decoration-dots {
    position: absolute;
    right: -30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.deco-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
}
.deco-dot:nth-child(1) { background: var(--rose-medium); }
.deco-dot:nth-child(2) { background: var(--rose-accent); }
.deco-dot:nth-child(3) { background: var(--burgundy); }

.hero-text-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    color: var(--rose-accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    letter-spacing: 1px;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1.2;
}

.hero-desc {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.8;
    max-width: 500px;
}

/* Timer Box */
.timer-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(214, 124, 122, 0.12);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.timer-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--rose-accent);
    margin-bottom: 8px;
}

.timer-digits {
    display: flex;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--burgundy);
}

.timer-digits span {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.timer-digits .unit {
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--rose-accent);
}

.timer-butterfly {
    font-size: 28px;
    color: var(--rose-accent);
    animation: float-gentle 4s ease-in-out infinite;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.stat-card {
    background: linear-gradient(135deg, var(--rose-accent), var(--rose-medium));
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
}

.stat-card:nth-child(2) {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(214, 124, 122, 0.15);
    color: var(--burgundy);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, var(--soft-pink), var(--rose-light));
    color: var(--burgundy);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-rose);
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

/* ══════════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════════ */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-accent), var(--rose-medium));
    border-radius: 2px;
    margin: 0 auto 16px;
}

.section-tag {
    text-align: center;
    color: var(--rose-accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    margin-bottom: 8px;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 48px;
}

/* ══════════════════════════════════════════════
   FAVORITE THINGS
   ══════════════════════════════════════════════ */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fav-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(214, 124, 122, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(214, 124, 122, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fav-card:hover {
    transform: translateY(-8px);
    border-color: rgba(214, 124, 122, 0.3);
    box-shadow: 0 15px 40px rgba(214, 124, 122, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.fav-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--rose-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--rose-accent);
    transition: var(--transition);
}

.fav-card:hover .fav-icon {
    background: linear-gradient(135deg, var(--rose-accent), var(--burgundy));
    color: var(--white);
    transform: scale(1.08);
}

.fav-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--burgundy);
}

.fav-card p {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.7;
    flex: 1;
}

.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--rose-accent), var(--burgundy));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.fav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 124, 122, 0.3);
}

/* ══════════════════════════════════════════════
   SORRY / APOLOGY SECTION
   ══════════════════════════════════════════════ */
.sorry-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--rose-pale) 50%, var(--cream) 100%);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.sorry-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--rose-accent));
}

.sorry-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.sorry-icon-wrap {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(214,124,122,0.15), rgba(245,208,215,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 32px;
    color: var(--rose-accent);
    animation: float-gentle 4s ease-in-out infinite;
}

.sorry-tag {
    color: var(--rose-accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    margin-bottom: 10px;
}

.sorry-heading {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 40px;
    line-height: 1.2;
}

.sorry-letter {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(214, 124, 122, 0.12);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: left;
    position: relative;
    box-shadow: 0 12px 40px rgba(214, 124, 122, 0.06);
}

.sorry-letter::before {
    content: '\201C';
    position: absolute;
    top: 20px; left: 28px;
    font-family: var(--font-serif);
    font-size: 72px;
    color: rgba(214, 124, 122, 0.15);
    line-height: 1;
}

.sorry-letter-text {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 2;
    white-space: pre-line;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════
   PHOTO GALLERY SECTION
   ══════════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px var(--shadow-dark);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-rose);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(78,30,38,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--charcoal);
    opacity: 0.6;
}

.gallery-empty i {
    font-size: 48px;
    color: var(--rose-medium);
    margin-bottom: 16px;
    display: block;
}

.view-all-gallery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--rose-accent), var(--burgundy));
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    margin-top: 36px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.view-all-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 124, 122, 0.3);
}

/* ══════════════════════════════════════════════
   MUSIC PLAYER SECTION
   ══════════════════════════════════════════════ */
/* ═══════ VOICE RECORDING UI ═══════ */
.voice-record-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.4);
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px dashed rgba(214, 124, 122, 0.4);
}
.voice-prompt {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}
.btn-voice-large {
    background: white;
    border: none;
    color: var(--rose-accent);
    padding: 12px 25px 12px 12px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(214, 124, 122, 0.15);
}
.btn-voice-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(214, 124, 122, 0.25);
}
.btn-voice-large:active {
    transform: translateY(0);
}
.mic-circle {
    width: 45px;
    height: 45px;
    background: var(--rose-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}
.btn-voice-large.recording {
    background: #ff4757;
    color: white;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
}
.recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ff4757;
    font-family: monospace;
    font-size: 15px;
    margin-top: 5px;
}
.recording-status.hidden {
    display: none;
}
.recording-dot {
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    animation: mic-pulse 1.5s infinite;
}
@keyframes mic-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.music-section {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    padding: 80px 40px;
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.music-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(214,124,122,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.music-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.music-section .section-tag,
.music-section .section-title {
    color: var(--rose-medium);
}

.music-section .section-title {
    color: var(--cream);
}

.music-section .section-divider {
    background: linear-gradient(90deg, var(--rose-accent), var(--rose-medium));
}

.audio-player-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.audio-player-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
    border-color: rgba(214, 124, 122, 0.3);
}

.audio-player-card.active {
    background: rgba(214, 124, 122, 0.15);
    border-color: var(--rose-accent);
}

.play-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--rose-accent);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--white);
    color: var(--burgundy);
    transform: scale(1.1);
}

.play-btn.playing {
    animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 124, 122, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(214, 124, 122, 0); }
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--cream);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-artist {
    font-size: 13px;
    color: rgba(253, 248, 244, 0.5);
}

.visualizer-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.vis-bar {
    width: 3px;
    height: 30%;
    background: var(--rose-accent);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.playing .vis-bar {
    animation: bounce-bar 0.6s ease-in-out infinite alternate;
}

.playing .vis-bar:nth-child(2) { animation-delay: 0.1s; }
.playing .vis-bar:nth-child(3) { animation-delay: 0.2s; }
.playing .vis-bar:nth-child(4) { animation-delay: 0.3s; }
.playing .vis-bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes bounce-bar {
    0% { height: 20%; }
    100% { height: 100%; }
}

.no-songs {
    text-align: center;
    padding: 40px;
    color: rgba(253, 248, 244, 0.4);
    font-style: italic;
}

/* ══════════════════════════════════════════════
   HEART ANIMATION CANVAS
   ══════════════════════════════════════════════ */
.hearts-section {
    position: relative;
    height: 500px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--rose-pale) 100%);
    overflow: hidden;
}

#heartCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hearts-overlay-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.hearts-overlay-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    color: var(--burgundy);
    text-shadow: 0 2px 20px rgba(253, 248, 244, 0.8);
}

.hearts-overlay-text p {
    color: var(--charcoal);
    font-size: 15px;
    margin-top: 8px;
    text-shadow: 0 2px 10px rgba(253, 248, 244, 0.8);
}

/* ══════════════════════════════════════════════
   SEND LOVE / MESSAGES SECTION
   ══════════════════════════════════════════════ */
.messages-section {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.message-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(214, 124, 122, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: 0 8px 30px rgba(214, 124, 122, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(214, 124, 122, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--burgundy);
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--rose-accent);
    box-shadow: 0 0 0 4px rgba(214, 124, 122, 0.08);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--rose-accent), var(--burgundy));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 124, 122, 0.3);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(214, 124, 122, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    transition: var(--transition);
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 124, 122, 0.08);
    border-color: rgba(214, 124, 122, 0.2);
}

.message-sender {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-sender i {
    color: var(--rose-accent);
    font-size: 14px;
}

.message-text {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.8;
}

.message-date {
    font-size: 12px;
    color: rgba(125, 104, 100, 0.5);
    margin-top: 10px;
}

/* Success/Error messages */
.form-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.form-alert.success {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-alert.error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--burgundy);
    padding: 48px 40px;
    text-align: center;
    color: rgba(253, 248, 244, 0.6);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--rose-accent);
    border-radius: 2px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-text {
    font-size: 14px;
    color: rgba(253, 248, 244, 0.4);
    margin-bottom: 4px;
}

.footer-heart {
    color: var(--rose-accent);
}

/* ══════════════════════════════════════════════
   FULL-SCREEN GALLERY PAGE
   ══════════════════════════════════════════════ */
.gallery-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.gallery-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(214, 124, 122, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.gallery-back-btn {
    position: fixed;
    top: 24px; left: 24px;
    z-index: 100;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-back-btn:hover {
    background: rgba(214, 124, 122, 0.3);
    transform: scale(1.1);
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.carousel-viewport {
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 320px;
    height: 440px;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    width: 320px;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backface-visibility: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-slide .image-guard {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.carousel-btn {
    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.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(214, 124, 122, 0.4);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
}

.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-dot.active {
    width: 32px;
    background: var(--rose-accent);
}

.gallery-no-photos {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    font-family: var(--font-serif);
}

.gallery-no-photos i {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    color: rgba(214, 124, 122, 0.3);
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-animation {
    animation: float-gentle 4s ease-in-out infinite;
}

/* Particle container */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--rose-accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-image-side { order: -1; }
    .hero-photo-wrapper {
        width: 300px; height: 370px;
        margin: 0 auto;
    }
    .hero-desc { margin: 0 auto; }
    .fav-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 20px; }
    .navbar.scrolled { padding: 10px 20px; }
    .hero-section { padding: 80px 20px 40px; }
    .section { padding: 60px 20px; }
    .sorry-section { padding: 60px 20px; }
    .sorry-letter { padding: 32px 24px; }
    .music-section { padding: 60px 20px; }
    .messages-section { padding: 60px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .fav-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-photo-wrapper { width: 260px; height: 320px; }
    .carousel-slide,
    .carousel-track { width: 260px; height: 360px; }
    .carousel-viewport { height: 420px; }
}

@media (max-width: 480px) {
    .navbar-brand { font-size: 18px; }
    .nav-icon-btn { width: 36px; height: 36px; font-size: 14px; }
    .hero-photo-wrapper { width: 220px; height: 280px; }
    .fav-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; gap: 12px; }
    .timer-box { flex-direction: column; align-items: flex-start; }
    .timer-digits { font-size: 18px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .carousel-slide,
    .carousel-track { width: 220px; height: 310px; }
    .gallery-page { padding: 20px; }
    .site-footer { padding: 36px 20px; }
}

/* ═══════ 3D ANIMATIONS (SAKURA & BUTTERFLIES) ═══════ */
.sakura {
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    background: rgba(255, 183, 197, 0.8);
    border-radius: 10px 0 10px 0;
    animation: fall linear infinite, sway ease-in-out infinite alternate;
    box-shadow: 0 0 4px rgba(255,183,197,0.4);
}
@keyframes fall {
    0% { top: -10%; }
    100% { top: 110%; }
}
@keyframes sway {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(100px) rotate(45deg); }
}

.butterfly {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    width: 30px;
    height: 30px;
    animation: fly 12s linear forwards;
    filter: drop-shadow(0 0 6px rgba(214, 124, 122, 0.8));
}
.butterfly .wing {
    position: absolute;
    width: 15px;
    height: 30px;
    background: radial-gradient(circle at 70% 30%, #f5d0d7, #d67c7a);
    border-radius: 80% 20% 60% 10%;
    transform-origin: right center;
    animation: flutter 0.12s infinite alternate;
}
.butterfly .wing.right {
    left: 15px;
    background: radial-gradient(circle at 30% 30%, #f5d0d7, #d67c7a);
    border-radius: 20% 80% 10% 60%;
    transform-origin: left center;
    animation: flutter-right 0.12s infinite alternate;
}
.butterfly::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 16px;
    background: #4E1E26;
    border-radius: 10px;
    top: 7px;
    left: 13px;
}
@keyframes flutter {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(70deg); }
}
@keyframes flutter-right {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-70deg); }
}
@keyframes fly {
    0% { left: -10vw; transform: translateY(20vh) rotate(15deg) scale(0.6); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110vw; transform: translateY(-20vh) rotate(-15deg) scale(1.2); opacity: 0; }
}
