/* ==========================================================================
   00-BASE — CSS Variables, Reset, Typography, Utility Classes
   ========================================================================== */

:root {
  /* ---- Color: Base / Background ---- */
  --bg: #EEF4FB;
  --bg-soft: #F7FAFD;
  --card-bg: #FFFFFF;

  /* ---- Color: Primary (Blue) ---- */
  --primary-color: #3F6FB5;
  --primary-light: #5C8FD6;
  --primary-dark: #2C4E80;
  --primary-tint: #EAF1FB;

  /* ---- Color: Accent (Coral — CTA utama only) ---- */
  --accent-color: #F45B69;
  --accent-light: #F5717D;
  --accent-dark: #D8434F;
  --accent-tint: #FDE9EA;

  /* ---- Color: Text ---- */
  --text-color: #1F3252;
  --text-muted: #5E718F;
  --text-faint: #8A9BB8;

  /* ---- Color: Border ---- */
  --border-color: #DCE6F4;

  /* ---- Shadows (Claymorphism — subtle) ---- */
  --shadow-light: rgba(255, 255, 255, 0.85);
  --shadow-blue-soft: rgba(63, 111, 181, 0.12);
  --shadow-blue-medium: rgba(63, 111, 181, 0.18);
  --shadow-accent: rgba(244, 91, 105, 0.3);

  --clay-raised: -3px -3px 8px var(--shadow-light), 3px 5px 12px var(--shadow-blue-soft);
  --clay-raised-hover: -4px -4px 10px var(--shadow-light), 4px 7px 16px var(--shadow-blue-medium);
  --clay-inset: inset -2px -2px 6px rgba(255, 255, 255, 0.6), inset 2px 2px 6px rgba(63, 111, 181, 0.08);
  --clay-pill: -2px -2px 5px var(--shadow-light), 2px 3px 7px var(--shadow-blue-soft);

  /* ---- Typography ---- */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.25rem;

  /* ---- Radius ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---- Spacing Tokens ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* ---- Layout ---- */
  --header-height: 80px;
  --container-width: 1120px;
  --container-padding: 1.5rem;
}

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

html {
  /* scroll-behavior dikontrol via JavaScript untuk klik anchor agar scrolling mouse wheel / trackpad tetap native & responsif */
}

body {
  font-family: var(--font-base);
  background-color: var(--bg);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Visible keyboard focus (accessibility floor) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* Modal reset: pastikan modal tertutup sepenuhnya saat initial load */
.portfolio-modal {
  display: none;
}
