/* Import font từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;700&display=swap');

/* Reset và cài đặt cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #fff;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    position: relative; /* Thêm để định vị các phần tử con */
    overflow-x: hidden; /* Ngăn thanh cuộn ngang khi menu mở */
}

/* ================================================= */
/* CÁC BẢNG MÀU NỀN MỚI */
/* ================================================= */

.gradient-1 { background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364); }
.gradient-2 { background: linear-gradient(-45deg, #13547a, #80d0c7); }
.gradient-3 { background: linear-gradient(-45deg, #c53b4b, #bfe9ff); }
.gradient-4 { background: linear-gradient(-45deg, #4776E6, #8E54E9); }
.gradient-5 { background: linear-gradient(-45deg, #42a367, #369aac); }
.gradient-6 { background: linear-gradient(-45deg, #bb4949, #396975); }
.gradient-7 { background: linear-gradient(-45deg, #ff6a00, #ee0979); }
.gradient-8 { background: linear-gradient(-45deg, #ff416c, #ff4b2b); }


@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#background-layer img,
#background-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

/* ================================================= */
/* PHẦN CSS MỚI CHO MENU BÊN                       */
/* ================================================= */
.menu-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidenav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Animation mượt mà */
    padding-top: 80px;
}

.sidenav.active {
    transform: translateX(0);
}

.sidenav .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.sidenav .close-btn:hover {
    transform: scale(1.2);
    color: #f1f1f1;
}

.sidenav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidenav ul li a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s, transform 0.3s;
}

.sidenav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidenav ul li a i {
    font-size: 1.2rem;
    width: 20px; /* Căn chỉnh icon */
    text-align: center;
}
/* ================================================= */
/* KẾT THÚC PHẦN CSS MỚI                            */
/* ================================================= */


.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    margin: 25px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 15px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.3);
    color: #f0f0f0;
}

.link-list .link-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.link-list .link-item i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.link-list .link-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

.music-player {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

#song-info {
    margin-bottom: 15px;
}

#song-title {
    font-weight: 500;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-controls button {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}