:root {
  --bg-0: #f5f7fb;
  --bg-1: #dce9ff;
  --ink-0: #111f35;
  --ink-1: #344b6a;
  --accent: #1260d6;
  --accent-2: #0ea57a;
  --line: #d3dff0;
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 20px 50px rgba(9, 26, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink-0);
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 100%);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(420px 300px at 10% 10%, rgba(18, 96, 214, 0.12), transparent 70%),
    radial-gradient(300px 260px at 90% 20%, rgba(14, 165, 122, 0.12), transparent 65%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent 35%);
}

.shell {
  width: min(1100px, 92vw);
  margin: 2.5rem auto;
  position: relative;
  z-index: 1;
}

.hero,
.panel,
.footer {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: reveal 0.7s ease-out both;
}

.hero {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 2fr 1fr;
}

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

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.25rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.role {
  margin: 0.65rem 0 0;
  color: var(--ink-1);
  font-weight: 700;
  font-size: 1.1rem;
}

.tagline {
  margin-top: 0.9rem;
  color: var(--ink-1);
  max-width: 60ch;
}

.quick-nav {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quick-nav a,
.contact-card a {
  text-decoration: none;
  color: var(--ink-0);
}

.icon {
  font-size: 0.95em;
  line-height: 1;
  flex: 0 0 auto;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quick-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card h2 {
  font-size: 1rem;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink-1);
}

.contact-card a:hover {
  color: var(--accent);
}

.panel {
  margin-top: 1.25rem;
  padding: 1.6rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.panel h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-1);
}

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

.skill-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.skill-card ul,
.timeline-item ul,
.project-card ul {
  margin: 0;
  padding-left: 1.05rem;
}

.skill-card li,
.timeline-item li,
.project-card li {
  color: var(--ink-1);
  margin-bottom: 0.35rem;
}

.timeline,
.projects {
  display: grid;
  gap: 1rem;
}

.timeline-item,
.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  min-width: 0;
}

h3 {
  font-size: 1.1rem;
}

h3 span {
  color: var(--ink-1);
  font-size: 0.95rem;
  font-weight: 500;
}

.project-card h3 {
  margin-bottom: 0.55rem;
}

.meta {
  margin: 0.3rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-summary {
  margin: 0 0 0.7rem;
  color: var(--ink-1);
}

.chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.chips span {
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
}

.project-card p {
  color: var(--ink-1);
}

.project-card .meta {
  color: var(--accent);
}

.project-cta-wrap {
  margin: 0.8rem 0 0.95rem;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.project-cta .icon {
  font-size: 0.9em;
}

.project-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(18, 96, 214, 0.25);
  background: #0e53bb;
}

.project-images {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.95rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #b9cae8 transparent;
}

.project-images::-webkit-scrollbar {
  height: 7px;
}

.project-images::-webkit-scrollbar-thumb {
  background: #b9cae8;
  border-radius: 999px;
}

.project-images::-webkit-scrollbar-track {
  background: transparent;
}

.project-images figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.lightbox-trigger:hover img {
  transform: scale(1.03);
}

.footer {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
}

.footer p {
  margin: 0;
  color: var(--ink-1);
  font-weight: 600;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(1120px, 94vw);
    margin: 1.25rem auto;
  }

  .panel,
  .hero {
    padding: 1.25rem;
  }

  .project-images {
    grid-auto-columns: 168px;
  }
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 31, 0.84);
}

.lightbox-dialog {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 4.5rem 3rem;
}

.lightbox-image {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(24, 36, 57, 0.82);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 62px;
  border-radius: 12px;
  font-size: 1.7rem;
}

.lightbox-prev {
  left: 1.2rem;
}

.lightbox-next {
  right: 1.2rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: #e7edf7;
  background: rgba(18, 28, 46, 0.75);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .lightbox-dialog {
    padding: 1rem 0.7rem 2.5rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.3rem;
  }

  .lightbox-prev {
    left: 0.8rem;
  }

  .lightbox-next {
    right: 0.8rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-image {
    max-height: 74vh;
  }
}
