/* ===================================
   Budi Daya Digital — style.css
   Palette:
     --navy:    #0A0F1E
     --navy2:   #1A2540
     --navy3:   #243052
     --accent:  #5b71f3
     --accent2: #00E8AE
     --white:   #F0F4FF
     --muted:   #8892A4
     --border:  rgba(255,255,255,0.07)
=================================== */

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

:root {
  --navy:    #0A0F1E;
  --navy2:   #151b27;
  --navy3:   #252e40;
  --accent:  #91a1ff;
  --accent2: #9aa9ff;
  --white:   #F0F4FF;
  --muted:   #8892A4;
  --border:  rgba(255,255,255,0.07);
  --radius:  14px;
  --shadow:  0 8px 40px rgba(0,0,0,0.4);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.1s; }
.reveal:nth-child(6) { transition-delay: 0.2s; }

/* ============================
   NAVBAR
============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 32px;
  width: auto;
}
.logo-text-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--navy) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91, 113, 243, .35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  padding: 16px 32px;
}
.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(37,211,102,0.35);
}

/* ============================
   SECTION COMMON
============================ */
.section { padding: 100px 0; }
.section-dark { background: var(--navy2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ============================
   HERO
============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-label {
  display: inline-block;
  background: rgba(0,15,85,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero-typed-wrapper {
  color: var(--accent);
  white-space: nowrap;
}
.cursor {
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* CODE WINDOW */
.code-window {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--navy3);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.code-file {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}
.code-body {
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}
.c-keyword { color: #C678DD; }
.c-var     { color: #E5C07B; }
.c-prop    { color: #ABB2BF; }
.c-str     { color: var(--accent); }

/* ============================
   TENTANG
============================ */
.tentang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tentang-card-stack {
  position: relative;
  height: 450px;
}
.t-card {
  position: absolute;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  width: 260px;
}
.t-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 8px 0 6px;
}
.t-card p { font-size: 0.82rem; color: var(--muted); }
.t-icon { font-size: 1.5rem; }
.t-card-1 { top: 0; left: 0; border-left: 3px solid var(--accent); }
.t-card-2 { top: 150px; left: 60px; border-left: 3px solid #5B7FFF; }
.t-card-3 { top: 300px; left: 20px; border-left: 3px solid #FFB347; }

.tentang-text .section-label { display: block; }
.tentang-text .section-title { margin-bottom: 20px; }
.tentang-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tentang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag {
  background: rgba(0, 15, 85, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

/* ============================
   LAYANAN
============================ */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.layanan-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.layanan-card:hover {
  border-color: rgba(91, 113, 243, .35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 7, 43, .35);
}
.layanan-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.layanan-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.layanan-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.layanan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layanan-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.layanan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================
   PORTOFOLIO
============================ */
.filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  font-weight: 700;
}
.porto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.porto-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy2);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.4s;
}
.porto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.porto-card.hidden {
  display: none;
}
.porto-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
a.porto-img { display: block; }
.porto-img-1 { background: linear-gradient(135deg, #1a3a5c 0%, #0d5c3f 100%); }
.porto-img-2 { background: linear-gradient(135deg, #2d1a5c 0%, #5c1a3a 100%); }
.porto-img-3 { background: linear-gradient(135deg, #1a5c3a 0%, #0d3a5c 100%); }
.porto-img-4 { background: linear-gradient(135deg, #5c3a1a 0%, #5c1a1a 100%); }
.porto-img-5 { background: linear-gradient(135deg, #1a3a5c 0%, #1a5c5c 100%); }
.porto-img-6 { background: linear-gradient(135deg, #3a5c1a 0%, #1a5c3a 100%); }

/* SVG pattern overlay on porto images */
.porto-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.porto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.95) 0%, rgba(10,15,30,0.3) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.3s;
}
.porto-card:hover .porto-overlay { opacity: 1; }
.porto-cat {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.porto-cat-outline {
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
}
.porto-cat:last-child { margin-top: 8px; }
.porto-overlay h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.porto-overlay p {
  font-size: 0.78rem;
  color: rgba(240,244,255,0.75);
  line-height: 1.5;
}
.porto-info {
  padding: 14px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
a.porto-info {
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
}
.porto-tag {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 5px;
}

/* ============================
   TESTIMONI
============================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.testi-card:hover {
  border-color: rgba(91, 113, 243, .35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 7, 43, .35);
}
.testi-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testi-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(240,244,255,0.85);
  margin-bottom: 22px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5B7FFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}
.testi-author span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================
   CTA / KONTAK
============================ */
.cta-section { padding: 100px 0; }
.cta-box {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,150,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 18px;
}
.cta-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-contact-info {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================
   FOOTER
============================ */
.footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a,
.footer-links li {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .tentang-grid { grid-template-columns: 1fr; gap: 48px; }
  .tentang-grid { grid-template-columns: 1fr; }

  .hero-title    { font-size: 2.8rem; }
  .section-title { font-size: 2.2rem; }
  .cta-title     { font-size: 2.2rem; }
  
  .tentang-visual { order: 2; }
  .tentang-card-stack { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .t-card { position: static; width: 100%; }
}

@media (max-width: 800px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 28px;
    transition: right 0.35s cubic-bezier(0.25,0.8,0.25,1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; color: var(--white); }
}

@media (max-width: 768px) {
  .hero > .container { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-stats { gap: 16px; }

  .hero-title    { font-size: 2.2rem; letter-spacing: -0.5px; }
  .section-title { font-size: 1.8rem; }
  .cta-title     { font-size: 1.8rem; }

  .layanan-grid { grid-template-columns: 1fr; }
  .porto-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-box { padding: 48px 24px; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }

  .hero-title    { font-size: 1.75rem; letter-spacing: -0.3px; }
  .section-title { font-size: 1.5rem; }
  .cta-title     { font-size: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .code-window { animation: none; }
  .cursor { animation: none; }
}
