* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat';
  scroll-behavior: smooth;
}
body {
  background: #f1f1f1;
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.name {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 10px;
  color: #111;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 25px 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-links {
display: flex;
gap: 15px;
}

header a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

header a:hover {
  color: #ffe082;
}



.menu-toggle {
  left: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Only visible on mobile */
}
.container {
  background: #ffffff;
  border-radius: 44px;
  max-width: 600px;
  margin: 100px auto 40px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto;
  display: block;
}
h1 {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 10px;
}
h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: #ffe082;
  margin: 8px auto 0;
  border-radius: 2px;
}
.subtitle {
  text-align: center;
  margin-top: 10px;
  color: #555;
}
.icons {
  display: flex;
  justify-content: center;
  margin: 15px;
}
.icons a {
  padding: 2%;
  border-radius: 30%;
  text-decoration: none;
  font-size: 26px;
  transition: background 0.3s;
}
.icons a:hover {
  background: #ffd54f;
}
a {
text-decoration: none;
}

.btn {
  display: block;
  margin: 15px auto;
  background: #ffe082;
  border: none;
  padding: 12px 44px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 3px;
}
.btn:hover {
  background: #ffd54f;
}
section {
  margin: 30px 0;
}
h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: #ffe082;
  margin: 8px auto 0;
  border-radius: 2px;
}
p {
  line-height: 1.6;
  color: #444;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.about {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.skills span {
  background: #fff3cd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

hr {
  border: none;
  border-top: 2px solid #eee;
  margin: 40px 0;
}
footer {
  text-align: center;
  margin-top: 20px;
  color: #aaa;
  font-size: 14px;
}
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: none;
}

#scrollTopBtn:hover {
  transition: transform 0.3s ease;
  transform: scale(1.05);
}


.projects {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-card, .project-card-rev {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.project-image {
  width: 200px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.project-image:hover{
transform: scale(1.05);
}
.project-content {
  text-align: left;
  flex: 1;
}
.project-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.project-content h3 span {
  font-weight: normal;
}

.project-content p {
  font-size: 14px;
  color: #555;
}

.more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #ffe082;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}
.more-btn:hover {
  transform: scale(1.05);
}

.certifications {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.certifications h2 {
  font-size: 21px;
  margin-bottom: 30px;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cert-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.cert-card:hover {
  transform: scale(1.03);
}

.cert-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.cert-image:hover {
  transform: scale(1.05);
}

.cert-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.cert-date {
  font-size: 14px;
  color: #777;
}

.experience {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.experience h2 {
  font-size: 23px;
  margin-bottom: 30px;
}

.experience-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.experience-info {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.job-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.company {
  font-size: 16px;
  color: #555;
  margin-bottom: 5px;
}

.duration {
  font-size: 14px;
  color: #777;
}

.certificate-image-link {
  display: inline-block;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.certificate-image-link:hover {
  transform: scale(1.05);
}

.certificate-image {
  width: 190px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.skills.visible, .certifications.visible, .experience.visible, .about.visible, .projects.visible {
    opacity: 1;
  transform: translateY(0);
}

/* Mobile Styling */
@media (max-width: 768px) {
  .name {
    letter-spacing: 3px;
    font-size: 30px;
  }
  header {
    padding: 10px 15px;

  }
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      transform: none;
      background: rgba(255, 255, 255, 0.9);
      padding: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  .nav-links.active {
  display: flex;
  }

  .menu-toggle {
  display: block;
  }
  .project-card {
    flex-direction: column;
    text-align: center;
  }
  .project-card-rev {
    flex-direction: column-reverse;
    text-align: center;
  }
  .project-content {
    text-align: center;
  }

  .project-image {
    width: 100%;
    max-width: 250px;
  }
  .project-image:hover {
  transform: scale(1.05);
  }
  .more-btn:hover {
  transform: scale(1.05);
  }
  .cert-card {
    width: 90%;
  }
   .experience-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-info {
  text-align: center;
  flex: 1;
  min-width: 200px;
  }  

  .certificate-image {
    margin-top: 15px;
    width: 100%;
    max-width: 250px;
  }
}
