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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #E8E8E8;
    background-color: #36454F;
}

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

/* Header Styles */
.header {
    background-color: #2C3A42;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #20B2AA;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-link:hover {
    color: #20B2AA;
}

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

.nav-toggle {
    display: none;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #20B2AA;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #20B2AA, #48D1CC);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: #2C3A42;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #C8C8C8;
    line-height: 1.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background-color: #2C3A42;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(32, 178, 170, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.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-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #20B2AA;
    margin-bottom: 1rem;
}

.project-description {
    color: #C8C8C8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: #20B2AA;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid #20B2AA;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #20B2AA;
    color: #36454F;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: #2C3A42;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.3rem;
    color: #C8C8C8;
    margin-bottom: 2.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E8E8E8;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background-color: #36454F;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: #20B2AA;
    color: #36454F;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(32, 178, 170, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background-color: #1F2A30;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: #A8A8A8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .name {
        font-size: 2rem;
        z-index: 1001;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
        background: transparent;
        border: 0;
        padding: 0.5em;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 1.5em;
        height: 2px;
        background: #E8E8E8;
        transition: transform 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #E8E8E8;
        transition: all 0.3s ease-out;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        bottom: -6px;
    }

    .nav--visible .hamburger {
        transform: rotate(135deg);
    }

    .nav--visible .hamburger::before {
        top: 0;
        transform: rotate(90deg);
    }
    
    .nav--visible .hamburger::after {
        opacity: 0;
    }

    .nav {
        position: fixed;
        background: rgba(44, 58, 66, 0.98);
        backdrop-filter: blur(5px);
        color: #E8E8E8;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .nav-link:hover {
        color: #20B2AA;
    }

    .nav-link::after {
        display: none;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* Animation cho các phần tử */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card,
.about-content,
.contact-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll cho mobile */
@media (hover: none) and (pointer: coarse) {
    html {
        scroll-behavior: smooth;
    }
}
