/* =========================================
   1. RESET & CÀI ĐẶT CHUNG
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Đảm bảo mọi cú cuộn đều êm ái */
    scroll-behavior: smooth;
    /* Đã tắt tính năng scroll-snap của CSS tại đây */
}

body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden; 
}

/* Lớp lót ảnh nền đứng im dưới cùng */
body::before {
    content: "";
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/bg.png');
    background-size: cover;
    background-position: center;
}

/* Thiết lập chiều cao cho từng trang chiếu (slide) */
.snap-page {
    height: 100vh; 
    width: 100%;
}

/* =========================================
   2. THANH ĐIỀU HƯỚNG BÁM DÍNH (Sticky Nav)
========================================= */
.sticky-nav {
    position: fixed;
    top: -80px; 
    left: 0; right: 0;
    height: 70px;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000; 
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 15px;
    transition: top 0.4s ease-in-out;
}

.sticky-nav img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

.sticky-nav h2 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

/* =========================================
   3. HIỆU ỨNG NỀN: NO GAME NO LIFE
========================================= */
#ngnl-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none; 
}

.ngnl-symbol {
    position: absolute;
    bottom: -100px; 
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    user-select: none;
    animation: floatUp linear infinite;
}

.glow-pink { text-shadow: 0 0 10px #ff00ea, 0 0 20px #ff00ea, 0 0 40px #ff00ea; }
.glow-cyan { text-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff, 0 0 40px #00f3ff; }
.glow-purple { text-shadow: 0 0 10px #8a2be2, 0 0 20px #8a2be2, 0 0 40px #8a2be2; }

/* =========================================
   4. TRANG 1: BÌA TRÊN CÙNG (Hero Section)
========================================= */
.hero-section {
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 25px; 
    animation: hienRaTuTu 1s ease-out forwards;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.avatar:hover {
    transform: scale(1.08); 
    border-color: #4facfe; 
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.8);
}

.profile-text h1 {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.profile-text p {
    color: #f0f0f0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

/* =========================================
   5. TRANG 2: BENTO BOX
========================================= */
.bento-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; 
    width: 100%;
    max-width: 900px; 
    padding: 0 20px; 
    opacity: 0; 
    animation: hienRaTuTu 1.2s ease-out 0.4s forwards;
}

.bento-card {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 20px; 
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.bento-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bento-card p, .bento-card li {
    color: #e0e0e0;
    line-height: 1.6;
    list-style: none; 
}

.bento-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15); 
}

@media (min-width: 600px) {
    .projects-card {
        grid-column: span 2; 
    }
}

/* =========================================
   6. KỊCH BẢN CHUYỂN ĐỘNG (Animations)
========================================= */
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg) scale(1.2); opacity: 0; }
}

@keyframes hienRaTuTu {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}