/* ==========================================================================
   TRẦN ĐỨC PORTFOLIO — INTERNATIONAL MINIMALIST DESIGN SYSTEM
   Style Reference: Vercel / Linear / Apple Developer Aesthetic
   Typography: Plus Jakarta Sans, Inter, Noto Sans JP, JetBrains Mono
   Features: Dark/Light Theme Tokens, Bento Layout, Trilingual UI (EN/JA/VI)
   Cross-Checked 100% with index.html & js/main.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME TOKENS (:root / Dark / Light)
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
    /* Core Backgrounds — Deep Obsidian & Cyber Slate */
    --bg-primary: #070b14;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-elevated: rgba(30, 41, 59, 0.55);

    /* Glassmorphism Surfaces */
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(7, 11, 20, 0.8);
    --bg-glass-strong: rgba(15, 23, 42, 0.95);
    --bg-code: #090d16;
    --bg-input: rgba(15, 23, 42, 0.85);

    /* Typography Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    /* Brand & Accent Colors */
    --accent-cyan: #38bdf8;
    --accent-cyan-hover: #0ea5e9;
    --accent-indigo: #6366f1;
    --accent-indigo-hover: #4f46e5;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Alpha / Soft Tints */
    --cyan-soft: rgba(56, 189, 248, 0.12);
    --cyan-border: rgba(56, 189, 248, 0.32);
    --indigo-soft: rgba(99, 102, 241, 0.12);
    --indigo-border: rgba(99, 102, 241, 0.32);
    --emerald-soft: rgba(16, 185, 129, 0.12);
    --rose-soft: rgba(244, 63, 94, 0.12);

    /* Borders & Dividers */
    --border-color: rgba(148, 163, 184, 0.14);
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(56, 189, 248, 0.45);
    --border-focus: #38bdf8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px -6px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 54px -12px rgba(0, 0, 0, 0.65);
    --shadow-cyan: 0 0 24px rgba(56, 189, 248, 0.24);
    --grid-line-color: rgba(148, 163, 184, 0.04);

    /* Typography & Layout */
    --font-sans: 'Inter', 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

    --nav-height: 74px;
    --container-width: 1120px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Core Backgrounds — Pure Alabaster & Crisp White */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: rgba(241, 245, 249, 0.85);

    /* Glassmorphism Surfaces */
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: #ffffff;
    --bg-glass: rgba(248, 250, 252, 0.86);
    --bg-glass-strong: rgba(255, 255, 255, 0.96);
    --bg-code: #0f172a;
    --bg-input: #ffffff;

    /* Typography Colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-subtle: #64748b;

    /* Brand & Accent Colors */
    --accent-cyan: #0284c7;
    --accent-cyan-hover: #0369a1;
    --accent-indigo: #4f46e5;
    --accent-indigo-hover: #4338ca;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;

    /* Alpha / Soft Tints */
    --cyan-soft: rgba(2, 132, 199, 0.09);
    --cyan-border: rgba(2, 132, 199, 0.28);
    --indigo-soft: rgba(79, 70, 229, 0.09);
    --indigo-border: rgba(79, 70, 229, 0.28);
    --emerald-soft: rgba(5, 150, 105, 0.1);
    --rose-soft: rgba(225, 29, 72, 0.1);

    /* Borders & Dividers */
    --border-color: rgba(15, 23, 42, 0.1);
    --border-subtle: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(2, 132, 199, 0.42);
    --border-focus: #0284c7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
    --gradient-text: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    --shadow-cyan: 0 8px 22px rgba(2, 132, 199, 0.2);
    --grid-line-color: rgba(15, 23, 42, 0.035);
}

/* --------------------------------------------------------------------------
   2. RESET, BASE & AMBIENT BACKGROUND
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

::selection {
    background: var(--accent-cyan);
    color: #070b14;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Ambient Background Glows & Subtle Grid */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.34;
    transition: opacity var(--transition-base);
}

[data-theme="light"] .bg-glow {
    opacity: 0.16;
}

.bg-glow-1 {
    top: -140px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(99, 102, 241, 0.35) 65%, transparent 100%);
}

.bg-glow-2 {
    bottom: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(56, 189, 248, 0.28) 65%, transparent 100%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 45%, transparent 100%);
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS & SECTION HEADERS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 92px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   4. NAVBAR, LANGUAGE SWITCHER & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 64px;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-bracket {
    color: var(--accent-cyan);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.nav-logo:hover .logo-bracket:first-child {
    transform: translateX(-2px);
}

.nav-logo:hover .logo-bracket:last-child {
    transform: translateX(2px);
}

.logo-dot {
    color: var(--accent-indigo);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    padding: 5px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.28);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Segmented Language Switcher (EN | 日本語 | VI) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.28);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px;
    transition: all var(--transition-fast);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. BUTTONS, BADGES & TAGS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--cyan-soft);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.84rem;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--accent-emerald);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    opacity: 0.6;
    animation: statusPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--cyan-soft);
    color: var(--accent-cyan);
    border: 1px solid var(--cyan-border);
    transition: all var(--transition-fast);
}

.badge-pill:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.tag,
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tag:hover,
.tech-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--cyan-soft);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (INTERNATIONAL MINIMALIST + DEVELOPER CODE WINDOW)
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 92vh;
    padding-top: calc(var(--nav-height) + 44px);
    padding-bottom: 72px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 780px;
    width: 100%;
}

.hero-container .hero-content {
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.35rem, 4.8vw, 3.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.hero-container .hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.28em;
}

.hero-greeting {
    color: var(--text-primary);
}

