* {
  box-sizing: border-box;
}

/* Reset dasar */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
  height: 100%;
  overflow-x: hidden; /* cegah halaman terpotong horizontal */
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; /* Logo kiri, menu kanan */
  align-items: center;
  padding: 20px 50px;
  height: 80px; /* definisikan tinggi pasti */
  z-index: 1000;
  background: transparent;
  box-sizing: border-box;
  transition: top 0.4s ease; /* animasi sembunyi */
  backdrop-filter: blur(2px); /* efek elegan */
}

.navbar img {
  height: 80px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

/* Nav links */
.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s ease;
}

/* Garis tipis untuk animasi underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;          /* jarak garis ke teks */
  width: 0;
  height: 1px;           /* ketebalan garis */
  background: #f4a261;   /* warna underline */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover efek */
.nav-links a:hover {
  color: #f4a261;
}

.nav-links a:hover::after {
  width: 100%; /* garis melebar penuh dari tengah */
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
   font-size: 0.85rem;   /* lebih kecil dari menu utama */
  font-weight: 300;     /* lebih tipis */
  opacity: 0.8;
  top: 100%; /* muncul di bawah EN */
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 80px;
  border-radius: 4px;
}

/* Item di dalam dropdown */
.dropdown-menu li {
  text-align: left;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background: #f4a261;
  color: #111;
}

/* Tampilkan dropdown saat hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* === Tombol Hamburger (menu-toggle) === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animasi saat tombol aktif jadi "X" */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../img/hero.jpg') no-repeat center center fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  font-family: 'Oswald', sans-serif;
  font-weight: 200;          /* default */
  letter-spacing: 1px;       /* jarak huruf → kesan lebih ringan */
  color: rgba(255,255,255,0.85); /* agak transparan → terlihat tipis */
  position: relative;
  z-index: 1; /* pastikan teks selalu di atas background */
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 10px;
}

/* Garis di bawah heading */
.hero-content .line {
  position: relative;
  height: 1px;
  background: #ffffff;
  margin: 15px auto;
  width: 0;
  transform-origin: center;
  animation: lineExpand 1s ease forwards;
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 150px; opacity: 1; }
}

/* Subtitle */
.hero-content .subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 1px; /* biar kelihatan lebih tipis */
}

/* CTA (link bawah) */
.hero .cta {
  position: absolute;
  bottom: 40px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero .cta:hover {
  color: #f4a261;
}

.hero .cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #f4a261;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 1;
}

.hero .cta:hover::after {
  width: 100%;
}

/* Page Hero for Projects */
.projects-hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../img/hero.jpg') no-repeat center center fixed;
  background-attachment: fixed; /* ✅ background tetap diam */
  padding: 120px 20px 60px; /* offset biar tidak ketiban navbar */
  text-align: center;
  color: white;
}

.projects-hero .content {
  font-family: 'Oswald', sans-serif;
  font-weight: 200;          /* default */
  letter-spacing: 1px;       /* jarak huruf → kesan lebih ringan */
  color: rgba(255,255,255,0.85); /* agak transparan → terlihat tipis */
  position: relative;
  z-index: 1; /* pastikan teks selalu di atas background */
  max-width: 900px; /* sama dengan max video-wrapper */
  margin: 0 auto 20px;
}

.projects-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.projects-hero p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Video Wrapper */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
  width: 100%;
  height: 500px;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

/* Bisa diatur delay untuk urutan */
.content.fade-in {
  animation-delay: 0.3s;
}

.video-wrapper.fade-in {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px 15px;
}

footer h2 {
  font-family: 'Abel', sans-serif;
  font-size: 1rem;       /* lebih kecil */
  font-weight: 300;      /* lebih tipis */
  margin-bottom: 10px;
  letter-spacing: 0.5px; /* kesan modern */
}

footer p {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;     /* kecil */
  font-weight: 200;      /* tipis */
  margin: 5px 0;
  color: #ccc;
}

/* Icon sosmed elegan */
footer .social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .social a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social a:hover {
  color: #f4a261;     /* orange pastel */
  transform: scale(1.1); /* sedikit membesar saat hover */
}

/* Icon sosmed elegan-a */
footerx .socialx {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footerx .socialx a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

footerx .socialx a:hover {
  color: #f4a261;     /* orange pastel */
  transform: scale(1.1); /* sedikit membesar saat hover */
}

/* Contact Section */
.contact-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../img/hero.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 120px 60px 60px;
  color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
}

.contact-info {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-address {
  margin-top: 40px;
}

.contact-address a {
  color: #f4a261;
  text-decoration: none;
}

.contact-form label {
  display: block;
  margin: 15px 0 5px;
  font-size: 0.9rem;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Tombol Submit Estetik */
.submit-btn {
  display: inline-block;
  background: transparent;
  color: white;
  border: 1.5px solid #f4a261;  /* warna oranye lembut */
  border-radius: 30px;          /* ujung melengkung */
  padding: 10px 30px;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
/* Tambahan efek shimmer animasi ringan */
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

/* About Section */
.about-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('../img/hero.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 100px 50px;
  color: white;
  text-align: center;
}

.about-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 50px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}

.about-box h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-box p {
  font-family: 'Abel', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Clients Section */
.clients-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
              url('../img/hero-2.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 100px 50px;
  color: white;
  text-align: center;
}

.clients-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.clients-header p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 50px;
  color: rgba(255,255,255,0.85);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom */
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: auto;
}

.clients-grid img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: brightness(0.9);
}


.clients-grid img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(1);
}

/* Pastikan logo terakhir (jika sendirian di baris bawah) muncul di tengah 
.clients-grid img:last-child {
  grid-column: 1 / -1;   /* span penuh /
  justify-self: center;  /* posisikan ke tengah /
}*/


/* Responsive/mobile view */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 30px;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero .cta { font-size: 1rem; }
  .video-wrapper iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero .cta { font-size: 0.9rem; }
  .video-wrapper iframe {
    height: 200px;
  }
}
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-box {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .clients-section {
    min-height: auto; /* biar tinggi menyesuaikan konten */
    padding: 80px 20px 40px; /* padding lebih kecil */
    background-attachment: scroll; /* hilangkan efek fixed */
    background-position: center top;
  }

  .clients-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .clients-header p {
    font-size: 0.95rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom agar muat */
    gap: 15px;
  }

  .clients-grid img {
    max-width: 100px;
    max-height: 60px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .clients-grid img {
    max-width: 120px;
    max-height: 80px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .clients-grid img {
    max-width: 100px;
    max-height: 60px;
  }
}

/* ==========================
   Responsive (Mobile View) hamburger menu
   ========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 220px;
    padding: 20px;
    border-radius: 16px 0 0 16px;
    display: none;
    backdrop-filter: blur(12px);
    background: rgba(15, 15, 15, 0.7); /* efek glass */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: fadeSlide 0.3s ease forwards;
  }

  /* Saat diklik (class .show dari JS) */
  .nav-links.show {
    display: flex;
  }

  /* Animasi muncul halus */
  @keyframes fadeSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #f4a261;
  }

  /* Dropdown di mobile */
  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown-menu a {
    color: #f4a261;
    font-size: 14px;
  }
}