:root {
  --bg: #f7f2ed;
  --bg-soft: #fffaf6;
  --surface: rgba(255, 250, 246, 0.82);
  --surface-strong: #ffffff;
  --text: #1f1b2e;
  --muted: #5f5873;
  --line: rgba(53, 37, 87, 0.12);
  --brand: #7c3aed;
  --brand-deep: #2d1b69;
  --brand-soft: #efe4ff;
  --accent: #ff8a3d;
  --shadow: 0 24px 70px rgba(36, 18, 74, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 88px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf6 0%, #f7f2ed 48%, #fff8f2 100%);
}

a {
  text-decoration: none;
}

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

.site-nav {
  background: rgba(32, 20, 53, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(16, 10, 28, 0.16);
}

.site-nav .navbar-brand,
.site-nav .nav-link {
  color: #fff;
}

.site-nav .nav-link {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: #fff;
  opacity: 1;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover,
.nav-cta:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.nav-lang-item {
  margin-left: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
  border: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 138, 61, 0.28), transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(135deg, #1c1233 0%, #2d1b69 45%, #5a2dbd 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
}

.eyebrow,
.section-kicker,
.hero-card-label,
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 2rem;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(8, 5, 18, 0.22);
  backdrop-filter: blur(10px);
}

.hero-layout {
  position: relative;
  z-index: 1;
}

.hero-artboard {
  position: relative;
  min-height: 840px;
  padding-bottom: 1rem;
}

.portrait-stack {
  position: relative;
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 2rem 1rem 7rem;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 50px rgba(16, 10, 28, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: rotate(-4deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  pointer-events: none;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  filter: saturate(1.05) contrast(1.03);
}

.portrait-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.orbit-one {
  top: 8%;
  left: 2%;
  width: 180px;
  height: 180px;
  border-style: dashed;
  opacity: 0.65;
}

.orbit-two {
  right: 4%;
  bottom: 20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 70%);
}

.portrait-note {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 35px rgba(10, 6, 20, 0.2);
  max-width: 220px;
}

.note-top {
  top: 6%;
  right: 0;
  background: rgba(255, 138, 61, 0.2);
  border: 1px solid rgba(255, 138, 61, 0.35);
  transform: rotate(7deg);
}

.note-bottom {
  left: 0;
  bottom: 19%;
  background: rgba(124, 58, 237, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(-3deg);
}

.hero-card-label {
  margin-bottom: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-card h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.hero-card p,
.hero-list {
  color: rgba(255, 255, 255, 0.86);
}

.hero-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.hero-list li + li {
  margin-top: 0.5rem;
}

.hero-artboard .hero-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 320px);
  z-index: 4;
  transform: rotate(4deg);
  transform-origin: bottom right;
}

.btn-brand,
.btn-brand-dark {
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff6f61);
  box-shadow: 0 16px 34px rgba(255, 111, 97, 0.28);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(255, 111, 97, 0.32);
}

.btn-brand-dark {
  color: #fff;
  background: var(--brand-deep);
}

.btn-brand-dark:hover,
.btn-brand-dark:focus {
  color: #fff;
  background: #231552;
}

.section-block {
  padding: 5.5rem 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.42);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-kicker {
  margin: 0 auto 1rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p,
.contact-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-panel,
.skill-card,
.project-card,
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-panel {
  padding: 2.25rem;
}

.skill-card {
  padding: 2rem;
}

.skill-card h3 {
  margin-bottom: 1.35rem;
  font-size: 1.25rem;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.skill-grid span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid rgba(53, 37, 87, 0.08);
  font-weight: 600;
}

.skill-grid i {
  color: var(--brand);
}

.project-group + .project-group {
  margin-top: 4rem;
}

.group-heading {
  margin-bottom: 1.5rem;
}

.group-heading h3 {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.group-heading p {
  margin: 0;
  color: var(--muted);
}

.project-card {
  overflow: hidden;
}

.project-card.featured {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-image-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6ddf5;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 75px rgba(36, 18, 74, 0.16);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.8rem;
}

.project-top h4 {
  margin-bottom: 0.85rem;
  font-size: 1.4rem;
}

.project-top p {
  color: var(--muted);
  line-height: 1.75;
}

.project-tag {
  margin-bottom: 1rem;
  color: var(--brand-deep);
  background: #f2ecff;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.project-actions {
  margin-top: auto;
  padding-top: 1.5rem;
}

.certificate-card {
  overflow: hidden;
}

.certificate-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.certificate-body {
  padding: 1.25rem;
}

.certificate-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.certificate-body p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding: 5rem 0;
  color: #fff;
  background:
    radial-gradient(circle at center top, rgba(255, 138, 61, 0.18), transparent 18%),
    linear-gradient(135deg, #201435 0%, #2c1d5c 55%, #40277f 100%);
}

.contact-section .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.contact-copy {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-links a {
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  body {
    padding-top: 78px;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-artboard {
    min-height: unset;
  }

  .portrait-stack {
    padding-bottom: 2rem;
  }

  .hero-artboard .hero-card {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    transform: none;
  }

  .site-nav .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(22, 14, 38, 0.92);
  }

  .nav-lang-item {
    margin: 0.75rem 0;
  }
}

@media (max-width: 767.98px) {
  .section-block,
  .contact-section {
    padding: 4rem 0;
  }

  .hero-actions,
  .hero-meta,
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-links a {
    width: 100%;
    text-align: center;
  }

  .hero-card,
  .about-panel,
  .skill-card,
  .project-body {
    padding: 1.5rem;
  }

  .portrait-frame {
    transform: rotate(0deg);
  }

  .portrait-note {
    position: static;
    margin-bottom: 1rem;
    transform: none;
  }

  .portrait-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .orbit-one,
  .orbit-two {
    display: none;
  }
}
