/* ============================================================
   D'Baiki (D Tech Services) — dbaiki.my
   Tema: Kuning & Hitam | Moden & Kreatif
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-2: #101014;
  --card: #15151b;
  --line: rgba(255, 255, 255, 0.08);
  --yellow: #ffd500;
  --yellow-2: #ffdd33;
  --yellow-soft: rgba(255, 213, 0, 0.12);
  --text: #f5f5ef;
  --muted: #a7a9b2;
  --radius: 18px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 340px at 85% -5%, rgba(255, 213, 0, 0.07), transparent 70%),
    radial-gradient(500px 300px at -10% 30%, rgba(255, 213, 0, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section { padding: 5.5rem 0; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  display: inline-block;
}
.section-head.center .label::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  display: inline-block;
}

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Butang ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: #0b0b0e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255, 213, 0, 0.25); }
.btn svg { flex: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); box-shadow: none; }

.btn-dark { background: #0b0b0e; color: var(--yellow); border-color: #0b0b0e; }
.btn-dark:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------- Navigasi ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  border-bottom-color: var(--line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: inline-flex; align-items: center; }

.logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}
.logo:hover .logo-img { transform: scale(1.04); }

.footer .logo-img { height: 56px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links > a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.nav-links > a:not(.btn):hover,
.nav-links > a.active:not(.btn) { color: var(--text); }
.nav-links > a.active:not(.btn)::after,
.nav-links > a:not(.btn):hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 9.5rem 0 4.5rem; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 213, 0, 0.3);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 0, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(255, 213, 0, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 1.3rem;
}
.hero h1 .hl {
  color: var(--yellow);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl svg {
  position: absolute;
  left: 0; bottom: -0.18em;
  width: 100%; height: 0.28em;
}

.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 33rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-chips svg { color: var(--yellow); flex: none; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotate(1.5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 213, 0, 0.12), transparent 45%);
  pointer-events: none;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

.float-card {
  position: absolute;
  background: #fff;
  color: #0b0b0e;
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: floaty 5s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 500; color: #555; font-size: 0.72rem; }
.float-card .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  flex: none;
}
.float-card.fc-1 { top: 8%; left: -6%; animation-delay: 0.6s; }
.float-card.fc-2 { bottom: 7%; right: -4%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--yellow);
  color: #0b0b0e;
  transform: rotate(-1.3deg) scale(1.02);
  margin: 1.5rem 0 0;
  border-block: 3px solid #0b0b0e;
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: scroll 24s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.6rem; }
.marquee-track .sep { width: 8px; height: 8px; background: #0b0b0e; transform: rotate(45deg); display: inline-block; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Kad Perkhidmatan ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 213, 0, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--yellow);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.svc-card:hover .svc-icon { background: var(--yellow); color: #0b0b0e; transform: rotate(-6deg) scale(1.06); }
.svc-card h3 { font-size: 1.08rem; margin-bottom: 0.8rem; }
.svc-card ul { margin-top: auto; }
.svc-card ul li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.svc-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--yellow);
  transform: rotate(45deg);
}

/* ---------- Langkah ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: rgba(255, 213, 0, 0.5); transform: translateY(-5px); }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--yellow);
  line-height: 1;
  margin-bottom: 1.1rem;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Mengapa Kami ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.why-card {
  display: flex;
  gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(255, 213, 0, 0.5); }
.why-card .svc-icon { flex: none; margin-bottom: 0; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sorotan Tentang (homepage) ---------- */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.2rem;
  align-items: center;
}
.about-img {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  transform: rotate(-1.2deg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(255, 213, 0, 0.12), transparent 45%);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.check-list { display: grid; gap: 0.8rem; margin: 1.6rem 0 2rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.check-list svg { color: var(--yellow); flex: none; margin-top: 0.2rem; }
.check-list strong { color: var(--text); font-weight: 600; }

/* ---------- Jalur CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--yellow), #ffc400 60%, #ffb800);
  color: #0b0b0e;
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 12px, transparent 12px 24px);
  border-radius: 50%;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 0.5rem; }
.cta-band p { max-width: 34rem; font-weight: 500; opacity: 0.85; }
.cta-band > * { position: relative; }

/* ---------- Hero Halaman Dalaman ---------- */
.page-hero {
  padding: 9.5rem 0 3.6rem;
  background: radial-gradient(620px 300px at 75% 0%, rgba(255, 213, 0, 0.09), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 1rem; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}
.crumbs a { color: var(--yellow); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Misi / Visi ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.mv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.mv-card h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--yellow); }
.mv-card p { color: var(--muted); }

/* ---------- Kandungan Prosa ---------- */
.prose-block { max-width: 46rem; }
.prose-block p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.03rem; }
.prose-block p strong, .prose-block strong { color: var(--text); }

/* ---------- Hubungi ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(255, 213, 0, 0.55); }
.contact-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--yellow-soft);
  color: var(--yellow);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-card:hover .contact-icon { background: var(--yellow); color: #0b0b0e; }
.contact-card h3 { font-size: 1.08rem; }
.contact-card .big { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--yellow); }
.contact-card p { color: var(--muted); font-size: 0.92rem; }
.contact-card .card-link {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.contact-card .card-link:hover { text-decoration: underline; }

.note-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 213, 0, 0.3);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  color: var(--text);
}
.note-strip svg { color: var(--yellow); flex: none; }
.note-strip p { font-size: 0.95rem; }
.note-strip strong { color: var(--yellow); }

/* ---------- Lokasi ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; align-items: stretch; }
.map-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: invert(0.9) hue-rotate(185deg) contrast(0.92) saturate(0.35); }

.location-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.loc-row { display: flex; gap: 1rem; align-items: flex-start; }
.loc-row .contact-icon { width: 48px; height: 48px; margin-bottom: 0; border-radius: 12px; }
.loc-row h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.loc-row p { color: var(--muted); font-size: 0.93rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: auto; }

/* ---------- Footer ---------- */
.footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}
.footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 1rem 0 1.2rem; max-width: 22rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--yellow); padding-left: 5px; }
.footer-contact li { display: flex; gap: 0.7rem; color: var(--muted); font-size: 0.93rem; margin-bottom: 0.8rem; align-items: flex-start; }
.footer-contact svg { color: var(--yellow); flex: none; margin-top: 0.25rem; }
.footer-contact a:hover { color: var(--yellow); }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.social-btn:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-bottom span { color: var(--yellow); }

/* ---------- Animasi Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-split, .location-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 8rem; }
  .hero-media { max-width: 560px; }
  .services-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card.fc-1 { left: 2%; }
  .float-card.fc-2 { right: 2%; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .services-grid, .steps-grid, .why-grid, .mv-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .logo-img { height: 52px; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85%);
    background: #0e0e12;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a:not(.btn) { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero h1 .hl { white-space: normal; }
  .float-card { display: none; }
  .marquee { transform: rotate(0); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
