:root {
  --bg: #130b28;
  --panel: #170d31;
  --panel-2: #1d1238;
  --stroke: #54308d;
  --stroke-soft: #3d246f;
  --purple: #8a41ff;
  --purple-2: #a34cff;
  --text: #f6efff;
  --muted: #d9ccec;
  --faint: #9d8ab8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(138, 65, 255, .34), transparent 34%),
    linear-gradient(135deg, #15082d, #220b49 48%, #130b28);
  color: #fff;
  transition: opacity .55s ease, visibility .55s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
}

.loader-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, .16);
  border-top-color: #a34cff;
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
  box-shadow: 0 0 34px rgba(163, 76, 255, .38);
}

.loader-mark span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a34cff;
  box-shadow: 0 0 16px rgba(163, 76, 255, .9);
  animation: loaderPulse 1.1s ease-in-out infinite;
}

.loader-mark span:nth-child(2) {
  animation-delay: .14s;
}

.loader-mark span:nth-child(3) {
  animation-delay: .28s;
}

.preloader p {
  margin: 0;
  color: #eadfff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: .45;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

#animatedBg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 11, 40, .96), rgba(18, 8, 39, .98)),
    #130b28;
}

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

.site-shell {
  width: min(1140px, calc(100% - 64px));
  margin: 40px auto 0;
  padding: 46px 46px 84px;
  border: 4px solid var(--stroke);
  border-radius: 14px;
  background: rgba(19, 11, 40, .92);
  backdrop-filter: blur(2px);
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 35px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #d8c7ef;
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease;
}

.nav::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #8a41ff, #d3a8ff);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  opacity: .85;
  transition: transform .12s linear;
}

.nav.nav-scrolled {
  background: rgba(19, 11, 40, .82);
  border-color: rgba(122, 57, 216, .48);
  box-shadow: 0 16px 40px rgba(6, 2, 16, .28), 0 0 28px rgba(138, 65, 255, .14);
  backdrop-filter: blur(12px);
}

.nav a:not(.download):hover {
  color: #fff;
}

.nav a:not(.download) {
  position: relative;
  transition: color .25s ease, transform .25s ease;
}

.nav a:not(.download)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: #a34cff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav a:not(.download):hover,
.nav a.active {
  color: #fff;
}

.nav a:not(.download):hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.download {
  min-width: 182px;
  padding: 13px 23px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8840fa, #6a2bc9);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(138, 65, 255, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(138, 65, 255, .28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 52px;
  align-items: center;
  min-height: 520px;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(8px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2, .7, .2, 1),
    filter .75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  transform: translateX(-42px);
}

.reveal-right {
  transform: translateX(42px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0);
}

.skill-card,
.project-card,
.stats-card,
.timeline-image,
.contact-list a {
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2, .7, .2, 1),
    filter .75s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.skill-card:hover,
.project-card:hover {
  border-color: rgba(163, 76, 255, .78);
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(8, 3, 20, .28), 0 0 24px rgba(138, 65, 255, .14);
}

.pill,
.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  height: 40px;
  padding: 0 18px;
  border-radius: 7px;
  background: #2a155d;
  color: #d7c9e9;
  font-size: 13px;
  font-weight: 600;
}

.hero h1,
.section h2,
.timeline-section h2,
.contact h2 {
  margin: 21px 0 8px;
  font-size: 39px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 span,
.section h2 span,
.contact h3 {
  color: var(--purple-2);
}

.hero h2 {
  margin: 0 0 18px;
  color: var(--purple-2);
  font-size: 19px;
  line-height: 1.2;
}

.hero p,
.about p,
.timeline-card p,
.edu-card p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 52px;
}

.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  height: 45px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn {
  gap: 8px;
  background: linear-gradient(135deg, #8f3eff, #772bdc);
  box-shadow: 0 12px 30px rgba(137, 65, 255, 0.18);
}

.outline-btn {
  border: 2px solid var(--stroke);
  color: #e6d7f7;
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}

.social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.social:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .82);
  outline-offset: 3px;
}

