:root {
  --bg: #080d1b;
  --soft: #0e162a;
  --text: #f8f9fd;
  --muted: #a8b1c6;
  --primary: #7657ff;
  --cyan: #56d9e4;
  --pink: #ff7db5;
  --line: rgba(255, 255, 255, 0.1);
  --dark: #12182a;
  --light: #f3f5fa;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0, rgba(118, 87, 255, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: 0.25s;
}
.header.scrolled {
  background: rgba(8, 13, 27, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}
.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  font-size: 0.75rem;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #c8cfde;
  font-size: 0.86rem;
  font-weight: 650;
}
.pill {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  width: 42px;
  height: 42px;
}
.hero {
  min-height: 100vh;
  padding: 145px 0 90px;
  display: grid;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.purple {
  color: #6b4ff0;
}
.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.hero h1 {
  font-size: clamp(3.7rem, 7vw, 7rem);
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #fff, #bcaeff, var(--cyan));
  background-clip: text;
}
.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 28px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  min-height: 49px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 750;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: linear-gradient(135deg, var(--primary), #5b3be8);
  box-shadow: 0 15px 35px rgba(118, 87, 255, 0.3);
}
.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stats div {
  display: grid;
}
.stats span {
  color: var(--muted);
  font-size: 0.73rem;
}
.profile {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.available {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: left;
}
.available::first-letter {
  color: #44dfa0;
}
.avatar {
  width: 170px;
  height: 170px;
  margin: 45px auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), #291d7b);
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: 0 25px 55px rgba(88, 54, 210, 0.45);
}
.profile h2 {
  margin: 0;
  font-size: 1.55rem;
}
.profile > p {
  margin: 5px 0 28px;
  color: var(--muted);
}
pre {
  margin: 0;
  padding: 18px;
  text-align: left;
  border-radius: 16px;
  background: #050914;
  border: 1px solid var(--line);
  color: #bfe8dc;
  white-space: pre-wrap;
  font-size: 0.74rem;
}
.section {
  padding: 105px 0;
}
.light {
  background: var(--light);
  color: var(--dark);
}
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 85px;
  align-items: start;
}
.section h2,
.contact h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}
.big {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 650;
}
.muted-dark {
  color: #687186;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.mini-grid article {
  padding: 22px;
  border: 1px solid #dde2ec;
  border-radius: 18px;
  background: white;
}
.mini-grid b {
  color: #6b4ff0;
  font-size: 0.72rem;
}
.mini-grid h3 {
  font-size: 0.98rem;
  margin: 14px 0 6px;
}
.mini-grid p {
  font-size: 0.8rem;
  color: #6b7486;
  margin: 0;
}
.center {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skills article {
  padding: 25px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  transition: 0.25s;
}
.skills article:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 87, 255, 0.55);
}
.skills span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 0.74rem;
  font-weight: 900;
}
.skills h3 {
  margin: 26px 0 6px;
}
.skills p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.timeline {
  display: grid;
  gap: 18px;
}
.timeline article {
  padding: 27px;
  border: 1px solid #d9deea;
  border-radius: 21px;
  background: white;
}
.timeline small {
  color: #6b4ff0;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.timeline h3 {
  margin: 10px 0 2px;
  font-size: 1.2rem;
}
.timeline b {
  color: #44506a;
}
.timeline p {
  color: #6b7486;
  margin-bottom: 0;
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}
.project-head > p {
  max-width: 380px;
  color: var(--muted);
}
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.projects article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}
.projects .wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.mock {
  min-height: 320px;
  display: grid;
  place-items: center;
}
.wide .mock {
  min-height: 430px;
}
.dashboard {
  background: linear-gradient(135deg, #563bbd, #17365b 60%, #087886);
}
.mobile {
  background: linear-gradient(135deg, #182c56, #7542b1, #ed75ab);
}
.website {
  background: linear-gradient(135deg, #0d6570, #1b3c54, #39235f);
}
.screen {
  width: 78%;
  height: 62%;
  border: 12px solid #e9edf6;
  border-radius: 16px;
  background: linear-gradient(90deg, #151e3b 0 22%, #f4f6fa 22%);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 55px 25px 20px 26%;
}
.screen i {
  display: block;
  flex: 1;
  height: 65px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 5px 15px rgba(20, 25, 50, 0.1);
}
.phone {
  width: 155px;
  height: 285px;
  border: 7px solid #11182c;
  border-radius: 30px;
  background: linear-gradient(#f5f7fb 0 55%, #7256ef 55%);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  transform: rotate(7deg);
}
.site {
  width: 76%;
  height: 58%;
  border: 12px solid #eef1f7;
  border-radius: 16px;
  background: linear-gradient(#17213a 0 18%, #7458ef 18% 58%, #eef1f7 58%);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
}
.project-copy {
  padding: 28px;
}
.wide .project-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-copy small {
  color: var(--cyan);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.project-copy h3 {
  font-size: 1.55rem;
  margin: 10px 0;
}
.project-copy p {
  color: var(--muted);
  font-size: 0.88rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #cbd2df;
  font-size: 0.67rem;
}
.contact {
  padding: 55px 0 100px;
}
.contact-card {
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(80, 217, 228, 0.24),
      transparent 30%
    ),
    linear-gradient(130deg, #39269b, #7047df 55%, #287383);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
.contact-card > div:first-child {
  max-width: 720px;
}
.contact-card p:last-child {
  color: rgba(255, 255, 255, 0.76);
}
.contact-card > div:last-child {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.white {
  background: white;
  color: #101525;
}
.contact-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
footer {
  padding: 45px 0 28px;
}
.footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: end;
}
.footer > div:first-child p,
.footer > p {
  color: #7d879a;
  font-size: 0.75rem;
}
.footer > div:nth-child(2) {
  display: flex;
  gap: 22px;
  color: #b4bdcc;
  font-size: 0.78rem;
}
.footer > p {
  grid-column: 1/-1;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1000px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    gap: 50px;
  }
  .hero-grid > div:first-child {
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .actions,
  .stats {
    justify-content: center;
  }
  .profile {
    max-width: 520px;
    margin: auto;
  }
  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects .wide {
    grid-template-columns: 1fr;
  }
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .nav nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #10172b;
    flex-direction: column;
    align-items: stretch;
  }
  .nav nav.open {
    display: flex;
  }
  .menu {
    display: block;
  }
  .hero {
    padding-top: 125px;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }
  .section {
    padding: 78px 0;
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .project-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .projects .wide {
    grid-column: auto;
  }
  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer > p {
    grid-column: auto;
  }
}
@media (max-width: 500px) {
  .container {
    width: min(100% - 26px, 1180px);
  }
  .skills {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 34px 23px;
  }
  .contact-card > div:last-child,
  .white {
    width: 100%;
  }
  .screen {
    width: 88%;
    padding-left: 28%;
  }
   
.profile .avatar.avatar-photo {
    width: 148px;
    height: 148px;
    margin: 45px auto 20px;
    padding: 0;
    overflow: hidden;
    display: block;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile .avatar.avatar-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    display: block;
    position: static;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}
}
