/* ═══════════════════════════════════════════════════
   KALEB SABO PORTFOLIO — DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:            #07090f;
  --surface:       #0d1117;
  --card:          #161b27;
  --card-hover:    #1c2333;
  --border:        rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.3);
  --accent:        #38bdf8;
  --accent-dim:    rgba(56, 189, 248, 0.12);
  --accent-2:      #818cf8;
  --accent-2-dim:  rgba(129, 140, 248, 0.12);
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;
  --green:         #22c55e;
  --navbar-h:      64px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.6);
  --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--navbar-h);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7dd3fc; }

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

strong { color: var(--text); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.navbar a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}

.navbar a:hover,
.navbar a.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

/* ── Page Container ── */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 88px 24px 72px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(135deg, #f1f5f9 0%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #07090f;
}

.btn-primary:hover {
  background: #7dd3fc;
  color: #07090f;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ── Section ── */
.section { margin-bottom: 64px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ── Grids ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ── Skill Tags ── */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Cert Items ── */
.cert-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cert-item:last-child { border-bottom: none; }

.cert-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface);
  padding: 4px;
}

.cert-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.cert-date {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.cert-link {
  font-size: 13px;
  font-weight: 500;
}

/* ── JS Button ── */
.javascript_button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.javascript_button:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* ── Page Header ── */
.page-header {
  text-align: center;
  padding: 56px 24px 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 220px;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-2-dim);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Specs Table ── */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specs-table td { color: var(--text-muted); }
.specs-table td:first-child { color: var(--text); font-weight: 500; }
.specs-table tr:last-child td { border-bottom: none; }

/* ── Media Placeholders ── */
.media-placeholder-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.media-box {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  transition: border-color var(--transition), color var(--transition);
}

.media-box:has(img) {
  border-style: solid;
  padding: 0;
}

.media-box img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.media-box span:first-child { font-size: 28px; }

.media-box:hover {
  border-color: var(--border-accent);
  color: var(--text-muted);
}

/* ── Embed ── */
.embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.embed-wrap iframe { display: block; width: 100%; }

/* ── Project Image ── */
.project-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

/* ── Styled List ── */
.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.styled-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.styled-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  line-height: 1.7;
}

/* ── Video ── */
.bg-video-wrap {
  max-width: 860px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.bg-video-wrap video {
  width: 100%;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3 { grid-column: span 1; }
  .page-container { padding: 32px 16px 64px; }
  .hero { padding: 56px 16px 48px; }
  .page-header { padding: 40px 16px 32px; margin-bottom: 32px; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .navbar { gap: 2px; padding: 0 10px; }
  .navbar a { font-size: 12px; padding: 6px 10px; }
  .hero h1 { font-size: 2rem; }
}
