body {
    user-select: none;
}


/* Custom styles */
:root {
    /* Light theme variables */
    --bg-primary: #f8fafc;  /* Màu nền chính - trắng xám nhẹ */
    --bg-secondary: #f1f5f9;  /* Màu nền phụ - xám nhạt */
    --text-primary: #1e293b;  /* Chữ chính - xanh đen */
    --text-secondary: #475569;  /* Chữ phụ - xám đậm */
    --accent-primary: #4f46e5;  /* Màu nhấn chính - tím */
    --accent-secondary: #6366f1;  /* Màu nhấn phụ - tím nhạt */
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 4px rgba(79, 70, 229, 0.1);
    --shadow-md: 0 4px 6px rgba(79, 70, 229, 0.15);
    --shadow-lg: 0 8px 15px rgba(79, 70, 229, 0.2);
}

[data-theme='dark'] {
    /* Dark theme variables - improved for better visibility */
    --bg-primary: #0f172a;  /* Nền tối - xanh đen */
    --bg-secondary: #1e293b;  /* Nền tối phụ - xanh đen nhạt */
    --text-primary: #f1f5f9;  /* Chữ chính - trắng xám */
    --text-secondary: #cbd5e1;  /* Chữ phụ - xám nhạt */
    --text-third: #000000;  /* Chữ phụ - đen  */
    --accent-primary: #818cf8;  /* Màu nhấn - tím nhạt */
    --accent-secondary: #000000;  /* Màu nhấn phụ - xanh nhạt */
    --border-color: #334155;  /* Viền - xám đậm */
    --card-bg: rgba(30, 41, 59, 0.95);  /* Nền card - tối hơn và đậm hơn */
    --nav-bg: rgba(15, 23, 42, 0.95);  /* Nền navbar - tối và trong suốt */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.nav-link {
    font-weight: bold;
    position: relative;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

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

/* Hero section enhancements */

.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image-container {
    width: 100%;
    max-width: 256px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.profile-image {
    border: 4px solid var(--accent-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 5rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    .profile-image-container {
        max-width: 200px;
    }
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .hero-section {
        padding: 4rem 1rem;
    }
}

/* Button styles */
.primary-button {
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.secondary-button {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Skill card enhancements */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Skill progress bar animations */
.skill-progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-value {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    border-radius: 4px;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Social links enhancement */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Project icons */
.social-link .fab.fa-github {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-link .fab.fa-github:hover {
    color: #333;
}

.social-link .fab.fa-gitlab {
    color: #fc6d26;  /* Màu cam GitLab mặc định */
    transition: color 0.3s ease;
}

.social-link .fab.fa-gitlab:hover {
    color: #fc6d26;
}

/* Project overlay icons */
.project-overlay .fab.fa-github {
    color: white;
    transition: color 0.3s ease;
}

.project-overlay .fab.fa-github:hover {
    color: #333;
}

.project-overlay .fab.fa-gitlab {
    color: #fc6d26;  /* Màu cam GitLab mặc định */
    transition: color 0.3s ease;
}

.project-overlay .fab.fa-gitlab:hover {
    color: #fc6d26;
}

/* Profile image animations */
.profile-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .profile-image { border-width: 3px; }
}

/* Hero section text responsiveness */
@media (max-width: 640px) {
    .hero-section h1,
    .hero-section .text-blue-600 {
        font-size: 1.5rem; /* 24px */
        line-height: 2rem; /* 32px */
    }
    
    .hero-section p {
        font-size: 1rem; /* 16px */
        line-height: 1.5rem; /* 24px */
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-section h1,
    .hero-section .text-blue-600 {
        font-size: 1.875rem; /* 30px */
        line-height: 2.25rem; /* 36px */
    }
    
    .hero-section p {
        font-size: 1.125rem; /* 18px */
        line-height: 1.75rem; /* 28px */
    }
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjust this value based on your navbar height */
}

body {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.15), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.nav-container {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.hero-section {
    background: linear-gradient(
        135deg,
        #e6eefe 0%,
        #e0e7ff 30%,
        #ddd6fe 70%,
        #e0e7ff 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.15), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.1), transparent 50%);
    pointer-events: none;
}

[data-theme='dark'] .hero-section {
    background: linear-gradient(
        135deg,
        #1e1b4b 0%,
        #1e293b 30%,
        #312e81 70%,
        #1e293b 100%
    );
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Profile image container */
.profile-image-container {
    position: relative;
}

/* Logo Styling */
.logo-container {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-bracket {
    font-family: 'Fira Code', monospace;
    opacity: 0.9;
}

.logo-name {
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Skills Section Enhancement */
.skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
}

.dark .skill-card {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skill-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dark .skill-item {
    background: rgba(31, 41, 55, 0.5);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.dark .skill-item:hover {
    background: rgba(31, 41, 55, 0.8);
}

.skill-progress-bar {
    height: 8px;
    background: rgba(219, 234, 254, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.dark .skill-progress-bar {
    background: rgba(55, 65, 81, 0.3);
}

.skill-progress-value {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    width: 0;
}

.skill-item img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

/* Dark mode adjustments */
.dark .skill-progress-value {
    background: linear-gradient(90deg, #60A5FA, #93C5FD);
}

/* Skills section */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skill-progress-bar {
    height: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    overflow: hidden;
}

.skill-progress-value {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 0.25rem;
    transition: width 1s ease-in-out;
}

/* Project cards */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-image {
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

/* Experience timeline */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

/* Contact section */
.contact-button {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform-origin: 0 50%;
    z-index: 100;
}

/* Tools Section */
.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
}

.tool-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tool-item span {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Dark mode adjustments */
.dark .tool-item img[alt="GitHub"] {
    filter: invert(1);
}

/* Tool Tags */
.tools-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dark .tool-tag {
    background: rgba(96, 165, 250, 0.1);
}

.tool-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(229, 231, 235, 0.2);
}

.dark .tool-item {
    background: rgba(31, 41, 55, 0.2);
    border-color: rgba(55, 65, 81, 0.2);
}

.tool-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.5);
}

.dark .tool-item:hover {
    background: rgba(31, 41, 55, 0.4);
    border-color: rgba(96, 165, 250, 0.5);
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tool-item:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-item span {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Dark mode adjustments for GitHub icon */
.dark .tool-item img[alt="GitHub"] {
    filter: invert(1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }
}

/* Soft Skills Grid */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.soft-skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dark .soft-skill-item {
    background: rgba(31, 41, 55, 0.5);
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
}

.dark .soft-skill-item:hover {
    background: rgba(31, 41, 55, 0.8);
}

.soft-skill-item i {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Language Progress Bar */
.language-progress-bar {
    height: 6px;
    background: rgba(219, 234, 254, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dark .language-progress-bar {
    background: rgba(55, 65, 81, 0.3);
}

.language-progress-value {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}

.dark .language-progress-value {
    background: linear-gradient(90deg, #60A5FA, #93C5FD);
}

/* Enhance existing skill cards */
.skill-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-item {
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.skill-item:hover::before {
    transform: translateX(100%);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .soft-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-group {
        flex-direction: column;
    }
    
    .tool-tag {
        text-align: center;
    }
}

/* Development Tools Section */
.dev-tools-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.dev-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.dev-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    gap: 0.5rem;
    width: 100px;
    height: 120px
}

.dark .dev-tool-item {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(55, 65, 81, 0.3);
}

.dev-tool-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dark .dev-tool-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(96, 165, 250, 0.5);
}

.dev-tool-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}


.sonarqube-icon {
    width: 100px;
    height: 100px;
}

.dev-tool-item:hover .dev-tool-icon {
    transform: scale(1.15);
}

.dev-tool-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    opacity: 0.9;
}

.dev-tools-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dev-tools-title i {
    font-size: 2rem;
    color: #3b82f6;
}

/* Dark mode adjustments */
.dark .dev-tool-item img[alt="GitHub"] {
    filter: invert(1);
}

@media (max-width: 1024px) {
    .dev-tools-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dev-tools-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .dev-tool-item {
        padding: 1rem;
    }

    .dev-tool-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .dev-tools-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dev-tool-item {
        padding: 0.75rem;
    }

    .dev-tool-icon {
        width: 28px;
        height: 28px;
    }

    .dev-tool-name {
        font-size: 0.75rem;
    }
}

/* Dark mode enhancements */
[data-theme='dark'] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme='dark'] .skill-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .project-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
}

[data-theme='dark'] .nav-link {
    color: #f1f5f9;
}

[data-theme='dark'] .nav-link:hover {
    color: #818cf8;
}

[data-theme='dark'] h1, 
[data-theme='dark'] h2, 
[data-theme='dark'] h3 {
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] p {
    color: #cbd5e1;
}

[data-theme='dark'] .skill-card:hover,
[data-theme='dark'] .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: #818cf8;
}

/* Fix logo in dark mode */
[data-theme='dark'] .text-gray-900 {
    color: #f1f5f9;  /* Light color for dark mode */
}

/* Enhance Get In Touch section */
#contact {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

#contact p {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-links a {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social media icons colors */
.contact-links a {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* GitHub specific styling */
.contact-links a.github-link {
    color: #24292e;
}

.contact-links a.github-link:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

/* LinkedIn specific styling */
.contact-links a.linkedin-link {
    color: #0077b5;
}

.contact-links a.linkedin-link:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* Email specific styling */
.contact-links a.email-link {
    color: #ea4335;
}

.contact-links a.email-link:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

/* Dark mode adjustments for social links */
[data-theme='dark'] .contact-links a {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme='dark'] .contact-links a.github-link {
    color: #f0f6fc;
}

[data-theme='dark'] .contact-links a.github-link:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

[data-theme='dark'] .contact-links a.linkedin-link {
    color: #0077b5;
}

[data-theme='dark'] .contact-links a.linkedin-link:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

[data-theme='dark'] .contact-links a.email-link {
    color: #ea4335;
}

[data-theme='dark'] .contact-links a.email-link:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

/* Hero section social links */
.hero-social-links {
    display: flex;
    justify-content: left;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hero-social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-social-links a i {
    font-size: 1.5rem;
}

/* GitHub specific styling */
.hero-social-links a.github-link {
    color: #24292e;
}

.hero-social-links a.github-link:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

/* LinkedIn specific styling */
.hero-social-links a.linkedin-link {
    color: #0077b5;
}

.hero-social-links a.linkedin-link:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* Email specific styling */
.hero-social-links a.email-link {
    color: #ea4335;
}

.hero-social-links a.email-link:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

/* Dark mode adjustments */
[data-theme='dark'] .hero-social-links a {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme='dark'] .hero-social-links a.github-link {
    color: #f0f6fc;
}

[data-theme='dark'] .hero-social-links a.github-link:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

[data-theme='dark'] .hero-social-links a.linkedin-link:hover {
    background: #0077b5;
    border-color: #0077b5;
}

[data-theme='dark'] .hero-social-links a.email-link:hover {
    background: #ea4335;
    border-color: #ea4335;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-section {
        padding: 4rem 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-section .container {
        padding: 0;
    }

    /* Adjust text sizes for better mobile display */
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Ensure buttons and links stay within viewport */
    .primary-button,
    .secondary-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Section headings */
.section-heading {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

[data-theme='dark'] .section-heading {
    color: var(--text-third); /* Sử dụng màu đen đã định nghĩa */
}

/* Project card icons */
.project-overlay .fab.fa-github {
    color: white;
    transition: color 0.3s ease;
}

.project-overlay .fab.fa-github:hover {
    color: #f6f5f3;
}

.project-overlay .fab.fa-gitlab {
    color: white;
    transition: color 0.3s ease;
}

.project-overlay .fab.fa-gitlab:hover {
    color: #fc6d26;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

[data-theme='dark'] .tech-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}