@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,300;1,400&display=swap");

html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

a {
    text-decoration: none;
}

.page__main {
    background-image: url("../img/background.png");
    background-repeat: no-repeat;
    background-size: cover;

    /* canh giữa ảnh nền, kéo nhẹ lên cho đẹp */
    background-position: center -14rem;

    margin: 0;
    padding: 0;
    position: relative;
}
.buttons {
    display: flex;
    column-gap: 3rem;
    padding: 2rem;

    position: relative;
    z-index: 10; /* nút nằm trên avatar */
}

.btn-bir:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}

.btn-bir {
    background-image: linear-gradient(
        to right,
        #314755 0%,
        #26a0da 51%,
        #314755 100%
    );
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

.btn-timeline {
    background-image: linear-gradient(
        to right,
        #da22ff 0%,
        #9733ee 51%,
        #da22ff 100%
    );
}
.btn-timeline {
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

.btn-timeline:hover {
    background-position: right center; 
    color: #fff;
    text-decoration: none;
}

.btn-gallery {
    background-image: linear-gradient(
        to right,
        #02aab0 0%,
        #00cdac 51%,
        #02aab0 100%
    );
}
.btn-gallery {
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

.btn-gallery:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.cover {
    width: 240px;
    height: 240px;
    box-shadow: 0 0 30px #eee;

    /* Đặt avatar tuyệt đối nhưng nằm dưới menu, trên chữ */
    position: absolute;
    top: 150px;             /* có thể chỉnh 140 / 130 nếu muốn cao hơn */
    left: 50%;
    transform: translateX(-50%);

    border-radius: 120px;
    border: 5px solid rgb(255, 17, 0);

    /* QUAN TRỌNG: không chặn click vào nút phía trên */
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 768px) {
    .page__main {
        background-position: center -8rem;
    }

    .cover {
        top: 130px;
    }
}
/* ===== Popup mật khẩu ===== */
.password-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* ẩn mặc định */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.password-modal.active {
    display: flex; /* hiện khi thêm class active */
}

.password-modal__content {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 18px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    animation: popupFadeIn 0.25s ease-out;
}

.password-modal__content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.password-modal__content p {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: 0.8;
}

.password-modal__content input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    margin-bottom: 16px;
    font-size: 14px;
}

.password-modal__content input[type="password"]:focus {
    border-color: #ff6aa7;
    box-shadow: 0 0 0 2px rgba(255, 106, 167, 0.25);
}

.password-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Nút trong popup, có thể chỉnh lại cho hợp style hiện tại */
.btn-confirm,
.btn-cancel {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel {
    background: #f1f1f1;
}

.btn-confirm {
    background: #ff6aa7;
    color: #ffffff;
}

.password-modal__close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

.password-modal__close:hover {
    opacity: 1;
}

/* Hiệu ứng hiện popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
