@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme-independent values */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    --max-width: 1200px;

    /* Default Dark Mode Theme */
    --bg-main: hsl(225, 20%, 6%);
    --bg-surface: hsla(225, 20%, 10%, 0.65);
    --bg-surface-opaque: hsl(225, 20%, 10%);
    --bg-surface-hover: hsla(225, 20%, 14%, 0.8);
    --border-color: hsla(225, 20%, 18%, 0.45);
    --border-color-hover: hsla(225, 20%, 25%, 0.7);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 16%, 72%);
    --text-muted: hsl(215, 12%, 50%);
    
    --primary-accent: hsl(187, 100%, 46%); /* Danang Bridge Cyan */
    --primary-accent-rgb: 0, 229, 255;
    --secondary-accent: hsl(271, 91%, 65%); /* Neon Violet */
    --secondary-accent-rgb: 168, 85, 247;
    
    --accent-gradient: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    --accent-glow: 0 8px 32px 0 rgba(var(--primary-accent-rgb), 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-glow-opacity: 0.03;
    
    --scroll-track: hsl(225, 20%, 8%);
    --scroll-thumb: hsl(225, 20%, 20%);
    --scroll-thumb-hover: hsl(187, 100%, 46%);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-main: hsl(220, 20%, 97%);
    --bg-surface: hsla(0, 0%, 100%, 0.7);
    --bg-surface-opaque: hsl(0, 0%, 100%);
    --bg-surface-hover: hsla(220, 20%, 94%, 0.85);
    --border-color: hsla(220, 20%, 85%, 0.6);
    --border-color-hover: hsla(220, 20%, 75%, 0.8);
    --text-primary: hsl(224, 71%, 4%);
    --text-secondary: hsl(215, 20%, 35%);
    --text-muted: hsl(215, 16%, 50%);
    
    --primary-accent: hsl(221, 90%, 50%); /* Premium Royal Blue */
    --primary-accent-rgb: 0, 82, 255;
    --secondary-accent: hsl(262, 83%, 58%); /* Elegant Purple */
    --secondary-accent-rgb: 139, 92, 246;
    
    --accent-gradient: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    --accent-glow: 0 8px 32px 0 rgba(var(--primary-accent-rgb), 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    --card-glow-opacity: 0.01;
    
    --scroll-track: hsl(220, 20%, 95%);
    --scroll-thumb: hsl(220, 20%, 80%);
    --scroll-thumb-hover: hsl(221, 90%, 50%);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: var(--border-radius-full);
    border: 2px solid var(--scroll-track);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
}

/* Typography Selection */
::selection {
    background-color: hsla(var(--primary-accent-rgb), 0.3);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

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

.section {
    padding: 100px 0 60px;
    position: relative;
}

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

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Glassmorphism card utility */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Accent background glow blobs */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-full);
    filter: blur(130px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);

    @media (max-width: 1024px) {
       display: none !important;
    }
}

[data-theme="light"] .glow-blob {
    opacity: 0.06;
}

.glow-1 {
    top: 10%;
    left: -100px;
    background: var(--primary-accent);
}

.glow-2 {
    bottom: 20%;
    right: -100px;
    background: var(--secondary-accent);
}

