* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #333;
}

body {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  color: #333;
  overflow-x: hidden;
}

section {
  max-width: 1200px;
  margin: auto;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.nav-container {
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
  margin-top: 15px;
}

.menu {
  display: flex;
  gap: 10px;
  list-style: none;
  background: #f3f3f3;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.menu li {
  padding: 10px 20px;
  border-radius: 50px;
  transition: 0.3s;
}

.menu li.active {
  background: #b8f2b0;
}

.menu li a {
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background: black;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 50px;
}

.menu li:hover {
  background: #e6e6e6;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  right: 20px; 
}

.menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.menu li a {
  font-weight: 500;
}

.menu li a:hover {
  color: #8e44ad;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #f3e6f8);
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 50px;
  font-weight: 600;
}

.hero h1 span {
  color: #8e44ad;
}

.hero h2 {
  font-size: 28px;
  margin-top: 10px;
  color: #555;
}

.hero p {
  margin-top: 20px;
  color: #666;
  line-height: 1.6;
}

.hero-btn {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary {
  background: #8e44ad;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #732d91;
}

.btn-outline {
  border: 2px solid #8e44ad;
  color: #8e44ad;
  padding: 12px 25px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #8e44ad;
  color: white;
}


.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 60px;
}

.about-left {
  width: 50%;
}

.about-left h2 {
  font-size: 50px;
}

.about-left p {
  margin-top: 20px;
  color: #666;
  line-height: 1.6;
}

.btn-cv {
  margin-top: 20px;
  padding: 10px 25px;
  background: #8e44ad;
  color: white;
  border-radius: 25px;
  cursor: pointer;
}

.about-right {
  width: 50%;
  display: flex;
  justify-content: center;
}

.circle {
  width: 350px;
  height: 350px;
  background: #f3e6f8;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.circle img {
  position: absolute;
  top: 40%;
  left: 60%;
  width: 150%;
  transform: translate(-50%, -50%);
}

.skills,
.experience,
.certificate,
.portfolio {
  padding: 80px 0;
}

h3 {
  padding-left: 60px;
  margin-bottom: 30px;
  font-size: 28px;
}

.slider {
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: calc(180px * 24);
  animation: scroll 20s linear infinite;
}

.slide {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide i {
  font-size: 60px;
  margin-bottom: 10px;
  color: #8e44ad;
}

.slide:hover i {
  transform: scale(1.2);
}

@keyframes scroll {
  100% { transform: translateX(-50%); }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 60px;
}

.exp-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  border-left: 5px solid #8e44ad;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.exp-card:hover {
  transform: translateY(-5px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 60px;
}

.card {
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.cert p {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
}

.overlay {
  position: absolute;
  bottom: 0;
  padding: 15px;
  color: white;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: 0.3s;
}

.card:hover .overlay {
  opacity: 1;
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.view-all a {
  background: #8e44ad;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
}

.contact {
  display: flex;
  gap: 60px;
  padding: 100px 60px;
  background: #faf7fd;
  border-radius: 20px;
}

.contact-left {
  width: 40%;
}

.contact-left h2 {
  font-size: 50px;
  color: #8e44ad;
}

.contact-info p {
  background: white;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.contact-right {
  width: 60%;
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #eee;
}

.contact-info a {
  color: #333;
  transition: 0.3s;
}

.contact-info a:hover {
  color: #8e44ad;
}
.input-group {
  margin-bottom: 15px;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.contact-right button {
  width: 100%;
  padding: 14px;
  background: #8e44ad;
  color: white;
  border-radius: 25px;
  cursor: pointer;
}

#notif {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #8e44ad;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  opacity: 0;
}

#notif.show {
  opacity: 1;
}

@media(max-width:768px){

  .nav-container {
    padding: 15px 20px;
  }

  .menu {
    position: absolute;
    right: 0;
    top: 70px;
    width: 200px;
    flex-direction: column;
    background: white;
    padding: 20px;
    display: none;
  }

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .about {
    flex-direction: column;
    padding: 50px 20px;
  }

  .about-left,
  .about-right {
    width: 100%;
    text-align: center;
  }

  .circle {
    width: 250px;
    height: 250px;
    margin-top: 30px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .contact {
    flex-direction: column;
    padding: 50px 20px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }
}

