html {
  scroll-behavior: smooth;
}

body {
  margin: 20px;
  font-family: "Inter", sans-serif;
  background: #0a192f;
  color: #ccd6f6;
}

section {
  margin-bottom: px;
  scroll-margin-top: 35px; /* samakan dengan top sidebar */
}

.section-title {
  visibility: hidden;;
}

.wrapper {
  display: flex;
  justify-content: center;
}
.container {
  width: 100%;
  max-width: 1430px; /* ini yang bikin center */
  display: flex;
  position: relative;
}
/* Sidebar kiri */
.sidebar {
  width: 25%;
  position: fixed;
  top: 60px;
}
.nav-section {
  margin-top: 100px;
  margin-bottom: 60px;
}

nav a {
  color: #8892b0;
  transition: 0.3s;
}

nav a.active {
  color: #64ffda;
  font-weight: 600;
}

nav a {
  position: relative;
  padding-left: 15px;
}

nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: #64ffda;
  transition: 0.3s;
}

nav a.active::before {
  width: 10px;
}
/* Icon social media */
i {
  color: #ccd6f6;
  font-size: 30px;
  margin-right: 10px;
  cursor: pointer;
}
i:hover {
  color: #64ffda;
  transition: color 0.3s ease;
}
/* footer */
footer {
  gap: 20px;
  margin-top: 50%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

/* Content kanan */
.content {
  margin-left: 40%;
  padding-top: 16px;
}
/* Section spacing */
section {
  margin-bottom: 30px;
}

#about{
  margin-left: 30px;
}

#about p:hover{
  color:#ffffff;
}

/* Link style */
a {
  display: block;
  margin: 10px 0;
  color: #64ffda;
  text-decoration: none;
}

p {
  color: #94a3b8;
}

#about p {
  text-align: justify;
}

/* Card */
.experience-card {
  display: flex;
  gap: 40px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

.experience-left {
  width: 150px;
}

/* Right */
.experience-right h3 {
  color: #64ffda;
  font-size: 18px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow {
  font-size: 14px;
}

.experience-right p {
  color: #8892b0;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Tags */
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(100, 255, 218, 0.08);
  color: #64ffda;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: 0.3s;
}

.experience-right h3 {
  position: relative;
  display: inline-block;
}

.experience-right h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

.experience-card:hover h3 {
  color: #ffffff;
}

.experience-card:hover h3::after {
  width: 100%;
}

/* Lihat CV */
.view-full-cv {
  display: inline-block;
  margin-top: 20px;
  padding-left: 30px;
  margin-bottom: 0px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
.view-full-cv:hover {
  color: #64ffda;
  border-radius: 10px;
  text-decoration: underline;
} 

/* Project Items */
/* Container */
.projects-section {
  display: flex;
  flex-direction: column;
}

/* Card */
.project-item {
  display: flex;
  gap: 20px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(17, 34, 64, 0);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20PX;
}

/* Hover card */
.project-item:hover {
   background: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

/* Image */
.project-item img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: 0.1s;
  margin-top: 17px;
}

/* Hover image */
.project-item:hover img {
  border: 2px solid #ffffff;
}

/* Content */
.project-content {
  flex: 1;
}

/* Title */
.project-content h3 {
  color: #64ffda;
  font-size: 16px;
  margin-bottom: 8px;
  transition: 0.3s;
}

/* Hover title (yang kamu minta) */
.project-item:hover h3 {
  color: #ffffff;
}

/* Underline animasi */
.project-content h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
  margin-top: 4px;
}

.project-item:hover h3::after {
  width: 100%;
}

/* Description */
.project-content p {
  color: #8892b0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-info {
  padding: 20px;
  border-top: 2px solid #ffffff31;
  background-color: #0a192f;
  margin-bottom: 20%;
}



@media (max-width: 768px) {
  body{
    margin: 20px;
  }

  .nav-section {
    display: none;
  }
  .section-title {
    visibility: visible;
    position: sticky;
    top: 0;
    background: #0a192fec;
    padding: 20px 0;
    transition: 0.3s;
    color: #64ffda;
  }

  .section-title.sticky-active {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  #about{
    margin-left: 0px;
  }

  /* Reset layout utama */
  .container {
    flex-direction: column;
  }

  /* Sidebar jadi normal (tidak fixed) */
  .sidebar {
    position: relative;
    width: 100%;
    top: 0;
    margin-left: 0;
    margin-bottom: 0px;
    padding-bottom: 0;
  }

  /* Content full width */
  .content {
    margin-left: 0;
    width: 100%;
    padding-top: 16px;
  }

  /* Section spacing lebih kecil */
  section {
    margin-bottom: 0px;
  }

  /* Experience card jadi vertikal */
  .experience-card {
    flex-direction: column;
    border: 2px solid #ffffff31;
    border-radius: 12px;
    padding: 15px;
  }

  .experience-left {
    width: 100%;  
    font-size: 12px;
  }

  .view-full-cv {
    margin-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
    text-decoration: underline;
  }

  /* Project card jadi vertikal */
  .project-item {
    border: 2px solid #ffffff31;
    flex-direction: column;
  }

  .project-item img {
    width: 100%;
    height: 180px;
  }

  /* Text size adjustment */
  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
  }

  /* Footer icon */
  footer {
    margin-top: 50px;
    margin-bottom: 0;
  }
  i{
    font-size: 24px;
  }
  .footer-info {
    padding:  0p;
    text-align: justify;
    border: 2px solid #ffffff31;
    border-radius: 14px;
    padding: 10px 20px;
    margin-top: 100px;
  }
}
