/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Keyframes cho hiệu ứng --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Global Styles --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #6a82fb 0%, #7b49a4 100%); /* Gradient nhẹ nhàng hơn */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Giảm padding tổng thể */
    box-sizing: border-box;
    color: #e0e0e0;
}

/* --- Container chính --- */
.container {
    background-color: rgba(35, 35, 50, 0.88); /* Nền tối hơn, ít trong suốt hơn */
    padding: 30px; /* Giảm padding */
    border-radius: 18px; /* Bo góc mềm mại */
    text-align: center;
    max-width: 400px; /* Giảm chiều rộng tối đa */
    width: 100%;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 5px 15px rgba(0, 0, 0, 0.25); /* Bóng đổ rõ nét hơn */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Hiệu ứng xuất hiện cho container */
    opacity: 0; /* Bắt đầu ẩn */
    animation: fadeIn 0.6s ease-out 0.2s forwards; /* Tên animation, thời gian, easing, delay, giữ trạng thái cuối */
}

/* --- Header --- */
header {
    margin-bottom: 25px; /* Giảm khoảng cách */
}

.logo {
    width: 100px; /* Giảm kích thước logo */
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85); /* Viền dày hơn chút */
    margin-bottom: 15px; /* Giảm khoảng cách */
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    /* Cập nhật transition để bao gồm cả box-shadow và transform */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng hover mới cho Logo */
.logo:hover {
    transform: scale(1.08); /* Phóng to rõ hơn một chút */
    /* Thêm hiệu ứng tỏa sáng nhẹ màu trắng */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 1.75em; /* Giảm kích thước tiêu đề */
    margin-bottom: 5px; /* Giảm khoảng cách */
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.subtitle {
    font-size: 0.85em; /* Giảm kích thước */
    color: #c5cae9;
    margin-bottom: 25px; /* Giảm khoảng cách */
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* --- Links --- */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Giảm khoảng cách giữa các nút */
}

.link-button {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.92);
    color: #2c3e50; /* Màu chữ tối hơn */
    text-decoration: none;
    padding: 12px 20px; /* Giảm padding nút */
    border-radius: 10px; /* Bo góc ít hơn chút */
    font-size: 1em; /* Giảm font chữ nút */
    font-weight: 600;
    transition: all 0.25s ease-in-out; /* Hiệu ứng mượt mà hơn */
    border: none;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.12);
    /* Hiệu ứng xuất hiện cho từng nút */
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFadeIn 0.5s ease-out forwards;
    /* animation-delay được đặt inline trong HTML */
}

/* Hiệu ứng hover mới cho Nút liên kết */
.link-button:hover {
    background-color: #ffffff;
    /* Giữ nguyên hiệu ứng nhấc lên, tăng giá trị scale từ 1.04 lên 1.06 */
    transform: translateY(-5px) scale(1.06);
    /* Tăng cường độ bóng đổ và thêm hiệu ứng tỏa sáng nhẹ (giữ nguyên) */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), 0 0 12px rgba(0, 0, 0, 0.1);
    color: #000; /* Giữ nguyên thay đổi màu chữ */
}


.link-button .icon {
    width: 30px; /* Giảm không gian icon */
    font-size: 1.25em; /* Giảm kích thước icon */
    margin-right: 15px; /* Giảm khoảng cách icon */
    text-align: center;
    transition: color 0.3s ease;
}

.link-button .text {
   text-align: left;
   line-height: 1.25; /* Giảm giãn dòng */
}

.link-button .text small {
    font-size: 0.7em; /* Chữ nhỏ hơn nữa */
    font-weight: 400;
    color: #555;
    display: block;
}

/* --- Icon Colors (Màu icon gốc) --- */
.facebook .icon { color: #1877F2; }
.tiktok .icon { color: #000000; }
.shopee .icon { color: #EE4D2D; }
.zalo .icon { color: #0068FF; }

/* --- Icon Hover Colors (Màu icon khi hover - đã cập nhật) --- */
.link-button.facebook:hover .icon { color: #1256a0; } /* Màu xanh đậm hơn */
.link-button.tiktok:hover .icon { color: #ec004e; } /* Màu hồng đậm hơn/khác biệt hơn */
.link-button.shopee:hover .icon { color: #c4341a; } /* Màu cam đậm hơn */
.link-button.zalo:hover .icon { color: #0049b6; } /* Màu xanh dương đậm hơn */

/* --- Footer --- */
footer {
    margin-top: 25px; /* Giảm khoảng cách */
    padding-top: 15px; /* Giảm khoảng cách */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 0.75em; /* Giảm font chữ */
    color: #aab; /* Màu nhạt hơn */
    text-align: center;
}

/* --- Responsive adjustments (điều chỉnh cho màn hình nhỏ) --- */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 25px 15px; /* Giảm padding hơn nữa */
        max-width: 100%; /* Cho phép container chiếm toàn bộ chiều rộng */
    }
    h1 {
        font-size: 1.6em;
    }
    .subtitle {
        font-size: 0.8em;
    }
    .logo {
        width: 90px;
        height: 90px;
    }
    .link-button {
        padding: 10px 15px;
        font-size: 0.95em;
    }
    .link-button .icon {
        font-size: 1.15em;
        margin-right: 12px;
    }
     .footer-text {
        font-size: 0.7em;
    }
}

@media (max-height: 700px) { /* Điều chỉnh thêm cho màn hình thấp */
    .container {
        padding: 20px;
    }
     header {
        margin-bottom: 15px;
    }
    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    h1 {
        font-size: 1.5em;
    }
     .subtitle {
        margin-bottom: 15px;
        font-size: 0.8em;
    }
    .links {
        gap: 10px;
    }
    .link-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
     .link-button .icon {
        font-size: 1.1em;
        margin-right: 10px;
    }
    .link-button .text small {
       font-size: 0.65em;
    }
    footer {
        margin-top: 15px;
        padding-top: 10px;
    }
     .footer-text {
        font-size: 0.7em;
    }
}