/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #000;
  color: #fff;
  letter-spacing: 0.2px;
}

/* ================= HERO & CONTACT ================= */
.hero-contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
  justify-items: start;
  min-height: 100vh;
  padding: 60px 60px 80px;
  background: url('../index.pict/background_contact_us.gif') center/cover no-repeat;
}

.hero-contact > .hero-content {
  display: block;
  min-height: auto;
  padding: 0;
}

.hero-contact > .contact-left {
  grid-column: 1;
  margin-top: 0;
  padding-top: 40px;
}

.hero-contact > .contact-form {
  grid-column: 2;
  align-self: start;
  padding-top: 40px;
}

/* ================= NAVBAR ================= */
.nav {
  position: fixed;
  top: -15px;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2100;
  background: linear-gradient(to bottom, rgba(2, 8, 16, 0.82), rgba(2, 8, 16, 0));
}

.nav-logo a {
  display: block;
  line-height: 1;
}

.logo-img:hover {
  opacity: .8;
}

.nav-logo .logo-img {
  height: 100px;
  width: auto;
  margin-left: -30px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-family: 'Proxima Nova', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .3s;
}

.nav-link:hover {
  opacity: .7;
}

.nav-icon {
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.icon-bar {
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: .4s ease;
}

.nav-icon.active .top-bar {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-icon.active .middle-bar {
  opacity: 0;
}

.nav-icon.active .bottom-bar {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ================= HIDE NAVBAR WHEN MENU OPEN ================= */
body.menu-open .nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-menu.active {
  z-index: 2000;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: .4s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-menu {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-40px) scale(0.1);
  transition: opacity 0.45s cubic-bezier(.77, 0, .18, 1), transform 0.45s cubic-bezier(.77, 0, .18, 1);
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: url('../icon/Website Sakative 2026-bg_popup.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.popup-menu.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.popup-main-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.popup-link {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(.77, 0, .18, 1), transform 0.6s cubic-bezier(.77, 0, .18, 1);
}

.popup-menu.active .popup-link {
  opacity: 1;
  transform: translateY(0);
}

.popup-menu.active .popup-main-links .popup-link:nth-child(1) {
  transition-delay: 0.12s;
}

.popup-menu.active .popup-main-links .popup-link:nth-child(3) {
  transition-delay: 0.24s;
}

.popup-menu.active .popup-main-links .popup-link:nth-child(5) {
  transition-delay: 0.36s;
}

.popup-menu.active .popup-sub-links .popup-link:nth-child(1) {
  transition-delay: 0.48s;
}

.popup-menu.active .popup-sub-links .popup-link:nth-child(2) {
  transition-delay: 0.60s;
}

.popup-link.main-link {
  font-family: 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 25pt;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  position: relative;
  text-transform: none;
}

.popup-link.main-link.active,
.popup-link.main-link:hover {
  color: #31BA90;
  border-bottom: 3px solid #31BA90;
}

.popup-separator {
  color: #fff;
  font-size: 25pt;
  font-weight: 600;
  margin: 0 10px;
}

.popup-sub-links {
  display: flex;
  gap: 70px;
  justify-content: center;
}

.popup-link.sub-link {
  font-family: 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 13pt;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.popup-link.sub-link:hover {
  color: #31BA90;
}

.popup-close {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 2100;
  font-family: 'Fira Code', monospace;
  background: none;
  border: none;
}

/* ================= HERO TEXT ================= */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.25;
}

/* ================= CONTACT LEFT ================= */
.contact-left {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 280px;
  margin-top: 0;
}

.contact-left .small {
  font-size: clamp(20px, 3vw, 35px);
  opacity: 0.8;
}

.contact-left h2 {
  font-size: clamp(40px, 6vw, 75px);
  font-weight: 600;
  line-height: 1;
}

/* ================= CONTACT FORM ================= */
.contact-form {
  position: relative;
  z-index: 2;
  width: 720px;
  height: 100%;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* INPUT */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 14px;
  outline: none;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* TEXTAREA */
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* BUTTON */
.contact-form button {
  display: block;
  margin-left: auto;
  margin-top: 10px;
  background: #31BA90;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #31BA90;
}

/* ================= HERO TOP LAYOUT ================= */
.hero-top {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  min-height: 85vh;
  position: relative;
  z-index: 2;
}

/* ================= HERO TEXT ================= */
.hero-top .hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-top .hero-content h1 {
  font-size: clamp(32px, 3vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

/* ================= HERO IMAGE ================= */
.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* ================= MEDIA QUERY TABLET (768px - 1024px) ================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-contact {
    padding: 30px 35px 50px;
    gap: 35px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .contact-left h2 {
    font-size: 48px;
  }

  .contact-form {
    width: 100%;
    padding: 25px;
  }

  .form-grid {
    gap: 10px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 13px;
  }

  .hero-top {
    gap: 40px;
  }

  .hero-top .hero-content h1 {
    font-size: 42px;
  }

  .hero-image img {
    max-width: 520px;
  }
}

/* ================= MEDIA QUERY MOBILE & TABLET (max-width: 900px) ================= */
@media (max-width: 900px) {
  .hero-contact {
    grid-template-columns: 1fr;
    padding: 8px 8px 16px;
    gap: 8px;
    min-height: auto;
  }

  .hero-contact > .hero-content {
    grid-column: 1;
    margin-top: 24px;
    margin-bottom: 0;
    padding: 0;
  }

  .hero-contact > .contact-left {
    grid-column: 1;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-contact > .contact-form {
    grid-column: 1;
    margin-top: 8px;
  }

  .hero-content h1 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .contact-left .small {
    font-size: clamp(16px, 3vw, 18px);
  }

  .contact-left h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .contact-form {
    width: 100%;
    padding: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 13px;
    color: #fff;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  .contact-form button {
    width: 100%;
    margin-left: 0;
    padding: 10px;
    border-radius: 24px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
    min-height: auto;
    padding-top: 120px;
  }

  .hero-top .hero-content {
    max-width: 100%;
  }

  .hero-top .hero-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-image {
    width: 100%;
    justify-content: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }
}

/* ================= MEDIA QUERY MOBILE (max-width: 768px) - POPUP MENU BERUBAH ================= */
@media (max-width: 768px) {
  .nav {
    left: 20px;
    right: 20px;
    top: 0;
  }

  .nav-logo .logo-img {
    height: 65px;
    margin-left: 0;
  }

  .nav-menu {
    display: none;
  }

  .nav-icon {
    height: 48px;
    width: auto;
  }

  .nav-icon .icon-bar {
    width: 20px;
    height: 2px;
    margin: 2px 0;
  }

  /* ===== POPUP MENU KHUSUS MOBILE - GAYA VERTICAL BESAR ===== */
  .popup-content {
    gap: 40px;
    padding: 0 20px;
  }

  .popup-main-links {
    flex-direction: column;
    gap: 20px;
  }

  .popup-separator {
    display: none;
  }

  .popup-link.main-link {
    font-size: 52px;
    font-weight: 600;
  }

  .popup-link.main-link:hover {
    border-bottom: none;
    transform: translateY(-4px);
  }

  /* GARIS PEMISAH */
  .popup-main-links::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    margin: 10px auto 5px;
  }

  .popup-sub-links {
    flex-direction: column;
    gap: 18px;
  }

  .popup-link.sub-link {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
  }

  .popup-link.sub-link:hover {
    transform: translateX(5px);
  }

  .popup-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .popup-close:hover {
    transform: rotate(90deg);
    color: #31BA90;
    border-color: #31BA90;
  }
}

/* ================= MEDIA QUERY SMALL MOBILE (max-width: 480px) ================= */
@media (max-width: 480px) {
  .hero-contact {
    padding: 15px 15px 30px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .contact-left .small {
    font-size: 16px;
  }

  .contact-left h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 13px;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  /* POPUP SMALL MOBILE */
  .popup-link.main-link {
    font-size: 38px;
  }

  .popup-link.sub-link {
    font-size: 15px;
  }

  .popup-content {
    gap: 30px;
  }

  .popup-main-links::after {
    width: 40px;
  }

  .popup-close {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

/* ================= DESKTOP LARGE (min-width: 1440px) ================= */
@media (min-width: 1440px) {
  .hero-contact {
    width: 100%;
    min-height: 100vh;
    padding: 120px 80px 80px;
    margin: 0;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 56px;
  }

  .contact-left h2 {
    font-size: 80px;
  }

  .contact-form {
    width: 800px;
    padding: 40px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
}