body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  color: #333;
}

body {
  padding-top: 80px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #0f172a;
  backdrop-filter: blur(10px);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #ffffff;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-menu li a:hover {
  color: #f0f0f0;
}

section {
  width: 100%;
  padding: 80px 20px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  padding: 20px;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.hero button {
  padding: 12px 28px;
  font-size: 16px;
  background: #ffffff;
  color: #000;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero button:hover {
  background: #000;
  color: #fff;
  transform: translateY(-3px);
}

#home {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  text-align: center;
  color: white;
}

#profile,
#projek,
#media,
#informasi,
#kontak {
  background: #0f172a;
  color: white;
}

.profile-container,
.projek-container,
.video-container,
.faq-container,
#contactForm {
  max-width: 1200px;
  margin: auto;
}

#profile {
  width: 100%;
  max-width: none;     /* HAPUS batas 900px */
  background: #1e1e2f; /* background rata */
  padding: 80px 20px;  /* padding dalam */
}

.profile-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

#profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 25px auto;
  border: 4px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.profile-text {
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: auto;
  opacity: 0.9;
}

/* Styling Section Projek */
#projek {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  color: white;
  text-align: center;
}

.projek-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

/* Kartu Projek & Animasi Tertekan */
.projek-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  width: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transisi halus */
  cursor: pointer;
}

/* Efek saat krusor mengenai tabel (Animasi Tertekan) */
.projek-card:hover {
  transform: scale(0.97); /* Mengecil sedikit seolah tertekan */
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Menghilangkan garis putih di atas/bawah foto */
.projek-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  line-height: 0; /* Penting: menghapus gap whitespace */
  overflow: hidden;
}

.projek-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Memastikan tidak ada celah inline */
}

/* Body Projek Minimalis */
.projek-body {
  padding: 20px;
  text-align: left;
  background-color: white;
}

.projek-card-title {
  font-size: 1.15rem;
  color: #1e1e2f; /* Warna gelap agar kontras dengan kartu putih */
  margin: 0 0 8px 0;
  font-weight: bold;
}

.projek-desc {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Badge Skill (Persegi Panjang Sisi Lengkung) */
.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-tags span {
  background-color: #f0f0f0;
  color: #1e1e2f;
  padding: 4px 12px;
  border-radius: 20px; /* Sisi lengkung sempurna */
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #ddd;
}

form {
  max-width: 400px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

form button {
  background: #00adb5;
  color: #fff;
  border: none;
  padding: 10px;
}

#media {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

#media {
  width: 100%;
  max-width: none;     /* HAPUS batas 900px */
  background: #1e1e2f; /* background rata */
  padding: 80px 20px;  /* padding dalam */
}

#media {
  background: linear-gradient(135deg, #1c1f2e, #111320);
}

#media h2 {
  color: white;
  text-align: center;
  margin-bottom: 10px;
}

#media strong {
  display: block;
  text-align: center;
  color: #ccc;
  margin-bottom: 40px;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.video-container iframe {
  width: 100%;
  height: 220px;
  border-radius: 12px;
}


#informasi {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* tengah vertikal */
  align-items: center;       /* tengah horizontal */
  text-align: center;
  padding: 40px 20px;
}

#informasi {
  width: 100%;
  max-width: none;     /* HAPUS batas 900px */
  background: #1e1e2f; /* background rata */
  padding: 80px 20px;  /* padding dalam */
}
#informasi p {
  font-size: 16px;
  margin: 8px 0;
}

#kontak {
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* judul di atas, form di bawah */
  justify-content: center;  /* tengah vertikal */
  align-items: center;      /* tengah horizontal */
  text-align: center;
  padding: 20px;
}

#kontak h2 {
  margin-bottom: 20px;
}

#kontak form {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#kontak input,
#kontak textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#kontak textarea {
  resize: none;
  height: 120px;
}

#kontak button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#kontak button:hover {
  background: #333;
}

footer {
  width: 100%;
  background: #020617;
  text-align: center;
  padding: 20px;
  color: #cbd5f5;
}
.info-caption {
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.faq-container {
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.faq-item {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.faq-item p {
  font-size: 14px;
  opacity: 0.9;
}

#profile,
#projek,
#gallery,
#informasi,
#kontak {
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  color: #ffffff;
  padding: 80px 20px;
}

#profile h2,
#projek h2,
#gallery h2,
#informasi h2,
#kontak h2 {
  margin-bottom: 20px;
}

#profile p,
#projek p,
#gallery p,
#informasi p,
#kontak p {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .video-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-container {
    grid-template-columns: 1fr;
  }
}
