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


body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  padding: 1rem;
}

header,
section,
footer {
  text-align: center;
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

header h1 {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

section {
  background-color: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

.skills-list li {
  background-color: #e0f2fe;
  color: #023e8a;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

.project {
  margin-bottom: 2rem;
}

.project figure {
  margin: 0 auto;
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.project figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list a {
  color: #0077b6;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

footer {
  font-size: 0.85rem;
  color: #555;
  padding-top: 1rem;
  border-top: 1.5px solid #ddd;
}

/* --------------------------------TabLet View----------------------------- */

@media screen and (min-width:768px) {

  nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

   .skills-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

   .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .project {
    margin-bottom: 0;
  }
  
}

/* ------------------------------Desktop View---------------------------- */

@media screen and (min-width: 992px) {

  body {
    padding: 2rem 4rem;
  }

  header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-----------------------------Large Desktop------------------------------ */
@media screen and (min-width: 1200px) {

  body {
    padding: 3rem 6rem;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .project-grid {
    gap: 2rem;
  }

  section {
    padding: 2rem 2.5rem;
  }
}

/* -------------------------------Dark Mode-------------------------------------------- */
@media (prefers-color-scheme: dark) {

  body {
    background-color: #0d1117;
    color: #e6edf3;
  }

  section {
    background-color: #161b22;
  }

  nav a {
    color: #58a6ff;
  }

  nav a:hover {
    color: #8dc6ff;
  }

  .skills-list li {
    background-color: #1c2128;
    color: #58a6ff;
  }

  .project figcaption {
    color: #a3b3c2;
  }

  .contact-list a {
    color: #58a6ff;
  }

  footer {
    color: #a3b3c2;
    border-top-color: #30363d;
  }
}

/* ---------------------Print Layout */

@media print {

  nav, footer {
    display: none !important;
  }


  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.4;
    padding: 0;
    margin: 0.5in;
  }

 
  section {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
  }


  h1, h2, h3 {
    color: #000 !important;
    margin-bottom: 0.5rem;
  }

  p {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

 
  img {
    max-width: 100%;
    height: auto;
    border: none;
  }
}
