/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    --bg-gradient: linear-gradient(135deg, #0e0a1a 0%, #1d0724 50%, #300627 100%);
    --primary: #ff477e;
    --primary-glow: rgba(255, 71, 126, 0.4);
    --secondary: #ff7096;
    --accent: #f72585;
    --text-main: #f8f9fa;
    --text-muted: #e9ecef;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --font-handwriting: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

/* ==========================================================================
   Glassmorphism Helper Class
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Music Float Icon
   ========================================================================== */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 71, 126, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 71, 126, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}

.music-control i {
    color: var(--primary);
    font-size: 1.1rem;
}

.music-control span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.music-control.playing {
    background: rgba(255, 71, 126, 0.3);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.music-control.playing i {
    animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

.avatar-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar.ring-pink {
    border: 3px solid #ff477e;
    box-shadow: 0 0 20px rgba(255, 71, 126, 0.4);
}

.avatar.ring-rose {
    border: 3px solid #ff7096;
    box-shadow: 0 0 20px rgba(255, 112, 150, 0.4);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.heart-pulse {
    font-size: 2.5rem;
    animation: heartBeat 1.2s infinite;
}

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

    20% {
        transform: scale(1.25);
    }

    40% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1.25);
    }

    80% {
        transform: scale(1);
    }

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

.love-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #ffb3c6, #ff477e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease forwards;
}

.love-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease forwards;
}

/* Anniversary Counter */
.counter-container {
    max-width: 550px;
    width: 100%;
    margin-bottom: 4rem;
    transform: translateY(0);
    animation: fadeInUp 1.4s ease forwards;
}

.counter-container h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    min-width: 85px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.time-block .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.time-block .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
}

.counter-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #ffb3c6;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    user-select: none;
    margin-top: 2rem;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {

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

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

/* ==========================================================================
   Section Formatting
   ========================================================================== */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffc0cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
    vertical-align: middle;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* ==========================================================================
   Scrapbook Photo Gallery
   ========================================================================== */
.scrapbook-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.polaroid {
    background: #ffffff;
    padding: 18px 18px 25px 18px;
    width: 290px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transform: rotate(var(--rotation));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.polaroid.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) rotate(var(--rotation));
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, z-index 0s;
}

.polaroid.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotation));
}

.polaroid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 40%;
    width: 70px;
    height: 25px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: rotate(-5deg);
    pointer-events: none;
}

.polaroid-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #111;
    border: 1px solid #ddd;
    border-radius: 2px;
}

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

.polaroid-caption {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: #2b2b2b;
    text-align: center;
    padding-top: 15px;
    user-select: none;
}

.polaroid:hover {
    transform: scale(1.08) rotate(0deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.polaroid:hover .polaroid-img {
    transform: scale(1.06);
}

/* ==========================================================================
   Envelope & Love Letter
   ========================================================================== */
.envelope-wrapper {
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.envelope {
    position: relative;
    width: 440px;
    height: 200px;
    background: #e63946;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

/* Top flap */
.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 220px solid transparent;
    border-right: 220px solid transparent;
    border-top: 100px solid #d90429;
    transform-origin: top;
    transition: transform 0.4s ease 0.2s, z-index 0.2s ease 0.2s;
    z-index: 4;
}

/* Bottom and side pockets */
.pocket {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 220px solid #f07167;
    border-right: 220px solid #f07167;
    border-bottom: 100px solid #d90429;
    border-radius: 0 0 8px 8px;
    z-index: 3;
}

/* The actual letter inside */
.letter {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 420px;
    height: 180px;
    background: #fffdf6;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.5s ease 0s, height 0.5s ease 0s, z-index 0.1s ease 0.3s;
    overflow-y: auto;
}

.letter-text {
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: left;
}

/* Opened Envelope State */
.envelope-wrapper.open .flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition: transform 0.4s ease 0s, z-index 0.2s ease 0.1s;
}

.envelope-wrapper.open .letter {
    transform: translateY(-130px);
    height: 380px;
    z-index: 5;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease 0.3s, height 0.5s ease 0.3s, z-index 0.1s ease 0.3s;
}

.envelope-wrapper.open .envelope {
    transform: translateY(60px);
}

.envelope-hint {
    margin-top: 2rem;
    font-size: 1rem;
    color: #ffb3c6;
    font-style: italic;
    animation: heartBeat 1.8s infinite;
}

/* ==========================================================================
   Romantic Video Section
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: opacity 0.5s ease;
}

.play-btn-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
}

.play-btn-circle i {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-left: 5px;
    /* Offset for alignment */
    transition: transform 0.3s;
}

.overlay-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.video-wrapper:hover video {
    transform: scale(1.03);
}

.video-wrapper:hover .play-btn-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent);
    background: var(--accent);
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Surprise Section & Heart Rain
   ========================================================================== */