.social svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.social-github {
  background: linear-gradient(135deg, #2b3137, #6e40c9);
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2, #34a4ff);
}

.social-instagram {
  background: radial-gradient(circle at 28% 105%, #feda75 0 18%, #fa7e1e 34%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
}

.social-linkedin {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.hero-portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 365px;
  isolation: isolate;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(163, 76, 255, .34) 0 27%, rgba(122, 57, 216, .16) 28% 48%, transparent 66%),
    conic-gradient(from 90deg, transparent 0 16%, rgba(170, 96, 255, .45) 26%, transparent 40% 74%, rgba(120, 61, 230, .38) 88%, transparent 100%);
  filter: blur(.2px);
  opacity: .92;
  z-index: -1;
  animation: portraitHalo 11s linear infinite;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 72px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #9f52ff;
  box-shadow:
    0 0 18px 7px rgba(163, 76, 255, .64),
    -235px 42px 0 -5px rgba(172, 98, 255, .9),
    -235px 42px 18px 1px rgba(172, 98, 255, .34),
    -55px 248px 0 -6px rgba(126, 62, 229, .9),
    -55px 248px 18px 1px rgba(126, 62, 229, .33);
  z-index: 2;
  animation: portraitSpark 3.8s ease-in-out infinite;
}

.portrait-orb {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 38%, rgba(188, 132, 255, .18) 0 29%, transparent 30%),
    radial-gradient(circle at 50% 50%, #6a43b0 0 52%, #47247f 74%, #2b1559 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 38px rgba(94, 49, 166, .18),
    0 0 0 78px rgba(106, 54, 193, .08),
    0 0 76px 18px rgba(137, 65, 255, .38);
}

.portrait-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .34) 0 2px, transparent 4px),
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, .18) 0 1px, transparent 3px),
    linear-gradient(145deg, rgba(255, 255, 255, .14), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.profile-photo {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 78%;
  height: auto;
  display: block;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(4, 2, 12, .38));
  z-index: 2;
}

