@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Bubblegum+Sans&family=Comic+Neue:wght@700&family=Quicksand:wght@400;500;600;700&display=swap');

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

html, body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #fee9f7, #e8f5fe, #fef2e8, #f0ffe8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    position: relative;
    color: #4a4a4a;
}

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

.cursor {
    width: 20px;
    height: 20px;
    background: pink;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.2s;
    z-index: 9999;
}

/* ===== TAB NAV ===== */
.tab-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(255, 105, 180, 0.15);
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    color: #ff69b4;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(255, 105, 180, 0.15);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 105, 180, 0.3);
}

.tab-btn.active {
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.5);
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    min-height: 85vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.screen.active {
    display: flex;
    animation: screenFadeIn 0.7s ease;
}

@keyframes screenFadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.container.wide {
    max-width: 1200px;
}

/* ===== BIRTHDAY SCREEN ===== */
h1 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3rem;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.name-highlight {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4em;
    color: #da3fb0;
}

.subtitle {
    display: inline-block;
    font-size: 0.5em;
    color: #8a2be2;
    margin-top: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

.greeting {
    font-size: 1.4rem;
    color: #8a2be2;
    margin-bottom: 2.5rem;
    min-height: 2em;
}

.cta-button, .shuffle-button, .yes-button, .no-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
}

.cta-button:hover, .shuffle-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.7);
}

.next-screen-btn {
    margin-top: 2rem;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-hearts {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

/* ===== REASONS SCREEN ===== */
#reasons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reason-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
}

.reason-text {
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.gif-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.gif-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.reason-card:hover .gif-overlay {
    opacity: 1;
}

.reason-counter {
    font-size: 0.9rem;
    color: #ff69b4;
    margin-top: 1rem;
    opacity: 0.8;
}

.ending-section {
    margin-top: 3rem;
    text-align: center;
}

.teddy-hug {
    width: 180px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255,105,180,0.25);
}

.teddy-hug img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.ending-text {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.8rem;
    color: #ff69b4;
    margin: 1.5rem 0;
}

.shuffle-button.story-mode {
    background: linear-gradient(45deg, #9b6dff, #ff6dc7);
    transform: scale(1.05);
}

/* ===== SORRY SCREEN ===== */
.sorry-title {
    color: #7a5fff;
}

.sorry-lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #666;
}

.sorry-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sorry-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 1.8rem;
    width: 260px;
    box-shadow: 0 8px 20px rgba(122, 95, 255, 0.15);
    transition: transform 0.3s;
}

.sorry-card:hover {
    transform: translateY(-6px);
}

.sorry-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.sorry-card h3 {
    font-family: 'Bubblegum Sans', cursive;
    color: #7a5fff;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
}

.sorry-card p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #555;
}

.hug-gif {
    width: 220px;
    margin: 1.5rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255,105,180,0.25);
}

.hug-gif img {
    width: 100%;
    display: block;
}

.sorry-note {
    font-size: 1.1rem;
    color: #8a2be2;
    margin-bottom: 1rem;
}

/* ===== I LOVE YOU SCREEN ===== */
.love-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #ff3d81;
}

.heartbeat-icon {
    font-size: 3rem;
    margin: 1rem 0;
    animation: heartbeat 1.4s infinite;
}

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

.love-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 1.5rem auto 0;
    color: #555;
}

/* ===== MEMORIES SCREEN ===== */
.memories-lead {
    font-size: 1.1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto 2rem;
}

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

.memory-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.memory-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.memory-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.memory-date {
    font-family: 'Dancing Script', cursive;
    color: #ff69b4;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.memory-caption {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

/* ===== PROPOSAL SCREEN ===== */
.proposal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #ff3d81;
}

.proposal-text {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 1.2rem auto 2rem;
    color: #555;
}

.proposal-big {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.3rem;
    color: #8a2be2;
    margin-bottom: 2rem;
}

.proposal-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    min-height: 80px;
}

.yes-button {
    font-size: 1.3rem;
    padding: 1.1rem 2.2rem;
    transition: all 0.3s ease;
}

.no-button {
    background: #e0e0e0;
    color: #777;
    box-shadow: none;
    position: relative;
    transition: transform 0.15s ease, left 0.15s ease, top 0.15s ease;
}

.hidden {
    display: none;
}

.ring-emoji {
    font-size: 4rem;
    animation: heartbeat 1.4s infinite;
    margin-bottom: 1rem;
}

.celebrate-title {
    font-family: 'Bubblegum Sans', cursive;
    color: #ff3d81;
    font-size: 2.8rem;
}

.celebrate-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 1.5rem auto 0;
    color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.1rem; }
    .love-title { font-size: 2.6rem; }
    .proposal-title { font-size: 2.2rem; }
    .proposal-big { font-size: 1.7rem; }
    .celebrate-title { font-size: 2.1rem; }
    .greeting { font-size: 1.1rem; }
    .cta-button, .shuffle-button, .yes-button { font-size: 1rem; }
    .tab-btn { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
    .proposal-buttons { flex-direction: row; flex-wrap: wrap; }
}
