:root {
    --color-cream: #faf5f0;
    --color-blush: #f4dcd6;
    --color-rose-gold: #b76e79;
    --color-deep-rose: #8a4b56;
    --color-text: #4a3b3c;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-image: url('silk_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Warm, soft gradient overlay over the background image */
    background: linear-gradient(135deg, rgba(244, 220, 214, 0.4) 0%, rgba(250, 245, 240, 0.1) 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 650px;
}

.content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(138, 75, 86, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 300;
    color: var(--color-deep-rose);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.apology-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: var(--color-text);
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.btn {
    background: linear-gradient(135deg, var(--color-rose-gold), var(--color-deep-rose));
    color: var(--color-cream);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.glow-btn {
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.6), 0 4px 15px rgba(183, 110, 121, 0.4);
    animation: pulsatingGlow 2.5s infinite alternate;
}

@keyframes pulsatingGlow {
    0% {
        box-shadow: 0 0 15px rgba(183, 110, 121, 0.4), 0 4px 10px rgba(183, 110, 121, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(183, 110, 121, 0.8), 0 6px 20px rgba(183, 110, 121, 0.5);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-deep-rose);
    border: 1px solid var(--color-rose-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(183, 110, 121, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(138, 75, 86, 0.2);
}

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

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -10%;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: floatUp 15s linear infinite;
}

.heart:nth-child(1) { left: 10%; animation-duration: 12s; font-size: 2rem; }
.heart:nth-child(2) { left: 30%; animation-duration: 18s; animation-delay: 2s; }
.heart:nth-child(3) { left: 50%; animation-duration: 15s; animation-delay: 5s; font-size: 1.8rem; }
.heart:nth-child(4) { left: 70%; animation-duration: 14s; animation-delay: 1s; }
.heart:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 7s; font-size: 2.2rem; }
.heart:nth-child(6) { left: 20%; animation-duration: 19s; animation-delay: 4s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Fluid Entrance Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

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

/* Responsiveness */
@media (max-width: 600px) {
    .content {
        padding: 3rem 1.5rem;
        border-radius: 25px;
    }
    .heading {
        font-size: 2.5rem;
    }
    .apology-text {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    .button-group {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
    }
    .btn {
        width: 100%;
        padding: 1.1rem;
        font-size: 1.05rem;
    }
}
