:root {
  /* Default = Light */
  --text: #111;
  --muted: #444;
  --line: #888;
  --bg: #fff;

  --panel-bg: #fff;
  --panel-border: #d0d0d0;
  --shadow: 0 12px 35px rgba(0,0,0,0.08);

  --hover: rgba(0,0,0,0.05);
  --tab-hover: rgba(0,0,0,0.04);
  --tab-active: rgba(0,0,0,0.06);

  --link: #6d28d9;
  --link-hover: #5b21b6;
}

:root[data-theme="dark"] {
  --text: #f2f2f2;
  --muted: #b7b7b7;
  --line: #3a3a3a;
  --bg: #0b0b0c;

  --panel-bg: #0f0f12;
  --panel-border: #2b2b2f;
  --shadow: 0 12px 35px rgba(0,0,0,0.45);

  --hover: rgba(255,255,255,0.06);
  --tab-hover: rgba(255,255,255,0.05);
  --tab-active: rgba(255,255,255,0.08);

  --link: #c4b5fd;
  --link-hover: #ddd6fe;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background 0.15s ease, color 0.15s ease;
}

/* Link styling (purple) */
a{
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover{
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

/* Layout */
.wrap {
  max-width: 860px;
  margin: 70px auto;
  padding: 0 22px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

/* NAME */
.name {
  font-size: 54px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* PHOTO */
.profile-photo {
  display: block;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 14px auto 18px;
}

/* TEXT */
.greeting {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.tagline,
.focus {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.intro,
.outside {
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

/* DIVIDER */
.long-divider {
  border: none;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 18px 0 22px;
}

/* Decode stability */
#decode-focus,
#decode-intro,
#decode-outside {
  display: block;
}

/* Prevent layout shift while decoding */
.focus { min-height: 4.8em; }
.intro { min-height: 3.2em; }
.outside { min-height: 3.2em; }

.word-glyph {
  opacity: 0.6;
  letter-spacing: 0.06em;
}

/* FOOTER */
.footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.footer-icons a {
  width: 28px;
  height: 28px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
  border-bottom: 0;
}

.footer-icons a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-icons svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-icons svg.icon-threads {
  transform: scale(0.92);
}

.footer-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-meta a:hover {
  border-bottom-color: var(--muted);
}

.footer-meta .dot {
  padding: 0 8px;
  opacity: 0.6;
}

/* TOP RIGHT NAV */
.top-nav {
  position: fixed;
  top: 22px;
  right: 26px;
  display: flex;
  gap: 18px;
  z-index: 1000;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* MENU PANEL */
.menu-panel {
  position: absolute;
  top: 36px;
  right: 0;
  width: 300px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.tab {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  background: var(--tab-hover);
  color: var(--text);
}

.tab.is-active {
  background: var(--tab-active);
  color: var(--text);
  font-weight: 600;
}

.menu-content {
  padding: 4px 6px 8px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: grid;
  gap: 6px;
}

.menu-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 0;
}

.menu-item:hover {
  background: var(--hover);
}

/* Section titles inside Projects */
.menu-section-title{
  margin-top: 8px;
  padding: 8px 10px 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.menu-section-title:first-child{
  margin-top: 0;
  border-top: 0;
  padding-top: 6px;
}

/* THEME PANEL */
.theme-panel {
  position: absolute;
  top: 36px;
  right: 40px;
  width: 190px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.theme-item {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text);
  font-size: 14px;
  text-align: left;

  transition: background 0.15s ease;
}

.theme-item:hover {
  background: var(--hover);
}

.theme-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-item.is-active {
  font-weight: 600;
}

/* EDUCATION */
.edu-list{
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.edu-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-degree{
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.edu-meta{
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}

