/* ==========================================================================
   DESIGN TOKENS & RESET (Hệ thống biến màu sắc và phong cách công nghệ)
   ========================================================================== */
:root {
    /* Color Palette - Deep Sci-Fi Dark & Neon Glows */
    --bg-main: #060a12;
    --bg-secondary: #0b111e;
    --bg-card: rgba(17, 26, 46, 0.65);
    --bg-card-hover: rgba(24, 37, 65, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.4);
    
    --text-main: #e2e8f0;
    --text-heading: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-purple: #9f55ff;
    --neon-pink: #ff416c;
    --neon-emerald: #10b981;
    --neon-yellow: #f59e0b;
    
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
    --gradient-purple: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Effects & Shadows */
    --shadow-glow: 0 0 35px -5px rgba(0, 242, 254, 0.25);
    --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    selection-background-color: var(--neon-cyan);
    selection-color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Interactive Canvas Background */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(159, 85, 255, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.font-bold {
    font-weight: 700;
    color: #fff;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(11, 17, 30, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-icon {
    font-size: 1.4rem;
}
.toast-content {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(6, 10, 18, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}
.navbar.scrolled {
    height: 68px;
    background: rgba(6, 10, 18, 0.92);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-family: var(--font-code);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.logo-bracket, .logo-name, .logo-dot {
    white-space: nowrap !important;
}
.logo-bracket {
    color: var(--neon-cyan);
}
.logo-name {
    margin: 0 4px;
    letter-spacing: -0.5px;
}
.logo-dot {
    color: var(--neon-pink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap !important;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.nav-link span {
    font-family: var(--font-code);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-right: 4px;
    white-space: nowrap !important;
}
.nav-link:hover {
    color: #fff;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}
.nav-link:hover::after {
    width: 100%;
}

.btn-nav-github {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.btn-nav-github:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Navbar Action Buttons (Theme Toggle & Lang Toggle) */
.btn-theme-toggle, .btn-lang-toggle {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: var(--transition-fast) !important;
    flex-shrink: 0;
}
.btn-theme-toggle {
    width: 40px !important;
    padding: 0 !important;
    color: #f59e0b !important;
}
.btn-theme-toggle svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #f59e0b !important;
    stroke-width: 2.2px !important;
    fill: none !important;
    flex-shrink: 0;
}
.btn-theme-toggle:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: #f59e0b !important;
    transform: rotate(15deg) scale(1.08) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
}
.btn-theme-toggle .icon-sun {
    display: block !important;
}
.btn-theme-toggle .icon-moon {
    display: none !important;
}

/* Language Toggle Button Styles */
.btn-lang-toggle {
    color: #fff !important;
    gap: 8px !important;
    font-family: var(--font-code);
    font-size: 0.86rem;
    font-weight: 600;
}
.btn-lang-toggle svg {
    width: 18px !important;
    height: 18px !important;
    stroke: var(--neon-cyan) !important;
    flex-shrink: 0;
}
.btn-lang-toggle:hover {
    background: rgba(0, 242, 254, 0.15) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3) !important;
    transform: translateY(-2px) !important;
}
.lang-pill {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-active {
    color: var(--neon-cyan);
    font-weight: 700;
}
.lang-muted {
    color: var(--text-muted);
    font-weight: 400;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-emerald);
    margin-bottom: 24px;
}
.badge-status {
    width: 8px;
    height: 8px;
    background: var(--neon-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-emerald);
    animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.hero-role {
    font-family: var(--font-code);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    height: 40px;
    min-height: 40px;
    white-space: nowrap !important;
}
.role-prefix {
    color: var(--neon-pink);
    margin-right: 8px;
    white-space: nowrap !important;
    flex-shrink: 0;
}
.typed-text {
    white-space: nowrap !important;
}
.cursor-blink {
    color: #fff;
    animation: blink 1s step-end infinite;
    white-space: nowrap !important;
    flex-shrink: 0;
}
@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 36px;
}
.hero-description strong {
    color: #fff;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 48px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 42px;
    background: var(--border-color);
}

/* Terminal Card Visual */
.terminal-card {
    background: #0d1322;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 40px rgba(0, 242, 254, 0.1);
    position: relative;
}
.terminal-header {
    background: #131b2e;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}
.terminal-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.terminal-badge {
    font-family: var(--font-code);
    font-size: 0.72rem;
    padding: 3px 8px;
    background: rgba(0, 242, 254, 0.15);
    color: var(--neon-cyan);
    border-radius: 4px;
    font-weight: 600;
}
.terminal-body {
    padding: 24px;
    font-family: var(--font-code);
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-x: auto;
}
.terminal-body code {
    color: #e2e8f0;
}
.keyword { color: #ff7b72; font-weight: 600; }
.namespace { color: #d2a8ff; }
.annotation { color: #79c0ff; font-weight: 600; }
.string { color: #a5d6ff; }
.variable { color: #ffa657; }
.number { color: #7ee787; }
.class-name { color: #f0883e; font-weight: 700; }
.method { color: #d2a8ff; }

.terminal-footer {
    background: #0a0f1d;
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--neon-emerald);
    display: flex;
    align-items: center;
}
.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-emerald);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--neon-emerald);
}

/* 3D Tilt Card Base */
.tilt-card {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}
.tilt-card:hover {
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
    padding: 110px 0;
    position: relative;
}
.section-header {
    margin-bottom: 60px;
}
.section-tag {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
}

/* Reveal Animations */
.reveal-fade {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}
.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ABOUT & PERSONAL INFO SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(16px);
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.card-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 4px;
    margin-right: 12px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}
.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.info-label {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.info-value {
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.info-link:hover {
    text-decoration: underline;
    color: #fff;
}
.copy-trigger {
    cursor: pointer;
    transition: var(--transition-fast);
}
.copy-trigger:hover {
    color: var(--neon-cyan);
}

.objective-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 28px;
}
.objective-box strong {
    color: #fff;
    font-weight: 600;
}
.objective-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    transition: var(--transition-fast);
}
.tech-tag:hover {
    background: rgba(0, 242, 254, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(16px);
}
.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-cyan { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); }
.icon-purple { background: rgba(159, 85, 255, 0.15); color: var(--neon-purple); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--neon-emerald); }
.icon-pink { background: rgba(255, 65, 108, 0.15); color: var(--neon-pink); }

.skill-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 8px;
}
.skill-pct {
    font-family: var(--font-code);
    color: var(--neon-cyan);
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    transform-origin: left;
    animation: fillProgress 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fill-cyan { background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan)); }
.fill-purple { background: linear-gradient(90deg, #6b21a8, var(--neon-purple)); }

@keyframes fillProgress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Professional Skill Tech Box Presentation (Replaces Progress Bars) */
.skill-tech-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skill-tech-box {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}
.skill-tech-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.skill-tech-box.border-cyan {
    border-left: 4px solid var(--neon-cyan);
}
.skill-tech-box.border-purple {
    border-left: 4px solid var(--neon-purple);
}
.skill-tech-box:hover.border-cyan {
    border-color: rgba(0, 242, 254, 0.3);
    border-left-color: var(--neon-cyan);
    box-shadow: 0 8px 25px -5px rgba(0, 242, 254, 0.15);
}
.skill-tech-box:hover.border-purple {
    border-color: rgba(159, 85, 255, 0.3);
    border-left-color: var(--neon-purple);
    box-shadow: 0 8px 25px -5px rgba(159, 85, 255, 0.15);
}
.tech-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.tech-name {
    font-size: 1.05rem;
    color: #fff;
}
.tech-badge {
    font-family: var(--font-code);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.badge-cyan {
    background: rgba(0, 242, 254, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}
.badge-purple {
    background: rgba(159, 85, 255, 0.12);
    color: var(--neon-purple);
    border: 1px solid rgba(159, 85, 255, 0.3);
}
.tech-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Skills Cloud */
.skill-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cloud-badge {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-fast);
}
.cloud-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--neon-emerald);
    color: var(--neon-emerald);
    transform: translateY(-2px);
}

.competency-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.comp-box {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--neon-pink);
    border-radius: 8px;
}
.comp-title {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
}
.comp-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 42px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}
.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.project-role-badge {
    padding: 6px 16px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-code);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
}
.project-role-badge.role-ai {
    background: rgba(159, 85, 255, 0.12);
    border-color: rgba(159, 85, 255, 0.3);
    color: var(--neon-purple);
}
.project-time {
    font-family: var(--font-code);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.award-banner {
    display: inline-block;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(255, 65, 108, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 18px;
}
.project-title a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}
.project-title a:hover {
    color: var(--neon-cyan);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.project-tech-stack span {
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #cbd5e1;
}

.project-description {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 30px;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.feature-list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.7;
}
.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    font-weight: bold;
}
.feature-list li strong {
    color: #fff;
}
.feature-list code {
    font-family: var(--font-code);
    background: rgba(0, 242, 254, 0.1);
    color: var(--neon-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
}

.project-actions {
    display: flex;
    gap: 16px;
}
.btn-project-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
}
.btn-project-link:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

/* ==========================================================================
   EDUCATION & AWARDS TIMELINE
   ========================================================================== */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.timeline-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(16px);
}
.timeline-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}
.head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-head h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.timeline {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.timeline-item {
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: -35px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
}
.dot-cyan { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.dot-purple { background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.dot-pink { background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--neon-cyan);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
}
.timeline-title {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
}
.timeline-major, .timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-wrap: pretty;
}
.gpa-box {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.gpa-badge {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.gpa-badge strong {
    color: var(--neon-cyan);
    font-size: 1.05rem;
}
.gpa-standing {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fbbf24;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section {
    padding-bottom: 60px;
}
.contact-card {
    background: linear-gradient(145deg, rgba(17, 26, 46, 0.85), rgba(11, 17, 30, 0.95));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 56px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    margin-bottom: 80px;
}
.contact-header {
    max-width: 650px;
    margin: 0 auto 48px;
}
.contact-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    text-decoration: none;
    text-align: left;
    transition: var(--transition-fast);
}
.contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--neon-cyan);
}
.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.contact-text .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contact-text .value {
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-sub {
    font-size: 0.82rem !important;
    color: var(--text-dark) !important;
    margin-top: 4px;
}
.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-fast);
}
.back-to-top:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Giao diện nền sáng hiện đại)
   ========================================================================== */
body.light-mode {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    
    --border-color: rgba(15, 23, 42, 0.1);
    --border-glow: rgba(2, 132, 199, 0.4);
    
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-muted: #475569;
    --text-dark: #64748b;
    
    --neon-cyan: #0284c7;
    --neon-blue: #2563eb;
    --neon-purple: #7c3aed;
    --neon-pink: #e11d48;
    --neon-emerald: #059669;
    --neon-yellow: #d97706;
    
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
    
    --shadow-glow: 0 10px 35px -5px rgba(2, 132, 199, 0.15);
    --shadow-card: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
}

body.light-mode .navbar {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
body.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}
body.light-mode .logo { color: #0f172a; }
body.light-mode .nav-link { color: #475569; }
body.light-mode .nav-link:hover { color: #0f172a; }
body.light-mode .btn-nav-github {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}
body.light-mode .btn-nav-github:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.3);
}
body.light-mode .menu-toggle span { background: #0f172a; }

body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .card-title,
body.light-mode .skill-header h3,
body.light-mode .timeline-head h3,
body.light-mode .timeline-title,
body.light-mode .contact-title,
body.light-mode .stat-number,
body.light-mode .font-bold,
body.light-mode .hero-description strong,
body.light-mode .objective-box strong,
body.light-mode .feature-list li strong,
body.light-mode .comp-title,
body.light-mode .skill-info,
body.light-mode .contact-text .value,
body.light-mode .project-title a {
    color: #0f172a !important;
}

body.light-mode .hero-stats {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
body.light-mode .btn-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.15);
}
body.light-mode .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.1);
    border-color: #0f172a;
}
body.light-mode .btn-primary {
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}
body.light-mode .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.4);
}
body.light-mode .cursor-blink { color: #0f172a; }

/* Terminal in Light mode */
body.light-mode .terminal-card {
    background: #0f172a; /* Giữ Terminal màu tối chuẩn phong cách developer */
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

/* Info items & cards in Light mode */
body.light-mode .info-item,
body.light-mode .comp-box {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.06);
}
body.light-mode .info-item:hover {
    background: rgba(15, 23, 42, 0.06);
}
body.light-mode .info-value,
body.light-mode .info-value strong {
    color: #0f172a !important;
}
body.light-mode .info-label {
    color: #475569 !important;
}
body.light-mode .info-link {
    color: #0284c7 !important;
}
body.light-mode .info-link:hover {
    color: #2563eb !important;
}
body.light-mode .info-value svg {
    stroke: #475569;
}
/* Skill Tech Box in Light mode */
body.light-mode .skill-tech-box {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}
body.light-mode .skill-tech-box:hover {
    background: #ffffff;
}
body.light-mode .skill-tech-box.border-cyan {
    border-left-color: #0284c7;
}
body.light-mode .skill-tech-box.border-purple {
    border-left-color: #7c3aed;
}
body.light-mode .tech-name {
    color: #0f172a !important;
}
body.light-mode .tech-desc {
    color: #475569 !important;
}
body.light-mode .badge-cyan {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.3);
}
body.light-mode .badge-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
}
body.light-mode .cloud-badge {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: #334155;
}
body.light-mode .cloud-badge:hover {
    background: rgba(5, 150, 105, 0.1);
    border-color: #059669;
    color: #059669;
}
body.light-mode .project-tech-stack span {
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.1);
}
body.light-mode .btn-project-link {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}
body.light-mode .btn-project-link:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
body.light-mode .contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.95));
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}
body.light-mode .contact-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}
body.light-mode .contact-item:hover {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.12);
}
body.light-mode .progress-bar {
    background: rgba(15, 23, 42, 0.08);
}
body.light-mode .timeline-dot {
    border-color: #f8fafc;
}
body.light-mode .gpa-badge {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.35);
    color: #0f172a;
}
body.light-mode .gpa-badge strong {
    color: #0284c7;
}
body.light-mode .gpa-standing {
    color: #d97706;
}
body.light-mode .toast {
    background: rgba(255, 255, 255, 0.96);
    border-color: #0284c7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
body.light-mode .toast-content { color: #0f172a; }

/* Theme & Lang Toggle buttons in Light mode */
body.light-mode .btn-theme-toggle {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #7c3aed !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}
body.light-mode .btn-theme-toggle svg {
    stroke: #7c3aed !important;
}
body.light-mode .btn-theme-toggle:hover {
    background: rgba(124, 58, 237, 0.18) !important;
    border-color: #7c3aed !important;
    transform: rotate(-15deg) scale(1.08) !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4) !important;
}
body.light-mode .btn-theme-toggle .icon-sun {
    display: none !important;
}
body.light-mode .btn-theme-toggle .icon-moon {
    display: block !important;
}

body.light-mode .btn-lang-toggle {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}
body.light-mode .btn-lang-toggle svg {
    stroke: #0284c7 !important;
}
body.light-mode .btn-lang-toggle:hover {
    background: rgba(2, 132, 199, 0.15) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.25) !important;
}
body.light-mode .lang-active {
    color: #0284c7;
}

/* Ensure nav-links background is transparent on desktop in Light Mode */
@media (min-width: 1101px) {
    body.light-mode .nav-links {
        background: transparent !important;
        border: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 1101px) {
    .nav-links {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.82rem;
    }
    .btn-nav-github {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: rgba(11, 17, 30, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        border-left: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        backdrop-filter: blur(20px);
        z-index: 1000;
    }
    body.light-mode .nav-links {
        background: rgba(248, 250, 252, 0.98) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.1) !important;
    }
    .nav-links.open {
        right: 0;
    }
    .menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .hero-container, .about-grid, .skills-grid, .timeline-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-role {
        font-size: 1.08rem;
        height: 38px;
        min-height: 38px;
    }
    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-role {
        font-size: 0.95rem;
        height: 34px;
        min-height: 34px;
    }
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    .section-title {
        font-size: 2.1rem;
    }
    .project-card, .contact-card {
        padding: 28px;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-role {
        font-size: 0.82rem;
        height: 32px;
        min-height: 32px;
    }
}
