:root {
  --color-bg: #050806;
  --color-bg-soft: #0c120f;
  --color-surface: rgba(9, 16, 12, 0.82);
  --color-surface-strong: #101814;
  --color-text: #f4fff7;
  --color-muted: #9cb7a4;
  --color-border: rgba(93, 255, 157, 0.18);
  --color-accent: #56ff9f;
  --color-accent-deep: #1e8f58;
  --color-accent-glow: rgba(86, 255, 159, 0.16);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(86, 255, 159, 0.08), 0 0 60px rgba(86, 255, 159, 0.12);
  --container-max: 1180px;
  --container-padding: 20px;
  --section-spacing: 88px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background:
    radial-gradient(circle at top left, rgba(86, 255, 159, 0.16), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(86, 255, 159, 0.09), transparent 22%),
    linear-gradient(180deg, #07100b 0%, #050806 55%, #030403 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(86, 255, 159, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 255, 159, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  position: relative;
  padding: 24px 0 0;
}

.site-main {
  flex: 1;
}

.site-footer {
  padding: 0 0 28px;
}

.container {
  width: min(100% - (var(--container-padding) * 2), var(--container-max));
  margin: 0 auto;
}

.page-section {
  padding: var(--section-spacing) 0;
}

.card-base {
  position: relative;
  background:
    linear-gradient(180deg, rgba(17, 29, 23, 0.94), rgba(8, 13, 10, 0.92));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-base:hover{
  border-color: rgba(86, 255, 159, 0.24);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(86, 255, 159, 0.12), 0 0 72px rgba(86, 255, 159, 0.16);
  transform: scale(1.02);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 18px;
  z-index: -1;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(86, 255, 159, 0.12);
  border-radius: 999px;
  background-color: rgba(5, 8, 6, 0.72);
  box-shadow: var(--shadow-glow);
}

.brand,
h1,
h2,
h3 {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
}

.brand {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 4px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--color-muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item a:hover,
.nav-item a:focus-visible {
  background-color: rgba(86, 255, 159, 0.08);
  color: var(--color-text);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 38px;
  align-items: center;
  padding: 72px 0 24px;
}

.hero-copy {
  width: 100%;
  max-width: 640px;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--color-accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-text,
.section-heading p:last-child,
.project-content p,
.about-card p:last-child,
.profile-content p:last-child {
  color: var(--color-muted);
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 28px;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #041109;
  background: linear-gradient(135deg, #7dffb6, #44d27f);
  box-shadow: 0 14px 34px rgba(68, 210, 127, 0.26);
}

.button-secondary {
  border-color: rgba(86, 255, 159, 0.2);
  background-color: rgba(86, 255, 159, 0.05);
  color: var(--color-text);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: min(100%, 420px);
  padding: 26px;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(15, 24, 19, 0.96), rgba(5, 9, 7, 0.96)),
    linear-gradient(135deg, rgba(86, 255, 159, 0.06), transparent 45%);
}

.profile-glow {
  position: absolute;
  inset: auto -18% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 255, 159, 0.18), transparent 72%);
  filter: blur(18px);
  z-index: -1;
}

.profile-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(28, 49, 37, 0.92), rgba(7, 11, 9, 0.9));
  border: 1px solid rgba(86, 255, 159, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(86, 255, 159, 0.06);
}

.profile-frame::before,
.profile-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.profile-frame::before {
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-frame::after {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 55%);
}

.profile-photo-shell {
  position: relative;
  width: min(100%, 332px);
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #234230 0%, #0b1510 58%, #050806 100%);
  border: 1px solid rgba(126, 255, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 28px 60px rgba(0, 0, 0, 0.4);
}

.profile-photo-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(135deg, rgba(86, 255, 159, 0.06), transparent 48%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.profile-photo-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.16));
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.03);
}

.profile-content {
  padding-top: 24px;
}

.profile-content h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.about-grid,
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}

.about-grid > *,
.projects-grid > * {
  flex: 1 1 280px;
}

.about-card,
.project-card,
.contact-panel {
  padding: 28px;
}

