:root {
  --bg: #04050a;
  --bg-soft: #0b1020;
  --panel: rgba(10, 14, 28, 0.72);
  --panel-strong: rgba(15, 20, 39, 0.9);
  --border: rgba(157, 179, 255, 0.18);
  --text: #f4f7ff;
  --muted: #a7b0c8;
  --blue: #77a6ff;
  --cyan: #6ef2ff;
  --teal: #46d5b7;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93, 139, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(110, 242, 255, 0.14), transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(70, 213, 183, 0.12), transparent 24%),
    linear-gradient(180deg, #03040a 0%, #050712 42%, #030409 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0.5px, transparent 0.6px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.6) 0.5px, transparent 0.6px);
  background-size: 180px 180px;
}

.site-header {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 20px auto 0;
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 20, 0.58);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand,
.nav a,
.button,
.contact-points a {
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.lang-button.is-active {
  color: #02111a;
  background: linear-gradient(135deg, var(--cyan), #8aa8ff 55%, #d9eeff);
}

main {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 110px 0 20px;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
}

h1,
h2,
h3,
.spotlight-title {
  font-family: "Syne", sans-serif;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 6.1rem);
  line-height: 0.94;
}

h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.hero-text,
.glass-card p,
.project-card p,
.timeline-content p,
.contact-card p,
.spotlight-text,
.identity-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 26px 0 0;
}

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

.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: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #02111a;
  background: linear-gradient(135deg, var(--cyan), #8aa8ff 55%, #d9eeff);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics li,
.status-card,
.spotlight-card,
.glass-card,
.project-card,
.timeline-item,
.tag,
.contact-card,
.identity-card,
.soft-pill {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 18px;
  border-radius: 22px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 26px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 21, 40, 0.48), rgba(9, 11, 18, 0.85)),
    radial-gradient(circle at top, rgba(119, 166, 255, 0.2), transparent 45%);
  border: 1px solid rgba(138, 171, 255, 0.18);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-one {
  width: 260px;
  height: 260px;
  top: 60px;
  right: 60px;
  background: radial-gradient(circle, rgba(119, 166, 255, 0.95), rgba(119, 166, 255, 0.04) 70%);
  animation: float 7s ease-in-out infinite;
}

.orb-two {
  width: 170px;
  height: 170px;
  left: 32px;
  top: 240px;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.75), rgba(110, 242, 255, 0.05) 72%);
  animation: float 9s ease-in-out infinite reverse;
}

.status-card,
.spotlight-card,
.identity-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin: 6px auto 8px;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.3));
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-badge {
  position: absolute;
  right: -6px;
  bottom: 28px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 20, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.status-card {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 20px var(--teal);
}

.spotlight-card,
.identity-card {
  padding: 28px;
}

.spotlight-label,
.identity-label {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.spotlight-title {
  margin: 10px 0 12px;
  font-size: 1.8rem;
}

.identity-value {
  margin: 8px 0 18px;
  color: var(--text);
}

.identity-value:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
}

.about-grid,
.projects-grid,
.skills-layout,
.featured-projects {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card,
.project-card,
.contact-card {
  border-radius: 28px;
  padding: 28px;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(22, 28, 54, 0.95), rgba(14, 18, 32, 0.9)),
    var(--panel);
}

.projects-grid,
.skills-layout,
.featured-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-projects {
  grid-template-columns: 1fr;
}

.skills-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.skill-card {
  min-height: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

.featured-project-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.featured-project-copy,
.featured-project-panel {
  border-radius: 24px;
  padding: 24px;
}

.featured-project-copy {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-project-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(circle at top left, rgba(110, 242, 255, 0.14), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(119, 166, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(15, 18, 34, 0.8), rgba(22, 29, 48, 0.95));
  border: 1px solid rgba(138, 171, 255, 0.18);
}

.featured-project-kicker {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.featured-project-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--text);
}

.website-preview {
  overflow: hidden;
  min-height: 320px;
  border-radius: 22px;
  background: #101522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.browser-bar {
  min-height: 44px;
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(4, 6, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.browser-bar span:nth-child(1) {
  background: #ff7b7b;
}

.browser-bar span:nth-child(2) {
  background: #ffd36e;
}

.browser-bar span:nth-child(3) {
  background: #72e59c;
}

.browser-bar p {
  min-width: 0;
  margin: 0 0 0 8px;
  overflow: hidden;
  color: rgba(244, 247, 255, 0.72);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-screen {
  min-height: 276px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 14%),
    linear-gradient(135deg, rgba(25, 42, 31, 0.96), rgba(13, 19, 17, 0.98));
}

.website-preview-blue .preview-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(119, 166, 255, 0.38), transparent 18%),
    linear-gradient(135deg, rgba(25, 33, 64, 0.98), rgba(13, 18, 32, 0.98));
}

.website-preview-cyan .preview-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(110, 242, 255, 0.34), transparent 18%),
    linear-gradient(135deg, rgba(18, 38, 47, 0.98), rgba(13, 18, 32, 0.98));
}

