/* ─────────────────────────────────────────
   Portfolio 2.0 — Jai Sharma
   ───────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:   #1e1e1e;
  --charcoal2:  #2b2b2b;
  --accent:     #b5913a;
  --accent-lt:  #d4a84b;
  --text:       #2c2c2c;
  --text-muted: #666;
  --bg:         #ffffff;
  --bg-alt:     #f8f7f4;
  --border:     #e4e0d8;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --trans:      0.25s ease;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Ensure tap targets are at least 44px tall on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav ul a   { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav-icons a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .header-mobile-socials a {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-resume  { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-primary, .btn-outline { min-height: 48px; }
  .contact-card { min-height: 56px; }
  .project-link { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-icons a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout helpers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 90px 0; }
/* Banding: About + Education + Contact = default (--bg); Experience + Projects = --bg-alt */
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--charcoal);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--trans);
}
.btn-primary:hover { background: var(--charcoal2); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--trans);
}
.btn-outline:hover { background: var(--charcoal); color: #fff; }

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--accent-lt); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
}

.nav ul a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: color var(--trans), background var(--trans);
  letter-spacing: 0.02em;
}
.nav ul a:hover,
.nav ul a.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-icons {
  display: flex;
  gap: 0.75rem;
}
.nav-icons a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  transition: color var(--trans);
  padding: 0.3rem;
}
.nav-icons a:hover { color: var(--accent-lt); }

.btn-resume {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-resume:hover { background: #fff; color: var(--charcoal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hidden on desktop — LinkedIn / Resume PDF / GitHub strip for phones */
.header-mobile-socials {
  display: none;
}

/* ═══════════════════════════════════
   ABOUT
═══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Square frame + overflow = LinkedIn-style tight headshot crop */
.about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight zoom + bias toward face; trims headroom and recenters vs. original framing */
  object-position: 44% 28%;
  transform: scale(1.14);
  transform-origin: 44% 30%;
}

.about-content h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.85rem;
}

.about-content h1 .accent { color: var(--accent); }

.about-bio {
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 620px;
}

.about-objective {
  margin: 1.35rem 0 1.2rem;
  width: 100%;
}
.about-objective h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}
.about-objective p {
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--charcoal2);
  max-width: 100%;
}

.about-strengths-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1.1rem;
  width: 100%;
  margin: 0.45rem 0 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.35rem;
}
.about-strengths-grid::-webkit-scrollbar {
  height: 8px;
}
.about-strengths-grid::-webkit-scrollbar-thumb {
  background: #d6d2ca;
  border-radius: 999px;
}
.about-strengths-grid::-webkit-scrollbar-track {
  background: transparent;
}
.about-strength-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 10.5rem;
  background: var(--bg-alt);
  border: 1px solid rgba(228, 224, 216, 0.45);
  border-radius: 20px;
  padding: 1.5rem 1.15rem;
  box-shadow: 0 6px 28px rgba(45, 42, 38, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.about-strength-card:hover {
  border-color: rgba(201, 162, 106, 0.45);
  box-shadow: 0 10px 36px rgba(45, 42, 38, 0.09);
  transform: translateY(-3px);
}
.about-strength-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid rgba(228, 224, 216, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.about-strength-icon i {
  color: var(--accent);
  font-size: 1.2rem;
}
.about-strength-card h4 {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0;
  max-width: 12.5rem;
}
.about-strength-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--charcoal2);
  margin: 0.6rem 0 0;
  max-width: 15.5rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 620px;
  margin-top: 1.5rem;
}
.about-actions .about-resume-btn {
  margin-top: 0;
  flex-shrink: 0;
}
.about-actions .about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.link-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--trans);
}
.link-icon:hover { color: var(--accent-lt); }
.link-icon i { font-size: 1rem; }


/* ═══════════════════════════════════
   EDUCATION
═══════════════════════════════════ */
.edu-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  margin-top: 2rem;
}

.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: stretch;
  min-height: 0;
}

.edu-row--reverse .edu-media {
  order: 2;
}
.edu-row--reverse .edu-info {
  order: 1;
}

.edu-media {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.edu-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  align-self: center;
}
.edu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.edu-row:hover .edu-img-wrap img {
  transform: scale(1.03);
}

.edu-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
  min-width: 0;
}
.edu-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.edu-sub {
  font-style: italic;
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}
.edu-degree {
  font-weight: 600;
  color: var(--charcoal2);
  margin-bottom: 0.2rem;
  line-height: 1.45;
}
.edu-degree-minor {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.45;
}
.edu-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.edu-courses {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  line-height: 1.6;
  max-width: 34rem;
}

