/* CSS Internal - Desain Imajinasi */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #000000;
  /* Hitam untuk teks utama dan elemen kuat */
  --secondary-color: #333333;
  /* Abu-abu gelap untuk teks sekunder */
  --light-gray: #f9f9f9;
  /* Latar belakang section ringan */
  --border-color: #e0e0e0;
  /* Warna border halus */
  --white-color: #ffffff;
  /* Warna putih */
  --accent-color: #4CAF50;
  /* Aksen warna hijau lembut, bisa diganti */
  --text-on-accent: #ffffff;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--white-color);
  color: var(--primary-color);
  line-height: 1.7;
  /* Sedikit lebih renggang */
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  /* Padding sisi sedikit lebih besar */
}

/* Header */
header {
  background-color: var(--white-color);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  padding-right: 250px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  /* Jarak navigasi lebih luas */
}

header nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 8px;
  /* Lebih banyak ruang untuk underline */
}

header nav ul li a:hover {
  color: var(--primary-color);
}

header nav ul li a.active {
  color: var(--primary-color);
  font-weight: 600;
}

header nav ul li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  /* Garis lebih tebal */
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Hamburger Menu (Hidden by default on desktop) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section (Dipertahankan mirip referensi asli) */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 81px);
  padding: 80px 20px;
  gap: 100px;
  background-color: var(--white-color);
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.2rem;
  /* Lebih besar lagi */
  font-weight: 800;
  /* Lebih tebal */
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.4rem;
  /* Lebih besar */
  color: var(--secondary-color);
  margin-bottom: 50px;
  /* Tambahkan transisi untuk teks berganti */
  transition: opacity 0.7s ease-in-out;
}

/* Kelas untuk efek fade */
.hero-content p.fade-out {
  opacity: 0;
}

.hero-content p.fade-in {
  opacity: 1;
}


.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lihat-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 15px 45px;
  /* Padding lebih besar */
  border-radius: 10px;
  /* Lebih bulat */
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.lihat-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  /* Efek sedikit naik */
  box-shadow: var(--shadow-light);
}

.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 1.7rem;
  /* Lebih besar */
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: black;
  /* Berubah warna ke aksen */
  transform: translateY(-2px);
}

.hero-image {
  width: 340px;
  /* Sedikit lebih besar */
  height: 380px;
  border-radius: 25px;
  /* Lebih bulat lagi */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-medium);
  /* Menambahkan bayangan */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  display: block;
}

/* General Section Styling */
section {
  padding: 120px 0;
  /* Padding lebih besar untuk setiap section */
  text-align: center;
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

section h2 {
  font-size: 3.2rem;
  /* Ukuran heading section lebih besar */
  font-weight: 700;
  margin-bottom: 80px;
  /* Jarak ke konten lebih lega */
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -20px;
  /* Jarak lebih jauh dari teks */
  transform: translateX(-50%);
  width: 90px;
  /* Lebih panjang */
  height: 6px;
  /* Lebih tebal */
  background-color: black;
  /* Warna aksen */
  border-radius: 3px;
}

/* Showcase Project Section */
#portofolio .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  /* Min-width lebih besar */
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-item {
  background-color: var(--white-color);
  border-radius: 15px;
  /* Lebih bulat */
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  text-align: left;
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateY(-10px);
  /* Efek naik lebih jauh */
  box-shadow: var(--shadow-strong);
  /* Bayangan lebih kuat */
}

.project-item img {
  width: 100%;
  height: 240px;
  /* Lebih tinggi */
  object-fit: cover;
  display: block;
  /* Grayscale by default */
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out;
}

.project-item:hover img {
  filter: grayscale(0%);
  /* Color on hover */
}

/* Style untuk project yang awalnya tersembunyi */
.project-item.hidden {
  display: none;
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 1.8rem;
  /* Lebih besar */
  margin-bottom: 15px;
  color: var(--primary-color);
}

.project-info p {
  font-size: 1.1rem;
  /* Lebih besar */
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.project-info a {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.project-info a:hover {
  background-color: var(--secondary-color);
}

/* "Lihat Semua" Button */
.view-all-projects-button-container {
  margin-top: 60px;
  text-align: center;
  /* Pastikan tombol ada di tengah */
}

.view-all-projects-button {
  background-color: black;
  color: var(--white-color);
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.view-all-projects-button:hover {
  background-color: #388E3C;
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

/* Tentang Saya Section */
#tentang {
  background-color: var(--white-color);
}

#tentang .about-content {
  display: flex;
  align-items: center;
  gap: 70px;
  /* Jarak lebih besar */
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  /* Teks default ke kiri */
}

#tentang .about-image {
  flex: 0 0 380px;
  /* Fixed width for the image */
  text-align: center;
  position: relative;
  padding: 20px;
  /* Tambahkan padding untuk border yang unik */
  border: 2px solid var(--border-color);
  /* Border eksternal */
  border-radius: 20px;
  /* Border radius */
}

#tentang .about-image::before {
  /* Dekorasi di sekitar gambar */
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 50px;
  height: 50px;
  border-top: 5px solid black;
  border-left: 5px solid black;
  border-radius: 10px 0 0 0;
}

#tentang .about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-bottom: 5px solid black;
  border-right: 5px solid black;
  border-radius: 0 0 10px 0;
}