.preview-hero {
  max-width: 330px;
}

.preview-hero p {
  margin: 0 0 12px;
  color: #9bf0b5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.website-preview-blue .preview-hero p,
.website-preview-cyan .preview-hero p {
  color: var(--cyan);
}

.preview-hero h4 {
  margin: 0;
  max-width: 9ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.94;
}

.preview-hero span {
  display: block;
  max-width: 34ch;
  margin-top: 16px;
  color: rgba(244, 247, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.preview-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.preview-products span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #f4f7ff;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-private-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.project-glow {
  height: 170px;
  margin: -28px -28px 22px;
  background:
    radial-gradient(circle at top left, rgba(110, 242, 255, 0.28), transparent 38%),
    radial-gradient(circle at 75% 30%, rgba(119, 166, 255, 0.4), transparent 30%),
    linear-gradient(135deg, rgba(15, 18, 34, 0.7), rgba(22, 29, 48, 0.95));
  border-bottom: 1px solid var(--border);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 18px;
}

.impact-pill {
  margin: 18px 0 0;
  color: var(--text);
  font-weight: 700;
}

.project-tags,
.stack-cloud,
.soft-grid,
.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags {
  margin-top: auto;
  padding-top: 22px;
}

.tag,
.soft-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
}

.timeline-date {
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 10px;
}

.timeline-org {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(110, 242, 255, 0.12), transparent 26%),
    radial-gradient(circle at 10% 80%, rgba(119, 166, 255, 0.14), transparent 24%),
    var(--panel-strong);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.25), transparent 70%);
}

.contact-points {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.contact-points a {
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 1100px) {
  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .about-grid,
  .projects-grid,
  .skills-layout,
  .featured-project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-panel {
    min-height: 520px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .language-switch {
    align-self: flex-start;
  }

  .portrait-frame {
    width: min(100%, 300px);
  }

  .portrait-badge {
    position: static;
    display: inline-flex;
    margin-top: 14px;
  }

  .section {
    padding-top: 80px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .glass-card,
  .project-card,
  .contact-card,
  .timeline-item,
  .spotlight-card,
  .identity-card,
  .featured-project-card,
  .featured-project-copy,
  .featured-project-panel {
    padding: 22px;
  }

  .project-glow {
    margin: -22px -22px 20px;
  }

  h1 {
    max-width: 12ch;
  }
}

/* --- Screenshot preview real --- */
.preview-screen-screenshot {
  padding: 0;
  min-height: 276px;
  overflow: hidden;
  background: #0a0e1a;
}

.preview-screenshot-img {
  display: block;
  width: 100%;
  height: 276px;
  object-fit: cover;
  object-position: top center;
  transition: transform 420ms ease;
}

.website-preview:hover .preview-screenshot-img {
  transform: scale(1.04);
}
