/* root */
:root {
  --bg: #171715;
  --bg-light: #22221f;
  --ivory: #eae5d9;
  --muted: #b5b0a3;
  --lime: #d6e04a;

  --font-display: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

[x-cloak] {
  display: none !important;
}

.section-padding {
  padding: 100px 8%;
}

.lime {
  color: var(--lime);
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
}

/* navigasi */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(23, 23, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff15;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: var(--lime);
}

.navbar nav {
  font-family: var(--font-mono);
  display: flex;
  gap: 30px;
}

.navbar nav a {
  font-size: 13px;
  color: var(--muted);
  transition: 0.3s;
}

.navbar nav a:hover {
  color: var(--lime);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 24px;
}

/* hero section */
.hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 65px;
}

.hero-top {
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(65px, 12vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.09em;
  font-weight: 900;
  margin: 70px 0;
}

.hero h1 > span:first-of-type {
  color: transparent;
  -webkit-text-stroke: 1px var(--ivory);
}

.hero-bottom {
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.hero-bottom p {
  max-width: 400px;
  color: var(--muted);
  font-size: 15px;
}

/* button */
.btn-primary {
  display: inline-block;
  width: fit-content;
  padding: 15px 22px;
  background: var(--lime);
  color: var(--bg);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  border: 1px solid var(--lime);
  transition: 0.3s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--lime);
  transform: translateY(-3px);
}

/* section heading */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 45px;
}

.section-heading h2,
.services h2,
.about h2 {
  font-size: clamp(40px, 6vw, 75px);
  line-height: 1;
  letter-spacing: -4px;
  margin-top: 15px;
}

.section-heading p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
}

/* filter */
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-button {
  background: transparent;
  border: 1px solid #ffffff30;
  color: var(--muted);
  padding: 10px 18px;
  font-size: 12px;
  transition: 0.3s;
}

.filter-button:hover,
.filter-button:active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

/* portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 50px 30px;
}

.works p {
  font-family: var(--font-mono);
}

.work-card {
  width: 100%;
  min-width: 0;
}

.work-image {
  position: relative;
  display: block;

  width: 100%;
  overflow: hidden;

  background: var(--bg-light);
  border: none;

  text-align: left;
}

/* PORTRAIT - 9:16 */

.work-image.orientation-portrait {
  aspect-ratio: 9 / 16;
}

/* LANDSCAPE - 16:9 */

.work-image.orientation-landscape {
  aspect-ratio: 16 / 9;
}

.work-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

/* VIDEO PLAY ICON */

.play-icon {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 55px;
  height: 55px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--lime);
  color: var(--bg);

  font-size: 20px;

  padding-left: 4px;
}

.work-type {
  position: absolute;
  top: 15px;
  left: 15px;

  padding: 7px 12px;

  background: var(--lime);
  color: var(--bg);

  font-size: 10px;
  font-weight: bold;
}

.view-icon {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ivory);
  border-radius: 50%;
  font-size: 20px;
}

.work-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 15px;
  margin-top: 17px;
}

.work-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.work-info p {
  color: var(--muted);
  font-size: 12px;
}

.work-year {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.empty-message {
  color: var(--muted);
  font-size: 30px;
}

/* services */
.services {
  background: var(--bg-light);
}

.services h2 {
  margin-bottom: 60px;
}

.service-item {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid #ffffff25;
}

.service-item:last-child {
  border-bottom: 1px solid #ffffff25;
}

.service-item > span:first-child {
  color: var(--lime);
  font-size: 12px;
}

.service-item h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.service-item p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.service-arrow {
  font-size: 25px;
  color: var(--lime);
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.about-image {
  overflow: hidden;
  background: var(--bg-light);
}

.about-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-content p {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.about-content .btn-primary {
  margin-top: 15px;
}

/* contact */
.contact {
  background: var(--lime);
  color: var(--bg);
}

.contact .eyebrow {
  color: var(--bg);
}

.contact h2 {
  font-size: clamp(55px, 10vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin: 45px 0;
}

.contact .btn-primary {
  background: var(--bg);
  color: var(--ivory);
  border-color: var(--bg);
}

.contact .btn-primary:hover {
  background: transparent;
  color: var(--bg);
}

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer p {
  color: var(--muted);
  font-size: 11px;
}

.social-links a {
  color: var(--muted);
  font-size: 22px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a:hover {
  color: var(--lime);
}

/* video modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
  overflow-y: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 850px;
  background: var(--bg-light);
  padding: 25px;
}

.modal-close {
  display: block;
  margin-left: auto;
  margin-bottom: 15px;
  background: none;
  color: var(--ivory);
  font-size: 25px;
}

.modal-content video,
.modal-content img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.video-container {
  position: relative;
  margin: auto;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-description {
  padding-top: 25px;
}

.modal-description h2 {
  font-size: 30px;
  margin: 10px 0;
}

.modal-description p {
  color: var(--muted);
  font-size: 13px;
}

/* LANDSCAPE VIDEO */

.video-container.video-landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* PORTRAIT VIDEO */

.video-container.video-portrait {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
}

/* GRAPHIC DESIGN PREVIEW */

.image-preview {
  display: flex;
  justify-content: center;
  align-items: center;

  background: #000;
}

.image-preview img {
  width: auto;
  max-width: 100%;
  max-height: 75vh;

  object-fit: contain;
}

/* LOAD MORE BUTTON */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn .load-more-count {
  font-size: 10px;
  opacity: 0.7;
  font-weight: normal;
}

.load-more-btn i {
  font-size: 16px;
}

.load-more-btn:hover .load-more-count {
  opacity: 1;
}

/* mobile responsive */
@media (max-width: 768px) {
  .section-padding {
    padding: 75px 6%;
  }

  .navbar {
    padding: 18px 6%;
  }

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    gap: 0;

    background: var(--bg);
    border-bottom: 1px solid #ffffff20;
  }

  .navbar nav.nav-open {
    display: flex;
  }

  .navbar nav a {
    padding: 15px 6%;
    border-top: 1px solid #ffffff15;
  }

  .hero {
    min-height: 580px;
  }

  .hero-top {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(58px, 14vw, 100px);
    margin: 55px 0;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: start;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 15px;
  }

  .work-info {
    flex-direction: column;
    gap: 5px;
  }

  .work-info h3 {
    font-size: 16px;
  }

  .work-info p {
    font-size: 11px;
  }

  .play-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-image {
    max-width: 500px;
  }

  .services h2 {
    margin-bottom: 40px;
  }

  .footer {
    flex-direction: column;
    align-items: start;
  }

  .modal-content {
    padding: 15px;
  }

  .load-more-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 400px) {
  .service-item {
    grid-template-columns: 30px 1fr 25px;
    gap: 12px;
  }

  .service-item h3 {
    font-size: 20px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .work-info {
    flex-direction: row;
  }

  .work-info h3 {
    font-size: 18px;
  }
}
