/* Lightweight portfolio stylesheet. Keeps portfolio.html independent from legacy public bundles. */
:root {
  --gt-orange: #f26e22;
  --gt-orange-dark: #c75012;
  --gt-ink: #182033;
  --gt-muted: #667085;
  --gt-line: #e5eaf1;
  --gt-soft: #f7f9fc;
  --gt-soft-2: #f1f5f9;
  --gt-white: #ffffff;
  --gt-navy: #202334;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 74px;
  overflow-x: hidden;
  background: var(--gt-soft);
  color: var(--gt-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open,
body.portfolio-modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 74px;
  background: var(--gt-navy);
  color: var(--gt-white);
}

.navbar.scrolled {
  background: rgba(32, 35, 52, 0.92);
  backdrop-filter: blur(12px);
}

.navbar .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--gt-white);
  font-weight: 800;
  text-decoration: none;
}

.logo-icon,
.logo-icon img {
  width: 32px;
  height: 32px;
}

.logo span {
  overflow: hidden;
  color: var(--gt-white);
  font-size: 0.96rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.public-nav-links a:hover,
.public-nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gt-white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--gt-white);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  background: rgba(15, 23, 42, 0.46);
}

.menu-overlay.active {
  display: block;
}

.section {
  padding: clamp(48px, 6vw, 78px) 0;
}

#hero,
#kategori,
#galeri,
#cta {
  scroll-margin-top: 94px;
}

.section-header {
  width: min(100%, 640px);
  margin: 0 auto 28px;
  text-align: center;
}

.section-title,
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--gt-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-header p {
  margin: 10px auto 0;
  color: var(--gt-muted);
  font-size: 0.96rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--gt-ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--gt-orange);
  background: var(--gt-orange);
  color: var(--gt-white);
}

.btn-outline {
  border-color: var(--gt-line);
  background: var(--gt-white);
  color: var(--gt-ink);
}

.hero {
  padding: clamp(74px, 8vw, 112px) 0 clamp(42px, 6vw, 70px);
  background: linear-gradient(180deg, #ffffff 0%, var(--gt-soft) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.hero-content {
  max-width: 610px;
}

.hero-content h1 {
  max-width: 600px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.05;
}

.hero-content p {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--gt-muted);
  line-height: 1.72;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gt-line);
  border-radius: 12px;
  background: var(--gt-soft-2);
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-category-section,
.portfolio-cta-section {
  background: var(--gt-white);
}

.portfolio-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
  text-align: left;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--gt-line);
  border-radius: 999px;
  background: var(--gt-white);
  color: var(--gt-muted);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--gt-orange);
  background: var(--gt-orange);
  color: var(--gt-white);
}

.portfolio-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--gt-muted);
  font-size: 0.86rem;
}

.portfolio-result-meta p {
  margin: 0;
  color: var(--gt-ink);
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.03);
}

.portfolio-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.82));
  color: var(--gt-white);
}

.portfolio-tag {
  color: #fed7aa;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolio-overlay strong {
  font-size: 1rem;
  line-height: 1.25;
}

.no-portfolio {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
  color: var(--gt-muted);
  text-align: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
}

.contact-wrapper > * {
  padding: clamp(22px, 4vw, 36px);
}

.contact-info {
  background: var(--gt-soft);
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.contact-form p {
  margin: 0 0 18px;
  color: var(--gt-muted);
}

.contact-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gt-white);
}

.contact-icon img {
  width: 22px;
  height: 22px;
}

.contact-item h4,
.contact-item p,
.contact-item small {
  margin: 0;
}

.contact-item p {
  color: var(--gt-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-item small {
  color: var(--gt-muted);
}

.work-results-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 900;
}

.work-results-section {
  background: var(--gt-white);
}

.work-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-result-card {
  overflow: hidden;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
}

.work-result-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--gt-soft-2);
}

.work-result-card div {
  padding: 18px;
}

.work-result-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gt-orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.work-result-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.work-result-card p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.work-proof-section {
  background: var(--gt-soft);
}

.work-proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-white);
}

.work-proof-panel h2,
.work-proof-panel p {
  margin: 0;
}

.work-proof-panel p {
  margin-top: 10px;
  color: var(--gt-muted);
}

.work-proof-list {
  display: grid;
  gap: 10px;
}

.work-proof-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-soft);
  color: var(--gt-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.portfolio-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  overflow: auto;
  border-radius: 8px;
  background: var(--gt-white);
}

.portfolio-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: var(--gt-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.portfolio-modal-media {
  min-height: 360px;
  background: var(--gt-soft-2);
}

.portfolio-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.portfolio-modal-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
}

.portfolio-modal-copy h3,
.portfolio-modal-copy p {
  margin: 0;
}

.portfolio-modal-copy p {
  color: var(--gt-muted);
}

.footer {
  padding-top: 48px;
  background: var(--gt-navy);
  color: var(--gt-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
  color: var(--gt-white);
  font-size: 0.95rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.62;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gt-white);
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: 36px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.floating-wa,
.back-to-top {
  position: fixed;
  z-index: 1400;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gt-white);
}

.floating-wa {
  right: 20px;
  bottom: 20px;
  background: #25d366;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.floating-wa img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.floating-wa::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.floating-wa::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: 14px;
  bottom: 12px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(32deg);
}

body.portfolio-modal-open .floating-wa {
  display: none;
}

.back-to-top {
  left: 20px;
  bottom: 20px;
  border: 1px solid var(--gt-line);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top img {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .hero .container,
  .contact-wrapper,
  .portfolio-modal-dialog {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .portfolio-category-grid,
  .portfolio-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 66px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .navbar,
  .navbar .container {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .public-nav-links {
    position: fixed;
    top: 66px;
    right: 12px;
    left: 12px;
    z-index: 1001;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: var(--gt-navy);
  }

  .public-nav-links.active {
    display: grid;
  }

  .public-nav-links a {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 12px;
  }

  #hero,
  #kategori,
  #galeri,
  #cta {
    scroll-margin-top: 84px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-buttons,
  .portfolio-category-grid,
  .portfolio-grid,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-header {
    text-align: left;
  }

  .portfolio-result-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-modal {
    padding: 12px;
  }

  .portfolio-modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .portfolio-modal-media,
  .portfolio-modal-media img {
    min-height: 260px;
  }

  .floating-wa {
    right: 14px;
    bottom: 14px;
  }

  .back-to-top {
    left: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 18px, 1120px);
  }

  .section {
    padding-block: 40px;
  }

  .btn {
    padding-inline: 14px;
  }
}
