/* RESET OTIMIZADO */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* FUNDO OTIMIZADO - usando will-change para melhor performance */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 182, 193, 0.7) 40%,
            rgba(219, 112, 147, 0.8) 100%);
    z-index: -2;
    will-change: transform;
}

/* IMAGEM DE FUNDO OTIMIZADA */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('mix-de-flores.png') no-repeat center center;
    background-size: 40%;
    z-index: -1;
    will-change: transform;
}

/* LATERAIS OTIMIZADAS */
.lateral-esquerda,
.lateral-direita {
    position: fixed;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: -1;
    will-change: transform;
}

.lateral-esquerda {
    left: 0;
    background: linear-gradient(to right, rgba(226, 140, 169, 0.6), transparent);
}

.lateral-direita {
    right: 0;
    background: linear-gradient(to left, rgba(219, 112, 147, 0.6), transparent);
}

/* CONTAINER PRINCIPAL */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 500px;
    width: 90%;
    padding: 20px 15px;
    margin: 8vh auto;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 350px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 0;
}

.profile-image img {
    width: 100%;
    height: auto;
}

/* BOTÕES OTIMIZADOS - usando transform3d para hardware acceleration */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 16px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
    text-align: left;
    will-change: transform;
}

.button-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    margin-right: 10px;
}

.button-text {
    flex: 1;
    font-size: 1rem;
    margin: 0 15px;
    text-align: left;
}

.button-menu {
    color: #777;
    display: none;
    align-items: center;
}

/* HOVER OTIMIZADO com transform3d */
.button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ÍCONES OTIMIZADOS */
.material-icons,
.fab.fa-whatsapp {
    font-size: 24px;
    color: inherit;
}

/* LOGO IFOOD OTIMIZADA - filtro simplificado para melhor performance */
.ifood-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.35);
}

/* === MEDIA QUERIES OTIMIZADAS === */

/* Telas Ultra-wide (>= 1920px) */
@media (min-width: 1920px) {
    body::after {
        background-size: contain;
    }
    .container {
        margin: 3vh auto;
        max-width: 550px;
    }
}

/* Tablet (769px - 1180px) */
@media (min-width: 769px) and (max-width: 1180px) {
    body::after {
        background-size: 60%;
    }
    .container {
        margin: 10vh auto;
        max-width: 480px;
    }
}

/* Mobile OTIMIZADO (≤ 768px) */
@media (max-width: 768px) {
    body,
    html {
        height: 100vh;
        min-height: -webkit-fill-available;
    }

    body::before {
        background: radial-gradient(circle at center,
                rgba(255, 255, 255, 0.7) 0%,
                rgba(255, 182, 193, 0.8) 50%,
                rgba(219, 112, 147, 0.9) 100%);
    }

    body::after {
        background-size: cover;
        background-position: center;
        width: 100vw;
        height: 100vh;
    }

    .lateral-esquerda,
    .lateral-direita {
        width: 10%;
    }

    .container {
        width: 92%;
        padding: 15px 12px;
        margin: 5vh auto 0;
    }

    .profile {
        margin-bottom: 30px;
    }

    .profile-image {
        width: 350px;
        margin-bottom: 15px;
    }

    .button {
        padding: 14px 18px;
        border-radius: 8px;
    }
}