:root {
    --bg-gradient: linear-gradient(135deg, #e0f7fa 0%, #fff9c4 50%, #f8bbd0 100%);
    --text-dark: #2d3436;
    --accent-gold: #ffb300;
    --accent-pink: #ff4757;
    --glass: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed; /* Keeps gradient steady while scrolling */
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 95%;
    max-width: 450px;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* Typography */
.sub-title {
    font-size: 1rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent-pink);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 0.8;      /* Tightens the space within the text block */
    margin: 5px 0 0 0;     /* Pulls the entire heading UP toward the top of the page */
    color: var(--text-dark);
}

.years {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    color: #636e72;
    margin-top: 25px;      /* Pushes "Wonderful Years" DOWN away from the 39 */
}

.name-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-top: 5px;
}

.divider {
    width: 50px;
    height: 4px;
    background: var(--accent-gold);
    margin: 15px auto;
    border-radius: 2px;
}

/* IMAGE FIX: Handling the 2252x4000 photo */
.photo-area {
    width: 100%;
    margin-bottom: 20px;
}

.image-frame {
    width: 100%;
    /* This creates a nice portrait aspect ratio for the card */
    aspect-ratio: 4 / 5; 
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.image-frame img {
    width: 100%;
    height: 100%;
    /* 'cover' is the magic: it fills the frame without stretching, 
       just cropping the excess height of your tall photo */
    object-fit: cover; 
    object-position: center; /* Focuses on the middle of the photo */
}

/* Content Card */
.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.message {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Button */
.btn {
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.4);
}

.btn:hover {
    transform: scale(1.05);
    background: var(--accent-pink);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
    color: white;
}

/* Bubbles Background */
.bubbles span {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    bottom: -100px;
    animation: float 12s infinite linear;
}

@keyframes float {
    to { transform: translateY(-120vh); opacity: 0; }
}

.bubbles span:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 10s; }
.bubbles span:nth-child(2) { width: 80px; height: 80px; left: 75%; animation-duration: 15s; }
.bubbles span:nth-child(3) { width: 30px; height: 30px; left: 40%; animation-duration: 8s; }
.bubbles span:nth-child(4) { width: 60px; height: 60px; left: 85%; animation-duration: 13s; }

footer {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.7;
}