* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #222;
  background: url("img/png1.png") no-repeat center center fixed;
  background-size: cover;
  scroll-padding-top: 120px; 
  scroll-behavior: smooth;
}

/* ======================
   NAVBAR (Centered, Transparent)
====================== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-shadow: none;
  opacity: 1; /* LANGSUNG TERLIHAT */
  transform: translateY(0); /* POSISI NORMAL */
  transition: opacity 1s ease, transform 1s ease;
}

#navbar {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 1s ease, transform 1s ease;
}
#navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hilangkan logo kiri */
.logo {
  display: none;
}

/* Daftar navbar */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  padding: 10px 25px;
  border-radius: 50px;
}

/* Tombol NAV Lonjong */
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

nav ul li a.active {
  background-color: #3c9c5d;
  color: white;
  border: 2px solid #3c9c5d;
  box-shadow: 0 2px 8px rgba(60, 156, 93, 0.3);
}

/* SECTION STYLE */
section {
  min-height: 100vh;
  padding: 100px 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 150px;      
}

.intro h1 {
  font-size: 9rem;
  margin-top: 10px;
  color: #000000;
}

.welcome-text {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 70px; 
  margin-left: 500px;
}

.title-block {
  position: relative;
  display: flex;
  flex-direction: column;
} 

.title {
  font-weight: 800;
  letter-spacing: 5px;
  margin-left: 100px;
  margin-bottom: 0;
  line-height: 1;
}

.name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 30px; 
  text-align: right;
  width: 90%;
}

/* Semua section transparan agar background gambar terlihat */
.intro, .about, .experience, .education, .social, .portfolio {
  background: transparent;
}

.about .content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about-img {
  margin-top: 20px;
  width: 200px;
  border-radius: 100%;
}

.experience h2,
.education h2,
.social h2,
.portfolio h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

.exp-item {
  margin-bottom: 30px;
}

.education ul,
.experience ul {
  list-style: disc inside;
  margin-top: 10px;
}

.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.portfolio img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}

.portfolio img:hover {
  transform: scale(1.05);
}

/* ======================
   ABOUT PAGE STYLING
====================== */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h1 {
  font-size: 7rem; 
  font-weight: 800;
  letter-spacing: -3,5px;
  color: #000;
  margin-bottom: 0px; 
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
  margin-top: -1rem;      
  margin-bottom: 5%;
}

.about-text p {
  font-size: 1rem;
  color: #333;
  text-align: justify; 
  line-height: 1.5;
  max-width: 700px;
}

.about-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img-container img {
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text p {
    text-align: justify;
  }

  .about-img-container {
    margin-top: 20px;
  }
}

/* ======================
   EXPERIENCE SECTION
====================== */
.experience-section {
  position: relative;
  overflow: hidden;
}

/* Bagian header Experience */
.experience-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 1;
  margin-bottom: 60px;
}

/* Tambahkan wadah khusus untuk teks besar + background transparan */
.experience-title {
  position: relative;
  display: inline-block;
  padding: 40px 60px;
  border-radius: 10px;
  overflow: hidden;
}

/* background gambar hanya di belakang tulisan Experience */
.experience-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/foto2.png') center/cover no-repeat; /* ganti dengan gambar marble kamu */
  opacity: 0.3; /* atur transparansi sesuai selera */
  border-radius: 10px;
  z-index: -1;
}

.experience-title h1 {
  font-size: 6rem;
  font-weight: 900;
  color: #000;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 2;
}

/* Paragraf kanan */
.experience-header p {
  flex: 1;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
  text-align: justify;
  margin-left: 40px;
}

/* Kotak pengalaman di bawah */
.experience-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.experience-box {
  flex: 1;
  min-width: 280px;
  border-radius: 15px;
  padding: 10px 30px 30px 70px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.experience-box .number {
  position: absolute;
  top: -10px;
  left: 25px;
  font-size: 4rem;
  font-weight: 800;
  color: #3c9c5d;
}

.experience-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.experience-box p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 10px;
  text-align: justify;
}

.experience-box ul {
  margin-left: 20px;
  list-style: disc;
  color: #444;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .experience-header {
    flex-direction: column;
    text-align: center;
  }

  .experience-header p {
    margin-left: 0;
    margin-top: 20px;
  }

  .experience-title h1 {
    font-size: 5rem;
  }

  .experience-container {
    flex-direction: column;
  }
}

/* ======================
   EDUCATION SECTION
====================== */
#education {
  position: relative;
}

#education h2 {
  font-size: 6rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

#education h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #3c9c5d;
  border-radius: 2px;
}

/* List container */
.edu-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Setiap kotak pendidikan */
.edu-item {
  border: 3px solid #3c9c5d;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px 40px;
  width: 300px;
  transition: all 0.3s ease;
}

.edu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  background: #3c9c5d;
}

.edu-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  text-align: center;
}

.edu-item p {
  font-size: 1rem;
  color: #444;
  text-align: center;
}

/* Responsif */
@media (max-width: 900px) {
  #education {
    padding: 60px 25px;
  }

  #education h2 {
    font-size: 2.4rem;
  }

  .edu-item {
    width: 90%;
  }
}

/* ==================
   SOCIAL MEDIA 
====================== */
#social {
  position: relative;
  display: flex; 
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 230px 30px; 
  min-height: auto; 
}

#social.active {
  display: flex;
}

/* Gambar di sisi kiri */
#social::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  width: 50%;
  height: 500px; 
  background: url('img/fotoku\ 3\ -\ Edited.png') center/contain no-repeat;
  z-index: 0;
  opacity: 0.9;
}

/* Teks di kanan */
#social h2,
#social p {
  position: relative;
  z-index: 2;
}

#social h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 25px;
}

#social p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
}

#social a {
  color: #3c9c5d;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

#social a:hover {
  color: #000;
  text-decoration: underline;
}

/* Wadah teks di kanan */
#social .text-content {
  flex: 1;
  padding-left: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  #social {
    flex-direction: column;
    padding: 60px 25px;
    text-align: center;
  }

  #social::before {
    position: relative;
    width: 100%;
    height: 250px;
    transform: none;
    border-radius: 20px;
    opacity: 1;
  }

  #social .text-content {
    padding-left: 0px;
    margin-top: 30px;
  }

  #social h2 {
    font-size: 2.4rem;
  }

  #social p {
    font-size: 1rem;
  }
}

/* ======================
   PORTFOLIO SECTION
====================== */
#portfolio {
  position: relative;
  display: block;
  text-align: center;
}

#portfolio.active {
  display: block;
}

#portfolio h2 {
  font-size: 6rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
}

/* Halaman dalam portfolio */
.portfolio-page {
  display: none;
  animation: fade 0.6s ease-in-out;
}

.portfolio-page.active {
  display: block;
}

.portfolio-page img {
  max-width: 500px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button.next-page,
button.prev-page {
  background-color: #3c9c5d;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

button.next-page:hover,
button.prev-page:hover {
  background-color: #6abd8b;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================
   PORTFOLIO GRID 3x2
====================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px auto;
  max-width: 900px;
}

.portfolio-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #3c9c5d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.portfolio-box:hover img {
  transform: scale(1.08);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

#lightbox img:hover {
  transform: scale(1.02);
}
