
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Quicksand', sans-serif;
    background-color: #f4f2ee;
    color: #2f2f2f;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
  }
  
  /* dark mode hereeeee */
  body.dark {
    background-color: #1a1c1a;
    color: #eaeae0;
  }
  body.dark nav,
  body.dark .top-bar,
  body.dark footer,
  body.dark .project-card,
  body.dark .skills-list li,
  body.dark .blog-card {
    background-color: #2f3b30;
    color: #eaeae0;
  }
  
  body.dark input,
  body.dark textarea {
    background-color: #3d4a3c;
    color: #f2f2f2;
    border: 1px solid #999;
  }
  

  .container {
    max-width: 1000px;
    margin: auto;
    padding: 1.5rem;
  }
  
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #d6e3d2;
    padding: 1rem;
    border-radius: 1rem;
  }
  
  .tg {
    cursor: pointer;
    font-weight: bold;
  }
  
  nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: #e8e0d5;
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  nav a {
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  nav a:hover {
    color: #7ba88e;
  }
  
  section {
    margin-top: 3rem;
  }
.projects-section {
  width: 100vw;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background-color: #f9f9f9; 
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}


.project-card {
  background-color: #ffffffd9;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-section {
    padding: 13rem;
  }
}

  
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .skills-list li {
    background-color: #cadbc8;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    list-style: none;
    font-weight: 500;
  }

  footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem;
    background-color: #e2d9c5;
    border-radius: 1rem;
    font-size: 0.9rem;
  }
  
  /* Contact Form */
  form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 500px;
  }
  
  input,
  textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-family: inherit;
  }
  
  button {
    background-color: #b2cbb1;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  } 
  
  button:hover {
    background-color: #91af96;
  }
  
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .blog-card {
    background-color: #fff9f3;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .blog-card:hover {
    transform: translateY(-4px);
  }
  
  .blog-card h4 {
    margin-bottom: 0.5rem;
    color: #3d533c;
  }
  
  .blog-card p {
    font-size: 0.9rem;
    color: #444;
  }
  
 
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      gap: 1rem;
    }
  
    .top-bar {
      flex-direction: column;
      gap: 0.5rem;
    }
  }
  #skills {
    margin-top: 3rem;
  }
  
  #skills h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #496a4f; 
    text-align: center;
  }
  
  .skill {
    margin-bottom: 1.25rem;
  }
  
  .skill p {
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    color: #4a6a49; 
  }
  
  .skill-bar {
    background-color: #d4e1d4; 
    border-radius: 1rem;
    height: 18px;
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .skill-level {
    height: 100%;
    background-color: #7a9e87;
    border-radius: 1rem 0 0 1rem;
    transition: width 1.2s ease-in-out;
  }
    