/* Zalvatech Public – style.css (stable) */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d1b3a 0, #050816 42%, #020310 100%);
  color: #f5f5fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Section offset */
section[id] {
  scroll-margin-top: 92px;
}

/* Design tokens */
:root {
  --bg-main: #050816;
  --bg-elevated: rgba(15, 23, 42, 0.92);
  --bg-elevated-soft: rgba(15, 23, 42, 0.8);
  --bg-subtle: rgba(15, 23, 42, 0.6);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.2);
  --accent-strong: #4f46e5;
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.6);
}

/* Utils */
.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.section.subtle {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.12), transparent 55%);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header.align-left {
  text-align: left;
}

.section-header h2 {
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.section-header p {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

/* Grid helpers */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Wrapper tombol di kanan header */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LANG toggle: tetap seperti sebelumnya atau biarkan ini override */
.lang-btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.95),
              rgba(15, 23, 42, 1));
  color: #e5e7ff;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 12px rgba(56, 189, 248, 0.35);
}

.lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.lang-btn:hover::before {
  opacity: 0.35;
}

/* HAMBURGER */
.hamburger {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0;
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.95),
              rgba(15, 23, 42, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 12px rgba(56, 189, 248, 0.25);
}

.hamburger span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* dua garis (atas & bawah) */
.hamburger span:nth-child(1) {
  transform: translateY(-3px);
}

.hamburger span:nth-child(2) {
  transform: translateY(3px);
}

/* state open -> jadi "X" di tengah */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* Sembunyikan hamburger di desktop, tampil di mobile */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
}


/* Logo gradient animasi */
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #f9fafb; /* Z nya kelihatan putih */
  background-image: linear-gradient(135deg, #22d3ee, #6366f1, #a855f7, #ec4899, #22d3ee);
  background-size: 250% 250%;
  animation: logoGradient 10s linear infinite;
  box-shadow: 0 0 22px rgba(129, 140, 248, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

/* semuanya huruf kecil secara visual */
.brand-name-main,
.brand-name-sub {
  text-transform: lowercase;
}

/* "zalva" – biru neon terang */
.brand-name-main {
  font-weight: 800;
  color: #38bdf8; /* biru neon (sama keluarga dengan CTA/WA) */
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}

/* "tech" – ungu neon terang */
.brand-name-sub {
  font-weight: 700;
  color: #a855f7; /* ungu neon sama dengan logo */
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}


.brand-tagline {
  font-size: 0.78rem;
  color: #cbd5f5;
  margin-top: 2px;
}




@keyframes logoGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

.nav a:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

.nav a.active,
.nav a[aria-current="true"] {
  color: #e5e7eb;
}

.nav a.active::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Lang button & hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 6px 14px;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.26), rgba(15, 23, 42, 0.9));
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  border-color: #c4b5fd;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 16px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 16px 14px;
  gap: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 4px;
  border-radius: 8px;
}

.mobile-menu a.active,
.mobile-menu a[aria-current="true"] {
  color: #e5e7eb;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(129, 140, 248, 0.16));
}

/* Hero */
.hero {
  padding: 90px 0 72px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: min(2.5rem, 9vw);
  line-height: 1.1;
  margin: 0 0 12px;
  /* gradient senada dengan logo: biru neon -> ungu terang, tanpa warna pucat */
  background-image: linear-gradient(
    120deg,
    #38bdf8,  /* biru neon */
    #0ea5e9,  /* biru terang */
    #4f46e5,  /* indigo */
    #8b5cf6   /* ungu terang */
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 22px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.2), rgba(15, 23, 42, 0.99));
  font-size: 0.75rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn.primary {
  background-image: linear-gradient(135deg, #4f46e5, #a855f7);
  color: white;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.7);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
  border-color: #e5e7eb;
  background: rgba(148, 163, 184, 0.12);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

/* Hero right stats */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.stats-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(129, 140, 248, 0.6);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 340px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  padding: 8px 8px 6px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: #c7d2fe;
}

/* About */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.8rem;
  color: #a5b4fc;
}

/* Bullets */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.9rem;
  color: #a855f7;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Process */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work {
  background: var(--bg-elevated-soft);
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.work h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work.thumb {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-subtle);
  min-height: 200px;
}

.work.thumb:hover .title {
  color: #e5e7eb;
}

.work.thumb:hover .thumb {
  transform: scale(1.03);
}

.thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease-out;
}

.title {
  padding: 10px 12px 2px;
  font-size: 0.95rem;
  font-weight: 600;
}

.meta {
  padding: 0 12px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-grid,
.contact-info,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-subtle);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.4);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 26px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header .desktop-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 84px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero-subtitle {
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .cards,
  .work-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .lang-btn {
    padding-inline: 10px;
  }
}

/* ====== Logo Zalvatech – gradient di dalam shape PNG ====== */
/* ====== Logo Zalvatech – neon + breathing ====== */

.brand-logo-wrap {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* glow dasar */
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.8));
  /* efek nafas: sedikit membesar + glow menguat */
  animation: logoBreath 3.8s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: 100%;

  /* Blok kiri = biru neon, blok kanan = ungu neon.
     Tidak ada warna putih / cyan pucat. */
  background-image: linear-gradient(
    135deg,
    #38bdf8 0%,    /* biru neon */
    #38bdf8 40%,   /* tahan biru */
    #a855f7 55%,   /* mulai ungu neon */
    #a855f7 100%   /* full ungu neon yang sama dengan text */
  );
  background-size: 220% 220%;
  /* diperlambat dari 12s -> 18s */
  animation: logoGradientMove 18s ease-in-out infinite;

  -webkit-mask-image: url("assets/zalvatech-logo.png");
  mask-image: url("assets/zalvatech-logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}



/* Gerakan halus warna berjalan */
@keyframes logoGradientMove {
  /* Biru dominan (awal) */
  0%   { background-position: 0% 50%; }
  20%  { background-position: 0% 50%; }

  /* Transisi ke ungu */
  40%  { background-position: 100% 50%; }

  /* Tahan ungu cukup lama */
  80%  { background-position: 100% 50%; }

  /* Balik ke biru */
  100% { background-position: 0% 50%; }
}



/* Efek "nafas" kembang-kempis */
@keyframes logoBreath {
  0% {
    transform: scale(1);
    /* biru neon + sedikit brighten */
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.95))
            brightness(1.15);
  }
  50% {
    transform: scale(1.07);
    /* ungu neon lebih terang di puncak napas */
    filter: drop-shadow(0 0 32px rgba(168, 85, 247, 1))
            brightness(1.25);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.95))
            brightness(1.15);
  }
}

/* Tagline selalu tampil, tapi lebih kecil di layar kecil */
.brand-tagline {
  display: block;
}

@media (max-width: 480px) {
  .brand-text {
    margin-left: 8px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
    opacity: 0.95;
  }
}

/* === FIX: tagline "Digital Studio" selalu tampil, termasuk di iPhone === */

/* pastikan tidak pernah di-display:none oleh rule lain */
.brand-tagline {
  display: block !important;
}

/* sesuaikan ukuran di layar kecil (iPhone SE dsb.) */
@media (max-width: 480px) {
  .brand-text {
    margin-left: 8px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: nowrap;   /* biar tidak turun 2 baris */
    opacity: 0.95;
  }
}

/* Card dengan icon di kiri (dipakai untuk highlight & layanan) */
.card-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-with-icon .card-body {
  flex: 1;
}

.card-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at top left,
              rgba(56, 189, 248, 0.15),
              rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


