/* ==========General Styles ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.section {
  padding: 50px 0;
}

.bg-light {
  background-color: #f4f4f4;
}

/* ============ Header ========== */
header {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
}

header nav {
  margin-top: 20px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0px 10px;
  font-weight: bold;
  background-color: olive;
  padding: 5px 30px;
  border-radius: 5px;
}

header nav a:hover {
  background-color: rgb(148, 148, 71);
}

/* =======about section======= */
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: #fff;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid #333;
  filter: drop-shadow(10px 10px 20px black);
  transition: transform 1s linear;
}

.profile-photo:hover {
  transform: scale(1.1, 1.1);
}

.text-container {
  background-color: #333;
  width: 60%;
  max-width: 500px;
  min-height: 30vh;
  padding: 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  transition: transform 1s linear;
}

.text-container:hover {
  transform: scale(1.1, 1.1);
}

.btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 15px;
}

.btn:hover {
  background: #007bff;
}
/* ===========skills========= */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skills-list li {
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: transform 0.5s ease;
}

.skills-list li:hover {
  transform: scale(1.1, 1.1);
}
/* ======Projects====== */
.project-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project {
  background-color: #fff;
  padding: 20px;
  /* margin-bottom: 100px; */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.5s linear;
}

.project h3 {
  margin-bottom: 10px;
  color: #333;
}

.project:hover {
  transform: scale(1.1, 1.1);
  border: 2px solid skyblue;
  box-shadow: 0 5px 5px 1px skyblue;
}

/* =====Contact===== */
#contact a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

#contact a:hover {
  color: #007bff;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  background: #333;
  color: #fff;
  padding: 15px 0;
  margin-top: 20px;
}

footer p {
  font-size: 1rem;
}

/* ===== Responsive===== */
@media (max-width: 768px) {
  .skills-list {
    flex-direction: column;
    align-items: center;
  }

  .text-container {
    font-size: 0.8rem;
    min-height: 10vh;
  }
}

@media (max-width: 649px) {
  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: auto;
  }
}

@media (min-width: 320px) and (max-width: 600px) {
  .profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
  }

  .text-container {
    font-size: 0.4rem;
    min-height: 5vh;
  }
}

@media (max-width: 508px) {
  header p {
    font-size: 0.5rem;
  }
  footer p {
    font-size: 0.5rem;
  }
}
