:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-strong: #edf2ff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.12);
  --accent: #ec4899;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

html.dark {
  color-scheme: dark;
  --bg: #050816;
  --surface: #0f172a;
  --surface-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --primary: #818cf8;
  --primary-soft: rgba(129, 140, 248, 0.14);
  --accent: #f472b6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.15), transparent 28%), var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  transition: all 0.25s ease;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1340px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba( var(--bg-rgb, 246, 247, 251), 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

html.dark .site-header {
  background: rgba(15, 23, 42, 0.94);
}

.site-header .brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.site-nav a.nav-active {
  color: var(--primary);
  font-weight: 700;
}

.page-link {
  white-space: nowrap;
}

.theme-toggle {
  width: 50px;
  height: 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  background: #cbd5e1;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

html.dark .theme-toggle {
  background: #1e293b;
}

.theme-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  flex-shrink: 0;
}

html.dark .theme-icon {
  transform: translateX(24px);
}

.theme-icon--light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46e5'%3E%3Cpath d='M12 3.75a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V4.5A.75.75 0 0 1 12 3.75Zm0 14.25a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm8.25-4.5a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5a.75.75 0 0 1 .75.75Zm-14.25 0a.75.75 0 0 1-.75.75H4.5a.75.75 0 0 1 0-1.5h1.5a.75.75 0 0 1 .75.75ZM18.03 6.97a.75.75 0 0 1 0 1.06l-1.06 1.06a.75.75 0 0 1-1.06-1.06l1.06-1.06a.75.75 0 0 1 1.06 0ZM7.03 16.97a.75.75 0 0 1 0 1.06L5.97 19.09a.75.75 0 1 1-1.06-1.06l1.06-1.06a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E");
}

.theme-icon--dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46e5'%3E%3Cpath d='M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.701-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162z'/%3E%3C/svg%3E");
}

.about-list {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.about-list li {
  margin-bottom: 0.65rem;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  display: block;
}

.section {
  padding: 4rem 2.5rem;
  max-width: 100%;
}

.section-alt {
  background: var(--surface);
}

.section-bg {
  background: var(--surface);
}

.section-header {
  max-width: 900px;
  margin: 0 0 2rem;
}

.section-tag {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.section-header h2,
.panel-card h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.05;
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.05;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding: 5rem 3rem;
  align-items: center;
  align-content: center;
  min-height: calc(100vh - 50px);
  position: relative;
  overflow: hidden;
}

.hero-panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  animation: panoramaReveal 1.8s ease-out 0.3s both;
}

.hero-panorama .pan-bg { opacity: 0.09; }

.dark .hero-panorama .pan-bg { opacity: 0.16; }

@keyframes panoramaReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--surface-strong);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.panel-card,
.skill-card,
.project-card,
.blog-card,
.link-card,
.resume-card,
.hire-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.panel-card.small,
.blog-card,
.link-card,
.resume-card {
  padding: 1.35rem;
}

.panel-grid,
.skills-grid,
.projects-grid,
.blog-grid,
.links-grid,
.resume-grid,
.hire-grid {
  display: grid;
  gap: 1.5rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(79, 70, 229, 0.15);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.timeline-item + .timeline-item {
  margin-top: -1rem;
}

.timeline-item:hover {
  z-index: 2;
}

.timeline-item.timeline-left {
  justify-items: end;
}

.timeline-item.timeline-right {
  justify-items: start;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-summary {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.timeline-card h3 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  line-height: 1;
}

.timeline-item.timeline-left .timeline-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: left;
}

.timeline-item.timeline-right .timeline-card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left;
}

.timeline-point {
  grid-column: 2;
  grid-row: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  align-self: center;
  justify-self: center;
  position: relative;
}

.timeline-item.timeline-left .timeline-point::before,
.timeline-item.timeline-right .timeline-point::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: calc(2rem + 13px);
  background: var(--primary);
  opacity: 0.3;
  border-radius: 2px;
}

.timeline-item.timeline-left .timeline-point::before {
  right: 100%;
}

.timeline-item.timeline-right .timeline-point::before {
  left: 100%;
}

.timeline-point::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
}

.timeline-point.timeline-point--start {
  border-color: var(--accent);
}

.timeline-point.timeline-point--start::after {
  content: '★';
  color: var(--accent);
}

.timeline-point.timeline-point--regular::after {
  content: '+';
}

