/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & GLOBAL STYLES
   Theme: Light Blue Oceanic ("Biru Muda" Pantai Aesthetic)
   Author: Michael Kevin Descvio Wando Taher
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Accent: Light Blue ("Biru Muda") & Cyan-Sky */
  --accent-primary: #38bdf8;
  --accent-primary-hover: #0ea5e9;
  --accent-deep: #0284c7;
  --accent-light: #bae6fd;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --accent-subtle: rgba(56, 189, 248, 0.08);
  --accent-border: rgba(56, 189, 248, 0.22);

  /* Gold/Sand Accent for Awards & Honors */
  --accent-sand: #d4b27d;
  --accent-gold: #f59e0b;
  --accent-gold-bg: rgba(245, 158, 11, 0.12);
  --accent-gold-border: rgba(245, 158, 11, 0.3);

  /* Status Colors */
  --status-active: #10b981;
  --status-active-glow: rgba(16, 185, 129, 0.4);
  --status-danger: #f43f5e;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Defaults: Dark Oceanic Palette (Ryhndastra/Pantai inspired) */
  --bg-main: #061325;
  --bg-secondary: #0a1f38;
  --bg-card: rgba(11, 31, 56, 0.72);
  --bg-card-hover: rgba(16, 44, 78, 0.88);
  --bg-card-solid: #0c2442;
  --card-border: rgba(56, 189, 248, 0.18);
  --card-border-hover: rgba(56, 189, 248, 0.5);
  --nav-bg: rgba(6, 19, 37, 0.85);
  --nav-border: rgba(56, 189, 248, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8493a8;
  
  --tag-bg: rgba(2, 132, 199, 0.18);
  --tag-text: #7dd3fc;
  --tag-border: rgba(56, 189, 248, 0.28);
  
  --shadow-card: 0 10px 30px -10px rgba(2, 12, 27, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.22);
  --grid-line: rgba(56, 189, 248, 0.04);
}

/* Light Theme: Fresh Sky Oceanic */
[data-theme="light"] {
  --bg-main: #f0f7ff;
  --bg-secondary: #e2f1fd;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-card-solid: #ffffff;
  --card-border: rgba(186, 230, 253, 0.9);
  --card-border-hover: rgba(56, 189, 248, 0.75);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(186, 230, 253, 0.8);
  
  --text-primary: #0b1f38;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --tag-bg: rgba(224, 242, 254, 0.95);
  --tag-text: #0284c7;
  --tag-border: rgba(56, 189, 248, 0.4);
  
  --shadow-card: 0 10px 30px -10px rgba(186, 230, 253, 0.55);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.18);
  --grid-line: rgba(2, 132, 199, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: 
    radial-gradient(circle at 15% 15%, var(--accent-subtle) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, var(--accent-subtle) 0%, transparent 45%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Custom Selection */
::selection {
  background-color: var(--accent-primary);
  color: #061325;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-solid);
  border: 2px solid var(--bg-main);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

code, pre {
  font-family: var(--font-mono);
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-block: 4rem;
  }
}

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--tag-bg);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--tag-border);
  margin-bottom: 0.85rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
}

/* Gradient Text Helper */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