.hero-native-name {
    font-size: 0.56em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

/* Role Subtitle Line (Web/App Developer • Vietnam–Japan IT @ HCMUIT) */
.hero-role-line {
    font-family: var(--font-mono);
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    min-height: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-container .hero-role {
    justify-content: center;
}

.typewriter-text {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--cyan-border);
    padding-bottom: 2px;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent-indigo);
    font-weight: 700;
    animation: cursorBlink 0.9s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    color: var(--text-secondary);
    line-height: 1.78;
    margin-bottom: 30px;
}

.hero-container .hero-description {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
}

.hero-container .hero-cta {
    justify-content: center;
}

/* Hero Stats / Meta Bar (Supports 4 Columns on Desktop, 2 on Tablet, 1 on Mobile) */
.hero-stats,
.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.stat-item,
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 10px;
    border-right: 1px solid var(--border-subtle);
    min-width: 0;
}

.stat-item:last-child,
.meta-item:last-child {
    padding-right: 0;
    border-right: none;
}

.stat-label,
.meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-number,
.meta-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Hero Visual & Minimal Code Window */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-window {
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.code-window:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-border);
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(30, 41, 59, 0.65);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: #f43f5e; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.window-body {
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.72;
    color: #e2e8f0;
    overflow-x: auto;
    margin: 0;
}

.window-body code {
    font-family: inherit;
    white-space: pre;
    display: block;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-var { color: #38bdf8; }
.code-prop { color: #a5b4fc; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }

/* --------------------------------------------------------------------------
   7. ABOUT SECTION (CLEAN 2-COLUMN BENTO LAYOUT & HIGHLIGHTS)
   -------------------------------------------------------------------------- */
.about-grid,
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: stretch;
}

.bento-card,
.about-bio-card,
.about-info-card {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.bento-card:hover,
.about-bio-card:hover,
.about-info-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bento-bio,
.about-bio-card {
    grid-column: span 6;
}

.bento-info,
.about-info-card {
    grid-column: span 6;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-card-title,
.bento-title,
.bento-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.about-bio-text,
.bento-text,
.bento-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-bio-text:last-child,
.bento-text:last-child,
.bento-card p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

/* Info List inside About Section */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.info-value a {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.info-value a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. WHAT I DO / ENGINEERING FOCUS (.focus-grid, .focus-card)
   -------------------------------------------------------------------------- */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.focus-card {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.focus-card:hover::before {
    opacity: 1;
}

.focus-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.focus-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.focus-card-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. EDUCATION TIMELINE (HCMUIT & THPT Chuyên Thoại Ngọc Hầu)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 26px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 0 4px var(--cyan-soft);
    z-index: 2;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
    border-color: var(--accent-indigo);
}

.timeline-card,
.timeline-content {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.timeline-card:hover,
.timeline-content:hover {
    transform: translateX(4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: var(--cyan-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--cyan-border);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-top: 8px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   10. SKILLS SECTION & LANGUAGES BAR (.skills-grid, .languages-bar)
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.skill-card {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.skill-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.68;
}

/* Languages Proficiency Bar below Skills Grid */
.languages-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 28px auto 0;
}

.lang-proficiency-card {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.lang-proficiency-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-level {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--cyan-soft);
    color: var(--accent-cyan);
    border: 1px solid var(--cyan-border);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. PROJECTS SECTION (MINIMALIST EMPTY STATE)
   -------------------------------------------------------------------------- */
.projects-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    background-image: radial-gradient(circle at 50% 0%, var(--cyan-soft), transparent 70%);
    border: 1px dashed var(--cyan-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-base);
}

.projects-empty:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.empty-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 4px;
    box-shadow: var(--shadow-cyan);
}

.empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. CONTACT SECTION & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 32px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.contact-card-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details,
.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.contact-label,
.contact-meta .info-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value,
.contact-link,
.contact-meta .info-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    word-break: break-all;
}

a.contact-value:hover,
.contact-link:hover {
    color: var(--accent-cyan);
}

.btn-copy {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--cyan-soft);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.contact-form-wrapper {
    background: var(--bg-card);
    background-image: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.94rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 115px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--cyan-soft);
}

.form-status {
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-status.error {
    color: var(--accent-rose);
    background: var(--rose-soft);
    padding: 10px 14px;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.form-status.success {
    color: var(--accent-emerald);
    background: var(--emerald-soft);
    padding: 10px 14px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   13. FOOTER, TOAST, BACK-TO-TOP & REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-inner,
.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-glass-strong);
    color: var(--text-primary);
    border: 1px solid var(--accent-cyan);
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg), var(--shadow-cyan);
    backdrop-filter: blur(14px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: var(--shadow-cyan);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.45);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats,
    .hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2),
    .meta-item:nth-child(2) {
        border-right: none;
    }

    .bento-bio,
    .bento-info,
    .about-bio-card,
    .about-info-card {
        grid-column: span 12;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .languages-bar {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 68px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: var(--radius-lg);
        background: var(--bg-glass-strong);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

    .nav-menu.active,
    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        text-align: center;
        padding: 11px 16px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .hero-stats,
    .hero-meta {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
        padding: 20px;
    }

    .stat-item,
    .meta-item {
        padding: 0 0 12px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .stat-item:last-child,
    .meta-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-dot {
        left: -26px;
    }

    .timeline-card,
    .timeline-content {
        padding: 22px;
    }

    .projects-empty {
        padding: 44px 20px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-value {
        text-align: left;
        justify-content: flex-start;
    }
}
