* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
}

header {
  background: linear-gradient(90deg, #ff2e63, #2522ba);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00ff88;
  text-transform: uppercase;
}

#nav-menu {
  display: flex;
  list-style: none;
}

#nav-menu li {
  margin-left: 2rem;
}

#nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

#nav-menu a:hover {
  color: #00ff88;
  transform: scale(1.1);
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

section {
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00ff88;
}

h1 {
  font-size: 3rem;
  animation: fadeIn 1s ease-in;
}

h2 {
  font-size: 2.2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-photo {
  display: block;
  margin: 1rem auto;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 3px solid #00ff88;
  transition: transform 0.3s;
}

.profile-photo:hover {
  transform: rotate(5deg) scale(1.05);
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.certificate-slider, .project-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
}

.certificate-card, .project-card {
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: slideIn 0.5s ease;
}

.certificate-card:hover, .project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 255, 136, 0.3);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.certificate-card img, .project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.certificate-card img:hover, .project-card img:hover {
  transform: scale(1.05);
}

.watch-btn, .resume-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #00ff88;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.watch-btn:hover, .resume-btn:hover {
  background: #00cc70;
  transform: scale(1.1);
}

.resume-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.view-btn {
  background: #2522ba;
}

.view-btn:hover {
  background: #1a1a8f;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 136, 0.7);
  color: #1a1a1a;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.8rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: #00ff88;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid #00ff88;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: #00ff88;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #00cc70;
}

#resume {
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.resume-btn {
  font-size: 1.3rem;
  padding: 1rem 2rem;
}

/* UPDATED CONTACT SECTION CSS */
#contact {
  background: linear-gradient(135deg, #222, #2a2a2a);
  border-radius: 12px;
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
  animation: fadeIn 1s ease-in;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.contact-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.4);
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(90deg, #ff2e63, #2522ba);
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #ff2e63, #2522ba);
    padding: 1rem;
  }
  span{
     color:rgb(216, 112, 216)
  }
  #nav-menu.active {
    display: flex;
  }

  #nav-menu li {
     margin: 0.5rem 0;
  }

  #menu-toggle {
    display: block;
  }

  section {
    padding: 4rem 1rem;
  }

  .certificate-slider, .project-slider {
    grid-template-columns: 1fr;
  }

  .resume-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-links {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .certificate-slider, .project-slider {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-links {
    flex-direction: row;
    justify-content: center;
  }
}