* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #1c2a3e;
  display: flex;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: #2c3e50;
  padding: 24px;
  color: white;
  overflow-y: auto;
}

.sidebar h2 {
  margin-bottom: 2rem;
  text-align: center;
  color: #ecf0f1;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 12px 0;
}

.sidebar a {
  color: #bdc3c7;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  display: block;
  transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: #0c1116;
  color: #ecf0f1;
}

.main-content {
  margin-left: 260px;
  padding: 40px;
  width: calc(100% - 260px);
}

section {
  /* min-height: 100vh; */
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section h2 {
  color: white;
}

#contact{
  padding: 35px 0px 0px 0px;
}


#about {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
  min-height: auto;
}

#about img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 5px solid #2c3e50;
  flex-shrink: 0;
}

.about-content {
  flex: 1;
}

.about-content h1 {
  margin-bottom: 20px;
  color: #e0e7ee;
  font-size: 2.5em;
}

.about-content p {
  line-height: 1.6;
  color: #ffffff;
  font-size: 1.1em;
  max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  #about img {
    width: 200px;
    height: 200px;
  }

  .about-content {
    text-align: center;
  }
}

.resume-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.resume-link:hover {
  background-color: #2980b9;
}

.project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.certificate {
  background-color: #3498db;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.certificate:hover {
  background-color: #2980b9;
}

.github-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 30px;
  background-color: #102e42;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.github-link:hover {
  background-color: #2e7c9d;
  /* color: white; */
  transform: scale(1.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.skills-list {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.skill-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.skill-item:hover {
  background-color: #3498db;
  color: white;
  transform: scale(1.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.contact-links a {
  color: #d6dfe9;
  font-size: 24px;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #34495e;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    margin-left: -260px;
    transition: margin 0.3s ease;
  }

  .sidebar.active {
    margin-left: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column; 
    align-items: flex-start; 
    text-align: left; 
  }

  .project-card h3 {
    margin-bottom: 10px; 
  }

  .project-card p {
    margin-bottom: 10px; 
  }

  .project-card a {
    margin-top: 10px; 
    align-self: flex-start; 
  }
}

/* .close-sidebar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

close-sidebar-btn:hover {
  color: #bdc3c7;
} */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: #2c3e50;
  padding: 24px;
  color: white;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.show-sidebar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  position: fixed;
  top: 10px;
  left: 10px;
  cursor: pointer;
  display: none; 
  z-index: 1001; 
}

.show-sidebar-btn:hover {
  color: #bdc3c7;
}

.sidebar.hidden + .show-sidebar-btn {
  display: block; 
}

.message-me {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#messageMeBtn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#messageMeBtn:hover {
  background-color: #2980b9;
}

.message-form-container {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2c3e50;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.message-form-container form {
  display: flex;
  flex-direction: column;
}

.message-form-container label {
  margin-bottom: 5px;
  color: white;
}

.message-form-container input,
.message-form-container textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.message-form-container button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message-form-container button:hover {
  background-color: #2980b9;
}

#closeFormBtn {
  background-color: #e74c3c;
  margin-top: 10px;
}

#closeFormBtn:hover {
  background-color: #c0392b;
}