html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* TAMBAHKAN INI: Agar judul tidak ketutupan menu */
}
/* --- RESET & GLOBAL STYLES --- */
:root {
  --primary-color: #00d4ff; /* Warna neon biru khas sci-fi/glass */
  --bg-dark: #02050a; /* Hitam kebiruan */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-color);
  overflow-x: hidden; /* Mencegah scroll ke samping */
  position: relative;
}

/* Background Gradient Dinamis */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(0, 212, 255, 0.08),
      transparent 25%
    ),
    radial-gradient(circle at 85% 30%, rgba(9, 9, 121, 0.15), transparent 25%);
  z-index: -1;
}

/* --- NAVIGATION (GLASS EFFECT) --- */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 5, 10, 0.7); /* Gelap transparan */
  backdrop-filter: blur(15px); /* Efek blur kaca */
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
}

.glass-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.glass-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  font-size: 0.9rem;
  transition: 0.3s;
  position: relative;
}

.glass-nav ul li a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Tombol Glass */
.btn-glass {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.4s;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.btn-glass:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: translateY(-3px);
}

/* Gambar Profil dengan Efek Glowing */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.img-box {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
  position: relative;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- GLOWING CIRCLES ANIMATION --- */
.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: float 10s infinite alternate;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: #00d4ff;
  top: -50px;
  left: -100px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: #090979;
  bottom: -100px;
  right: -100px;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

/* --- COMMON SECTION STYLES --- */
.container {
  padding: 100px 10%;
  min-height: 80vh; /* Agar setiap section terasa luas */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

/* --- GLASS CARD COMPONENT --- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.glass-card p {
  color: #ddd;
  line-height: 1.7;
}

/* --- BLOG / PROJECT GRID --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  color: #888;
  backdrop-filter: blur(5px);
}

/* --- RESPONSIVE MOBILE (Untuk Smartphone Editor) --- */
@media (max-width: 768px) {
  .glass-nav {
    padding: 1rem 5%;
  }

  .glass-nav ul {
    display: none; /* Bisa ditambahkan hamburger menu nanti */
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    justify-content: center;
  }

  .img-box {
    width: 250px;
    height: 250px;
  }

  .container {
    padding: 80px 5%;
  }
}

/* --- UPDATE CSS BARU UNTUK STYLE.CSS --- */

/* Wadah Gambar agar rasionya Portrait (4:5 seperti 1080x1350) */
.card-image {
  width: 100%;
  /* aspect-ratio: 4 / 5 adalah rasio standar poster/Instagram portrait */
  aspect-ratio: 4 / 5;
  height: auto; /* Biarkan tinggi menyesuaikan otomatis berdasarkan lebar */
  overflow: hidden;
  border-radius: 12px; /* Sedikit lebih bulat agar modern */
  margin-bottom: 20px; /* Jarak antara gambar dan teks di bawahnya */
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background: rgba(0, 0, 0, 0.2); /* Placeholder gelap jika gambar loading */
}

/* Mengatur gambar di dalamnya agar mengisi penuh wadah */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar akan mengisi penuh tanpa gepeng */
  object-position: center; /* Fokus ke tengah gambar */
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

/* Efek hover dipercantik: sedikit zoom dan lebih terang */
.project-card:hover .card-image img {
  transform: scale(1.03);
  filter: brightness(1.1);
}
/* --- YOUTUBE PROFILE CARD --- */
.youtube-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Sedikit lebih terang dari background */
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap; /* Agar aman di HP layar kecil */
  gap: 15px;
}

.yt-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00d4ff; /* Lingkaran biru neon */
}

.yt-info {
  flex: 1;
  text-align: left;
  padding-left: 10px;
}

.yt-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.yt-info p {
  font-size: 0.8rem;
  color: #bbb;
  margin: 0 !important; /* Reset margin bawaan */
}

/* Tombol Subscribe Merah Khas YouTube */
.btn-subscribe {
  background-color: #cc0000;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn-subscribe:hover {
  background-color: #ff0000;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Penyesuaian untuk HP (Mobile) */
@media (max-width: 480px) {
  .youtube-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .yt-info {
    text-align: center;
    padding-left: 0;
  }
}
/* --- PERBAIKAN TAMPILAN VIDEO FULL WIDTH --- */

.video-wrapper {
  position: relative;
  width: 100%; /* Memaksa lebar penuh 100% dari wadah induknya */
  padding-bottom: 56.25%; /* Rasio 16:9 (Standar YouTube agar pas) */
  height: 0;
  overflow: hidden;
  border-radius: 12px; /* Melengkungkan sudut video */
  margin-bottom: 20px; /* Jarak dengan profil di bawahnya */
  background: #000; /* Background hitam saat loading */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* PENTING: Memaksa iframe memenuhi wrapper */
  height: 100%; /* PENTING: Memaksa iframe memenuhi wrapper */
  border: 0;
}
/* --- MENU HAMBURGER (RESPONSIVE) --- */

/* Default: Sembunyikan tombol garis tiga di Laptop */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* TAMPILAN KHUSUS HP (Layar di bawah 768px) */
@media (max-width: 768px) {
  /* Munculkan tombol garis tiga */
  .menu-toggle {
    display: flex;
    z-index: 1001; /* Agar selalu di atas */
  }

  /* Ubah menu menjadi layar penuh (Fullscreen Overlay) */
  .glass-nav ul {
    position: fixed;
    top: -100vh; /* Sembunyi di atas layar */
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 5, 10, 0.95); /* Latar belakang gelap */
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.5s ease-in-out;
    z-index: 1000;
  }

  /* Class .active untuk memunculkan menu */
  .glass-nav ul.active {
    top: 0;
  }

  /* Perbesar teks menu di HP */
  .glass-nav ul li a {
    font-size: 1.5rem;
  }

  /* Animasi Tombol Jadi Huruf 'X' saat diklik */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
