/* ============================================= */
/* CSS CUSTOM PROPERTIES                         */
/* ============================================= */
:root {
    --pink: #FFDCE5;
    --pink-deep: #FFB8C6;
    --pink-hot: #FF8FAB;
    --cream: #FFF5E4;
    --lavender: #EAD7FF;
    --mint: #DFFFE0;
    --dark: #2D2D2D;
    --white: #FFFDF7;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-md: rgba(0, 0, 0, 0.1);

    --font: 'Quicksand', 'Nunito', sans-serif;

    --radius: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
}

/* ============================================= */
/* RESET & BASE                                  */
/* ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: linear-gradient(180deg, var(--pink) 0%, var(--cream) 30%, var(--lavender) 60%, var(--mint) 80%, var(--cream) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================= */
/* FLOATING HEARTS BACKGROUND                    */
/* ============================================= */
#floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -40px;
    font-size: 20px;
    opacity: 0;
    animation: floatUp var(--duration) var(--delay) ease-in infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
        transform: translateY(-50vh) rotate(180deg) scale(1);
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* ============================================= */
/* SECTIONS BASE                                 */
/* ============================================= */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    z-index: 1;
}

.section-content {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* ============================================= */
/* FADE-IN ANIMATION (scroll triggered)          */
/* ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered delay for list items */
.compliment-item.fade-in:nth-child(1) { transition-delay: 0s; }
.compliment-item.fade-in:nth-child(2) { transition-delay: 0.1s; }
.compliment-item.fade-in:nth-child(3) { transition-delay: 0.15s; }
.compliment-item.fade-in:nth-child(4) { transition-delay: 0.2s; }
.compliment-item.fade-in:nth-child(5) { transition-delay: 0.25s; }
.compliment-item.fade-in:nth-child(6) { transition-delay: 0.3s; }
.compliment-item.fade-in:nth-child(7) { transition-delay: 0.35s; }
.compliment-item.fade-in:nth-child(8) { transition-delay: 0.4s; }

/* ============================================= */
/* CHARACTER STYLES                              */
/* ============================================= */
.character-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kawaii-char {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
}

.kawaii-char-mini {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.char-medium .kawaii-char {
    width: 140px;
}

.char-large .kawaii-char {
    width: 180px;
}

/* Blush pulse */
.blush {
    animation: blushPulse 2.5s ease-in-out infinite;
}

@keyframes blushPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Idle bounce */
.char-sad {
    animation: gentleBounce 2.5s ease-in-out infinite;
}

.char-begging {
    animation: gentleBounce 2s ease-in-out infinite;
}

.char-hopeful {
    animation: gentleBounce 1.8s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Spin character (compliments section) */
.char-spin {
    animation: gentleSway 3s ease-in-out infinite;
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    25% { transform: rotate(3deg) translateY(-5px); }
    50% { transform: rotate(-2deg) translateY(-8px); }
    75% { transform: rotate(2deg) translateY(-3px); }
}

/* Mini bounce for quote card chars */
.char-bounce-mini {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Sparkles twinkle */
.sparkle {
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Float hearts on character */
.float-heart {
    animation: heartFloat 2.5s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-6px); opacity: 1; }
}

/* Dramatic character */
.char-dramatic {
    animation: dramaticJump 0.5s ease-in-out infinite;
}

@keyframes dramaticJump {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(5deg); }
}

/* Tears dripping */
.tear {
    animation: tearDrip 1s ease-in infinite;
}

@keyframes tearDrip {
    0% { opacity: 0; transform: translateY(-5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

/* Waving arms */
.wave-arm {
    animation: waveArm 0.6s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes waveArm {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

/* Happy character jump */
.char-happy {
    animation: happyJump 0.6s ease-in-out infinite;
}

@keyframes happyJump {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}

/* Shooting hearts on happy char */
.shoot-heart {
    animation: shootOut 1.2s ease-out infinite;
}

@keyframes shootOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--sx, -20px), var(--sy, -40px)) scale(0.3); opacity: 0; }
}

.shoot-heart:nth-child(odd) {
    --sx: 30px;
    --sy: -50px;
    animation-delay: 0.3s;
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero-section {
    padding-top: 80px;
}

.hero-heading {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B81 0%, #FF8FAB 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    animation: headingPulse 3s ease-in-out infinite;
}

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

.hero-subtext {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 500;
    color: #555;
    line-height: 1.7;
    max-width: 550px;
}

.scroll-hint {
    margin-top: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 0.9rem;
    color: var(--pink-hot);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================= */
/* QUOTE CARDS                                   */
/* ============================================= */
.quotes-section {
    min-height: auto;
    padding: 80px 20px;
}

.quote-card {
    background: var(--card-bg, var(--cream));
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 8px 30px var(--shadow), 0 2px 8px var(--shadow);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-md), 0 4px 12px var(--shadow);
}

.quote-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quote-character-mini {
    flex-shrink: 0;
}

.quote-text-area {
    text-align: left;
}

.quote-main {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.quote-message {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-weight: 500;
    color: #555;
    line-height: 1.7;
}

/* ============================================= */
/* APOLOGY SECTION                               */
/* ============================================= */
.apology-section {
    min-height: auto;
    padding: 80px 20px;
}

.apology-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.apology-text {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 8px 30px var(--shadow);
    text-align: center;
}

.apology-text p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 500;
    color: #555;
    line-height: 2;
}

.apology-promise {
    font-weight: 700 !important;
    color: var(--dark) !important;
    font-size: clamp(1rem, 2.8vw, 1.15rem) !important;
}

/* ============================================= */
/* COMPLIMENTS SECTION                           */
/* ============================================= */
.compliments-section {
    min-height: auto;
    padding: 80px 20px;
}

.compliments-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.compliments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.compliment-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 18px 24px;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.compliment-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px var(--shadow-md);
}

/* ============================================= */
/* FORGIVENESS SECTION                           */
/* ============================================= */
.forgiveness-section {
    min-height: 80vh;
}

.forgiveness-title {
    font-size: clamp(1.8rem, 5.5vw, 2.6rem) !important;
}

.buttons-wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.forgive-btn {
    font-family: var(--font);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 700;
    padding: 18px 48px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 24px var(--shadow-md);
    letter-spacing: 0.5px;
    animation: btnBounce 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.forgive-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.forgive-btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-yes {
    background: linear-gradient(135deg, #a8e6a3 0%, #7dd87d 100%);
    color: #2D5A27;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(125, 216, 125, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #FFB8C6 0%, #FF8FAB 100%);
    color: #8B2252;
}

.btn-no:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(255, 143, 171, 0.4);
}

.btn-yes.grow {
    animation: growButton 0.6s ease forwards;
}

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

@keyframes btnBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================= */
/* OVERLAYS                                      */
/* ============================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.no-overlay {
    background: rgba(255, 220, 229, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.yes-overlay {
    background: rgba(223, 255, 224, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 40px 24px;
    text-align: center;
    max-width: 500px;
}

.overlay-text {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    animation: textPop 0.5s ease-out;
}

@keyframes textPop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-text {
    background: linear-gradient(135deg, #FF6B81, #c084fc, #7dd87d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
}

/* Close overlay on click hint */
.overlay-content::after {
    content: 'tap anywhere to close';
    font-size: 0.8rem;
    color: rgba(45, 45, 45, 0.4);
    font-weight: 500;
    margin-top: 12px;
}

/* ============================================= */
/* CONFETTI                                      */
/* ============================================= */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.confetti-heart {
    position: absolute;
    font-size: 24px;
    animation: confettiFall var(--fall-duration, 3s) var(--fall-delay, 0s) ease-in forwards;
    pointer-events: none;
    user-select: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 768px) {
    .section {
        padding: 50px 16px;
    }

    .quote-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .quote-text-area {
        text-align: center;
    }

    .kawaii-char {
        width: 130px;
    }

    .char-medium .kawaii-char {
        width: 115px;
    }

    .char-large .kawaii-char {
        width: 150px;
    }

    .kawaii-char-mini {
        width: 80px;
    }

    .buttons-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .forgive-btn {
        width: 100%;
        padding: 16px 40px;
    }

    .quote-card {
        padding: 24px 20px;
    }

    .apology-text {
        padding: 28px 22px;
    }

    .compliment-item {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .kawaii-char {
        width: 110px;
    }

    .char-medium .kawaii-char {
        width: 100px;
    }

    .char-large .kawaii-char {
        width: 130px;
    }

    .kawaii-char-mini {
        width: 65px;
    }

    .hero-heading {
        font-size: 1.6rem;
    }

    .section-content {
        gap: 20px;
    }

    .overlay-content {
        padding: 30px 18px;
    }
}

/* ============================================= */
/* ACCESSIBILITY: reduced motion                 */
/* ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
