:root {
  --bg: #09070d;
  --paper: rgba(17, 13, 24, 0.88);
  --paper-strong: rgba(24, 17, 34, 0.96);
  --text: #f5f1ff;
  --muted: #b8b0cc;
  --line: rgba(186, 164, 255, 0.16);
  --line-strong: rgba(186, 164, 255, 0.34);
  --accent: #9b5cff;
  --accent-strong: #c48cff;
  --accent-soft: rgba(155, 92, 255, 0.14);
  --accent-warm: #ff6fb5;
  --accent-cool: #6f7dff;
  --max-width: 1120px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #0c0912 0%, #09070d 54%, #120a1a 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(9, 7, 13, 0.38), rgba(9, 7, 13, 0.5)),
    url("../assets/background.png") center center / cover no-repeat;
  transform: scale(1.04);
  transform-origin: center;
  animation: backgroundFloat 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(111, 125, 255, 0.1), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 111, 181, 0.08), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(155, 92, 255, 0.1), transparent 28%);
}

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

p,
dt,
span,
a {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.04em;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.75rem 0 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 0.9rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(180deg, rgba(12, 9, 18, 0.78), rgba(12, 9, 18, 0.44));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(196, 140, 255, 0.24);
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.22), rgba(111, 125, 255, 0.2));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 3rem;
  align-items: start;
  padding: 0.75rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 10.5ch;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.93;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-shadow: 0 0 18px rgba(155, 92, 255, 0.2);
}

.hero-text {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cool) 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(111, 125, 255, 0.22);
}

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

.hero-aside {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.profile-image-frame {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  padding: 0.45rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 140, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(155, 92, 255, 0.24), rgba(255, 111, 181, 0.14)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-note {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.hero-facts {
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.hero-facts div {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.hero-facts div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hero-facts dt {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #fbf8ff;
}

.site-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.projects-section .section-intro {
  display: block;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.project-list {
  display: grid;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.project-visual {
  min-height: 14rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(155, 92, 255, 0.3), rgba(111, 125, 255, 0.18)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 16px,
      rgba(255, 255, 255, 0.03) 16px,
      rgba(255, 255, 255, 0.03) 32px
    );
  border: 1px solid rgba(196, 140, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.project-visual-enrollment {
  background:
    linear-gradient(180deg, rgba(9, 7, 13, 0.04), rgba(9, 7, 13, 0.28)),
    url("../assets/college-enrollment-system.png") center center / cover no-repeat;
}

.project-visual-registration-payment {
  background:
    linear-gradient(180deg, rgba(9, 7, 13, 0.04), rgba(9, 7, 13, 0.28)),
    url("../assets/registration-payment-platform.png") center center / cover no-repeat;
}

.project-content {
  max-width: 42rem;
}

.project-meta {
  margin-bottom: 0.8rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.project-title {
  margin-bottom: 0.55rem;
  font-size: 1.7rem;
}

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

.project-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 140, 255, 0.18);
  background: var(--accent-soft);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #dec8ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: start;
}

.split-section .section-intro {
  margin-bottom: 0;
  grid-template-columns: 1fr;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.service-item span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--text);
}

.service-item span:last-child {
  color: var(--muted);
  text-align: left;
}

.resume-card {
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}

.resume-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.resume-download {
  margin-top: 0.6rem;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  transition: padding-left 180ms ease, color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  padding-left: 0.5rem;
  color: var(--accent-warm);
}

.footer {
  padding-top: 1.5rem;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}

@keyframes backgroundFloat {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
    filter: saturate(1) brightness(0.92);
  }

  50% {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
    filter: saturate(1.08) brightness(0.98);
  }

  100% {
    transform: scale(1.06) translate3d(1%, 1%, 0);
    filter: saturate(1.03) brightness(0.95);
  }
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .section-intro,
  .project-entry {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
  }

  .hero-aside {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .section-intro {
    gap: 1rem;
  }

  .project-entry {
    gap: 1.3rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 1.1rem));
  }

  .topbar {
    position: static;
    align-items: start;
    flex-direction: column;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

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

  body::before {
    animation-duration: 22s;
  }
}