/* ═══════════════════════════════════
   PROJECTS
═══════════════════════════════════ */
.projects-featured {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 4rem;
}

.project-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.project-card-featured--reverse { direction: rtl; }
.project-card-featured--reverse > * { direction: ltr; }

.project-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-img:hover img { transform: scale(1.03); }

.project-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.project-info h3 a { color: var(--charcoal); transition: color var(--trans); }
.project-info h3 a:hover { color: var(--accent); }

.project-info p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.project-tags span {
  background: var(--charcoal);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--trans);
}
.project-link:hover { color: var(--accent-lt); }

/* Secondary cards */
.projects-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card-sm {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--trans), box-shadow var(--trans);
}
.project-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card-sm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-card-sm-header > i {
  font-size: 1.5rem;
  color: var(--accent);
}
.project-card-sm-header a {
  font-size: 1.25rem;
  color: var(--charcoal);
  transition: color var(--trans);
}
.project-card-sm-header a:hover { color: var(--accent); }

.project-card-sm h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.project-card-sm p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-card-sm .project-tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
}

.github-cta { text-align: center; }

/* ═══════════════════════════════════
   EXPERIENCE
═══════════════════════════════════ */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border-left: 2px solid var(--border);
  padding-left: 2rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding-bottom: 3rem;
  position: relative;
}
.exp-meta {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid var(--border);
}
.exp-meta-sub {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  width: 100%;
}
.exp-meta-primary {
  flex: 1;
  min-width: 0;
}
.exp-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
}

.exp-company {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.2vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.2;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--accent);
  display: block;
  width: fit-content;
  max-width: 100%;
}
.exp-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 0.28rem;
  line-height: 1.35;
}
.exp-date {
  flex-shrink: 0;
  margin: 0;
  text-align: right;
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--charcoal2);
  line-height: 1.35;
  white-space: nowrap;
}
.exp-duration {
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.exp-duration::before {
  content: ' · ';
  color: var(--charcoal2);
  opacity: 0.55;
}
.exp-meta > .exp-location {
  margin: 0 0 0.65rem;
}
.exp-roles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.15rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--border);
}
.exp-role {
  position: relative;
  padding: 0.55rem 0 0.55rem 0.85rem;
}
.exp-role::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
  transform: translateX(-50%);
}
.exp-role .exp-meta-sub {
  gap: 0.75rem 1.25rem;
}
.exp-role .exp-title {
  margin-bottom: 0;
}
.exp-location {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.exp-location i { margin-right: 0.35rem; opacity: 0.88; }

.exp-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
.exp-block-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #7487aa;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.exp-contrib ul {
  list-style: disc;
  padding-left: 1.2rem;
}
.exp-contrib li {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}
.exp-contrib li::marker {
  color: #2f66e5;
}
.exp-gallery {
  grid-column: 1 / -1;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}
.exp-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.exp-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
  width: 118px;
  height: 88px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.exp-thumb:hover,
