/* Main page styling */

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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222222;
    line-height: 1.6;
}

section {
    padding: 60px 10%;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
}

/* Navigation bar */

header {
    background-color: #1f2937;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #9ca3af;
}

/* Home section */

#home {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #e5e7eb;
}

#home h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

#home p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* About me */

#about {
    background-color: white;
    text-align: center;
}

#about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

#about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
}

/* Skills section */

#skills {
    background-color: #f5f5f5;
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.skill-card {
    background-color: white;
    padding: 20px;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
    margin-bottom: 10px;
}

/* Projects section */

#projects {
    background-color: white;
    text-align: center;
}

.project-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.project-card {
    background-color: #f5f5f5;
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin-bottom: 10px;
}

/* Contact form */

#contact {
    background-color: #f5f5f5;
    text-align: center;
}

#contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
}

#contact-form button {
    padding: 12px;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #374151;
} 

/* Footer */

footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Mobile layout */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #home h1 {
        font-size: 36px;
    }

    .skills-container,
    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-card,
    .project-card {
        width: 100%;
        max-width: 350px;
    }

    section {
        padding: 40px 20px;
    }
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}