.timeline-date {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
}

.timeline-company {
  color: var(--muted);
  margin: 0;
  font-size: 0.8rem;
  line-height: 1;
}


.link-card h3,
.resume-card h3 {
  margin: 0 0 0.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.14);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.project-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(236, 72, 153, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

.blog-title-link {
  text-decoration: none;
  color: inherit;
}

.blog-title-link h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.blog-title-link:hover h3 {
  color: var(--primary);
}

.blog-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.blog-read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}

.blog-read-link:hover {
  text-decoration: underline;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.blog-loading,
.blog-fallback {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.blog-fallback a {
  color: var(--primary);
  font-weight: 600;
}

.blog-grid,
.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-radar-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.radar-chart-container {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.skills-legend {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.skill-bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.skill-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-bar-track {
  height: 7px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-sublabel {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.soft-skills-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.soft-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.soft-chip {
  padding: 0.45rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.soft-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.links-grid,
.resume-grid,
.hire-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.read-more {
  align-self: center;
  color: var(--primary);
  font-weight: 700;
}

.hire-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.hire-list li {
  margin-bottom: 0.65rem;
}

.hire-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-grid + .btn {
  margin-top: 2rem;
}

.hire-card .btn:first-of-type {
  margin-top: 0.5rem;
}

.link-card:hover,
.link-card:focus {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  text-decoration: none;
  color: inherit;
}

.profile-stat + .profile-stat {
  border-left: 1px solid var(--border);
}

.profile-stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.profile-stat p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

a.profile-stat:hover span {
  opacity: 0.8;
}

.profile-building {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-building .panel-label {
  margin: 0 0 0.25rem;
}

.hero-open {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-open-headline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  margin: 0;
}

.hero-open-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-left: calc(8px + 0.6rem);
}

.hero-open-cta {
  margin: 0;
  font-size: 0.92rem;
  padding-left: calc(8px + 0.6rem);
}

.hero-open-cta a {
  color: var(--primary);
  font-weight: 600;
}

.hero-open-cta a:hover {
  text-decoration: underline;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
}

.hero-avatar {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.22);
}

.panel-card h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

/* "Currently building" compact text in panel card */
.panel-building {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Linked stat card */
a.stat-card {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

/* Hero entrance animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate .anim-item {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

.hero-copy .anim-item:nth-child(1) { animation-delay: 0.05s; }
.hero-copy .anim-item:nth-child(2) { animation-delay: 0.15s; }
.hero-copy .anim-item:nth-child(3) { animation-delay: 0.25s; }
.hero-copy .anim-item:nth-child(4) { animation-delay: 0.35s; }
.hero-copy .anim-item:nth-child(5) { animation-delay: 0.45s; }

.hero-panel .anim-item:nth-child(1) { animation-delay: 0.1s; }
.hero-panel .anim-item:nth-child(2) { animation-delay: 0.25s; }
.hero-panel .anim-item:nth-child(3) { animation-delay: 0.38s; }

/* Resume full-page layout */
body.resume-fullpage {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.resume-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-tagline {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
}

.footer-social a:hover,
.footer-social a:focus {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .section {
    padding: 3rem 2rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 5rem 2rem;
    min-height: unset;
  }

  .blog-grid,
  .projects-grid,
  .skills-grid,
  .links-grid,
  .resume-grid,
  .hire-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills-radar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.25rem;
    min-height: unset;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .panel-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid,
  .projects-grid,
  .skills-grid,
  .links-grid,
  .resume-grid,
  .hire-grid {
    grid-template-columns: 1fr;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .radar-chart-container {
    display: none;
  }
}

/* Responsive adjustments for the timeline to prevent oversized blocks and misaligned points */
@media (max-width: 880px) {
  .timeline {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .timeline::before {
    left: 32px;
    transform: none;
    width: 3px;
  }

  .timeline-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    align-items: start;
  }

  .timeline-item.timeline-left,
  .timeline-item.timeline-right {
    justify-items: start;
  }

  .timeline-item.timeline-left .timeline-card,
  .timeline-item.timeline-right .timeline-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .timeline-item.timeline-left .timeline-point,
  .timeline-item.timeline-right .timeline-point {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .timeline-item.timeline-left .timeline-point::before,
  .timeline-item.timeline-right .timeline-point::before {
    display: none;
  }
}