.about-card h3,
.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.about-card-featured {
  background:
    linear-gradient(135deg, rgba(86, 255, 159, 0.12), rgba(7, 14, 10, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.stat-number {
  margin-bottom: 18px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-accent);
}

.project-card {
  overflow: hidden;
}

.project-preview {
  min-height: 220px;
  margin-bottom: 22px;
  border-radius: 24px;
  border: 1px solid rgba(86, 255, 159, 0.14);
  background-color: var(--color-bg-soft);
}

.project-preview-monitor {
  background:
    linear-gradient(180deg, rgba(86, 255, 159, 0.1), transparent),
    radial-gradient(circle at 50% 22%, rgba(86, 255, 159, 0.28), transparent 18%),
    linear-gradient(180deg, #111d17 0 70%, #060907 70% 100%);
  position: relative;
}

.project-preview-monitor::before {
  content: "";
  position: absolute;
  inset: 28px 28px 52px;
  border-radius: 18px;
  border: 1px solid rgba(86, 255, 159, 0.18);
  background:
    linear-gradient(90deg, rgba(86, 255, 159, 0.08) 0 40%, transparent 40% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.project-preview-monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 74px;
  height: 10px;
  border-radius: 999px;
  transform: translateX(-50%);
  background-color: rgba(86, 255, 159, 0.36);
}

.project-preview-panel {
  background:
    radial-gradient(circle at 18% 24%, rgba(86, 255, 159, 0.22), transparent 22%),
    linear-gradient(135deg, #13251c, #09100d 70%);
  position: relative;
}

.project-preview-panel::before,
.project-preview-panel::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(86, 255, 159, 0.18);
}

.project-preview-panel::before {
  inset: 26px;
}

.project-preview-panel::after {
  inset: 56px 44px 44px;
  background:
    linear-gradient(180deg, rgba(86, 255, 159, 0.14), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 34%, transparent 34% 100%);
}

.project-preview-grid {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(86, 255, 159, 0.08), transparent),
    linear-gradient(135deg, #101814, #070b09);
}

.project-preview-grid::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  pointer-events: none;
}

.project-preview-grid::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px;
  height: 30%;
  z-index: 2;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.18));
  pointer-events: none;
}

.project-photo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid rgba(126, 255, 184, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.34);
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.01);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card-accent {
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(86, 255, 159, 0.06), 0 0 52px rgba(86, 255, 159, 0.08);
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(86, 255, 159, 0.14), rgba(7, 12, 9, 0.92) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.contact-panel h2 {
  margin-bottom: 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.06;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  gap: 20px;
}

.contact-panel-main {
  align-items: flex-end;
}

.contact-text {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--color-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-detail-card h3 {
  word-break: break-word;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(86, 255, 159, 0.12);
  color: var(--color-muted);
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 28px;
    --section-spacing: 104px;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: calc(100vh - 140px);
  }

  .hero-copy {
    flex: 1.15 1 0;
  }

  .hero-visual {
    flex: 0.85 1 320px;
    align-self: flex-start;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .profile-card {
    margin-top: 0;
  }

  .about-card-featured {
    flex: 1.2 1 0;
  }

  .about-grid > .about-card:not(.about-card-featured) {
    flex: 0.8 1 0;
  }

  .projects-grid > .project-card {
    flex: none;
    max-width: none;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  .projects-grid > .project-card {
    grid-column: span 2;
  }

  .projects-grid > .project-card:last-child:nth-child(3n + 1) {
    grid-column: 2 / span 4;
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .projects-grid > .project-card:nth-last-child(2):nth-child(3n + 1),
  .projects-grid > .project-card:last-child:nth-child(3n + 2) {
    grid-column: span 3;
  }

  .projects-grid > .project-card:last-child:nth-child(3n + 1) .project-preview-grid {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .projects-grid > .project-card:last-child:nth-child(3n + 1) .project-photo {
    object-position: center 34%;
  }

  .projects-grid > .project-card:last-child:nth-child(3n + 1) .project-content {
    max-width: 60ch;
  }

  .contact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .contact-grid > .contact-panel-main {
    grid-column: span 12;
  }

  .contact-grid > .contact-detail-card {
    grid-column: span 4;
  }

}

@media (max-width: 767px) {
  .site-nav {
    flex-direction: column;
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 3.8rem);
  }

  .profile-card {
    padding: 20px;
  }

  .profile-frame {
    min-height: 320px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-panel .button {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 36px;
  }
}
.project-photo:hover{
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.04);
}

.unavailable {
  display: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 5, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.is-loading .page-loader,
.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader-box {
  min-width: min(100%, 260px);
  padding: 24px 28px;
  border: 1px solid rgba(86, 255, 159, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(17, 29, 23, 0.96), rgba(8, 13, 10, 0.94));
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(86, 255, 159, 0.08);
  text-align: center;
}

.page-loader-box p {
  margin: 14px 0 0;
  color: var(--color-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-loader-spinner {
  display: inline-block;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(86, 255, 159, 0.16);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