.exp-thumb:focus-visible {
  transform: translateY(-1px);
  border-color: #b7c3dc;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  outline: none;
}
.exp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OMR lifecycle columns (full width under Oceaneering entry; visible “Robotics @ OMR” title omitted per request) */
.exp-omr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.exp-item > .exp-omr-workflow {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--border);
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  text-align: left;
  position: relative;
}
.exp-omr-workflow > .exp-block-title {
  margin-bottom: 0.85rem;
}
.omr-role-columns.omr-role-accordion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  text-align: left;
}
@media (max-width: 960px) {
  .omr-role-columns.omr-role-accordion {
    grid-template-columns: 1fr;
  }
}
details.omr-role-col {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(228, 224, 216, 0.5);
  min-width: 0;
  overflow: hidden;
}
.omr-role-col--solution {
  background: linear-gradient(165deg, #e9f6ec 0%, #dff0e4 100%);
}
.omr-role-col--system {
  background: linear-gradient(165deg, #e8f1fa 0%, #dceaf6 100%);
}
.omr-role-col--project {
  background: linear-gradient(165deg, #fff8e6 0%, #fff2d6 100%);
}
summary.omr-role-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.65rem 2.35rem 0.7rem 0.85rem;
  margin: 0;
  border-radius: 18px 18px 0 0;
  list-style: none;
  cursor: default;
  user-select: none;
  pointer-events: none;
}
.omr-role-title {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1.25vw, 0.88rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}
.omr-role-subtitle {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.56rem, 0.88vw, 0.64rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.42rem;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  max-width: 13.5rem;
  opacity: 0.96;
}
.omr-role-subtitle--solution {
  color: rgba(255, 255, 255, 0.9);
}
.omr-role-subtitle--system {
  color: rgba(255, 255, 255, 0.9);
}
.omr-role-subtitle--project {
  color: rgba(255, 255, 255, 0.9);
}
summary.omr-role-col-head::-webkit-details-marker {
  display: none;
}
summary.omr-role-col-head::after {
  display: none;
}
summary.omr-role-col-head:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}
.omr-role-col--solution summary.omr-role-col-head {
  background: #2e7d4a;
}
.omr-role-col--system summary.omr-role-col-head {
  background: #2a6aa8;
}
.omr-role-col--project summary.omr-role-col-head {
  background: #b8860b;
}
.omr-role-panel {
  padding: 0.5rem 1.05rem 1.15rem 1.15rem;
}
.omr-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.omr-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--charcoal2);
}
.omr-role-list li i {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  margin-top: 0.15rem;
  color: var(--charcoal);
  opacity: 0.85;
}
.omr-role-col--solution .omr-role-list li i { color: #1b5e32; }
.omr-role-col--system .omr-role-list li i { color: #1565a8; }
.omr-role-col--project .omr-role-list li i { color: #8a6d1a; }

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(2px);
  z-index: 4000;
  padding: 1rem;
}
.image-lightbox.is-open {
  display: flex;
}
.image-lightbox-content {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  background: #111;
}
.image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background var(--trans);
}
.image-lightbox-prev { left: 1rem; }
.image-lightbox-next { right: 1rem; }
.image-lightbox-nav:hover,
.image-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}
.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background var(--trans);
}
.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

