/* ================================================
   CV. Karya Perdana Teknik — Main Stylesheet v2
   Design System: Modern Industrial Premium
   Primary: #FFD700 (True Yellow) | Dark: #080808
   Font: Plus Jakarta Sans
   ================================================ */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  --font-jakarta: "Plus Jakarta Sans", sans-serif;

  /* Brand Colors */
  --yellow:       #FFD700;
  --yellow-light: #FFE44D;
  --yellow-dark:  #E6C200;
  --yellow-glow:  rgba(255,215,0,0.15);

  /* Background Scale */
  --bg-base:   #080808;
  --bg-1:      #101010;
  --bg-2:      #161618;
  --bg-3:      #1E1E22;
  --bg-4:      #2A2A30;

  /* Text Scale */
  --text-1:    #FFFFFF;
  --text-2:    #E0E0E0;
  --text-3:    #A0A0A8;
  --text-4:    #505060;

  /* Border */
  --border-1:  rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);

  /* States */
  --green:     #22C55E;
  --red:       #EF4444;
  --blue:      #3B82F6;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1320px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-jakarta);
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-jakarta);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track  { background: var(--bg-base); }
::-webkit-scrollbar-thumb  { background: var(--yellow); border-radius: 2px; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-jakarta);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  width: 100%;
}

.section-pad { padding: var(--section-pad) 0; }

/* ================================================
   SECTION LABELS & HEADINGS
   ================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
.section-title span { color: var(--yellow); }

.section-desc {
  color: var(--text-3);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 600px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-family: var(--font-jakarta);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,215,0,0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-family: var(--font-jakarta);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  border: 1px solid var(--border-2);
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: gap 0.2s;
  font-family: var(--font-jakarta);
}
.btn-ghost:hover { gap: 0.75rem; }

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 1.5rem 0;
}
#navbar.scrolled {
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-1);
  padding: 0.875rem 0;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

/* ================================================
   HERO
   ================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.6) 60%, rgba(8,8,8,0.75) 100%);
}
.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-headline .accent {
  color: var(--yellow);
  position: relative;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ================================================
   STATS BAR
   ================================================ */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.375rem;
}

/* ================================================
   SERVICE CARDS
   ================================================ */
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  padding: 2rem 1.75rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.service-card:hover {
  border-color: rgba(255,215,0,0.25);
  background: var(--bg-3);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.1);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-family: var(--font-jakarta);
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

/* ================================================
   ARTICLE CARDS
   ================================================ */
.article-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  display: block;
}
.article-card:hover {
  border-color: rgba(255,215,0,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.5);
}
.article-card:hover img {
  transform: scale(1.05);
}

/* ================================================
   GALLERY
   ================================================ */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ================================================
   FLOATING WA BUTTON
   ================================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
}
.wa-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.wa-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(37,211,102,0.55);
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.35);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ================================================
   MARQUEE (Client logos)
   ================================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  animation: marquee 80s linear infinite;
  width: max-content;
}
.animate-marquee:hover { animation-play-state: paused; }

/* ================================================
   BREADCRUMB
   ================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb-sep  { color: var(--text-4); }
.breadcrumb-current { color: var(--text-2); font-weight: 500; }

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  background: var(--bg-1);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--border-1);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ================================================
   ARTICLE CONTENT
   ================================================ */
.article-content { line-height: 1.9; }
.article-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-1);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-1);
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-1);
}
.article-content p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.article-content ul, .article-content ol {
  color: var(--text-2);
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-weight: 300;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content strong { color: var(--text-1); font-weight: 600; }
.article-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-2);
  color: var(--text-3);
  font-style: italic;
}
.article-content code {
  background: var(--bg-3);
  padding: 0.2em 0.45em;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--yellow);
  font-family: 'Fira Code', 'Courier New', monospace;
}
.article-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* ================================================
   REQUEST ORDER MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* ================================================
   ADMIN PANEL
   ================================================ */
.admin-sidebar {
  width: 256px;
  min-height: 100vh;
  background: #0A0A0A;
  border-right: 1px solid var(--border-1);
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.admin-content {
  margin-left: 256px;
  min-height: 100vh;
  background: var(--bg-base);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 4px;
  margin: 0.125rem 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--yellow-glow);
  color: var(--yellow);
}
.admin-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  padding: 1.5rem;
}
.admin-table th {
  background: var(--bg-1);
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-1);
}
.admin-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-2);
  font-size: 0.875rem;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.015); }

/* Form Elements */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  color: var(--text-1);
  font-size: 0.9375rem;
  font-family: var(--font-jakarta);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.form-input::placeholder { color: var(--text-4); }
.form-select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  color: var(--text-1);
  font-size: 0.9375rem;
  font-family: var(--font-jakarta);
  outline: none;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .admin-sidebar { width: 220px; }
  .admin-content { margin-left: 220px; }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-1);
    padding: 1.25rem 1rem;
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-number { font-size: 2rem; }
}

@media (max-width: 640px) {
  .btn-primary, .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  .page-hero { padding: 6rem 0 3rem; }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-yellow  { color: var(--yellow); }
.bg-yellow    { background: var(--yellow); }
.border-yellow{ border-color: var(--yellow); }
.text-muted   { color: var(--text-3); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.rounded      { border-radius: 4px; }
.truncate     { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.sr-only      { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
