/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 60px;
}

/* Header and Navigation */
header {
    background: #05386b;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

header nav h1 {
    font-size: 1.8em;
    font-weight: bold;
    margin-left: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #5cdb95;
}

/* Hero Section */
.hero {
    background-image: url("Ngo next.avif");
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0px;
    text-align: center;
    color:white;
    
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h2 {
    position: relative;
    font-size: 3em;
    margin-bottom: 20px;
    z-index: 2;
    color:thistle;
}

.hero p {
    position: relative;
    font-size: 1.5em;
    margin-bottom: 30px;
    z-index: 2;
}

.hero button {
    position: relative;
    padding: 15px 30px;
    background: #5cdb95;
    color: #05386b;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
    z-index: 2;
}

.hero button:hover {
    background: #8ee4af;
}

/* Section Styles */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5em;
    text-align: center;
}

section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-align: center;
}

/* About Section */
#about p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Projects Section */
#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.project {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-basis: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #05386b;
}
.project h4 {
    color:#05386b;
}

.project p {
    font-size: 1em;
    color: #666;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
#contact {
    background: #f4f4f4;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

form button {
    padding: 15px 30px;
    background: #05386b;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

form button:hover {
    background: #5cdb95;
    color: #05386b;
}

/* Footer */
footer {
    background: #05386b;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    position: relative;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    #projects {
        flex-direction: column;
    }

    .project {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul li a {
        font-size: 1.2em;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero button {
        font-size: 1em;
    }

    section h2 {
        font-size: 2em;
    }

    section p {
        font-size: 1em;
    }
}
