:root {
    --primary-color: #ff4081;
    /* Hot Pink */
    --secondary-color: #ff80ab;
    /* Soft Pink Accent */
    --accent-color: #ffe6fa;
    /* Very Light Pink/White */
    --bg-gradient-start: #ffcce6;
    --bg-gradient-end: #e1f5fe;
    /* Light Blue/Pink Mix */
    --text-color: #4a148c;
    /* Deep Purple/Maroon */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --font-heading: 'Pacifico', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fad0c4, #ffdde1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Hearts Container */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -10%;
    color: rgba(255, 255, 255, 0.6);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #d81b60;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.6);
}

.title {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff4081, 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '♥';
    display: block;
    font-size: 2rem;
    color: #fff;
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.cta-btn {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.6);
    background: #fff0f5;
}

/* Heart Animation */
.pulsating-heart {
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 20px #ff4081;
    animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(1);
    }
}

/* Intro Section */
.intro {
    text-align: center;
}

.letter-container {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.letter-container::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    top: -30px;
    left: 20px;
    opacity: 0.5;
}

.love-letter {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    z-index: 0;
    /* Behind items */
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 1;
    /* On top of line */
}

.timeline-item::after {
    content: '❤';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -17px;
    background-color: #ff4081;
    border: 3px solid white;
    top: 25px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -17px;
}

.timeline-item .content {
    padding: 25px;
    background: white;
    /* Fallback */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    opacity: 1 !important;
    /* Force visibility */
    visibility: visible !important;
}

.timeline-item h3 {
    color: #d81b60;
    /* Ensure Pink */
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: #555;
    /* Ensure Grey */
}

.timeline-item:hover .content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    transform: rotate(0deg);
    transition: all 0.4s ease;
}

.gallery-item:nth-child(even) {
    transform: rotate(2deg);
}

.gallery-item:nth-child(odd) {
    transform: rotate(-2deg);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reasons Cards */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.card {
    width: 300px;
    height: 350px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
    border: 2px solid white;
}

.card-front i {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: -webkit-linear-gradient(#f48fb1, #ff4081);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-front h3 {
    font-size: 2rem;
    color: #4a148c;
    text-shadow: none;
    font-family: var(--font-heading);
}

.card-back {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    color: white;
    transform: rotateY(180deg);
    border: 2px solid white;
}

.card-back p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Footer - Premium */
.footer {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 30%);
    backdrop-filter: blur(5px);
    margin-top: 4rem;
    position: relative;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ff4081;
}

.footer-hearts span {
    animation: heartFloat 2s ease-in-out infinite;
}

.footer-hearts span:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-hearts span:nth-child(3) {
    animation-delay: 0.4s;
}

.footer-hearts span:nth-child(4) {
    animation-delay: 0.6s;
}

.footer-hearts span:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes heartFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.footer-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: #ad1457;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    opacity: 0.8;
}

.footer p {
    color: #880e4f;
    font-weight: 600;
}

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

.counter-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.counter-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 20px;
    padding: 2rem 3rem;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.counter-box:hover {
    transform: translateY(-5px) scale(1.05);
}

.counter-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ff4081;
    font-family: var(--font-body);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    color: #880e4f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Shimmer Title Effect --- */
.title {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff4081, 6px 6px 0px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #fff 0%, #ffc0cb 25%, #fff 50%, #ffc0cb 75%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- Staggered Timeline Reveals --- */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.right {
    transform: translateX(30px);
}

.section.visible .timeline-item {
    opacity: 1;
    transform: translateX(0);
}

.section.visible .timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.section.visible .timeline-item:nth-child(2) {
    transition-delay: 0.3s;
}

.section.visible .timeline-item:nth-child(3) {
    transition-delay: 0.5s;
}

