/* Base theme */
:root {
  --bg: #0b0b0f;
  --bg-soft: #121219;
  --text: #ececf3;
  --muted: #a3a3b2;
  --accent: #7c5cff;
  --card: #14141b;
  --border: #2a2a39;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

:root.light {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --text: #111118;
  --muted: #5a5a6b;
  --accent: #5b34ff;
  --card: #ffffff;
  --border: #e7e7f0;
  --shadow: 0 12px 28px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 12px 0; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700; font-size:18px; }
.brand-dot { width:12px; height:12px; border-radius:50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
.brand-text { letter-spacing: 0.5px; text-transform: lowercase; }

.nav-toggle { display:none; background:none; border:1px solid var(--border); color:var(--text); padding:6px 10px; border-radius:10px; }
.nav-list { list-style:none; display:flex; gap:18px; margin:0; padding:0; align-items: center; }
.nav-list a { text-decoration:none; color:var(--muted); padding:8px 10px; border-radius:10px; }
.nav-list a:hover, .nav-list a:focus { color:var(--text); background: var(--bg-soft); }
.theme-toggle { background:none; border:1px solid var(--border); color:var(--text); border-radius:10px; padding:6px 10px; cursor:pointer; }

@media (max-width: 720px) {
  .nav-toggle { display:block; }
  .nav-list { display:none; position:absolute; right:16px; top:54px; background:var(--bg); border:1px solid var(--border); padding:12px; border-radius:14px; box-shadow: var(--shadow); }
  .nav-list.show { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
}

/* Utilities */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
h1,h2,h3 { line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 28px); letter-spacing: .3px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; color: var(--muted); }
a { color: var(--text); }
.btn {
  display:inline-block; padding:12px 16px; border-radius:12px;
  background: var(--text); color: var(--bg); text-decoration:none; font-weight:700;
  border: 1px solid var(--border);
}
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }

.badges { display:flex; gap:8px; flex-wrap:wrap; margin-top: 8px; }
.badge { background: var(--bg-soft); border:1px solid var(--border); padding:6px 10px; border-radius:999px; color:var(--muted); font-size:12px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow);
}
.facts { margin:0; padding-left: 18px; }

.tools-vertical { display:flex; flex-direction:column; gap:12px; }
.tool-category { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tool-category-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 0; white-space: nowrap;
}
.tool-tags { display:flex; flex-wrap:wrap; gap:6px; }
.tool-tag {
  display:inline-block; font-size:12px; padding:4px 10px; border:1px solid var(--border);
  border-radius:6px; color:var(--text); background: var(--bg-soft);
  transition: all 0.15s ease;
}
.tool-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.grid-2 { display:grid; grid-template-columns: 1.2fr .8fr; gap:24px; }
@media (max-width: 900px){ .grid-2 { grid-template-columns: 1fr; } }

.tools-vertical { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

/* Hero */
.hero { position: relative; padding: 80px 0 64px; }
.hero-content {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.hero-image {
  flex-shrink: 0;
}
.hero-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.hero-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-title {
  margin-bottom: 16px;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--accent), #00d4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 40px color-mix(in oklab, var(--accent) 30%, transparent);
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), #00d4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 40px color-mix(in oklab, var(--accent) 30%, transparent);
}
.hero-details {
  margin: 20px 0;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.6;
}
.hero-details p {
  margin-bottom: 12px;
  color: var(--muted);
}
.hero-details strong {
  color: var(--text);
  font-weight: 600;
}
.hero-list {
  margin: 8px 0 16px 20px;
  padding-left: 0;
  list-style: none;
}
.hero-list li {
  margin-bottom: 8px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.hero-subtitle { 
  font-size: clamp(16px, 2.4vw, 18px); 
  max-width: 100%;
  margin-top: 0;
}
.hero-cta { 
  display:flex; 
  gap: 12px; 
  margin-top: 16px;
}
.hero-gradient {
  position:absolute; inset: -20% -10% auto -10%; height: 320px;
  background: radial-gradient(600px 200px at 20% 30%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 60%),
              radial-gradient(500px 220px at 70% 30%, color-mix(in oklab, #00d4ff 30%, transparent), transparent 60%);
  filter: blur(40px); opacity:.45; pointer-events:none;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text-section {
    align-items: center;
  }
  .hero-image img {
    max-width: 300px;
  }
}

/* Timeline */
.timeline { display:grid; gap:12px; }
.timecard {
  display:grid; grid-template-columns: 120px 1fr; gap:16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
}
.timecard small { color: var(--muted); }
.timecard h3 { margin-bottom: 6px; }
.timecard .pill {
  display:inline-block;
  font-size:12px;
  padding:4px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color: var(--muted);
  background: transparent;
  transition: all 0.15s ease;
}
.timecard .pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 720px){
  .timecard { grid-template-columns: 1fr; }
}

/* Projects */
.project-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
@media (max-width: 1000px){ .project-grid { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .project-grid { grid-template-columns: 1fr;} }

.project {
  position:relative; overflow:hidden; border-radius:16px;
  border:1px solid var(--border); background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.project:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project .thumb { aspect-ratio: 16/10; background: var(--bg-soft); display:block; width:100%; object-fit:cover; }
.project .inner { padding: 12px 12px 16px; }
.project a {
  display: block;
  color: inherit;
  text-decoration: none;         /* remove underline */
}

.project a:hover .title,
.project a:focus .title {
  text-decoration: underline;    /* optional: underline just the title on hover */
}

.project .title {
  font-weight: 700;
  font-size: 18px;               /* bump up title size */
  line-height: 1.3;
}
.project .meta {
  color: var(--muted);
  font-size: 13px;
}
.project p {
  font-size: 18px;               /* bump body text a bit */
  line-height: 1.5;
}

.more-note { margin-top: 10px; color: var(--muted); }

/* Posts */
.post { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.post-title { font-weight:700; text-decoration:none; }
.post-meta { color: var(--muted); font-size: 13px; }

/* Contact */
.contact-list { list-style:none; display:flex; gap:14px; padding:0; }
.contact-list a { color: var(--muted); text-decoration:none; }
.contact-list a:hover { color: var(--text); }

/* Footer */
.site-footer { padding: 36px 0 64px; border-top: 1px solid var(--border); color: var(--muted); }

/* Accessibility */
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--text); color: var(--bg); padding: 8px; border-radius: 8px; }
