* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #404258;
  padding: 20px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 600;
  color: #e1dede;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #e1dede;
  font-size: 1rem;
  transition: 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #777e85;
}

/* Main Sections */
main {
  width: 85%;
  margin: 40px auto;
}

section {
  margin-bottom: 50px;
}

section h2,
section h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #222;
}

/* About Section */
.img {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.img img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.img p {
  max-width: 600px;
  font-size: 1rem;
  text-align: justify;
}

/* Skills & Project Lists */
ul {
  margin-left: 20px;
  margin-top: 10px;
}

ul li {
  margin-bottom: 8px;
}

/* Testimonials */
blockquote {
  font-style: italic;
  background: #ffffff;
  padding: 20px;
  border-left: 4px solid #007bff;
  border-radius: 5px;
  max-width: 700px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Contact */
#contact a {
  color: #007bff;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #404258;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #a6a3a3;
  border-top: 1px solid #ddd;
}

/* ===============================
   Responsive Design
   =============================== */

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  main {
    width: 90%;
  }

  header h1 {
    font-size: 1.7rem;
  }

  nav ul {
    gap: 18px;
  }

  section h1,
  section h2 {
    font-size: 1.6rem;
  }

  .img img {
    width: 200px;
    height: 200px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  main {
    width: 95%;
    margin: 25px auto;
  }

  .img {
    flex-direction: column;
    text-align: center;
  }

  .img img {
    width: 180px;
    height: 180px;
  }

  .img p {
    max-width: 100%;
    text-align: left;
  }

  section h1,
  section h2 {
    font-size: 1.4rem;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  section h1,
  section h2 {
    font-size: 1.25rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 15px;
  }
}
