:root {
  --bg:#0f172a;
  --card:#1e293b;
  --line:#334155;
  --fg:#f8fafc;
  --muted:#94a3b8;
  --brand:#38bdf8;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* GLOBAL */
body {
  font-family: system-ui, "Segoe UI", Inter, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -10%, #10203a 0%, #0b1324 60%, #0f172a 100%);
  color: var(--fg);
  line-height: 1.6;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FIXED WIDTH FOR ALL SCREENS */
body > * {
  max-width: 500px;     /* <— fixed center layout */
  width: 100%;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 0 30px;
  position: relative;
}
.glow-line {
  height: 2px;
  width: 90%;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  filter: drop-shadow(0 0 12px var(--brand));
  opacity: .8;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand);
  box-shadow: 0 0 20px rgba(56,189,248,.45), 0 0 60px rgba(56,189,248,.18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(56,189,248,.6), 0 0 80px rgba(56,189,248,.22);
}

/* TYPING TEXT */
.typing-wrap {
  margin: 16px 0 6px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* prevent wrapping on small screens */
  align-items: baseline;
  justify-content: center;
  overflow: hidden;
}
.hello { color: var(--muted); white-space: nowrap; }
.name { font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.typing { color: var(--brand); min-height: 1em; white-space: nowrap; }
.cursor { color: var(--brand); opacity: .9; }
.cursor.off { opacity: .25; }

/* LINKS */
.links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.links a {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: .25s;
}
.links a:hover {
  background: var(--brand);
  color: #0f172a;
  box-shadow: 0 0 14px rgba(56,189,248,.5);
}

/* X (Twitter) ICON */
.x-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.x-icon svg {
  width: 16px;
  height: 16px;
}

/* SECTIONS */
section {
  width: 100%;
  text-align: left;
  margin-bottom: 46px;
}
h2 {
  color: var(--brand);
  border-bottom: 2px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
p {
  color: var(--muted);
  margin: 8px 0;
}

/* PROJECTS */
.projects {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.project:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 6px 24px rgba(2,8,23,.65), inset 0 0 0 1px rgba(56,189,248,.12);
}
.project h3 { margin: 0 0 6px; }

/* FOOTER */
footer {
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #162036;
  padding: 24px 0;
  margin-top: 42px;
}

/* DISABLE RESPONSIVE BEHAVIOR */
@media (max-width: 760px) {
  html, body {
    zoom: 0.95; /* just slightly scale on mobile but keep layout same */
  }
}