
*{
  box-sizing: border-box;
}

body {
  font-family: monospace;
  font-size: 16px;
  line-height: 1.4;
  color: #7DE2D1;
  background-color: #131515;
  margin: 0;
}

main {
  max-width: 700px;   /* center on big screens */
  width: 100%;        /* allow shrinking on small screens */
  margin: 0 auto;
  padding: 0 20px;
}

section{
  margin: 2rem 0;
}


h1 {
  font-size: 2rem;
  margin-top: 2rem;
  font-style: normal;
}


h2 {
  font-size: 1.5rem;
  text-transform: lowercase;
  margin-top: 2rem;
}

a {
  color: #7DE2D1;
  text-decoration: underline;
}

/* a:hover {
  text-decoration: underline;
} */

a.project_title {
    text-decoration: none; /* Remove underline by default */
}

a.project_title:hover {
    text-decoration: underline; /* Add underline only on hover */
}

.project_des{
  margin-top: 5px;
}


@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
    padding: 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* More aggressive mobile nav styling */
  nav {
    padding: 0 10px; /* Reduce padding */
    overflow: hidden; /* Prevent overflow */
  }
  
  .nav {
    gap: 15px; /* Reduce gap between items */
    font-size: 14px; /* Ensure font size doesn't grow */
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  
  .nav a {
    font-size: 14px; /* Explicit font size for links */
    white-space: nowrap; /* Prevent text wrapping */
  }
}

@media screen and (max-width: 360px) {
  .nav {
    gap: 10px; /* Even smaller gap */
    font-size: 13px;
  }
  
  .nav a {
    font-size: 13px;
  }
}

nav{
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid #7DE2D1;
  margin-bottom: 2rem;
}

.nav{
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #7DE2D1;   /* dark text for light mode */
  padding-bottom: 4px;
  transition: border-color 0.3s ease;
}

.nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #7DE2D1;  /* underline active link */
}

.nav a.inactive:hover {
  border-bottom: 2px solid #DDF7EC;  /* subtle hover underline */
}


input, select, textarea, button, a {
  font-size: 16px; /* Prevents zoom on iOS */
}


.blog-sec{
  margin-bottom: 40px;
  padding-bottom: 10px;
}