.surprise-card {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.sparkle-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: rotateMusic 6s linear infinite;
}

.surprise-btn {
    position: relative;
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surprise-btn span {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    transform: translate(-30%, -30%);
}

.surprise-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 71, 126, 0.6);
}

.surprise-btn:active {
    transform: translateY(1px);
}

.surprise-btn:hover .btn-glow {
    opacity: 1;
}

/* ==========================================================================
   Quotes Carousel
   ========================================================================== */
.quote-slider {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 71, 126, 0.3);
}

.quote-content {
    min-height: 100px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #ffccd5;
    transition: opacity 0.4s ease;
    white-space: pre-line;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--primary);
}

/* ==========================================================================
   Modal for Photo View
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 5rem 0 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.love-signature {
    font-family: var(--font-handwriting);
    font-size: 2.8rem;
    color: var(--primary);
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 71, 126, 0.2);
}

.footer .copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Global Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0e0a1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 126, 0.3);
    border-radius: 5px;
    border: 2px solid #0e0a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 71, 126, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 0.8rem;
    }
    .love-title {
        font-size: 2.5rem;
    }

    .love-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .timer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .time-block {
        min-width: 70px;
    }

    .time-block .number {
        font-size: 1.8rem;
    }

    .polaroid {
        width: 260px;
    }

    .polaroid-img-wrapper {
        height: 220px;
    }

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

    .quote-text {
        font-size: 1.3rem;
    }

    .envelope-wrapper {
        height: 350px;
    }

    .envelope-wrapper.open .letter {
        height: 330px;
        transform: translateY(-110px);
    }

    .envelope-wrapper.open .envelope {
        transform: translateY(50px);
    }

    .envelope {
        width: 340px;
    }

    .flap {
        border-left: 170px solid transparent;
        border-right: 170px solid transparent;
    }

    .pocket {
        border-left: 170px solid #f07167;
        border-right: 170px solid #f07167;
    }

    .letter {
        width: 320px;
        padding: 15px;
    }

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

    .glass-card {
        padding: 1.5rem 1rem;
    }

    .stats-card {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   Intro / Welcome Overlay Styling
   ========================================================================== */
body.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-card {
    max-width: 450px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.intro-heart {
    font-size: 4rem;
    animation: heartBeat 1.2s infinite;
}

.intro-btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--primary-glow);
    transition: all 0.3s ease;
}

.intro-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 71, 126, 0.6);
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

/* ==========================================================================
   Chat Stats Section Styling
   ========================================================================== */
.stats-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stat-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.boy-stat .player-icon {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.girl-stat .player-icon {
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 700;
}

.word-count {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.word-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-divider {
    font-size: 1.8rem;
    color: rgba(255, 71, 126, 0.3);
    animation: heartBeat 1.8s infinite;
}

.stats-middle-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    width: 100%;
}

.stats-keywords {
    text-align: center;
    width: 100%;
}

.stats-keywords h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    color: #ffccd5;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
    justify-content: center;
}

.keyword-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.keyword-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 71, 126, 0.08);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 71, 126, 0.15);
}