.glow-3 {
    top: 50%;
    left: 40%;
    background: var(--primary-accent);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: hsl(210, 40%, 98%);
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px 0 rgba(var(--primary-accent-rgb), 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.btn-secondary:active {
    transform: translateY(0);
}

/* --- STICKY HEADER & NAVBAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth), padding var(--transition-smooth);
    border-bottom: 1px solid transparent;
    padding: 24px 0;
}

.header.scrolled {
    background-color: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 28px;
    height: 28px;
    fill: url(#accent-grad);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Switcher Toggle */
.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
}

.theme-toggle .sun-icon,
[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.menu-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--primary-accent);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title span.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Creative Hero Visual (Floating Card Stack) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-canvas {
    width: 380px;
    height: 380px;
    position: relative;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: var(--border-radius-full);
    background: var(--accent-gradient);
    filter: blur(60px);
    opacity: 0.25;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.visual-element {
    position: absolute;
    width: 240px;
    height: 150px;
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.visual-element::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-md);
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.element-1 {
    top: 20px;
    left: 0px;
    background: linear-gradient(135deg, hsla(225, 20%, 12%, 0.8) 0%, hsla(225, 20%, 8%, 0.8) 100%);
    animation-delay: 0s;
}

.element-2 {
    bottom: 20px;
    right: 0px;
    background: linear-gradient(135deg, hsla(225, 20%, 15%, 0.9) 0%, hsla(225, 20%, 10%, 0.9) 100%);
    animation-delay: -3s;
}

.element-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.element-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.element-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 12px;
}

.code-line {
    height: 6px;
    background: var(--text-muted);
    border-radius: var(--border-radius-full);
    margin-bottom: 8px;
    opacity: 0.4;
}

.code-line.short { width: 40%; }
.code-line.medium { width: 70%; }
.code-line.long {
    width: 90%;
    background: var(--primary-accent);
    opacity: 0.8;
}

.code-line.gradient {
    width: 80%;
    background: var(--accent-gradient);
    opacity: 0.8;
}

.visual-badge {
    position: absolute;
    background: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.badge-da-nang {
    top: 60%;
    left: -20px;
    transform: rotate(-5deg);
    animation: floatBadge1 5s ease-in-out infinite alternate;
}

.badge-experience {
    top: 20%;
    right: -20px;
    transform: rotate(5deg);
    animation: floatBadge2 5s ease-in-out infinite alternate;
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-accent);
}

/* --- ABOUT ME --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.metric-card {
    text-align: center;
    padding: 20px 10px;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-card {
    padding: 30px;
}

.skills-card-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.skills-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-accent);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

/* --- TIMELINE SECTION --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: calc(100% - 10px);
    width: 2px;
    background: var(--border-color);
}

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

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-full);
    background-color: var(--bg-main);
    border: 3px solid var(--primary-accent);
    box-shadow: 0 0 10px rgba(var(--primary-accent-rgb), 0.5);
    z-index: 2;
    transition: background-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--secondary-accent);
    border-color: var(--secondary-accent);
    box-shadow: 0 0 10px rgba(var(--secondary-accent-rgb), 0.5);
}

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

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-location svg {
    width: 14px;
    height: 14px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-accent);
    margin-bottom: 16px;
}

.timeline-desc {
    list-style: none;
}

.timeline-desc li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.timeline-desc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: bold;
}

/* --- PROJECTS SECTION --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    color: hsl(210, 40%, 98%);
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

/* Bento Grid layout for Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, hsla(225, 20%, 12%, 0.8) 0%, hsla(225, 20%, 6%, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    opacity: 1;
}

/* Gradient overlay on hover */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(var(--primary-accent-rgb), 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--primary-accent);
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-challenge {
    background: hsla(var(--primary-accent-rgb), 0.05);
    border-left: 3px solid var(--primary-accent);
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tag {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px dashed var(--text-muted);
    padding-bottom: 2px;
}

.project-link:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

/* Graphic styling inside card for mock screenshot */
.project-graphics {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-ui {
    width: 80%;
    height: 70%;
    background: hsla(225, 20%, 8%, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-navbar {
    height: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}

.mock-window-dots {
    display: flex;
    gap: 4px;
}

.mock-sidebar {
    width: 25%;
    border-right: 1px solid var(--border-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-main {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-hero-bar {
    height: 14px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-full);
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-grid-item {
    height: 35px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-smooth);
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 6rem;
    color: hsla(var(--primary-accent-rgb), 0.1);
    z-index: -1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--primary-accent);
    padding: 3px;
    background: var(--bg-main);
    margin-bottom: 12px;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

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

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dot.active {
    background: var(--primary-accent);
    width: 24px;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

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

.contact-info-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.contact-method.clickable-card {
    text-decoration: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.contact-method.clickable-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-accent);
    box-shadow: var(--accent-glow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: hsla(var(--primary-accent-rgb), 0.1);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gradient);
    color: hsl(210, 40%, 98%);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--accent-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Contact Form Grid */
.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group.full {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(var(--primary-accent-rgb), 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Error styling */
.form-input.error {
    border-color: hsl(0, 84%, 60%);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-text {
    color: hsl(0, 84%, 60%);
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-input.error + .error-text {
    display: block;
}

/* Custom Select Dropdowns */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

/* Status Notifications */
.form-status {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 20px;
    display: none;
    animation: slideInUp 0.3s ease;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: hsl(142, 70%, 45%);
}

.form-status.error-msg {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: hsl(0, 84%, 60%);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--bg-surface);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-back-to-top {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.footer-back-to-top:hover {
    color: var(--primary-accent);
}

.footer-back-to-top svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.footer-back-to-top:hover svg {
    transform: translateY(-4px);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes floatBadge1 {
    0% { transform: rotate(-5deg) translateY(0px); }
    100% { transform: rotate(-5deg) translateY(-8px); }
}

@keyframes floatBadge2 {
    0% { transform: rotate(5deg) translateY(0px); }
    100% { transform: rotate(5deg) translateY(8px); }
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-grid { gap: 40px; }
    .visual-canvas { width: 320px; height: 320px; }
    .visual-element { width: 200px; height: 130px; }
    .badge-da-nang { left: -10px; }
    .badge-experience { right: -10px; }
}

@media (max-width: 900px) {
    .section { padding: 80px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero { min-height: auto; padding-top: 160px; padding-bottom: 80px; }
    .hero-desc { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-surface-opaque);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right var(--transition-smooth);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .menu-btn {
        display: block;
        z-index: 1000;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2.2rem; }
    .about-metrics { grid-template-columns: 1fr; gap: 16px; }
    .metric-card { text-align: left; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
    .metric-num { font-size: 1.8rem; margin-bottom: 0; }
    .contact-form { padding: 20px; }
    .timeline { padding-left: 20px; }
    .timeline-dot { left: -25px; }
}

/* ==========================================
   LANGUAGE SELECTOR STYLES
   ========================================== */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0 16px;
    height: 44px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lang-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 160px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.lang-dropdown.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive adjustments for language selector and hero actions */
@media (max-width: 768px) {
    .lang-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    .lang-btn #activeLangText {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Header compact sizing */
    .logo {
        font-size: 1.2rem;
        gap: 6px;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .nav-actions {
        gap: 8px;
    }

    /* Hero Visual Canvas sizing */
    .visual-canvas {
        width: 280px;
        height: 280px;
    }
    .visual-glow {
        width: 240px;
        height: 240px;
    }
    .visual-element {
        width: 180px;
        height: 110px;
        padding: 12px;
    }
    .element-1 {
        top: 10px;
        left: 0px;
    }
    .element-2 {
        bottom: 10px;
        right: 0px;
    }
    .badge-da-nang {
        left: -5px;
        padding: 8px 12px;
    }
    .badge-experience {
        right: -5px;
        padding: 8px 12px;
    }
    .badge-num {
        font-size: 1.2rem;
    }
    .badge-text {
        font-size: 0.65rem;
    }

    /* Contact details responsive wrapping */
    .contact-method {
        padding: 12px 16px;
        gap: 12px;
    }
    .method-value {
        font-size: 0.9rem;
        word-break: break-all;
    }
}

@media (max-width: 360px) {
    /* Ultra-compact screen visual canvas */
    .visual-canvas {
        width: 240px;
        height: 240px;
    }
    .visual-glow {
        width: 200px;
        height: 200px;
    }
    .visual-element {
        width: 150px;
        height: 90px;
        padding: 8px;
    }
    .element-1 {
        top: 5px;
        left: 0px;
    }
    .element-2 {
        bottom: 5px;
        right: 0px;
    }
    .badge-da-nang {
        left: -5px;
        padding: 6px 10px;
    }
    .badge-experience {
        right: -5px;
        padding: 6px 10px;
    }
    .badge-num {
        font-size: 1rem;
    }
    .badge-text {
        font-size: 0.6rem;
    }
}

.lang-option {
    background: transparent;
    border: none;
    padding: 10px 14px;
    text-align: left;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    width: 100%;
}

.lang-option:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--accent-gradient);
    color: hsl(210, 40%, 98%);
    font-weight: 600;
}

/* ==========================================
   SERVICES SECTION STYLES
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: hsla(var(--primary-accent-rgb), 0.1);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

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

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

