/* ========== CSS Variables ========== */
:root {
    --primary: #ff4b6e;
    --primary-light: #ff6b8a;
    --primary-dark: #e83a5d;
    --secondary: #ff8fab;
    --accent: #ffd1dc;
    --gold: #ffd700;
    --white: #ffffff;
    --black: #1a1a2e;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gradient-primary: linear-gradient(135deg, #ff4b6e 0%, #ff8fab 100%);
    --gradient-romantic: linear-gradient(135deg, #ff6b8a 0%, #ff4b6e 50%, #e83a5d 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    --shadow-soft: 0 10px 40px rgba(255, 75, 110, 0.2);
    --shadow-strong: 0 20px 60px rgba(255, 75, 110, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== Hearts Background ========== */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 20px;
    animation: floatHeart 10s linear infinite;
    opacity: 0.6;
}

@keyframes floatHeart {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(255, 75, 110, 0.1);
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-icon {
    font-size: 28px;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.brand-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-romantic);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">💕</text></svg>') repeat;
    background-size: 60px;
    opacity: 0.1;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-hearts {
    margin-bottom: 30px;
}

.floating-heart {
    display: inline-block;
    font-size: 50px;
    animation: float 3s ease-in-out infinite;
    margin: 0 10px;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px 50px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.countdown-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.hero-btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ========== Section Styles ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2, .section-header.light p {
    color: var(--white);
}

.section-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--black);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* ========== Gallery Section ========== */
.gallery-section {
    padding: 100px 50px;
    background: var(--gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: var(--transition);
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: var(--white);
    font-weight: 500;
}

/* ========== Memories Section ========== */
.memories-section {
    padding: 100px 50px;
    background: var(--white);
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '💕';
    position: absolute;
    top: 30px;
    width: 30px;
    height: 30px;
    font-size: 20px;
}

.timeline-item.left::before {
    right: -15px;
}

.timeline-item.right::before {
    left: -15px;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.timeline-date {
    margin-bottom: 15px;
}

.date-day {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 14px;
    color: var(--gray);
}

.timeline-content h3 {
    color: var(--black);
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-content p {
    color: var(--gray);
    font-size: 15px;
}

.timeline-emoji {
    font-size: 30px;
    margin-top: 10px;
}

/* ========== Reasons Section ========== */
.reasons-section {
    padding: 100px 50px;
    background: var(--gradient-romantic);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.reason-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
}

.reason-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

.reason-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.reason-card h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
}

.reason-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

/* ========== Music Section ========== */
.music-section {
    padding: 100px 50px;
    background: var(--gray-light);
}

.music-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.music-player {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--white);
}

.now-playing {
    text-align: center;
    margin-bottom: 30px;
}

.album-art {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 50%;
    border: 4px solid var(--white);
}

.song-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.song-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn.play-btn {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    font-size: 24px;
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.playlist {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.playlist-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--black);
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}

.playlist-item:hover, .playlist-item.active {
    background: var(--accent);
}

.playlist-item.active {
    border-left: 4px solid var(--primary);
}

.playlist-item-title {
    font-weight: 500;
    color: var(--black);
}

.playlist-item-duration {
    color: var(--gray);
    font-size: 14px;
}

/* ========== Letter Section ========== */
.letter-section {
    padding: 100px 50px;
    background: var(--gradient-romantic);
    position: relative;
    overflow: hidden;
}

.letter-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.envelope {
    width: 300px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: #f5e6d3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #e8d4c4;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transition: var(--transition);
    transform-origin: top;
}

.envelope:hover .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-heart {
    font-size: 40px;
    margin-bottom: 10px;
}

.envelope-body p {
    color: var(--gray);
    font-size: 14px;
}

.letter {
    display: none;
    background: #fffef8;
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: left;
    box-shadow: var(--shadow-strong);
    animation: letterOpen 0.5s ease;
}

.letter.show {
    display: block;
}

@keyframes letterOpen {
    from { opacity: 0; transform: scale(0.8) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.letter-header {
    text-align: right;
    margin-bottom: 30px;
}

.letter-date {
    color: var(--primary);
    font-style: italic;
}

.letter-body p {
    margin-bottom: 20px;
    color: var(--black);
    line-height: 1.8;
}

.letter-greeting {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--primary);
}

.letter-closing {
    font-style: italic;
    color: var(--primary);
}

.letter-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: var(--primary);
    text-align: right;
    margin-top: 30px;
}

/* ========== Footer ========== */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    padding: 60px 20px 30px;
}

.footer-hearts span {
    font-size: 30px;
    margin: 0 10px;
    animation: float 3s ease-in-out infinite;
}

.footer-hearts span:nth-child(2) { animation-delay: 0.5s; }
.footer-hearts span:nth-child(3) { animation-delay: 1s; }

.footer-title {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin: 20px 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.heart-beat {
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

/* ========== Lightbox ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: var(--white);
    font-size: 18px;
}

/* ========== FAB ========== */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1);
}

.fab-heart {
    animation: heartBeat 1.5s infinite;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 2; }
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
    .music-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow-soft);
    }
    .nav-links.show { display: flex; }
    .nav-toggle { display: flex; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; aspect-ratio: 16/9; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 20px; text-align: left; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-item::before { left: 5px !important; right: auto !important; }
    .reasons-grid { grid-template-columns: 1fr; }
    .countdown { gap: 15px; }
    .countdown-value { font-size: 32px; }
    .letter { padding: 30px; }
}