.key-word {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.key-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Responsive adjust for stats */
@media (max-width: 768px) {
    .stats-top {
        flex-direction: column;
        gap: 1.5rem;
    }
    .stat-player {
        width: 100%;
    }
    .word-count {
        font-size: 2.2rem;
    }
    .keywords-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    .key-word {
        font-size: 0.8rem;
    }
    .key-count {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .keywords-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .keyword-item {
        padding: 8px 6px;
        min-width: 0;
    }
    .key-word {
        font-size: 0.8rem;
        text-align: center;
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }
    .key-count {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   Interactive Love Jar & Quiz Section Styling
   ========================================================================== */
.interactive-games-section {
    padding: 4rem 0;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffccd5;
}

.game-instruction {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
}

/* Love Jar Styling */
.jar-container {
    position: relative;
    width: 120px;
    height: 180px;
    cursor: pointer;
    margin: 1.5rem 0;
    transition: transform 0.2s ease;
}

.jar-lid {
    width: 70px;
    height: 20px;
    background: #d90429;
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.jar-body {
    width: 110px;
    height: 155px;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px 20px 25px 25px;
    margin: -5px auto 0 auto;
    position: relative;
    box-shadow: inset 0 8px 15px rgba(255,255,255,0.1), 0 8px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jar-body::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 15px;
    height: 120px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    pointer-events: none;
}

.jar-heart {
    font-size: 3rem;
    animation: floatHeart 2.5s ease-in-out infinite;
    text-shadow: 0 0 15px var(--primary-glow);
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.1); }
}

/* Jar Wiggle Animation on click */
.jar-container.wiggle {
    animation: jarWiggleAnimation 0.5s ease;
}

@keyframes jarWiggleAnimation {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-12deg) scale(0.95); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-8deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-4deg); }
    90% { transform: rotate(2deg); }
}

/* Jar Note Popup */
.jar-note-popup {
    background: #fffdf6;
    border: 1px solid rgba(255, 71, 126, 0.3);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.2);
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.jar-note-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#jar-note-text {
    font-family: var(--font-handwriting);
    font-size: 1.35rem;
    color: #2b2b2b;
    line-height: 1.4;
    text-align: center;
}

/* Quiz Container Styling */
.quiz-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.quiz-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

#quiz-question-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.4s ease;
}

.quiz-question-wrapper h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.4;
    text-align: left;
}

.quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-choice-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-choice-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.quiz-choice-btn.correct {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
    color: #2ecc71;
    font-weight: 600;
}

.quiz-choice-btn.wrong {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Quiz Feedback Box Overlay */
.quiz-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.4s ease;
    height: 0;
    overflow: hidden;
}

.quiz-feedback.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    height: auto;
    margin-top: 10px;
}

#quiz-feedback-emoji {
    font-size: 2.2rem;
    animation: heartBeat 1.2s infinite;
}

#quiz-feedback-text {
    font-size: 0.95rem;
    font-weight: 600;
}

#quiz-feedback-text.correct-msg {
    color: #2ecc71;
}

#quiz-feedback-text.wrong-msg {
    color: #e74c3c;
}

/* ==========================================================================
   Starred Messages Section Styling
   ========================================================================== */
.starred-messages-section {
    padding: 5rem 0;
}

.starred-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.star-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.star-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 126, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.star-overlay i {
    font-size: 1.8rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.star-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.25);
    border-color: var(--primary);
}

.star-card:hover .star-img {
    transform: scale(1.02);
}

.star-card:hover .star-overlay {
    opacity: 1;
}

.star-card:hover .star-overlay i {
    transform: scale(1);
}

/* Responsive star grid */
@media (max-width: 768px) {
    .star-card {
        width: 45%; /* Show 2 side-by-side on mobile */
    }
}

@media (max-width: 480px) {
    .star-card {
        width: 100%; /* Show single cards on narrow screens */
        max-width: 240px;
    }
}

@media (max-width: 390px) {
    .envelope {
        width: 280px;
    }
    .flap {
        border-left: 140px solid transparent;
        border-right: 140px solid transparent;
        border-top: 80px solid #d90429;
    }
    .pocket {
        border-left: 140px solid #f07167;
        border-right: 140px solid #f07167;
        border-bottom: 80px solid #d90429;
    }
    .letter {
        width: 260px;
        padding: 12px;
    }
    .letter-text {
        font-size: 0.82rem;
    }
    .envelope-wrapper.open .letter {
        transform: translateY(-90px);
        height: 310px;
    }
    .envelope-wrapper.open .envelope {
        transform: translateY(40px);
    }
}