@keyframes portraitHalo {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.025);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes portraitSpark {
  0%,
  100% {
    opacity: .62;
    transform: scale(.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.experience-badge {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 112px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  border: 1px solid rgba(163, 76, 255, .5);
  border-radius: 10px;
  background: rgba(29, 18, 56, 0.84);
  box-shadow: 0 18px 38px rgba(8, 3, 20, .34), 0 0 22px rgba(138, 65, 255, .2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  line-height: 1.15;
  z-index: 4;
}

.experience-badge strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.section {
  padding-top: 66px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 78px;
  align-items: center;
}

.about p + p {
  margin-top: 4px;
}

.stats-card {
  min-height: 310px;
  padding: 50px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  place-items: center;
  border: 4px solid var(--stroke-soft);
  border-radius: 24px;
}

.stat {
  text-align: center;
  color: #eee5ff;
}

.stat-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  color: #161226;
  font-size: 32px;
  font-weight: 900;
}

.clipboard-icon::before {
  content: "";
  width: 28px;
  height: 36px;
  border: 7px solid #161226;
  border-radius: 4px;
  box-shadow: inset 0 8px 0 -4px #161226;
}

.stat strong {
  display: block;
  font-size: 13px;
}

.stat span {
  color: #d7c8ef;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 52px;
  margin-top: 62px;
}

.skill-card {
  height: 153px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  gap: 12px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 34px rgba(8, 3, 20, .22);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 112px;
  background: var(--skill-glow, rgba(163, 76, 255, .34));
  filter: blur(28px);
  opacity: .72;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 46px rgba(8, 3, 20, .32);
}

.skill-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: block;
  color: var(--logo-color, #a34cff);
  fill: currentColor;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .24));
}

.skill-mark {
  fill: var(--logo-accent, currentColor);
}

.app-letter {
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--logo-bg, rgba(255, 255, 255, .12));
  border: 1px solid var(--logo-border, rgba(255, 255, 255, .24));
  color: var(--logo-color, #d7c8ef);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.skill-photoshop .app-letter,
.skill-illustrator .app-letter,
.skill-animate .app-letter {
  font-size: 24px;
}

.skill-name {
  position: relative;
  z-index: 1;
  color: var(--logo-label, #f8f2ff);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.skill-html {
  --skill-glow: rgba(241, 101, 41, .58);
  --logo-color: #e34f26;
  --logo-accent: #ffb089;
  --logo-label: #ffb089;
  background: linear-gradient(145deg, rgba(241, 101, 41, .22), rgba(95, 40, 24, .36));
}

.skill-css {
  --skill-glow: rgba(41, 101, 241, .58);
  --logo-color: #1572b6;
  --logo-accent: #8bd3ff;
  --logo-label: #8bd3ff;
  background: linear-gradient(145deg, rgba(41, 101, 241, .24), rgba(22, 50, 122, .38));
}

.skill-word {
  --skill-glow: rgba(43, 87, 154, .62);
  --logo-bg: #185abd;
  --logo-border: rgba(89, 154, 255, .42);
  --logo-color: #8bc3ff;
  --logo-label: #8bc3ff;
  background: linear-gradient(145deg, rgba(43, 87, 154, .32), rgba(24, 47, 92, .42));
}

.skill-excel {
  --skill-glow: rgba(33, 115, 70, .62);
  --logo-bg: #107c41;
  --logo-border: rgba(78, 221, 141, .38);
  --logo-color: #8ff0b8;
  --logo-label: #8ff0b8;
  background: linear-gradient(145deg, rgba(33, 115, 70, .34), rgba(16, 67, 42, .44));
}

.skill-powerpoint {
  --skill-glow: rgba(210, 71, 38, .62);
  --logo-bg: #c43e1c;
  --logo-border: rgba(255, 142, 95, .42);
  --logo-color: #ffb38a;
  --logo-label: #ffb38a;
  background: linear-gradient(145deg, rgba(210, 71, 38, .34), rgba(112, 37, 31, .42));
}

.skill-photoshop {
  --skill-glow: rgba(49, 168, 255, .66);
  --logo-bg: #001e36;
  --logo-border: rgba(49, 168, 255, .58);
  --logo-color: #31a8ff;
  --logo-label: #66c2ff;
  background: linear-gradient(145deg, rgba(49, 168, 255, .24), rgba(0, 30, 54, .58));
}

.skill-illustrator {
  --skill-glow: rgba(255, 154, 0, .64);
  --logo-bg: #330000;
  --logo-border: rgba(255, 154, 0, .58);
  --logo-color: #ff9a00;
  --logo-label: #ffb64d;
  background: linear-gradient(145deg, rgba(255, 154, 0, .26), rgba(70, 36, 0, .54));
}

.skill-canva {
  --skill-glow: rgba(0, 196, 204, .66);
  --logo-bg: linear-gradient(135deg, #00c4cc, #7d2ae8);
  --logo-border: rgba(95, 235, 255, .46);
  --logo-color: #69efff;
  --logo-label: #8ff6ff;
  background: linear-gradient(145deg, rgba(0, 196, 204, .32), rgba(125, 42, 232, .36));
}

.skill-animate {
  --skill-glow: rgba(255, 55, 115, .62);
  --logo-bg: #2b061c;
  --logo-border: rgba(255, 55, 115, .54);
  --logo-color: #ff3773;
  --logo-label: #ff7da4;
  background: linear-gradient(145deg, rgba(255, 55, 115, .28), rgba(68, 28, 148, .42));
}

.skill-capcut {
  --skill-glow: rgba(18, 227, 212, .52);
  --logo-color: #12e3d4;
  --logo-label: #88fff7;
  background: linear-gradient(145deg, rgba(20, 23, 35, .82), rgba(92, 96, 118, .35));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 74px 78px;
  margin-top: 82px;
}

.project-card {
  min-height: 323px;
  padding: 34px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border: 4px solid var(--stroke-soft);
  border-radius: 20px;
  background: #160d2e;
}

.project-card h3 {
  margin: 24px 0 0;
  font-size: 31px;
  line-height: 1.1;
  text-align: center;
}

.project-thumb {
  width: 100%;
  max-width: 358px;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #101018;
  object-fit: cover;
}

.project-video {
  width: 100%;
  max-width: 358px;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border: 2px solid var(--stroke-soft);
  border-radius: 8px;
  background: #06030e;
  display: block;
}

/* Coding Projects Carousel */
.coding-projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 60px;
}

.coding-project-group h3 {
  font-size: 24px;
  color: var(--purple-2);
  margin-bottom: 24px;
  text-align: center;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 4px solid var(--stroke-soft);
  border-radius: 20px;
  background: #160d2e;
  padding: 20px;
  overflow: hidden;
}

.carousel-view {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  background: #000;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 65, 255, 0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-control:hover {
  background: rgba(138, 65, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stroke-soft);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--purple-2);
  box-shadow: 0 0 10px var(--purple-2);
}

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 82px;
}

.timeline-section h2 {
  font-size: 34px;
  margin-top: 34px;
}

.timeline-image {
  width: 100%;
  display: block;
  margin-top: 42px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 96px;
  margin-top: 42px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 230px;
  bottom: 226px;
  width: 4px;
  transform: translateX(-50%);
  background: #7c47d5;
}

.timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 307px;
  width: 21px;
  height: 21px;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 50%;
  background: #8b40f1;
  box-shadow: 0 0 0 2px #7c47d5;
}

.timeline-card,
.edu-card {
  min-height: 260px;
  padding: 32px 32px;
  border-radius: 8px;
  background: #fff;
  color: #5a4b75;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(118, 68, 206, .18);
}

.timeline-card h3,
.edu-card h3 {
  margin: 0 0 4px;
  color: #503879;
  font-size: 19px;
}

.timeline-card strong,
.edu-card strong {
  display: block;
  margin-bottom: 12px;
  color: #8156d8;
  font-size: 13px;
}

.timeline-card span,
.edu-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: #8d65d8;
  font-size: 11px;
  font-weight: 800;
}

