:root {
  --bg: #eef3fb;
  --card: #fdfefe;
  --card-soft: #f5f8ff;
  --text: #101828;
  --muted: #4b5565;
  --line: #dbe4f2;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --success: #16a34a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.app-wrap {
  min-height: 100dvh;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: var(--shadow);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.hero-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  padding: 1.85rem 2rem;
  align-items: center;
}

.hero-greeting {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
}

.hero-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 3.2vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  color: var(--blue);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 580px;
  margin: 0.65rem 0;
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #475467;
  font-size: 0.9rem;
}

.meta-dot {
  color: #98a2b3;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  transition: 0.2s ease;
}

.action-btn:hover {
  border-color: #c5d4ef;
  transform: translateY(-1px);
}

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

.action-btn.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

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

.photo-ring {
  width: min(280px, 72%);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 16px;
  border: none;
}

.section-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.4rem 0 0.8rem;
}

.tab-btn {
  min-height: 46px;
  min-width: 145px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.panel {
  margin-top: 1rem;
  background: transparent;
  display: none;
  opacity: 0;
  transform: translateX(36px);
}

.panel.active {
  display: block;
  animation: slideFromRight 320ms ease-out forwards;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0.35rem 0 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.06rem;
}

.experience-card,
.simple-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.7rem;
}

.work-stack {
  display: grid;
  gap: 1rem;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.experience-head h3,
.simple-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.org-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.logo-slot {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #cfd9ee;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #eef3ff;
}

.logo-slot.wide {
  width: 78px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.simple-card .org-head {
  margin-bottom: 0.55rem;
}

.experience-head .org-head {
  flex: 1;
  min-width: 240px;
}

.role {
  margin: 0.25rem 0 0;
  color: var(--blue);
  font-weight: 600;
}

.job-location {
  margin: 0.55rem 0 0.2rem;
  color: #667085;
  font-size: 0.95rem;
}

.company-link {
  margin: 0.2rem 0 0.35rem;
}

.company-link a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.company-link a:hover {
  text-decoration: underline;
}

.experience-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #667085;
  font-weight: 600;
}

.badge {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.15;
}

.badge-parttime {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-fulltime {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-internship {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.dot-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: #344054;
}

.dot-list li {
  margin: 0.4rem 0;
}

.dot-list.compact li {
  margin: 0.25rem 0;
}

.skill-pills {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pills span {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.year {
  margin: 0;
  color: #667085;
  font-weight: 600;
}

.ach-meta {
  margin: 0.55rem 0 0.15rem;
  display: grid;
  gap: 0.2rem;
}

.ach-meta p {
  margin: 0;
  color: #475467;
  font-size: 0.93rem;
  line-height: 1.4;
}

.achievement-card .dot-list {
  margin-top: 0.55rem;
}

.ach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.ach-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.ach-title-wrap h3 {
  margin: 0;
  font-size: 1.15rem;
}

.ach-orgloc {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #667085;
}

.ach-date {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eef4ff;
  border: 1px solid #d4e0f6;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

.ach-role {
  margin: 0.6rem 0 0.1rem;
  color: #334155;
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1rem;
}

.contact-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #344054;
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fff;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-links-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.link-list {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow: visible;
}

.link-list a {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  display: inline-flex;
  align-items: center;
  padding: 0 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.83rem;
  white-space: nowrap;
}

.availability-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.availability-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.status {
  margin: 0.55rem 0 0;
  font-weight: 700;
}

.footer {
  text-align: center;
  color: #667085;
  padding: 0.35rem 1rem 0.2rem;
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.45rem 1rem;
  }

  .hero-meta,
  .hero-cta {
    justify-content: center;
  }

  .photo-ring {
    width: min(220px, 58vw);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tab-btn {
    min-width: 0;
    flex: 1;
  }

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

  .edu-grid,
  .ach-grid {
    grid-template-columns: 1fr;
  }

  .experience-head h3,
  .simple-card h3 {
    font-size: 1.25rem;
  }

  .logo-slot {
    width: 46px;
    height: 46px;
    font-size: 0.66rem;
  }

  .logo-slot.wide {
    width: 68px;
  }

  .ach-head {
    flex-direction: column;
  }

  .ach-date {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .topbar,
  .container {
    padding-left: max(0.8rem, env(safe-area-inset-left));
    padding-right: max(0.8rem, env(safe-area-inset-right));
  }

  .hero-card {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem 0.9rem;
  }

  .hero-right {
    justify-content: flex-end;
  }

  .hero-left {
    min-width: 0;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-meta {
    font-size: 0.82rem;
    justify-content: flex-start;
    flex-direction: row;
    gap: 0.35rem;
  }

  .photo-ring {
    width: min(95px, 28vw);
    padding: 4px;
  }

  .meta-dot {
    display: inline;
  }

  .hero-cta {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .tab-btn {
    min-height: 36px;
    min-width: 0;
    width: 100%;
    padding: 0.35rem 0.2rem;
    font-size: 0.74rem;
    letter-spacing: -0.01em;
    flex: none;
  }

  .action-btn {
    min-height: 34px;
    font-size: 0.84rem;
    padding: 0.42rem 0.72rem;
  }

  .section-note {
    font-size: 0.86rem;
    line-height: 1.3;
    margin-bottom: 0.95rem;
  }

  .experience-card,
  .simple-card,
  .availability-card {
    padding: 1.2rem 1rem;
  }
}
