/* PALETTE */
:root {
  --surface-soft: rgba(226, 232, 240, 0.48);
  --surface-card: rgba(191, 219, 254, 0.18);
  --surface-border: rgba(148, 163, 184, 0.34);
  --surface-highlight: rgba(224, 242, 254, 0.38);
  --text-strong: #e2e8f0;
  --text-body: #cbd5e1;
  --accent: #60a5fa;
  --accent-dark: #bfdbfe;
  --accent-alt: #22d3ee;
  --ink-deep: #020617;
  --shadow-soft: 0 26px 60px rgba(2, 6, 23, 0.42);
  --shadow-glow: 0 0 0 1px rgba(96, 165, 250, 0.12), 0 24px 70px rgba(34, 211, 238, 0.22);
}

body {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 20px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.56)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.08),
    0 18px 40px rgba(2, 6, 23, 0.28);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-brand__mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #dbeafe;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.34);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.12), 0 10px 28px rgba(34, 211, 238, 0.12);
}

/* GRID */
.view-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* CARD */
.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(148, 163, 184, 0.24), rgba(15, 23, 42, 0.42)) padding-box,
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72)) padding-box,
    linear-gradient(125deg, rgba(191, 219, 254, 0.8), rgba(96, 165, 250, 0.52), rgba(34, 211, 238, 0.42)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.project-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-link-wrapper:focus-visible .project-card,
.project-link-wrapper:hover .project-card {
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.16),
    var(--shadow-soft);
}

.project-card {
  position: relative;
  z-index: 1;
}

.overlay {
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.26), transparent 68%);
  pointer-events: none;
}

/* HOVER */
.project-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

/* IMAGE */
.project-image {
  position: relative;
}

.project-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.4), rgba(8, 47, 73, 0.08));
}

/* CONTENT */
.project-content {
  padding: 20px;
  color: var(--text-body);
  position: relative;
  z-index: 1;
}

.project-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #67e8f9;
}

.project-card-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(103, 232, 249, 0.95));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

/* TITLE */
.project-content h2 {
  margin: 0 0 10px;
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* RESUME */
.resume {
  opacity: 0.7;
}

/* TECH BADGES */
.technos a,
.technos span {
  display: inline-block;
  margin: 5px 5px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: var(--accent-dark);
  backdrop-filter: blur(10px);
}

/* LINKS */
.links a {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.links a:first-child {
  background: #22c55e;
  color: black;
}

.links a:last-child {
  background: #6366f1;
  color: white;
}

/* HERO IMAGE */
.project-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.9) 0%,
    rgba(15, 23, 42, 0.44) 34%,
    rgba(8, 47, 73, 0.18) 100%
  );
}

 .project-detail {
  padding: 42px 20px 90px;
}

.project-detail-topbar {
  max-width: 900px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
}

/* CONTENT */
.project-detail-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.56)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.72));
  color: var(--text-body);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: 42px;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48), 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.project-detail-content::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.16), rgba(15, 23, 42, 0.04));
  opacity: 0.95;
  pointer-events: none;
}

.project-detail-content::after {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.project-detail-content > * {
  position: relative;
  z-index: 1;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #dbeafe;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.08);
  backdrop-filter: blur(12px);
}

.project-back-link::before {
  content: "<";
  color: #7dd3fc;
}

.project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.project-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(125, 211, 252, 0.95));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

/* TITLE */
.project-detail-content h1 {
  font-size: 2.5rem;
  margin-bottom: 22px;
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.12);
}

.project-section {
  position: relative;
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.54), rgba(15, 23, 42, 0.34)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.42));
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.08),
    0 18px 40px rgba(2, 6, 23, 0.24);
  overflow: hidden;
}

.project-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.7), transparent);
  opacity: 0.9;
}

.project-section h2 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
}

.project-summary {
  color: #eaf2ff;
}

.project-summary,
.project-summary *,
.project-summary .field__item,
.project-summary .text-formatted,
.project-summary .text-formatted * {
  color: #eaf2ff;
}

.project-summary p,
.project-summary li,
.project-summary dd,
.project-summary blockquote {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

/* TECH BADGES */
.technos a,
.technos span {
  display: inline-block;
  margin: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.12);
  backdrop-filter: blur(10px);
}

/* LINKS */
.project-links a {
  display: inline-block;
  margin-right: 10px;
  margin-top: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
}

.project-links a:first-child {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
  color: #f8fafc;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.32);
}

.project-links a:last-child {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.94), rgba(34, 211, 238, 0.88));
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.18), 0 18px 42px rgba(34, 211, 238, 0.24);
}

/* DESCRIPTION */
.project-description {
  margin-top: 30px;
  line-height: 1.75;
  color: var(--text-body);
  font-size: 1.02rem;
}

.project-description h2 {
  margin-bottom: 18px;
}

