* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #1e1e1e, #2c3e50);
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

nav {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #34495e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  z-index: 1000;
}

nav h1 {
  font-size: 1.8rem;
  color: #f1c40f;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li {
  position: relative;
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 1rem;
  transition: color 0.3s;
  font-weight: 500;
}

nav ul li a:hover {
  color: #f1c40f;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c3e50;
  padding: 0.5rem 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li {
  width: 150px;
}

nav ul li ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ecf0f1;
  text-decoration: none;
}

nav ul li ul li a:hover {
  background-color: #34495e;
}

.container {
  display: flex;
  flex-wrap: wrap;
  margin: 5rem 2rem 2rem;
  width: 90%;
  gap: 2rem;
}

.left {
  flex: 1;
  max-width: 30%;
  background-color: rgba(44, 62, 80, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.left img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #f1c40f;
  margin-bottom: 1rem;
}

.left h2 {
  font-size: 1.8rem;
  color: #f1c40f;
  margin-bottom: 1rem;
}

.left p {
  text-align: justify;
  line-height: 1.6;
  color: #bdc3c7;
}

.right {
  flex: 2;
  max-width: 65%;
  background-color: rgba(44, 62, 80, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.right h2 {
  font-size: 1.6rem;
  color: #f1c40f;
  margin-bottom: 1rem;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project {
  background-color: #34495e;
  padding: 1rem;
  border-radius: 12px;
  flex: 1;
  min-width: 250px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
}

.project h3 {
  margin-bottom: 0.5rem;
  color: #f1c40f;
}

.project p {
  font-size: 0.9rem;
  color: #ecf0f1;
}

#contact a {
  color: #f1c40f;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

#contact a:hover {
  color: #e67e22;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .container {
    flex-direction: column;
  }

  .left,
  .right {
    max-width: 100%;
  }

  .projects {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  nav h1 {
    font-size: 1.5rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .left h2 {
    font-size: 1.5rem;
  }

  .right h2 {
    font-size: 1.4rem;
  }

  .project h3 {
    font-size: 1rem;
  }
}
