@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Times New Roman', Times, serif;
}

body {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    max-width: 1200px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

ul li, a {
    text-decoration: none;
    list-style-type: none;
    display: inline;
    padding: 0 1rem;
    color: red;
}

/* About Section */
#about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 2rem;
    gap: 2rem;
    align-items: center;
}

h2 {
    font-size: 2.5rem;
}

.about-text p {
    padding: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
}

#button-1, .download-btn, #theme-toggle{
    padding: 1rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: white;
    margin-top: 1rem;
    background-color: black;
} 

/* About Image */
#about img {
    object-fit: cover;
    width: 100%;
    max-width: 600px;
    border-radius: 8rem;
    margin: 0 auto;
}

/* Section Headings */
#skills h3, #projects h3 {
    text-align: center;
    margin: 4rem 0 2rem;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin-bottom: 4rem;
    color: red;
}

.project-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}


/*contact section */
#contact {
  margin: 2rem 0;
}

#userForm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin-top: 1rem;
}

#userForm input, #userForm button {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.dark-mode{
    color: white;
    background-color: black;
} 
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    ul li, a {
        display: block;
        padding: 0.5rem 0;
    }

    h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    #about img {
        border-radius: 4rem;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
    #button-1, .download-btn{
        margin-top: 2px;
        padding: 4px;
        border-radius: 0.5rem;
    }
    #theme-toggle{
        margin-top: 2px;
        padding: 4px;
        border-radius: 0.5rem;
    }
}






