/* --- 1. Cài đặt Chung và Biến CSS (Đã đổi màu Primary) --- */
:root {
    --primary-color: #17a2b8; /* Xanh Cyber */
    --secondary-color: #6c757d; 
    --accent-color: #38c172; /* Xanh lá cây (Cho chứng chỉ đạt được) */
    --text-color: #333;
    --bg-color: #f0f2f5; /* Nền xám nhạt */
    --card-bg: #ffffff; /* Card trắng tinh */
    --font-family: 'Poppins', 'Noto Sans JP', sans-serif; 
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* Shadow nhẹ */
}

/* Biến cho Dark Mode */
.dark-mode {
    --text-color: #e9ecef;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --primary-color: #00bcd4; /* Xanh Cyber sáng hơn cho Dark Mode */
    --secondary-color: #adb5bd;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.4); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Dùng box-sizing border-box cho tất cả */
}

body {
    font-family: var(--font-family);
    line-height: 1.8; 
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.4s, color 0.4s; 
    padding-top: 80px; /* Điều chỉnh giá trị này bằng chiều cao thực tế của Navbar */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header và Navbar (Sticky Header) --- */
.hero-section {
    background: var(--bg-color);
    padding-bottom: 50px;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    
    /* THAY ĐỔI TỪ STICKY SANG FIXED */
    position: fixed; /* Cố định với màn hình */
    top: 0;           /* Cố định ở vị trí trên cùng */
    left: 0;          /* Rất quan trọng: Bắt đầu từ mép trái */
    width: 100%;      /* Rất quan trọng: Chiếm toàn bộ chiều rộng màn hình */
    
    z-index: 1000;    
    
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Tăng bóng đổ nhẹ */
    transition: background-color 0.4s;
}
.dark-mode .navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Logo: LSN - Hình học lồng ghép */
.logo a.minimal-logo {
    display: flex;
    align-items: center;
    height: 40px; 
    width: auto; 
    margin: 0; 
}

.logo-icon {
    width: 40px; /* Kích thước icon */
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s;
}

.logo a.minimal-logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.1); /* Hiệu ứng xoay nhẹ và phóng to */
    opacity: 0.9;
}

/* Đảm bảo màu SVG thay đổi theo Dark Mode */
.logo-icon path,
.logo-icon line {
    stroke: var(--primary-color);
}
.logo-icon text {
    fill: var(--primary-color);
}
.dark-mode .logo-icon path,
.dark-mode .logo-icon text {
    stroke: var(--primary-color);
    /* fill: var(--primary-color); */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    padding: 5px 10px;
}

.dark-mode-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 20px;
    transition: all 0.3s;
}

.dark-mode-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.burger-menu {
    display: none; 
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Content */
.profile-picture {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 30px;
    /* Viền đôi (Double Border Effect) */
    padding: 5px; 
    border: 3px solid var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 5px var(--primary-color), 0 10px 20px rgba(0,0,0,0.1); 
    transition: transform 0.3s;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-top: 15px;
    font-weight: 700;
}

.tagline {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 600; 
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- 3. Sections Chung & Giới Thiệu --- */
.section-padding {
    padding: 80px 0;
}

.section-padding h2 {
    text-align: center;
    font-size: 2.8rem; 
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-padding h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--card-bg);
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    margin-bottom: 8px;
}

.about-content ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- 4. Kỹ Năng (Skills) --- */
.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px; 
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 1px solid transparent; 
    transition: all 0.3s;
}

/* Hiệu ứng Neon Glow nhẹ khi hover */
.skill-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.4); 
    border-color: var(--primary-color);
}

.dark-mode .skill-item:hover {
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
}

.skill-icon {
    font-size: 3rem; 
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Làm nổi bật Chứng chỉ đã đạt được */
.certified-skill {
    border: 2px solid var(--accent-color); 
    background-color: #e6ffe1; 
    box-shadow: 0 4px 15px rgba(56, 193, 114, 0.3); 
}

.dark-mode .certified-skill {
    border-color: var(--accent-color); 
    background-color: #1f3d2f; 
    box-shadow: 0 4px 15px rgba(56, 193, 114, 0.2); 
}

.certified-skill h4, .certified-skill .skill-icon {
    color: var(--accent-color) !important; 
}

/* Thanh kỹ năng (Skill Bar) */
.skill-bar-container {
    background-color: var(--bg-color); 
    border-radius: 5px;
    height: 8px; 
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.skill-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0; 
    transition: width 1.2s ease-out; 
}


/* --- 5. Dự Án (Projects) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-description {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-tech-stack span {
    display: inline-block;
    background-color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-right: 5px;
    margin-bottom: 10px;
}

.project-links .btn {
    margin-right: 10px;
}

/* Nâng cấp phần Insight Bảo mật */
.security-insight {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff1f1; 
    border: 1px solid #dc3545; 
}

.dark-mode .security-insight {
    background-color: #3d1c1c;
    border-color: #ff4d4f;
}

.security-insight h4 {
    color: #dc3545; 
    border-bottom: 1px dashed #dc3545;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.security-insight ul {
    margin-left: 20px;
    list-style-type: disc;
}

/* --- 6. Mục Tiêu (Goals) --- */
.goal-list {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.goal-item {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.goal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- 7. Liên Hệ và Footer --- */
.contact-info {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary-color);
    margin-right: 10px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* --- 8. Responsive (Mobile) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--card-bg);
        border-top: 1px solid #ccc;
        z-index: 10;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    .dark-mode-btn {
        margin-left: 0;
        width: 100%;
    }

    .burger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .goal-list {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}
/* --- 9. Định dạng cho Khối Thông báo Cập Nhật (Updating Notice) --- */

.updating-notice-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    
    /* Màu nền nhẹ nhàng, nổi bật */
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed var(--primary-color);
    
    transition: all 0.4s;
}

.dark-mode .updating-notice-card {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.notice-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: pulse 1.5s infinite alternate; /* Hiệu ứng nhấp nháy nhẹ */
}

.updating-notice-card h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.updating-notice-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.updating-notice-card .sub-text {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Keyframes cho hiệu ứng nhấp nháy/sống động */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Điều chỉnh button secondary cho hợp với notice */
.updating-notice-card .secondary-btn {
    background-color: var(--bg-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
}

.updating-notice-card .secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
    transform: translateY(-2px);
}
