:root {
  --bg-soft: #090b16;
  --bg: #060811;
  --text: #eceff8;
  --muted: #a8afc4;
  --line: #1b2135;
  --accent: #7c3aed;
  --accent-2: #a855f7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at -10% -20%, rgba(124, 58, 237, 0.16), transparent 65%),
    radial-gradient(900px 500px at 110% -25%, rgba(168, 85, 247, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

.top-hero {
  background: linear-gradient(160deg, #090d1f 0%, #0a1024 100%);
  border-top: 2px solid #21294a;
  border-bottom: 1px solid #1d2542;
  padding: 20px 20px 32px;
  position: relative;
  overflow: hidden;
}

.top-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28), rgba(168, 85, 247, 0) 70%);
  pointer-events: none;
}

.profile-wrap {
  max-width: 980px;
  margin: 8px auto 0;
  text-align: center;
}

.profile-wrap img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: floatIn 700ms ease-out both;
}

h1 {
  margin: 10px 0 2px;
  font-size: clamp(1.8rem, 4vw, 2.1rem);
  font-weight: 600;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.01em;
}

.role {
  margin: 0;
  font-size: 1.08rem;
  color: #bec7dd;
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 9px 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
}

.btn-outline {
  color: #e6ebff;
  border: 1px solid #31395b;
  background: rgba(19, 25, 45, 0.85);
}

.btn:hover {
  transform: translateY(-2px);
}

.about {
  background: rgba(10, 14, 28, 0.95);
  border-top: 1px solid #161f3b;
  border-bottom: 1px solid #161f3b;
}

.content {
  width: min(900px, 90vw);
  margin: 0 auto;
}

.about .content {
  text-align: center;
  padding: 56px 0 34px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
}

.about p {
  margin: 0 auto 12px;
  max-width: 45ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
}

.services {
  padding: 28px 0 14px;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-grid article {
  border: 1px solid #242c47;
  border-radius: 14px;
  background: rgba(13, 19, 36, 0.88);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

.service-grid article::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120px;
  background: radial-gradient(circle at 50% 0, rgba(124, 58, 237, 0.28), rgba(124, 58, 237, 0));
  pointer-events: none;
}

.service-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.service-grid h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #c3b2ff;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.4);
  margin-bottom: 8px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills {
  padding: 34px 0 46px;
  background: linear-gradient(180deg, #040714 0%, #070a17 100%);
  border-top: 1px solid #151d34;
  border-bottom: 1px solid #151d34;
}

.skills h3 {
  color: #edf1ff;
  text-align: center;
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.skills-sub {
  margin: 0 0 20px;
  color: #a8b2cb;
  font-size: 0.95rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

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

.skill-group {
  margin-top: 30px;
  padding-top: 4px;
}

.skill-group h4 {
  margin: 0 0 14px;
  color: #d9deef;
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  padding-left: 30px;
}

.skill-group h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: #7c3aed;
  transform: translateY(-50%);
}

.skill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 14px;
  color: #e1e6f8;
  font-size: 0.95rem;
  align-content: start;
}

.skill-item b {
  color: #8b5cf6;
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-item i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.skill-item i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--level);
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
  border-radius: 999px;
  animation: growBar 1100ms ease both;
}

.work {
  padding: 16px 0 42px;
  background: transparent;
}

.work-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.project-card {
  border: 1px solid #242c47;
  border-radius: 16px;
  padding: 14px;
  background: rgba(13, 19, 36, 0.88);
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.project-card.compact {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 14px;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  margin-bottom: 10px;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
}

.project-card.compact img {
  max-width: 240px;
}

.project-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid #1a223b;
  text-align: center;
  padding: 18px 10px 22px;
  color: var(--muted);
  background: #090d1d;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #b79dff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.privacy {
  padding: 8px 0 34px;
}

.privacy-card {
  border: 1px solid #242c47;
  border-radius: 14px;
  background: rgba(13, 19, 36, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-updated {
  font-size: 0.82rem;
  color: #8a95b3;
  margin-bottom: 10px;
}

.privacy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.privacy-card h4 {
  margin: 12px 0 6px;
  font-size: 0.98rem;
  color: var(--text);
}

.privacy-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.privacy-card li:last-child {
  margin-bottom: 0;
}

.policy-contact {
  margin-top: 12px;
  font-size: 0.95rem;
}

.privacy-card a {
  color: #b79dff;
}

@media (max-width: 700px) {
  .top-hero {
    padding: 14px 14px 22px;
  }

  .profile-wrap img {
    width: 150px;
    height: 150px;
    border-width: 7px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .role {
    font-size: 0.96rem;
  }

  .about .content {
    padding: 30px 0 20px;
  }

  h2 {
    font-size: 1.65rem;
  }

  .about p {
    font-size: 0.98rem;
    max-width: 33ch;
    margin-bottom: 9px;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid.modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .project-card.compact img {
    max-width: 100%;
  }

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

  .project-gallery img {
    max-height: none;
  }
}

.confidential-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.94rem;
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 8px;
}

.back-home {
  margin-top: 12px;
}

.back-home a {
  color: #b79dff;
  text-decoration: none;
  font-weight: 600;
}

.back-home a:hover {
  text-decoration: underline;
}

.privacy-page {
  min-height: 100svh;
  padding: 26px 0;
}

.social-links {
  margin-top: 6px !important;
  font-size: 0.92rem;
}

.social-links span {
  margin: 0 6px;
  color: #7380a7;
}

h1, h2, h3, .project-title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.01em;
}

@media (min-width: 901px) {
  .content {
    width: min(980px, 90vw);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: var(--level);
  }
}