#tentang .about-image img {
  width: 100%;
  max-width: 320px;
  /*Ukurangambardidalamborder*/
  height: auto;
  border-radius: 10px;
  /*Border-radiusuntukgambarasli*/
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

#tentang .about-text {
  flex: 1;
}

#tentang .about-text p {
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Skills section (new) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.skill-item {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: transform 0.2s ease;
}

/* .skill-item img {
  max-width: 80px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
} */

.skill-item:hover {
  transform: translateY(-5px);
  background-color: black;
  color: var(--text-on-accent);
}



/* Feedback Client Section */
#feedback {
  background-color: var(--light-gray);
}

#feedback .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  /* Jarak antar testimonial */
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--white-color);
  padding: 40px;
  /* Padding lebih besar */
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  /* Untuk quote icon */
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.testimonial-item .quote-icon {
  font-size: 3rem;
  color: black;
  margin-bottom: 20px;
  opacity: 0.7;
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 25px;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-item .client-info {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.15rem;
}

.testimonial-item .client-info span {
  display: block;
  font-size: 0.95rem;
  color: #777;
  font-weight: 400;
  margin-top: 5px;
}

/* Pengalaman Section */
#pengalaman .experience-list {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  padding-left: 30px;
  /* Ruang untuk timeline */
}

#pengalaman .experience-list::before {
  /* Garis timeline */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
}

.experience-item {
  margin-bottom: 50px;
  /* Jarak lebih besar */
  position: relative;
  padding-left: 30px;
  /* Jarak dari garis timeline */
}

.experience-item::before {
  /* Lingkaran pada timeline */
  content: '';
  position: absolute;
  left: -12px;
  /* Setengah dari width/height + lebar garis */
  top: 5px;
  width: 24px;
  height: 24px;
  background-color: black;
  border: 4px solid var(--white-color);
  /* Agar terlihat melayang di atas garis */
  border-radius: 50%;
  z-index: 1;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item h3 {
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.experience-item .company-name {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.experience-item .duration {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
}

.experience-item ul {
  list-style: none;
  /* Hilangkan bullet default */
  margin-left: 0;
  color: var(--secondary-color);
}

.experience-item ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
  padding-left: 25px;
  /* Ruang untuk custom bullet */
}

.experience-item ul li::before {
  /* Custom bullet point */
  content: "\f00c";
  /* Font Awesome checkmark */
  font-family: "Font Awesome 5 Free";
  /* Font Awesome family */
  font-weight: 900;
  /* For solid icons */
  color: black;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.9rem;
}

/* Kontak Section */
#kontak .contact-content {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
  /* Align form and info to top */
}

#kontak .contact-form-container {
  flex: 2;
  /* Form mengambil lebih banyak ruang */
  background-color: var(--white-color);
  padding: 45px;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  text-align: left;
}

#kontak form .form-group {
  margin-bottom: 25px;
}

#kontak form label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.05rem;
}

#kontak form input[type="text"],
#kontak form input[type="email"],
#kontak form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--primary-color);
  background-color: #fcfcfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#kontak form input[type="text"]:focus,
#kontak form input[type="email"]:focus,
#kontak form textarea:focus {
  border-color: black;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  /* Aksen warna fokus */
}

#kontak form textarea {
  resize: vertical;
  min-height: 160px;
  /* Lebih tinggi */
}

#kontak form button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 16px 35px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

#kontak form button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

#kontak .contact-info-block {
  flex: 1;
  /* Info kontak mengambil sisa ruang */
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 20px;
  /* Agar sejajar dengan form */
}

.contact-info-item {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-info-item i {
  font-size: 2.2rem;
  color: black;
  flex-shrink: 0;
  /* Jangan menyusut */
}

.contact-info-item .info-text h4 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-info-item .info-text p,
.contact-info-item .info-text a {
  font-size: 1rem;
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-info-item .info-text a:hover {
  text-decoration: underline;
}


/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
  margin-top: 100px;
  /* Jarak lebih jauh dari section terakhir */
}

/* Responsive Design - Media Queries */

/* For screens smaller than 1024px */
@media (max-width: 1024px) {
  .hero {
    gap: 60px;
    padding: 60px 20px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .hero-image {
    width: 280px;
    height: 280px;
  }

  section h2 {
    font-size: 2.8rem;
  }

  #tentang .about-content {
    gap: 50px;
  }

  #kontak .contact-content {
    flex-direction: column;
  }

  #kontak .contact-form-container {
    width: 100%;
  }

  #kontak .contact-info-block {
    width: 100%;
    flex-direction: row;
    /* Kembali ke baris untuk info kontak */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .contact-info-item {
    flex-basis: calc(50% - 10px);
    /* Dua kolom */
  }
}


 .mobile-block {
    display: none; /* default disembunyikan */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    font-size: 24px;
    font-family: Arial, sans-serif;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

/* For screens smaller than 768px (Typical tablet portrait and large mobile landscape) */
@media (max-width: 768px) {
    .mobile-block {
      display: flex;
    }
    body > *:not(.mobile-block) {
      display: none; /* sembunyikan konten web */
    }
  }
