:root {
    --primary-color: #ff6bad;
    --secondary-color: #6c5ce7;
    --accent-color: #ffd700;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-main);
    background: #0f1020;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('background.png') no-repeat center center/cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease-out;
}

#background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(15, 16, 32, 0.8) 100%);
}

.container {
    width: 90%;
    max-width: 600px;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 3rem 3rem 3rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 20px rgba(255, 107, 173, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.glass-card.visible {
    transform: translateY(0);
    opacity: 1;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #ffb6c1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.name {
    display: block;
    font-size: 4rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 173, 0.5);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 173, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 173, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #ff9a9e);
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 85%;
    max-width: 450px;
    opacity: 1 !important;
    transform: none !important;
    border: 2px solid var(--primary-color);
}

.heart-container {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.floating-heart {
    position: absolute;
    animation: heartFloat 2s ease-out forwards;
    pointer-events: none;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.petal {
    position: fixed;
    bottom: -50px;
    pointer-events: none;
    z-index: 5;
    animation: float var(--duration) linear infinite;
    opacity: 0;
}

.hidden-message {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buquê de Rosas */
.bouquet {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    margin-top: 2rem;
    position: relative;
}

.rose {
    position: relative;
    margin: 0 -15px;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.rose:nth-child(1) {
    transform: rotate(-15deg);
}

.rose:nth-child(2) {
    transform: translateY(-20px);
    z-index: 2;
}

.rose:nth-child(3) {
    transform: rotate(15deg);
}

.rose:hover {
    transform: scale(1.1) translateY(-10px) !important;
    z-index: 5;
}

.flower {
    position: relative;
    width: 60px;
    height: 60px;
    animation: bloom 1s ease-out;
}

.petal-rose {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ff4d94, #ff0055);
    border-radius: 50% 50% 10% 50%;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
    transition: all 0.5s ease;
}

.flower .petal-rose:nth-child(1) {
    transform: scale(0.6);
    z-index: 5;
}

.flower .petal-rose:nth-child(2) {
    transform: rotate(72deg) scale(0.7);
}

.flower .petal-rose:nth-child(3) {
    transform: rotate(144deg) scale(0.8);
}

.flower .petal-rose:nth-child(4) {
    transform: rotate(216deg) scale(0.9);
}

.flower .petal-rose:nth-child(5) {
    transform: rotate(288deg) scale(1.0);
}

.rose:hover .petal-rose {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 107, 173, 0.6);
}

.stem {
    width: 4px;
    height: 120px;
    background: linear-gradient(to bottom, #2d5a27, #1e3b1a);
    margin: 0 auto;
    border-radius: 2px;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 30px;
    background: #3a7a32;
    border-radius: 50% 0 50% 0;
    top: 80px;
    left: 20px;
    transform: rotate(45deg);
}

.rose:nth-child(odd) .leaf {
    left: -10px;
    transform: rotate(-45deg) scaleX(-1);
}

@keyframes bloom {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVIDADE MOBILE REFINADA */
@media (max-width: 480px) {
    body {
        display: block !important;
        padding: 15px 10px !important;
        overflow-y: auto !important;
    }

    .container {
        width: 100% !important;
    }

    h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .name {
        font-size: 2.8rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }

    .glass-card {
        padding: 2rem 1.2rem !important;
        border-radius: 20px;
        margin-bottom: 25px !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .profile-container {
        width: 130px !important;
        height: 130px !important;
        margin: 0 auto 1.2rem auto !important;
    }

    .bouquet {
        height: 150px !important;
        transform: scale(0.8) !important;
        margin: 1.5rem auto !important;
    }

    .stem {
        height: 80px !important;
    }

    .modal-content {
        width: 92% !important;
        padding: 1.5rem !important;
    }
}