.timeline-card p,
.edu-card p {
  max-width: 250px;
  color: #6e607e;
  font-size: 10px;
  line-height: 1.45;
}

.timeline-card::after,
.edu-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 128px;
  height: 128px;
  opacity: .75;
  background: radial-gradient(circle, #a987f5 0 12%, transparent 13%);
}

.growth::after {
  background:
    linear-gradient(135deg, transparent 0 50%, #8f59e9 51%),
    radial-gradient(circle at 25% 80%, #8f59e9 0 16px, transparent 17px);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.presentation::after {
  background:
    linear-gradient(#9b72e8 0 0) 20px 34px / 82px 56px no-repeat,
    radial-gradient(circle at 38px 54px, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 30px 105px, #a985ed 0 18px, transparent 19px);
}

.education-list {
  position: relative;
  display: grid;
  gap: 58px;
  margin-top: 42px;
}

.education-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 162px;
  bottom: 145px;
  width: 4px;
  transform: translateX(-50%);
  background: #7c47d5;
}

.education-list::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 211px;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: #8b40f1;
  box-shadow:
    0 360px 0 0 #8b40f1,
    0 360px 0 4px #fff,
    0 360px 0 6px #7c47d5;
}

.edu-card {
  min-height: 178px;
  padding: 22px 26px;
}

.edu-card p {
  max-width: 285px;
}

.school::after {
  background:
    linear-gradient(#986df0 0 0) 28px 40px / 78px 68px no-repeat,
    linear-gradient(135deg, transparent 48%, #c6b1f8 49%);
}

.book::after {
  background:
    linear-gradient(90deg, #9b74ed 0 48%, transparent 49% 51%, #b99ef7 52%) center / 106px 72px no-repeat;
  border-radius: 10px;
}

.laptop::after {
  background:
    linear-gradient(#9b73ed 0 0) center 25px / 92px 58px no-repeat,
    linear-gradient(#8662d8 0 0) center 91px / 114px 14px no-repeat;
}

.university::after {
  background:
    linear-gradient(135deg, transparent 48%, #b99ef7 49%),
    linear-gradient(#9b73ed 0 0) center 58px / 108px 15px no-repeat;
  clip-path: polygon(50% 0, 100% 36%, 88% 36%, 88% 100%, 12% 100%, 12% 36%, 0 36%);
}

.contact {
  max-width: 520px;
  padding-top: 94px;
}

.contact h2 {
  margin-bottom: 8px;
  font-size: 36px;
}

.contact h3 {
  margin: 0 0 62px;
  font-size: 24px;
  line-height: 1.1;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-bottom: 45px;
}

.contact-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  color: #d6c7e7;
  font-size: 18px;
  font-weight: 500;
}

.contact-list strong {
  display: block;
  color: #f3eaff;
  font-size: 18px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.small-btn {
  min-width: 172px;
  height: 43px;
}

footer {
  padding: 72px 24px 58px;
  color: var(--purple);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 24px, 620px);
    padding: 28px 22px 60px;
    border-width: 2px;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .download {
    min-width: 145px;
  }

  .hero,
  .about,
  .career-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 20px;
    padding-top: 46px;
  }

  .hero h1,
  .section h2,
  .timeline-section h2,
  .contact h2 {
    font-size: 32px;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .hero-portrait {
    min-height: 310px;
  }

  .hero-portrait::before {
    width: 305px;
    height: 305px;
  }

  .hero-portrait::after {
    right: 70px;
    top: 48px;
    transform: scale(.8);
  }

  .portrait-orb {
    width: 250px;
    height: 250px;
    box-shadow:
      0 0 0 28px rgba(94, 49, 166, .18),
      0 0 0 54px rgba(106, 54, 193, .08),
      0 0 58px 14px rgba(137, 65, 255, .34);
  }

  .experience-badge {
    right: calc(50% - 162px);
    bottom: 48px;
    width: 104px;
    min-height: 76px;
  }

  .stats-card {
    min-height: 220px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-card {
    min-height: 260px;
  }

  .carousel {
    border-width: 2px;
    padding: 10px;
  }

  .coding-project-group h3 {
    font-size: 20px;
  }

  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .career-grid {
    gap: 54px;
  }

  .contact-list a {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 18px);
    margin-top: 18px;
    padding: 22px 16px 48px;
  }

  .nav {
    font-size: 12px;
  }

  .hero p,
  .about p {
    font-size: 13px;
  }

  .primary-btn,
  .outline-btn {
    width: 100%;
  }

  .socials {
    justify-content: center;
  }

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

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

  .timeline-card,
  .edu-card {
    padding: 22px;
  }

  .timeline::before,
  .timeline::after,
  .education-list::before,
  .education-list::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
