/* Premium Couple Website - Style 2026 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    --pink: #ff6b9d;
    --pink-soft: #ff8fb3;
    --pink-light: #ffe4ec;
    --purple: #c084fc;
    --purple-soft: #d8b4fe;
    --peach: #ffb088;
    --cream: #fff8f0;
    --white: #ffffff;
    --gold: #f5c518;
    --text: #4a3f4a;
    --text-soft: #7a6a7a;
    --shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Nunito', sans-serif;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4ec 30%, #f3e8ff 70%, #fff8f0 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #ffe4ec, #f3e8ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-heart {
    font-size: 4rem;
    color: var(--pink);
    animation: heartbeat 1s ease-in-out infinite;
}

.loading-text {
    margin-top: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--text);
    letter-spacing: 1px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Floating Animations */
.floating-hearts, .floating-sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart, .sparkle {
    position: absolute;
    opacity: 0.4;
    animation: floatUp linear infinite;
}

.heart {
    color: var(--pink);
    font-size: 1rem;
}

.sparkle {
    color: var(--gold);
    font-size: 0.7rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Cursor Sparkle */
.cursor-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 0.8rem;
    color: var(--gold);
    animation: sparkleFade 0.8s ease-out forwards;
}

@keyframes sparkleFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

/* Section Common */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.2);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero-image-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--pink-soft);
    opacity: 0.5;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.2; }
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-names {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-names span {
    color: var(--pink);
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 400px;
    margin: 0 auto 2rem;
    font-style: italic;
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 500px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.hero-btn:hover {
    background: var(--pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

/* Love Counter */
.love-counter {
    text-align: center;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.counter-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--pink);
    margin-bottom: 1.5rem;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.counter-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 1.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.counter-item .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pink);
    display: block;
    line-height: 1.2;
}

.counter-item .label {
    font-size: 0.75rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.25);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--pink);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    text-align: center;
}

/* Cute Messages */
.messages-grid {
    display: grid;
    gap: 1rem;
}

.message-card {
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    color: var(--text);
    padding: 1.5rem;
}

.message-card i {
    color: var(--pink);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.2rem;
}

/* Love Letter */
.love-letter-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}

.love-letter-card .letter-content {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-line;
}

/* Music Player */
.music-player {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.music-cover {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow);
    animation: spinSlow 20s linear infinite;
    animation-play-state: paused;
}

.music-cover.playing {
    animation-play-state: running;
}

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

.music-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.music-artist {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
}

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

.music-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.music-btn:hover {
    transform: scale(1.1);
}

.progress-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.volume-wrap input[type="range"] {
    width: 100px;
    accent-color: var(--pink);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--pink), var(--purple));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
}

.timeline-item .t-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-item .t-date {
    font-size: 0.8rem;
    color: var(--pink);
    margin-bottom: 0.35rem;
}

.timeline-item .t-desc {
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* Bucket List */
.bucket-list {
    max-width: 500px;
    margin: 0 auto;
    list-style: none;
}

.bucket-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.bucket-item:hover {
    transform: translateX(4px);
}

.bucket-item.done {
    opacity: 0.6;
}

.bucket-item.done .b-text {
    text-decoration: line-through;
}

.bucket-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--pink);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: transparent;
    transition: var(--transition);
}

.bucket-item.done .bucket-check {
    background: var(--pink);
    color: white;
}

.b-text {
    font-size: 0.95rem;
}

/* Random Quote */
.quote-section {
    text-align: center;
}

.quote-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 2rem;
}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
}

.quote-icon {
    color: var(--pink);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

/* Animations on scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .messages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-names {
        font-size: 3.2rem;
    }
    
    .hero-image-wrap {
        width: 260px;
        height: 260px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .messages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .counter-item .num {
        font-size: 2.2rem;
    }
    
    section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-nav {
        max-width: 600px;
    }
}

/* Placeholder image style */
.placeholder-img {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 2rem;
}