/* ==========================================================================
   Special Map / Carved Names Section Styling
   ========================================================================== */
.map-section {
    padding: 6rem 0;
}

.map-container {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.map-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 15px 35px var(--glass-shadow);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-img-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 126, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.map-card-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.map-card-overlay span {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 71, 126, 0.2);
    border-color: var(--primary);
}

.map-card:hover .map-img {
    transform: scale(1.03);
}

.map-card:hover .map-card-overlay {
    opacity: 1;
}

.map-card:hover .map-card-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   Aşk Kuponları (Love Coupons) Section Styling
   ========================================================================== */
.coupons-section {
    padding: 6rem 0;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.coupon-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 10px 25px var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.coupon-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.coupon-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: transform 0.3s ease;
}

.coupon-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffccd5;
}

.coupon-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-top: 5px;
}

.coupon-count {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary-glow);
}

.coupon-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
    width: 100%;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 71, 126, 0.15);
    border-color: var(--primary);
}

.coupon-card.coupon-clicked {
    transform: scale(0.95);
    border-color: var(--accent);
}

.coupon-card:hover .coupon-emoji {
    transform: scale(1.15) rotate(5deg);
}

.coupon-card:hover .coupon-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.4);
}

.coupon-card:active {
    transform: scale(0.98);
}

/* Mobile responsive for coupon grid */
@media (max-width: 768px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .coupon-card {
        padding: 1rem;
        border-radius: 16px;
    }
    .coupon-emoji {
        font-size: 2rem;
    }
    .coupon-card h3 {
        font-size: 1.05rem;
    }
    .coupon-body p {
        font-size: 0.75rem;
        min-height: 40px;
    }
    .coupon-counter {
        font-size: 0.75rem;
    }
    .coupon-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Dilek Kavanozu (Wish Jar) & Wishes Modal Styling
   ========================================================================== */

/* Wish Jar Specific Styling */
.wish-jar .jar-lid {
    background: linear-gradient(135deg, #7209b7, #b5179e);
    box-shadow: 0 4px 8px rgba(114, 9, 183, 0.4);
}

.wish-jar .jar-body {
    border-color: rgba(181, 23, 158, 0.4);
    box-shadow: inset 0 8px 15px rgba(255, 255, 255, 0.1), 0 8px 25px rgba(114, 9, 183, 0.35);
}

.wish-star {
    font-size: 3rem;
    animation: floatHeart 2.8s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(181, 23, 158, 0.7);
    color: #ffb703; /* A warm golden glow */
}

/* Modal Content Adjustment for wishes */
.wish-modal-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Wishes Scrollable List */
.wishes-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px 10px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for wishes list */
.wishes-list::-webkit-scrollbar {
    width: 6px;
}
.wishes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(181, 23, 158, 0.4);
    border-radius: 3px;
}
.wishes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 23, 158, 0.7);
}

/* Individual Wish Note (Parchment Paper style) */
.wish-note {
    background: #fffdf6;
    color: #2b2b2b;
    font-family: 'Caveat', cursive, var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    max-width: 100%;
    transform: rotate(var(--rot, -1deg));
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border-left: 2px solid rgba(114, 9, 183, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

/* Top pin/tape simulation on notes */
.wish-note::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 42%;
    width: 30px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transform: rotate(-3deg);
}

.wish-note-text {
    line-height: 1.3;
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.wish-note-date {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: auto;
}

.wish-note:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

/* Wish Input Form Area */
.wish-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.wish-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    height: 80px;
    transition: all 0.3s ease;
    outline: none;
}

.wish-form textarea:focus {
    border-color: rgba(181, 23, 158, 0.7);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(181, 23, 158, 0.25);
}

/* Responsive adjustments for wish list notes */
@media (max-width: 480px) {
    .wishes-list {
        max-height: 220px;
        gap: 10px;
    }
    .wish-note {
        width: 100%;
        min-width: 0;
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    .wish-modal-content {
        padding: 1.2rem;
    }
}