/* Remove underline on hover for all links */
a:hover {
  text-decoration: none;
}
/* Contact link chips */
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.link-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
/* Project gallery (screenshots) */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
:root {
  color-scheme: light;
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7dd3fc;
  --accent-2: #a7f3d0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1060px;
  --header-offset: 36px; /* offset for fixed header */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  background: radial-gradient(1200px 800px at 20% 50%, rgba(125, 211, 252, 0.22), transparent 55%),
    radial-gradient(1200px 800px at 90% 50%, rgba(167, 243, 208, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  /*background-repeat: no-repeat;*/
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(100%, calc(var(--container) + 48px));
  padding: 0 24px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.35), rgba(167, 243, 208, 0.25));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}

.nav a.active {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(167, 243, 208, 0.2));
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.section {
  padding: 56px 0;
  scroll-margin-top: var(--header-offset);
}

.hero {
  padding-top: 48px;
}

/* Tighten spacing specifically between Intro and Work sections */
#intro {
  padding-top: 95px;
  padding-bottom: 55px;
}
  /*
#work {
padding-top: 80px;
}

#hobbies {
  padding-top: 80px;  
}

#project {
  padding-top: 0px;
}
*/
#contact {
  padding-top: 5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Work section: two-column grid — main details left, side cards right */
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 18px;
  align-items: start;
}

/* Current role spans left column, Strengths & Tech stack on right */
.work-grid .card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.work-grid .card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.work-grid .card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Improve long list readability in work cards */
.work-grid .list li {
  margin: 6px 0;
}

/* Justify textual content within Work section */
#work .card p {
  text-align: justify;
}
#work .card .list,
#work .card .list li {
  text-align: justify;
}

.section-head {
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}

h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

h3 {
  margin: 0;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.profile-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.04);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(167, 243, 208, 0.2));
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  border-color: var(--panel-strong);
}

.button-secondary {
  background: transparent;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.meta-k {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.project-links a {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.project-links a:hover {
  border-color: var(--panel-strong);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.6);
}

.footer-inner {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .card:nth-child(1) { grid-row: auto; grid-column: auto; }
  .work-grid .card:nth-child(2) { grid-row: auto; grid-column: auto; }
  .work-grid .card:nth-child(3) { grid-row: auto; grid-column: auto; }


.work-previous {
  margin-top: 18px;
}
  .brand-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html {
  scroll-behavior: smooth;
}
