/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
    padding-top: 80px;
    /* Add padding to account for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #00d4ff;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
    background: #00d4ff;
    color: #0a0a0a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    /* Adjust for navbar height */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%2300d4ff" opacity="0.1"/><circle cx="90" cy="20" r="1" fill="%2300d4ff" opacity="0.1"/><circle cx="30" cy="70" r="1" fill="%2300d4ff" opacity="0.1"/><circle cx="70" cy="90" r="1" fill="%2300d4ff" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.highlight {
    color: #00d4ff;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.typing-animation::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.btn-download {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: #fff;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.btn-download:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5);
}

.btn-download i {
    font-size: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.2));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #00d4ff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    40% {
        transform: translateY(-10px) rotate(-45deg);
    }

    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* Section Styles */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: #ccc;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.personal-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-item i {
    color: #00d4ff;
    width: 20px;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-item h3 {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: #ccc;
    font-weight: 500;
}

/* Skills Section */
/* Other Technologies & Tools layout fix */
.skills-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 140px;
    min-height: 80px;
    max-height: 100px;
    padding: 1rem 0.5rem;
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.08);
    margin: 0.2rem 0;
    transition: background 0.3s;
}

.skill-tag i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-tag span {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #00d4ff;
}

.skill-tag.featured-tech {
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
    font-weight: 700;
    border: 2px solid #00d4ff;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.15);
}

.skill-tag.featured-tech span {
    color: #fff;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.skill-tag.featured-tech {
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.15);
    border: 2px solid #00d4ff;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.2rem 0;
    transition: background 0.3s;
    min-width: 100px;
    justify-content: center;
}

.skill-tag i {
    font-size: 1.2rem;
}

.skills {
    padding: 8rem 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../media/svg/section-bg.svg');
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.5;
    z-index: 0;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-container {
    display: grid;
    gap: 4rem;
}

.skill-category h3 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.skill-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.skill-item span {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-level {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 4px;
    transition: width 2s ease;
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 3rem;
    }

    .project-image {
        height: 300px;
        min-height: 250px;
        max-height: 350px;
    }

    .project-card {
        min-width: 0;
        max-width: 100%;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    min-height: 250px;
    max-height: 350px;
    width: 100%;
    border-radius: 20px 20px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    width: 50px;
    height: 50px;
    background: #00d4ff;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    transform: scale(1.1);
    background: #fff;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Section */
.experience {
    padding: 8rem 0;
    background: #0a0a0a;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00d4ff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.timeline-content h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.timeline-content p {
    color: #ccc;
    line-height: 1.6;
}

/* Hobbies Section */
.hobbies {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.hobby-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

.hobby-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hobby-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #0a0a0a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.contact-details h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Footer */
.footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-decor {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.footer p {
    color: #ccc;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* SVG responsive adjustments */
    .section-icon {
        width: 45px;
        height: 45px;
    }

    .footer-decor {
        width: 60px;
        height: 60px;
    }

    .hero-svg-bg {
        height: 200px !important;
    }

    .skills::before {
        background-size: 300px 300px;
    }

    .hamburger {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-menu.nav-menu-active,
    .nav-menu.nav-menu-active.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 320px;
        height: 100vh;
        background: #181818;
        box-shadow: -5px 0 20px rgba(0, 212, 255, 0.1);
        z-index: 1001;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    .nav-menu.nav-menu-active.active {
        transform: translateX(0);
    }

    /* Mobile nav overlay and active menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.85);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu.nav-menu-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background: #1a1a1a;
        box-shadow: -5px 0 20px rgba(0, 212, 255, 0.1);
        z-index: 1000;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    .nav-menu.nav-menu-active.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        color: #fff !important;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nav-link:hover {
        color: #00d4ff !important;
        padding-left: 1rem;
    }

    .language-selector {
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #00d4ff;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: #00d4ff;
    }

    /* Fix hero section for mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        position: relative;
        z-index: 1;
    }

    .hero-text {
        order: 2;
        position: relative;
        z-index: 10;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 15px;
        margin-top: 1rem;
    }

    .hero-image {
        order: 1;
        position: relative;
        z-index: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-text {
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 15px;
        position: relative;
        z-index: 10;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 15px;
        position: relative;
        z-index: 10;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 10px !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hide PDF download button on mobile */
    .btn-download {
        display: none !important;
    }

    /* Add background for better readability on mobile */
    .skills,
    .projects,
    .experience,
    .hobbies {
        position: relative;
    }

    .skills .container,
    .projects .container,
    .experience .container,
    .hobbies .container {
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 15px;
        position: relative;
        z-index: 10;
    }

    .timeline-item .timeline-content {
        background: rgba(26, 26, 26, 0.9);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 10px;
        position: relative;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

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

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

/* Animation for skill bars */
.skill-bar[data-level="90"] {
    width: 90%;
}

.skill-bar[data-level="85"] {
    width: 85%;
}

.skill-bar[data-level="80"] {
    width: 80%;
}

.skill-bar[data-level="75"] {
    width: 75%;
}

.skill-bar[data-level="70"] {
    width: 70%;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
    /* ...existing code... */

    /* Responsive Design */
    @media (max-width: 1024px) {
        .skills-grid-compact {
            justify-content: center;
            max-width: 100%;
        }
    }

    @media (max-width: 768px) {
        .skills-grid-compact {
            justify-content: center;
            max-width: 100%;
        }

        .skill-tag {
            min-width: 80px;
            font-size: 0.85rem;
            padding: 0.3rem 0.5rem;
        }
    }

    /* Override project image height for desktop - ensure no CSS conflict */
    @media (min-width: 777px) {
        .projects-grid .project-card .project-image {
            height: 607px !important;
            min-height: 304px !important;
            max-height: 607px !important;
        }
    }

    /* Thêm CSS này vào file home_page.css */

    /* Hamburger Menu Styles */
    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 3px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Navigation Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Mobile Navigation */
    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }

        .nav-menu {
            position: fixed;
            top: 70px;
            left: -100%;
            width: 80%;
            max-width: 300px;
            height: calc(100vh - 70px);
            background: white;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 2rem;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            overflow-y: auto;
            gap: 1.5rem;
            z-index: 1000;
        }

        .nav-menu.active {
            left: 0;
        }

        .nav-menu.nav-menu-active {
            left: 0;
        }

        .nav-link {
            width: 100%;
            padding: 0.5rem 0;
            border-bottom: 1px solid #eee;
            color: #333;
            font-size: 1.1rem;
        }

        .language-selector {
            margin-top: 1rem;
            justify-content: flex-start;
        }

        body.nav-open {
            overflow: hidden;
        }
    }
}