/* ====== VS CODE INSPIRED THEME ====== */
:root {
  --bg: #f3f3f3;
  --editor: #ffffff;
  --sidebar: #f7f7f7;
  --activitybar: #2f2f2f;
  --titlebar: #e6e6e6;
  --tabbar: #efefef;
  --tab-active: #ffffff;
  --panel: #ffffff;
  --border: #d0d0d0;
  --text: #1e1e1e;
  --muted: #6b6b6b;
  --accent: #007acc;
  --accent-2: #4fc1ff;
  --shadow: rgba(0, 0, 0, 0.08);
  --ring: rgba(0, 122, 204, 0.35);
  --close-filter: invert(0);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1e1e1e;
    --editor: #1e1e1e;
    --sidebar: #252526;
    --activitybar: #333333;
    --titlebar: #2c2c2c;
    --tabbar: #2d2d2d;
    --tab-active: #1e1e1e;
    --panel: #252526;
    --border: #3c3c3c;
    --text: #d4d4d4;
    --muted: #9da3aa;
    --accent: #3794ff;
    --accent-2: #4fc1ff;
    --shadow: rgba(0, 0, 0, 0.4);
    --ring: rgba(55, 148, 255, 0.35);
    --close-filter: invert(1);
  }
}

[data-theme="dark"] {
  --bg: #1e1e1e;
  --editor: #1e1e1e;
  --sidebar: #252526;
  --activitybar: #333333;
  --titlebar: #2c2c2c;
  --tabbar: #2d2d2d;
  --tab-active: #1e1e1e;
  --panel: #252526;
  --border: #3c3c3c;
  --text: #d4d4d4;
  --muted: #9da3aa;
  --accent: #3794ff;
  --accent-2: #4fc1ff;
  --shadow: rgba(0, 0, 0, 0.4);
  --ring: rgba(55, 148, 255, 0.35);
  --close-filter: invert(1);
}

html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: .2px;
}

.code-ish {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .35rem;
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ====== VS CODE SHELL ====== */
.vscode-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.titlebar {
  height: 44px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  font-size: .85rem;
  gap: 1rem;
}
.titlebar-left, .titlebar-right {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.titlebar-center {
  opacity: .65;
  font-size: .8rem;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.app-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.app-title .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 .2rem color-mix(in oklab, var(--accent-2), transparent 70%);
}

.workbench {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 52px 230px 1fr;
}

.activitybar {
  background: var(--activitybar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 0;
  gap: .4rem;
}
.activity-btn {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  border: 1px solid transparent;
  background: transparent;
  color: #d4d4d4;
  display: grid;
  place-items: center;
}
.activity-btn.active, .activity-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: .75rem;
  font-size: .85rem;
  overflow: auto;
}
.sidebar-header {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: .75rem;
}
.sidebar-group { margin-bottom: 1rem; }
.sidebar-title {
  font-weight: 600;
  margin-bottom: .5rem;
}
.sidebar-list {
  display: grid;
  gap: .35rem;
}
.sidebar-list a {
  color: var(--text);
  padding: .35rem .4rem;
  border-radius: .35rem;
}
.sidebar-list a:hover {
  background: color-mix(in oklab, var(--accent), transparent 85%);
  color: var(--text);
}
.sidebar-meta {
  font-size: .8rem;
  color: var(--muted);
}

.editor {
  background: var(--editor);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tabs {
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--tabbar);
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: .4rem .9rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
}
.tab.active {
  background: var(--tab-active);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}
.editor-content {
  padding: 1.5rem 0 2.5rem;
  overflow: auto;
}

.statusbar {
  height: 26px;
  background: var(--activitybar);
  color: #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  font-size: .75rem;
}
.status-pill {
  padding: .15rem .5rem;
  border-radius: .25rem;
  background: rgba(255, 255, 255, 0.08);
  margin-right: .35rem;
}
.status-right .status-pill:last-child { margin-right: 0; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: .35rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.window-controls {
  display: inline-flex;
  gap: .4rem;
}
.win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--muted), transparent 40%);
}

/* ====== CONTENT STYLES ====== */
.container { max-width: 1100px; }

.link-light { color: var(--text) !important; }
.link-light:hover { color: var(--accent); }
.text-muted-80 { color: var(--muted) !important; }
.accent { color: var(--accent) !important; }

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--border); }
.profile-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .6rem;
  box-shadow: 0 12px 30px var(--shadow);
  overflow: hidden;
}
.profile-img { border-radius: .5rem; width:100%; aspect-ratio: 4/5; object-fit: cover; }
.social-link { color: var(--muted); transition: color .2s ease; }
.social-link:hover { color: var(--accent); }

.hello-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: .4rem;
  font-size: .85rem;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hello-pill .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 .2rem color-mix(in oklab, var(--accent-2), transparent 70%);
}

.display-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.leadline { font-size: clamp(1rem, 2.1vw, 1.25rem); }
.leadline #caret {
  display: inline-block;
  margin-left: .15rem;
  animation: blink 1s steps(2, start) infinite;
}
.leadline #typed { color: var(--accent-2); }

.info-row i { margin-right: .35rem; color: var(--accent); }

.cta-row .btn { border-radius: .4rem; padding: .65rem 1.2rem; }

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
  padding-left: 1.2rem;
}
.section-title::before {
  content: '>'; 
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.section-title .bar { display: none; }

.service-card, .project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover, .project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 35px var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in oklab, var(--accent), transparent 85%);
  border: 1px solid var(--border);
  border-radius: .6rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.progress { height: 8px; background: color-mix(in oklab, var(--border), transparent 20%); border-radius: 4px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.5s ease; }

.project-card img { border-radius: .6rem; height: 200px; object-fit: cover; border: 1px solid var(--border); }

.contact-form .form-control {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}
.contact-form .form-control::placeholder {
  color: color-mix(in oklab, var(--muted), transparent 25%);
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem var(--ring);
}

.btn-accent { background: var(--accent); color:#fff; border:0; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-outline-accent { border:1px solid var(--accent); color:var(--accent); }
.btn-outline-accent:hover { background:var(--accent); color:#fff; }

.menu-panel {
  background: var(--sidebar);
  color: var(--text);
  border-left: 1px solid var(--border);
}
.menu-panel .offcanvas-header { border-bottom: 1px solid var(--border); }
.menu-panel .offcanvas-body { color: var(--text); }
.menu-panel .btn-close { filter: var(--close-filter); }

.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

section { position: relative; scroll-margin-top: 5rem; }

@keyframes blink { to { opacity: 0; } }

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .workbench { grid-template-columns: 52px 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .titlebar-center { display: none; }
  .activitybar { display: none; }
  .workbench { grid-template-columns: 1fr; }
  .editor-content { padding-top: 1rem; }
  .project-card .btn { width: 100%; margin: .25rem 0 0; }
  .info-row { row-gap: .5rem; }
}

@media (max-width: 576px) {
  .info-row { flex-direction: column; align-items: flex-start; }
  .service-card, .project-card { padding: 1rem; }
  .titlebar { padding: 0 .5rem; }
  .status-right { display: none; }
}
