/* Global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  /* Ganti background-image dengan linear-gradient agar responsif */
  background: linear-gradient(90deg, #e3e6fa 0%, #e6f9f6 100%);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  /* Tambahkan padding lebih besar untuk PC */
}

.nav {
  margin-top: 58px;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-brand,
.nav-ctas {
  width: auto;
}

.nav-brand {
  font-size: 22px;
  font-weight: 600;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.menu::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.menu-item {
  color: #000;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, border-bottom 0.2s;
}

.menu-item:hover {
  opacity: 1;
  border-bottom: 1px solid #000;
}

.menu-item-active {
  opacity: 1;
  font-weight: 600;
}

.nav-ctas {
  text-align: right;
}

.sign-up {
  padding: 10px 25px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  background: #fff;
}

.hero {
  display: flex;
  padding: 135px 0;
  flex-direction: column;
  gap: 15px;
  max-width: 653px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
}

.hero-headline,
.hero-subheadline {
  text-align: center;
  margin: 0;
}

.hero-headline {
  font-size: 36px;
  font-weight: 600;
  line-height: 55px;
}

.hero-subheadline {
  font-size: 16px;
  line-height: 32px;
  max-width: 553px;
  width: 100%;
  color: rgba(0, 0, 0, 0.6);
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 12px 17px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary {
  background-color: #001aff;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0px 15px 30px rgba(0, 26, 255, 0.2);
}

.cta-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0px 20px 40px rgba(0, 26, 255, 0.15);
}

.cta-secondary {
  color: #001aff;
}

.jobs {
  text-align: left;
  padding-bottom: 80px;
}

.jobs-headline {
  margin: 0 0 17px 0;
  font-size: inherit;
  font-weight: 600;
}

.jobs-list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.job {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 100%;
  padding: 25px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0px 15px 30px rgba(0, 26, 255, 0.1);
  text-decoration: none;
  transition: background 0.3s;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e6fa;
  /* Tambahkan margin horizontal kecil untuk mobile */
}

.job:hover {
  background-color: #f3f7ff;
  box-shadow: 0px 16px 32px rgba(108, 140, 255, 0.1);
}

.job:hover .job-title,
.job:hover .job-salary {
  color: var(--primary-dark);
}

.job:hover .job-company,
.job:hover .job-description {
  color: var(--primary);
}

.job:hover .job-divider {
  border-color: var(--primary-light);
}

.job:hover .job-tag {
  background-color: #e3e6fa;
  color: var(--primary-dark);
}

.job-header {
  display: flex;
  align-items: center;
}

.job-logo {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}

.job-meta {
  margin-left: 13px;
}

.job-title {
  color: #000;
  font-size: 18px;
  margin: 0 0 5px 0;
}

.job-company {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
}

.job-description {
  margin: 17px 0;
  color: rgba(0, 0, 0, 0.6);
  line-height: 25px;
  text-decoration: none;
}

.job-divider {
  margin: 20px 0;
  border-color: rgba(0, 0, 0, 0.05);
}

.job-footer {
  display: flex;
  align-items: center;
}

.job-tag {
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.07);
  color: #000;
}

.job-salary {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

/* Hamburger button */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #001aff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu overlay */
.menu-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.menu-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
  padding: 40px 24px 24px 24px;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1001;
}
.menu-mobile.open {
  transform: translateX(0);
}
.menu-mobile .menu-item,
.menu-mobile .sign-up {
  font-size: 18px;
  padding: 12px 0;
  display: block;
  text-align: left;
}
.menu-mobile .sign-up {
  margin-top: 18px;
  background: #001aff;
  color: #fff;
  border-radius: 100px;
  text-align: center;
}

/* Hide scrollbar for mobile menu */
.menu-mobile {
  overflow-y: auto;
  scrollbar-width: none;
}
.menu-mobile::-webkit-scrollbar {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  80% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 1s 0.3s ease forwards;
}

.animate-pop {
  opacity: 0;
  animation: popIn 0.7s 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    max-width: 100%;
    padding: 90px 0;
  }
  .hero-subheadline {
    max-width: 100%;
  }
  .jobs-list {
    gap: 20px;
  }
  .job {
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav .container {
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }
  .nav-brand,
  .nav-ctas {
    width: auto;
    text-align: left;
  }
  .menu {
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  .menu-item {
    font-size: 15px;
    padding: 8px 0;
  }
  .jobs-list {
    flex-direction: column;
    gap: 25px;
  }
  .job {
    width: 100%;
    min-width: 0;
  }
  .hero {
    padding: 60px 0;
    max-width: 100%;
  }
  .hero-headline {
    font-size: 28px;
    line-height: 40px;
  }
  .hero-subheadline {
    font-size: 15px;
    line-height: 26px;
  }
}

@media (max-width: 700px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .menu {
    display: none !important;
  }
  .nav-ctas {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .nav {
    margin-top: 18px;
  }
  .nav .container {
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }
  .menu {
    flex-direction: row;
    gap: 14px;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  .menu-item {
    font-size: 14px;
    padding: 7px 0;
  }
  .hero {
    max-width: 100%;
    width: 100%;
    padding: 28px 0;
    gap: 10px;
  }
  .hero-headline {
    font-size: 18px;
    line-height: 28px;
  }
  .hero-subheadline {
    font-size: 12px;
    line-height: 18px;
    max-width: 100%;
    width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  .cta-primary,
  .cta-secondary {
    width: auto;
    min-width: 160px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: block;
  }
  .jobs {
    padding-bottom: 30px;
  }
  .jobs-list {
    gap: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .job {
    padding: 10px;
    min-width: 0;
    margin-left: 4px;
    margin-right: 4px;
    border-radius: 10px;
  }
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .job-meta {
    margin-left: 0;
  }
  .job-title {
    font-size: 15px;
  }
  .job-company,
  .job-salary {
    font-size: 11px;
  }
  .job-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
}
