:root {
  --bg: #fefefa;
  --text: #0a0a0a;
  --btn: #0070ff;
  --section: #f0f8ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  background-color: var(--bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--text);
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 25px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--section);
  z-index: 1000;
}

.menu-link {
  cursor: pointer;
  font-size: 24px;
  color: var(--text);
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--text);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 25px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-close {
  color: var(--bg);
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.mobile-link {
  color: var(--bg);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--btn);
}

.logo-wp a {
  font-weight: 900;
  font-size: 28px;
  color: var(--text);
}

.logo-wp a span {
  color: var(--btn);
}

/* right header start */
.right-header {
  display: flex;
  gap: 15px;
}

.right-header .h-link {
  background-color: var(--btn);
  color: var(--bg);
  padding: 8px;
  border-radius: 5px;
  transform: scale(1);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.right-header .txt-link {
  font-weight: 600;
}

.right-header .h-link:hover {
  background-color: var(--text);
  transform: scale(1.1); /* Gently enlarges the element */
}
/* right header end */

/* hero section */
.hero-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* h1 di belakang foto */
.hero-text-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.hero-text-back h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  font-size: 300px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.65;
  letter-spacing: -0.04em;
}

.h1-web {
  color: var(--text);
  /* font-size: 500px; */
  /* opacity: 0.12; */
}

.h1-designer {
  color: var(--btn);
  /* opacity: 0.3; */
}

/* baris konten wuyung pratama */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
}

.name-left {
  flex: 1;
  text-align: left;
}

.name-right {
  flex: 1;
  text-align: right;
}

.like-h1 {
  font-size: clamp(1.2rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-img {
  flex-shrink: 0;
}

.hero-img img {
  width: 595px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 8px;
}

/* about section */
.tentang {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
  margin-top: 100px;
  gap: 10px;
  /* background-color: var(--section); */
}

.tentang h2 {
  font-size: 42px;
}

.tentang p {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  text-align: justify;
  padding: 0 50px 10px 50px;
}

a.tokoBtn {
  background-color: var(--btn);
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--bg);
  transform: scale(1);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

a.tokoBtn:hover {
  background-color: var(--text);
  transform: scale(1.1);
}

/* project section */
.project-judul {
  font-size: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 0 0;
}

.project {
  padding: 30px 20px;
  max-width: 1200px;
  gap: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}

.project .card {
  background: var(--section);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--text);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project .card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project .card-container {
  padding: 20px;
}

.project .card-container h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px 0;
}

.project .card-container p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 16px 0;
}

.project .card-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--bg);
  font-size: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.project .card-container a:hover {
  background: var(--text);
}

/* contact section */
.kontak {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.kontak h2 {
  font-size: 42px;
}

.kontak .kontak-medsos {
  font-size: 42px;
}

/* footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer p {
  font-size: 14px;
  font-weight: 500;
  padding: 20px 0;
}

footer a:hover {
  color: var(--btn);
}

/* animasi fade in */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.fade-in.delay-1 {
  transition-delay: 0.1s;
}
.fade-in.delay-2 {
  transition-delay: 0.2s;
}
.fade-in.delay-3 {
  transition-delay: 0.3s;
}
.fade-in.delay-4 {
  transition-delay: 0.4s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop */
@media (min-width: 768px) {
  .menu-link {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ========== TABLET (opsional) ========== */
@media (max-width: 900px) {
  .project {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .header {
    display: flex;
    justify-content: space-between;
  }

  .menu-link {
    display: block;
  }

  .right-header {
    display: none;
  }

  /* Container jadi kolom vertikal */
  .hero-container {
    flex-direction: column;
    gap: 16px;
  }

  /* Teks tidak lagi di belakang, tapi di atas foto */
  .hero-text-back {
    position: relative;
    inset: auto;
    pointer-events: auto;
  }

  /* WEB dan DESIGNER stacking atas-bawah */
  .hero-text-back h1 {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 75px;
    line-height: 0.9;
  }

  .h1-web {
    font-size: 160px;
  }

  /* Teks mobile tampil penuh, tidak transparan */
  .h1-web,
  .h1-designer {
    opacity: 1;
  }

  /* Foto dan nama dalam satu baris yang wrap */
  .hero-content {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  /* Foto di tengah, full width container */
  .hero-img {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 3;
  }

  .hero-img img {
    width: 1500px;
    padding: 0;
  }

  /* Nama sejajar di bawah foto */
  .name-left {
    flex: none;
    text-align: center;
    order: 1;
    font-size: 30px;
  }

  .name-right {
    flex: none;
    text-align: center;
    order: 2;
    font-size: 30px;
  }

  /* about section */
  .tentang h2 {
    font-size: 32px;
  }

  .tentang p {
    font-size: 20px;
    text-align: start;
    padding: 0 20px 10px 20px;
    font-weight: 500;
    line-height: 1.8;
  }

  /* project */
  .project-judul {
    font-size: 32px;
    padding: 30px 0 0 0;
  }

  .project {
    grid-template-columns: 1fr;
    padding: 30px 16px;
    gap: 20px;
  }

  .project .card img {
    height: 180px;
  }

  .project .card h4 {
    font-size: 20px;
  }

  .project .card p {
    font-size: 18px;
  }

  /* contact section */
  .kontak h2 {
    font-size: 32px;
  }
}
