/* ==========================================================================
   Muhamad Haikal Pratama (GreenCraftH) — Dark Portfolio Stylesheet
   Clean, modern dark UI with SVG Data Diagrams & Mobile-First Ergonomics
   ========================================================================== */

:root {
  --bg-base: #060911;
  --bg-elevated: #0B101D;
  --bg-card: #0F1626;
  --bg-card-hover: #141E33;
  --bg-subtle: #182338;
  --border-subtle: rgba(148, 163, 184, 0.13);
  --border-highlight: rgba(59, 130, 246, 0.45);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  margin: 0;
}

.font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

.font-mono-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bg-ambient-mesh {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(at 15% 0%, rgba(59, 130, 246, 0.09) 0px, transparent 52%),
    radial-gradient(at 85% 8%, rgba(6, 182, 212, 0.06) 0px, transparent 48%),
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
}

.dark-card {
  background: linear-gradient(180deg, rgba(17, 25, 42, 0.92) 0%, rgba(11, 17, 30, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .dark-card-interactive:hover {
    border-color: rgba(96, 165, 250, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  }
}

.dark-subcard {
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dark-pill {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.text-gradient-brand {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 55%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Compact Formal Portrait Framing (head, face, tie, and blazer proportioned cleanly) */
.profile-portrait-shell {
  position: relative;
  width: 140px;
  height: 168px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background-color: #0B101D;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .profile-portrait-shell {
    width: 196px;
    height: 236px;
    border-radius: 1.25rem;
  }
}

.profile-portrait-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

/* Slide-Over Mobile Navigation Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 6, 14, 0.68);
  backdrop-filter: blur(4px);
  z-index: 50;
  transition: opacity 0.2s ease;
}

.mobile-drawer-backdrop.is-closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18rem;
  max-width: 82vw;
  background-color: #0B101D;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-drawer-panel.is-closed {
  transform: translateX(100%);
  pointer-events: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-chevron {
  transition: transform 0.2s ease;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.94); }
}

.animate-pulse-dot {
  animation: pulseGlow 2.6s infinite ease-in-out;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