.section.visible .timeline-item:nth-child(4) {
    transition-delay: 0.7s;
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.music-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: #ff4081;
    color: white;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1.5rem;
        box-sizing: border-box;
    }

    /* Hero */
    .hero {
        padding: 0 1.5rem;
    }

    .pulsating-heart {
        font-size: 4rem;
    }

    .cta-btn {
        padding: 0.9rem 2.5rem;
        font-size: 1.3rem;
    }

    /* Love Letter */
    .letter-container {
        padding: 2rem;
    }

    .love-letter {
        font-size: 1rem;
    }

    /* Timeline */
    .timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item::after {
        left: 10px;
    }

    .left::after,
    .right::after {
        left: 10px;
    }

    .right {
        left: 0%;
    }

    .timeline-item.right {
        transform: translateX(-30px);
    }

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

    .gallery-item {
        height: 250px;
    }

    /* Cards */
    .cards-container {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .card {
        width: 260px;
        height: 300px;
    }

    .card-front i {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .card-front h3 {
        font-size: 1.6rem;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }

    /* Counter */
    .counter-grid {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .counter-box {
        padding: 1.5rem 2rem;
        min-width: 110px;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    /* Scratch Card */
    .scratch-card {
        width: 280px;
        height: 180px;
    }

    #scratch-canvas {
        width: 280px;
        height: 180px;
    }

    /* Coupons */
    .coupon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Music Player (Spotify) */
    .music-player-container {
        max-width: 100%;
        padding: 1.5rem;
    }

    /* Open When Letters */
    .open-when-grid {
        gap: 1.5rem;
    }

    .envelope-card {
        width: 220px;
    }

    /* Valentine Overlay */
    .valentine-modal {
        padding: 2.5rem;
        max-width: 90%;
    }

    .valentine-modal h2 {
        font-size: 1.8rem;
    }

    #yes-btn {
        padding: 1rem 2.5rem;
        font-size: 1.4rem;
    }

    /* Fixed Buttons */
    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* Floating Bottle */
    .floating-bottle {
        font-size: 2.5rem;
    }
}

/* Phone (max-width: 480px) */
@media screen and (max-width: 480px) {
    .title {
        font-size: 2rem;
        text-shadow: 2px 2px 0px #ff4081, 4px 4px 0px rgba(0, 0, 0, 0.1);
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 0 1rem;
        height: 100svh;
        /* Better mobile height */
    }

    .cta-btn {
        padding: 0.7rem 1.8rem;
        font-size: 1.1rem;
    }

    .pulsating-heart {
        font-size: 3rem;
    }

    /* Love Letter */
    .letter-container {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .love-letter {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Timeline */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 6px;
        width: 20px;
        height: 20px;
    }

    .left::after,
    .right::after {
        left: 6px;
    }

    .timeline-item .content {
        padding: 15px;
    }

    .timeline-item .content h3 {
        font-size: 1rem;
    }

    .timeline-item .content p {
        font-size: 0.85rem;
    }

    /* Gallery Grid (legacy) */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }

    /* Cards (Flip) */
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .card {
        width: 90%;
        max-width: 300px;
        height: 280px;
    }

    .card-front i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .card-front h3 {
        font-size: 1.4rem;
    }

    .card-back p {
        font-size: 1rem;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .bento-large,
    .bento-tall,
    .bento-small,
    .bento-wide,
    .bento-medium {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-large {
        grid-column: span 2;
    }

    .bento-overlay span {
        font-size: 1rem;
    }

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

    .counter-box {
        padding: 1rem 0.8rem;
        min-width: unset;
        border-radius: 15px;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .counter-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Scratch Card */
    .scratch-card {
        width: 250px;
        height: 160px;
    }

    #scratch-canvas {
        width: 250px;
        height: 160px;
    }

    .secret-content h3 {
        font-size: 1.2rem;
    }

    .secret-content p {
        font-size: 0.9rem;
    }

    /* Music Player (Spotify) */
    .music-player-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .music-player-container h3 {
        font-size: 1.4rem;
    }

    /* Open When Letters */
    .open-when-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .envelope-card {
        width: 100%;
        max-width: 300px;
        padding: 1.5rem;
    }

    .envelope-icon {
        font-size: 2.5rem;
    }

    .envelope-card h3 {
        font-size: 1rem;
    }

    /* Coupons */
    .coupon-grid {
        grid-template-columns: 1fr;
    }

    .coupon-card {
        max-width: 100%;
    }

    /* Valentine Overlay */
    .valentine-modal {
        padding: 1.8rem 1.2rem;
        width: 95%;
        border-radius: 20px;
    }

    .valentine-modal h2 {
        font-size: 1.3rem;
    }

    .valentine-modal p {
        font-size: 1rem;
    }

    .valentine-btns {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    #yes-btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }

    #no-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        padding: 2rem 1.5rem;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    #modal-body {
        font-size: 1rem;
    }

    /* Fixed Buttons */
    .kiss-btn {
        bottom: 12px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 18px;
        font-size: 0.85rem;
        z-index: 999;
    }

    .music-btn {
        bottom: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* Floating Bottle */
    .floating-bottle {
        left: 12px;
        bottom: 70px;
        font-size: 2.2rem;
    }

    .bottle-sparkle {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 5rem;
        /* Extra bottom for fixed buttons */
    }

    .footer-quote {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .footer-hearts {
        font-size: 1rem;
        gap: 0.8rem;
    }

    /* Glass Card */
    .glass-card {
        border-radius: 15px;
    }
}

/* --- Valentine Overlay (Sick Mode) --- */
.valentine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 5, 0.6);
    /* Darker tint for contrast */
    backdrop-filter: blur(15px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.valentine-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.valentine-modal {
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    width: 90%;

    /* Premium Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;

    /* Neon Glow Shadow */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 64, 129, 0.1),
        inset 0 0 20px rgba(255, 64, 129, 0.05);

    animation: sickPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}

/* Shine effect on modal */
.valentine-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

@keyframes sickPopIn {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.valentine-modal h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    line-height: 1.2;

    /* Gradient Text */
    background: linear-gradient(135deg, #ff80ab 0%, #ff4081 50%, #f50057 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Drop shadow for legibility on glass */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.valentine-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 2rem;
}

/* "No" button */
#no-btn {
    padding: 12px 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: not-allowed;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

#no-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff5252;
}

/* "Yes" button (The Star) */
#yes-btn {
    padding: 1.2rem 3.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(45deg, #ff4081, #f50057);
    border: none;
    border-radius: 50px;
    cursor: pointer;

    /* Glowing Effect */
    box-shadow:
        0 10px 20px rgba(245, 0, 87, 0.3),
        0 0 20px rgba(245, 0, 87, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);

    animation: heartbeatBtn 1.5s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

#yes-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 15px 30px rgba(245, 0, 87, 0.5),
        0 0 40px rgba(245, 0, 87, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

@keyframes heartbeatBtn {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.05);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(1);
    }
}

/* --- Love Coupons --- */
.section-subtitle {
    text-align: center;
    color: #4a148c;
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.coupon-card {
    background: #fff;
    background-image: radial-gradient(circle at top left, transparent 20px, #fff 21px),
        radial-gradient(circle at top right, transparent 20px, #fff 21px),
        radial-gradient(circle at bottom left, transparent 20px, #fff 21px),
        radial-gradient(circle at bottom right, transparent 20px, #fff 21px);
    background-size: 51% 51%;
    background-repeat: no-repeat;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px dashed #ff4081;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px dashed #ff80ab;
    border-radius: 15px;
    pointer-events: none;
}

.coupon-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.coupon-content h3 {
    font-size: 1.5rem;
    color: #d81b60;
    margin-bottom: 0.5rem;
}

.redeem-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #ff4081;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.redeem-btn:hover {
    background: #c2185b;
}

.coupon-card.redeemed {
    opacity: 0.6;
    filter: grayscale(100%);
    pointer-events: none;
}

/* --- Kiss Button --- */
.kiss-btn {
    position: fixed;
    bottom: 30px;
    right: 177px;
    left: auto;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid #ff4081;
    color: #d81b60;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s;
}

.kiss-btn:hover {
    transform: scale(1.1);
    background: #fff0f5;
}

.emoji-kiss {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    animation: floatUpFade 1.5s forwards;
    z-index: 10000;
}

@keyframes floatUpFade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* --- Bento Grid Gallery --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid placement */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

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


.bento-wide {
    grid-column: span 2;
}


/* Card styles */
.bento-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 64, 129, 0.25);
    z-index: 5;
}

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

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

/* Hover overlay */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(255, 64, 129, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.bento-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



/* --- Scratch Card --- */
.scratch-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.scratch-card {
    position: relative;
    width: 300px;
    height: 200px;
    border: 4px solid #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: white;
}

.secret-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #ffdde1, #ee9ca7);
    color: #d81b60;
    text-align: center;
    z-index: 1;
    /* Behind canvas */
}

.secret-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.secret-content i {
    font-size: 3rem;
    margin-top: 1rem;
    color: #ff4081;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /* On top */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23000" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>'), auto;
    /* touch-action: none; Prevent scroll while scratching */
}

/* --- Final Magical Touches --- */

/* Special Section */
.special-section {
    text-align: center;
}

/* Spotify Embed */
.music-player-container {
    max-width: 500px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
}

.music-player-container h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.8rem;
}

/* Open When Grid */
.open-when-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.envelope-card {
    background: rgba(255, 255, 255, 0.9);
    width: 250px;
    padding: 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #ff4081;
    position: relative;
    overflow: hidden;
}

.envelope-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(45deg,
            #ff4081,
            #ff4081 10px,
            white 10px,
            white 20px);
}

.envelope-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 64, 129, 0.3);
}

.envelope-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.envelope-card h3 {
    font-size: 1.2rem;
    color: #880e4f;
    margin-bottom: 0.5rem;
}

.envelope-card p {
    color: #555;
    font-size: 0.9rem;
}

/* Floating Message in a Bottle */
.floating-bottle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    font-size: 3rem;
    cursor: pointer;
    z-index: 999;
    animation: floatBottle 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

.floating-bottle:hover {
    transform: scale(1.2) rotate(10deg);
}

.bottle-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: sparkleFade 1.5s infinite;
}

@keyframes floatBottle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    position: relative;
    text-align: center;
    border: 4px solid #ff4081;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #880e4f;
}

.close-modal:hover {
    color: #ff4081;
}

#modal-title {
    color: #d81b60;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#modal-body {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
}