/* ═══════════════════════════════════
   RESUME
═══════════════════════════════════ */
.resume-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.resume-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.resume-embed iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.contact-body {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-intro {
  color: var(--text-muted);
  max-width: 540px;
  margin: 1rem auto 2.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  transition: all var(--trans);
  color: var(--charcoal);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.contact-card > i {
  font-size: 1.75rem;
  color: var(--accent);
}
.contact-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-card-value {
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-all;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.footer-icons {
  display: flex;
  gap: 1.25rem;
}
.footer-icons a {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: color var(--trans);
}
.footer-icons a:hover { color: var(--accent-lt); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════ */
@media (max-width: 900px) {
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    text-align: center;
  }
  .about-photo { max-width: 240px; width: 100%; margin-left: auto; margin-right: auto; }
  .about-bio   { margin-left: auto; margin-right: auto; }
  .about-actions {
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-actions .about-links {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-objective { width: 100%; }
  .about-objective p { font-size: 1rem; }
  .about-strengths-grid {
    grid-auto-columns: minmax(220px, 78%);
    width: 100%;
  }
  .about-strength-card {
    min-height: 9.75rem;
    padding: 1.35rem 1rem;
  }
  .about-strength-card h4 {
    font-size: clamp(1.08rem, 2.8vw, 1.26rem);
    max-width: 14rem;
  }
  .about-strength-card p {
    max-width: 14.5rem;
  }

  /* Education */
  .edu-row,
  .edu-row--reverse {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .edu-row--reverse .edu-media,
  .edu-row--reverse .edu-info {
    order: unset;
  }
  .edu-info {
    padding: 1.35rem 0.5rem 0;
  }

  /* Projects */
  .project-card-featured,
  .project-card-featured--reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.5rem; }
  .project-card-featured--reverse > * { direction: ltr; }
  .projects-secondary { grid-template-columns: repeat(2, 1fr); }

  /* Experience */
  .exp-item { gap: 1.1rem; }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — PHONE (≤ 700px)
═══════════════════════════════════ */
@media (max-width: 700px) {
  /* Header */
  .header-inner { height: 60px; }
  .nav-toggle   { display: flex; z-index: 200; }

  .header-mobile-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    padding: 0.65rem 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: var(--charcoal);
  }
  .header-mobile-socials a {
    color: rgba(255,255,255,0.88);
    font-size: 1.4rem;
    padding: 0.4rem;
    line-height: 1;
    transition: color var(--trans), transform 0.2s ease;
  }
  .header-mobile-socials a:active {
    color: var(--accent-lt);
    transform: scale(0.95);
  }
  .header-mobile-socials .header-mobile-resume {
    font-size: 1rem;
    padding: 0.2rem 0.15rem;
  }
  .header-mobile-resume-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    padding: 0.32rem 0.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
  }

  /* Slide-out menu starts below logo row + icon strip so LinkedIn / Resume / GitHub stay tappable */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(60px + 3.35rem);
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }
  .nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .nav ul li { width: 100%; }
  .nav ul a {
    font-size: 1.15rem;
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }
  .nav-icons { gap: 1.5rem; }
  .nav-icons a { font-size: 1.3rem; padding: 0.5rem; }
  .btn-resume {
    padding: 0.65rem 2rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  /* Sections */
  .section { padding: 56px 0; }

  /* About */
  .about-content h1 { font-size: 2.2rem; }
  .about-photo {
    max-width: 200px;
    border-radius: 50%;
  }
  .about-photo img {
    object-fit: cover;
    object-position: 44% 28%;
    transform: scale(1.18);
    transform-origin: 44% 30%;
  }
  .link-icon { font-size: 0.95rem; }

  /* About — strength cards: stack vertically, no horizontal scroll */
  .about-strengths-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow-x: visible;
    overscroll-behavior-x: auto;
    padding-bottom: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-strength-card {
    width: 100%;
    min-height: 9rem;
  }
  .about-strength-card h4 {
    max-width: none;
  }
  .about-strength-card p {
    max-width: none;
  }

  /* Education */
  .edu-rows {
    max-width: 100%;
  }
  .edu-row,
  .edu-row--reverse {
    max-width: 100%;
  }

  /* Projects */
  .projects-featured { gap: 3rem; }
  .project-img img   { aspect-ratio: 16/9; }
  .project-info h3   { font-size: 1.2rem; }
  .projects-secondary { grid-template-columns: 1fr; }

  /* Experience */
  .exp-list { padding-left: 1.25rem; }
  .exp-details { grid-template-columns: 1fr; gap: 1rem; }
  .exp-item::before { left: -1.85rem; }
  .exp-contrib ul { padding-left: 1rem; }
  .exp-contrib li { font-size: 0.875rem; }
  .exp-gallery-grid { gap: 0.5rem; }
  .exp-thumb { width: 102px; height: 78px; }
  .image-lightbox-nav { width: 40px; height: 40px; }
  .exp-meta-sub {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .exp-date {
    width: 100%;
    text-align: left;
    white-space: normal;
    margin-top: 0.2rem;
  }

  /* Resume */
  .resume-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .resume-embed iframe { height: 500px; }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .contact-card {
    flex-direction: row;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  .contact-card > i { font-size: 1.4rem; flex-shrink: 0; }
  .contact-card-label { display: none; }
  .contact-card-value { font-size: 0.9rem; }
}

/* ═══════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤ 480px)
═══════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }

  /* Header */
  .logo { font-size: 1.15rem; }

  /* About */
  .about-photo { max-width: 170px; }
  .about-photo img {
    transform: scale(1.2);
  }
  .about-content h1 { font-size: 1.9rem; }

  /* Section titles */
  .section-title { font-size: 1.7rem; }

  /* Education */
  .edu-img-wrap {
    border-radius: 12px;
  }
  .edu-info {
    padding: 1.1rem 0.35rem 0;
  }
  .edu-info h3 {
    font-size: 1.15rem;
  }

  /* Projects */
  .project-info h3  { font-size: 1.1rem; }
  .project-card-sm  { padding: 1.25rem; }

  /* Experience */
  .exp-company { font-size: 1.08rem; }
  .exp-list    { padding-left: 1rem; }
  .exp-item::before { width: 10px; height: 10px; left: -1.55rem; }

  /* Resume */
  .resume-embed iframe { height: 420px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* Contact */
  .contact-card { padding: 1rem 1.25rem; }
  .contact-card-value { font-size: 0.82rem; word-break: break-word; }

  /* Footer */
  #footer { padding: 2rem 1.25rem; }
}

/* ═══════════════════════════════════
   RESPONSIVE — TINY PHONE (≤ 360px)
═══════════════════════════════════ */
@media (max-width: 360px) {
  .container    { padding: 0 0.9rem; }
  .about-content h1 { font-size: 1.65rem; }
  .section-title { font-size: 1.5rem; }
  .project-tags span { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
  .resume-embed iframe { height: 360px; }
}
