/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Layout */
body {
  display: flex;
  min-height: 100vh;
  background: #1e1e1e;
  color: #fff;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #111;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar .logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar .logo h2 {
  color: #4ade80;
}

.sidebar .logo #close-btn {
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #bbb;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  color: #4ade80;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* Main content */
.content {
  margin-left: 220px;
  flex: 1;
  padding: 40px;
}

/* Sections */
.section {
  
  min-height: 50vh;       
  padding: 40px 0;        
}

.section h2 {
  font-size: 1.8rem;
  color: #4ade80;
  margin-bottom: 20px;
}

/* Home */
#home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.intro {
  max-width: 500px;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.highlight {
  color: #4ade80;
}

.intro p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #ccc;
}

.buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  background: #4ade80;
  color: #111;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #22c55e;
  color: #fff;
}

/* Profile picture */
.profile-pic img {
  width: 250px;
  border-radius: 10px;
  border: 4px solid #4ade80;
  object-fit: cover;
}

/* Skills list */
.skills-list {
  list-style:none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 15px;
}

.skills-list li {
  background: #222;
  padding: 10px 15px;
  border-radius: 6px;
}

/* Projects */
.project-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-list li {
  margin: 10px 0;
  transition: transform 0.3s ease;
}

.project-list li:hover {
  transform: scale(1.05);
}

.project-list a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
  border-radius: 8px;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}


.project-list a h3{
  color: #2a8f4f;
}

.project-list a:hover {
  background-color: #bdddb4;
}
.project-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

/* Certificates */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.cert-item {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 300px;
  text-align: center;
}

.cert-item h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #4ade80;
}

.cert-item img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  transition: transform 0.3s;
}

.cert-item img:hover {
  transform: scale(1.05);
}

#contact p{
  margin-bottom: 10px;
  border-style: groove;
  box-sizing: border-box;
  padding: 5px;
  border-color: #1e1e1e;
  width: 80%;
  

}

#contact a {
  color: #acf8df;
  text-decoration: none;
  transition: 0.3s;

}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #333;
  margin-top: 40px;
  font-size: 14px;
  color: #888;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  /* Sidebar hidden initially */
  .sidebar {
    transform: translateX(-100%);
    width: 220px;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .sidebar .logo #close-btn {
    display: block;
  }

  /* Hamburger visible */
  .hamburger {
    display: block;
    cursor: pointer;
}

/* Hide hamburger when sidebar is active */
.sidebar.active ~ .hamburger {
  display: none;
}


.buttons{
     justify-content: center; 
    
  }
  

  /* Content full width */
  .content {
    margin-left: 0;
    padding: 20px;
  }

  #home {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic img {
    margin-top: 20px;
  }
}
