* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #0cad9f;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav {
    background-color: #ffffff;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

nav ul li a:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

/* Active Page Styling */
.active {
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

/* Resume & Contact Link Styling */
.nav-link {
    background-color: #16987e;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: #4CAF50;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#about {
    background-image: url("Joseph.jpg");
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
    color: #fff;                  
    padding: 4rem 2rem;           
    text-align: center; 
          
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.5);  */
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 2; 
}




#about img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    object-fit: cover;
}

#about h2 {
    font-size: 2.5rem;
    color: #dbcece;
    margin-bottom: 10px;
}

#about p {
    font-size: 1.1rem;
    color: #FFF;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.profile-photo {
    width: 150px; 
    height: 150px;
    border-radius: 50%; 
    margin-top: 1rem;
    object-fit: cover; 
}

#classes {
    background-color: #f9fafb;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#classes h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

#classes ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#classes ul li {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

#classes ul li:hover {
    transform: translateY(-7px);
}


#skills {
    background-color: #f9fafb;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#skills h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

#skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#skills ul li {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

#skills ul li:hover {
    transform: translateY(-5px);
}

#projects {
    background-color: #fff;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#projects h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.project {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.project img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.project:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.project p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.project .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1abc9c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project .btn:hover {
    background-color: #16a085;
}

#contact {
    background-color: #2c3e50;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#contact h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1rem;
    color: #fff;
}

#contact a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #16a085;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    #skills ul {
        flex-direction: column;
    }

    .project {
        flex-direction: column;
        text-align: center;
    }

    .project img {
        margin-bottom: 20px;
    }
}