.project-description {
  color: #e2e8f0;
}

.project-summary strong,
.project-summary b,
.project-summary h3,
.project-summary h4,
.project-summary h5,
.project-summary h6,
.project-description p,
.project-description li,
.project-description dd,
.project-description blockquote {
  color: #dbeafe;
}

.project-summary strong,
.project-summary b {
  color: #ffffff;
}

.project-summary em {
  color: #c4f1ff;
}

.project-summary ul,
.project-summary ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.project-summary li {
  margin-bottom: 0.55rem;
}

.project-description ul,
.project-description ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.project-description li {
  margin-bottom: 0.55rem;
}

.project-description strong,
.project-description b {
  color: #f8fafc;
}

.project-description em {
  color: #bae6fd;
}

.project-description a,
.project-summary a {
  color: #7dd3fc;
  text-decoration-color: rgba(125, 211, 252, 0.45);
}

.project-description h3,
.project-description h4,
.project-description h5,
.project-description h6 {
  color: #f8fafc;
  margin: 1.4rem 0 0.8rem;
}

.project-description blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(96, 165, 250, 0.5);
  background: rgba(15, 23, 42, 0.32);
  border-radius: 12px;
}

.project-description p {
  margin-bottom: 1rem;
}

.project-carousel {
  display: grid;
  gap: 18px;
}

.project-carousel__viewport {
  position: relative;
  min-height: 280px;
}

.project-carousel__track {
  position: relative;
}

.project-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.08),
    0 14px 34px rgba(2, 6, 23, 0.28);
}

.project-carousel__slide {
  display: none;
}

.project-carousel__slide.is-active {
  display: block;
}

.project-gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.05), transparent 35%);
  pointer-events: none;
}

.project-carousel__image-button {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.08), transparent 46%),
    rgba(2, 6, 23, 0.48);
  cursor: zoom-in;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.18);
}

.project-carousel__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.project-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: #dbeafe;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.08);
  backdrop-filter: blur(12px);
}

.project-carousel__button:hover {
  border-color: rgba(125, 211, 252, 0.42);
}

.project-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.16);
  cursor: pointer;
}

.project-carousel__dot.is-active {
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}

.project-lightbox[hidden] {
  display: none;
}

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

.project-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(10px);
}

.project-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1200px);
  height: min(88vh, 900px);
  margin: 6vh auto 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.84));
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.56);
}

.project-lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 10px 16px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #dbeafe;
  cursor: pointer;
}

body.has-lightbox-open {
  overflow: hidden;
}

.front-page {
  padding: 48px 20px 90px;
  color: #e2e8f0;
}

.front-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 32px;
}

.front-hero__media,
.front-panel,
.front-page__content {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.52)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.08),
    0 24px 60px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.front-hero__media {
  padding: 22px;
}

.front-hero__media::before,
.front-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), transparent);
}

.front-hero__portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 44px rgba(2, 6, 23, 0.32);
}

.front-hero__content {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.52)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.08),
    0 24px 60px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.front-hero__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), transparent);
}

.front-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #67e8f9;
}

.front-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(103, 232, 249, 0.95));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

.front-hero__content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fafc;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.16);
}

.front-intro {
  font-size: 1.15rem;
  color: #f8fafc;
}

.front-hero__content p,
.front-panel p,
.front-panel li {
  color: #dbeafe;
  line-height: 1.8;
}

.front-panel {
  margin-top: 24px;
  padding: 28px 30px;
}

.front-panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
}

.front-panel ul {
  margin: 0;
  padding-left: 1.4rem;
}

.front-panel li {
  margin-bottom: 0.65rem;
}

.front-page__content {
  margin-top: 24px;
  padding: 24px 28px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px 0;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .project-detail-content {
    margin: 0 16px;
    padding: 28px 22px;
  }

  .project-detail {
    padding: 28px 0 72px;
  }

  .project-detail-topbar {
    margin: 0 16px 16px;
  }

  .project-detail-content h1 {
    font-size: 2rem;
  }

  .project-hero {
    height: 280px;
    border-radius: 20px;
  }

  .project-section {
    padding: 20px;
  }

  .project-gallery-item img {
    height: 260px;
  }

  .project-carousel__controls {
    grid-template-columns: 1fr;
  }

  .project-carousel__button {
    width: 100%;
  }

  .project-lightbox__content {
    width: calc(100vw - 24px);
    height: calc(100vh - 72px);
    margin-top: 56px;
    padding: 16px;
  }

  .project-lightbox__close {
    top: 12px;
    right: 12px;
  }

  .front-page {
    padding: 28px 16px 72px;
  }

  .front-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .front-hero__media {
    max-width: 320px;
  }

  .front-hero__content,
  .front-panel,
  .front-page__content {
    padding: 22px;
  }
}
