:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --text: #111827;
  --muted: #4b5563;
  --border: #dbe2ea;
  --accent: #0f4c81;
  --accent-soft: #e9f2fb;
  --shadow: 0 14px 36px rgba(12, 32, 58, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: radial-gradient(circle at 12% 12%, #ffffff 0%, #eef3f8 40%, #f3f5f9 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 99;
  background: #0f4c81;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.page-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 1120px;
}

#experience,
#work,
#skills,
#architecture,
#projects,
#education,
#contact {
  scroll-margin-top: 5rem;
}

.top-nav {
  position: sticky;
  top: 0.6rem;
  z-index: 10;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.top-nav a {
  color: #24405d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.top-nav a:hover {
  color: #0f4c81;
  text-decoration: underline;
}

.hero-section {
  position: relative;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#iam {
  margin: 0;
  font-size: 1.7rem;
  font-family: "Source Serif 4", serif;
  color: #1f2937;
}

#name {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#college {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-primary-cta,
.btn-secondary-cta {
  border-radius: 10px;
  padding: 0.52rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.btn-primary-cta {
  background: #0f4c81;
  color: #fff;
  border: 1px solid #0f4c81;
}

.btn-primary-cta:hover {
  color: #fff;
  background: #0e436f;
}

.btn-secondary-cta {
  background: #edf4fb;
  color: #194066;
  border: 1px solid #cad9ea;
}

.btn-secondary-cta:hover {
  color: #123657;
  background: #e4eef9;
}

.mydetails {
  margin: auto;
}

.image-wrap {
  text-align: center;
}

.image {
  width: min(350px, 100%);
  height: auto;
  border-radius: 28px;
  border: 6px solid #d8e5f4;
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.2);
}

.row-divider {
  height: 1px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, #d5dde6, transparent);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.metric-card {
  padding: 0.9rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #dbe6f4;
  background: #f5f9ff;
  text-align: center;
}

.metric-value {
  margin: 0;
  color: #0f4c81;
  font-size: 1.3rem;
  font-weight: 800;
}

.metric-label {
  margin: 0.1rem 0 0;
  color: #4b5f77;
  font-size: 0.82rem;
  font-weight: 600;
}

.who-am-i {
  margin-bottom: 1rem;
}

.about-card-gradient {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  background: linear-gradient(125deg, #f8fbff 0%, #f0f5fb 100%);
  border: 1px solid #e2e9f2;
}

.about-card-gradient p {
  margin: 0;
  color: #243041;
  font-size: 1.03rem;
}

.icon-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.icon-item {
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #33465e;
  font-size: 0.76rem;
  font-weight: 600;
}

.icon-img {
  width: 34px;
  height: 34px;
  padding: 0.32rem;
  border-radius: 8px;
  border: 1px solid #e0e7f1;
  background: #fff;
}

.skills-section,
.experience-section,
.architecture-section,
.side-project-section,
.education-section {
  margin-top: 2rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-chip {
  border: 1px solid #d6e2ef;
  background: #f3f8fd;
  color: #1b3b5b;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.experience-item {
  padding: 1.2rem 1.3rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #f8fbff;
}

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

.experience-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.experience-header {
  margin-bottom: 0.65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.8rem;
  row-gap: 0.1rem;
  align-items: baseline;
}

.experience-company,
.experience-date {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.experience-company {
  grid-column: 1 / 2;
}

.experience-date {
  grid-column: 2 / 3;
  white-space: nowrap;
}

.experience-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #22344a;
}

.experience-list li + li {
  margin-top: 0.35rem;
}

.work-section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
}

.work-item {
  padding: 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.work-item + .work-item {
  margin-top: 1.25rem;
}

.work-heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.work-description {
  margin: 0;
  color: #243142;
  font-size: 1rem;
}

.work-tech-list {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #edf3fa;
  color: #1f2f43;
  font-size: 0.95rem;
}

.work-tech-list a {
  color: #0f4c81;
  font-weight: 600;
}

.proof-link {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #42566f;
}

.proof-link a {
  color: #0f4c81;
  font-weight: 600;
}

.architecture-list {
  margin: 0;
  padding: 1.2rem 1.3rem 1.2rem 2.2rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #f8fbff;
  color: #22344a;
}

.architecture-list li + li {
  margin-top: 0.45rem;
}

.aboutme-section {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.aboutme-label {
  display: flex;
  align-items: center;
}

.aboutme-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #52637a;
}

.aboutme-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid #dde5ef;
  background: linear-gradient(120deg, #ffffff 0%, #f7fbff 100%);
  padding: 1.4rem 1.5rem;
}

.aboutme-info {
  margin-bottom: 0.7rem;
  color: #223146;
}

.info-name {
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.aboutme-links p {
  margin: 0.4rem 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #33455e;
}

.aboutme-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.aboutme-links a:hover {
  text-decoration: underline;
}

.aboutme-links i,
.aboutme-links .material-symbols-outlined {
  color: var(--accent);
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .page-shell {
    padding: 1.6rem;
  }

  .mydetails {
    margin-bottom: 1.25rem;
  }

  .aboutme-section {
    flex-direction: column;
  }

  .aboutme-label span {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.15em;
  }

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

  .experience-header {
    grid-template-columns: 1fr;
  }

  .experience-date {
    grid-column: 1 / 2;
  }
}

@media (max-width: 576px) {
  body {
    padding: 0.6rem;
  }

  .page-shell {
    padding: 1rem;
    border-radius: 14px;
  }

  .work-item {
    padding: 1rem;
  }

  #iam {
    font-size: 1.35rem;
  }

  #college {
    font-size: 1rem;
  }

  .top-nav {
    top: 0.3rem;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
  }

  .top-nav a {
    font-size: 0.82rem;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  #experience,
  #work,
  #skills,
  #architecture,
  #projects,
  #education,
  #contact {
    scroll-margin-top: 4.25rem;
  }
}
