/* =============================================
   MINIMALIST MODERN CUTE DESIGN
   ============================================= */

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

:root {
    --primary-pink: #ff85a2;
    --secondary-pink: #ff6b9d;
    --light-pink: #ffc4d6;
    --ultra-light-pink: #fff5f8;
    --dark-pink: #ff4d7d;
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --shadow: rgba(255, 107, 157, 0.15);
    --glow: rgba(255, 107, 157, 0.3);
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ffeef4 0%, #ffe4ed 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* =============================================
   PARTICLES BACKGROUND
   ============================================= */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* =============================================
   MAIN WRAPPER & CONTAINER
   ============================================= */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    padding: 60px 50px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
    position: relative;
}

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

/* =============================================
   IMAGE CONTAINER
   ============================================= */
.animation-container {
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--glow), transparent);
    border-radius: 50%;
    filter: blur(30px);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.crying-animation {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    box-shadow: 
        0 15px 40px var(--shadow),
        0 0 0 8px var(--ultra-light-pink),
        0 0 0 10px rgba(255, 107, 157, 0.1);
    object-fit: cover;
    background: var(--ultra-light-pink);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gentleFloat 4s ease-in-out infinite;
}

.crying-animation:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 50px var(--glow),
        0 0 0 8px var(--ultra-light-pink),
        0 0 0 10px rgba(255, 107, 157, 0.2);
}

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

/* =============================================
   TEXT STYLING
   ============================================= */
.text-container {
    margin-bottom: 40px;
}

.apology-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-pink);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Quicksand', sans-serif;
}

.subtitle {
    font-size: 1rem;
    color: var(--primary-pink);
    font-weight: 500;
    opacity: 0.9;
}

/* =============================================
   BUTTONS MINIMALIST
   ============================================= */
.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    padding: 10px;
}

.btn {
    padding: 16px 40px;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

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

.btn:active {
    transform: scale(0.96);
}

/* YES BUTTON - Primary Action */
.btn-yes {
    background: linear-gradient(135deg, var(--secondary-pink), var(--dark-pink));
    color: var(--white);
    box-shadow: 0 8px 25px var(--shadow);
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--glow);
}

.btn-yes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-yes:hover::before {
    left: 100%;
}

/* NO BUTTON - Secondary Action */
.btn-no {
    background: var(--white);
    color: var(--secondary-pink);
    border: 2px solid var(--light-pink);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.btn-no:hover {
    background: var(--ultra-light-pink);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.15);
}

/* =============================================
   MODAL MINIMALIST
   ============================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--white);
    margin: 10% auto;
    padding: 50px 45px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(255, 107, 157, 0.25),
        0 0 1px rgba(0, 0, 0, 0.05);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 25px;
}

.check-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-pink), var(--dark-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    box-shadow: 0 10px 30px var(--glow);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.check-circle svg {
    width: 45px;
    height: 45px;
    color: var(--white);
    animation: heartPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    transform: scale(0);
}

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

.modal-title {
    font-size: 2rem;
    color: var(--secondary-pink);
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.modal-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 35px;
    animation: fadeInUp 0.5s ease 0.4s both;
    opacity: 0.9;
}

.modal-promise {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-pink);
    margin-top: 15px;
}

.modal-close {
    padding: 16px 45px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--secondary-pink), var(--dark-pink));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--glow);
}

.modal-close:active {
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 45px 35px;
        width: 95%;
        border-radius: 25px;
    }
    
    .apology-text {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .crying-animation {
        width: 220px;
        height: 220px;
    }
    
    .image-glow {
        width: 240px;
        height: 240px;
    }
    
    .button-wrapper {
        gap: 15px;
    }
    
    .btn {
        padding: 14px 35px;
        font-size: 1rem;
        min-width: 145px;
    }
    
    .modal-content {
        padding: 40px 30px;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    .modal-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 25px;
    }
    
    .apology-text {
        font-size: 1.5rem;
    }
    
    .crying-animation {
        width: 190px;
        height: 190px;
    }
    
    .image-glow {
        width: 210px;
        height: 210px;
    }
    
    .button-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
    }
    
    /* Allow button to move on mobile */
    .btn-no {
        max-width: 260px;
    }
    
    .modal-content {
        padding: 35px 25px;
        margin: 15% auto;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .check-circle {
        width: 70px;
        height: 70px;
    }
    
    .check-circle svg {
        width: 35px;
        height: 35px;
    }
}

/* =============================================
   HUG GIF MODAL
   ============================================= */
.hug-modal {
    z-index: 2000;
}

.hug-content {
    position: relative;
    background: var(--white);
    margin: 8% auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(255, 107, 157, 0.25),
        0 0 1px rgba(0, 0, 0, 0.05);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
}

.hug-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px var(--shadow);
}

.hug-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-pink);
    margin-top: 15px;
    animation: fadeInUp 0.5s ease 0.3s both;
}