:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --border: #d8dee8;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(31, 41, 55, 0.09);
}

* {
  box-sizing: border-box;
}

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

.hero {
  padding: 0 1.5rem 1.5rem;
  background:
    linear-gradient(110deg, rgba(11, 17, 32, 0.84), rgba(17, 94, 89, 0.44)),
    url("./images/Aboutme/6.jpg") center / cover no-repeat;
  color: #f8fafc;
}

.hero__inner {
  padding-top: 2.8rem;
}

.hero__links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero__inner,
.projects,
.about,
.site-nav__inner,
footer {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.55);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 3px 16px rgba(2, 6, 23, 0.75);
}

.hero__skills {
  margin: 0.55rem 0 0;
  color: #94a3b8;
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.55);
}

.hero__subtitle {
  margin-top: 0.75rem;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.quick-link--outline {
  background: #fff;
}

.quick-link--outline:hover,
.quick-link--outline:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
}

.site-nav {
  position: relative;
  z-index: 2;
  background: transparent;
  border-bottom: 1px solid rgba(226, 232, 240, 0.35);
  padding: 0 1.5rem;
  margin: 0 -1.5rem;
}

.site-nav__inner {
  display: flex;
  gap: 0.25rem;
}

.site-nav__tab {
  padding: 0.75rem 1.2rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  margin-bottom: -1px;
}

.site-nav__tab:hover {
  color: #ffffff;
}

.site-nav__tab.is-active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.page-section[hidden] {
  display: none;
}

.about {
  padding: 2.5rem 0 3rem;
}

.about__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.about__title {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  text-align: center;
}

.about__bio {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 76ch;
}

.about-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.about-gallery__column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #edf2f7;
  display: block;
}

.about-contact {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.about-contact h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.about-contact p {
  color: var(--muted);
}

.about-contact__detail {
  margin-top: 0.7rem;
  color: var(--text);
}

.hero .quick-link {
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.5);
}

.hero .quick-link:hover,
.hero .quick-link:focus-visible {
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.72);
}

main {
  padding: 0 1.5rem;
}

.projects {
  padding: 0.6rem 0 2.5rem;
}

.projects__title {
  margin: 0 0 1.35rem;
  font-size: 1.55rem;
}

.project-grid {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.2rem;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #e5ebf3;
  aspect-ratio: 16 / 10;
}

.project-card__image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  display: block;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 220ms ease;
}

.project-card__image-button:hover img,
.project-card__image-button:focus-visible img {
  transform: scale(1.03);
}

.project-card__overlay,
.project-card__dots {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  pointer-events: none;
}

.project-card__overlay {
  top: 0;
}

.project-card__dots {
  bottom: 0;
  justify-content: center;
  gap: 0.45rem;
}

.project-card__count,
.project-card__nav,
.project-card__dot {
  pointer-events: auto;
}

.project-card__count {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.project-card__nav-group {
  display: flex;
  gap: 0.5rem;
}

.project-card__nav,
.lightbox__nav,
.lightbox__close {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.lightbox__nav {
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.64);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(15, 23, 42, 0.96);
}

.project-card__nav {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.1rem;
}

.project-card__dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.project-card__dot.is-active {
  background: var(--accent);
  transform: scale(1.1);
}

.project-card__content {
  display: grid;
  gap: 0.15rem;
}

.is-single-slide .project-card__nav-group,
.is-single-slide .project-card__dots {
  display: none;
}

button,
a {
  font: inherit;
}

.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;
}

button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox__panel {
  position: relative;
  width: min(1100px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox__header {
  padding: 0.35rem 3.5rem 0.85rem 0.25rem;
}

.lightbox__eyebrow {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lightbox__header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.lightbox__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.lightbox__stage img {
  width: 100%;
  max-height: min(70vh, 760px);
  object-fit: contain;
  border-radius: 18px;
  background: #eef2f7;
}

body.modal-open {
  overflow: hidden;
}

footer {
  padding: 1.2rem 1.5rem 2.2rem;
  color: var(--muted);
}

.resume-page {
  min-height: 100vh;
  background: var(--bg);
}

.resume-viewer {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.resume-viewer h1 {
  margin-bottom: 0.5rem;
  color: var(--text);
  text-shadow: none;
}

.resume-viewer__hint {
  margin-bottom: 1rem;
  color: var(--muted);
}

.resume-viewer__embed {
  width: 100%;
  min-height: calc(100vh - 10rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

@media (min-width: 720px) {
  .project-card {
    padding: 1.35rem;
  }
}

@media (max-width: 719px) {
  .hero {
    padding-bottom: 1.2rem;
  }

  .hero__inner {
    padding-top: 2.2rem;
  }

  .site-nav {
    padding: 0 0.8rem;
    margin: 0 -1.5rem;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-contact {
    padding: 1rem;
  }

  .lightbox {
    padding: 0.9rem;
  }

  .lightbox__panel {
    padding: 0.85rem;
  }

  .lightbox__header {
    padding-right: 3rem;
  }

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

  .lightbox__nav {
    position: absolute;
    bottom: 1rem;
    z-index: 1;
  }

  #lightbox-prev {
    left: 1rem;
  }

  #lightbox-next {
    right: 1rem;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-bottom: 1.8rem;
  }

  main {
    padding: 0 2rem;
  }

  .project-card {
    padding: 1.5rem;
    gap: 1.3rem;
  }

  .project-card__media {
    aspect-ratio: 16 / 9.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
  }
}
