/* ========================================
   1. Design tokens and global defaults
   ======================================== */
:root{
  --bg:#090914;
  --surface:#111120;
  --surface-2:#171729;
  --text:#f7f6ff;
  --muted:#aaa9bd;
  --line:rgba(255,255,255,.1);
  --purple:#916cff;
  --blue:#55c7ff;
  --pink:#ff71bf;
  --green:#52e3b4;
  --radius:18px;
  --shadow:0 24px 70px rgba(0,0,0,.32)
}

*{
  box-sizing:border-box
}

html{
  scroll-behavior:smooth
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.6;
  overflow-x:hidden
}

body:before{
  content:"";
  position:fixed;
  width:38rem;
  height:38rem;
  top:-20rem;
  right:-18rem;
  background:radial-gradient(circle,#663ce6 0,transparent 65%);
  opacity:.23;
  filter:blur(14px);
  pointer-events:none;
  z-index:-2
}

.container{
  width:min(1140px,calc(100% - 14px));
  margin:auto
}

.section{
  padding:52px 0
}

.eyebrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--blue);
  font-weight:800;
  font-size:.68rem
}

.eyebrow:before{
  content:"";
  width:24px;
  height:1px;
  background:currentColor
}

.heading{
  font-size:clamp(2rem,4vw,3.7rem);
  line-height:1.08;
  letter-spacing:-.065em;
  margin:13px 0
}

.intro{
  max-width:620px;
  margin:0;
  color:var(--muted)
}

.glass{
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(15px)
}

.btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border-radius:11px;
  border:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
  transition:.25s;
  cursor:pointer
}

.btn:hover{
  transform:translateY(-3px);
  border-color:var(--purple)
}

.btn-primary{
  border:0;
  background:linear-gradient(105deg,var(--purple),#6748e8);
  box-shadow:0 10px 28px rgba(115,78,237,.35)
}

.btn-quiet{
  background:rgba(255,255,255,.04)
}

.hero-actions .btn-quiet[aria-label="My CV"]{
  width:auto;
  min-width:68px;
  height:36px;
  padding:0 13px;
  font-size:.72rem;
  line-height:1
}


/* ========================================
   2. Sticky navigation
   ======================================== */
header{
  height:75px;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(9,9,20,.77);
  backdrop-filter:blur(18px)
}

.nav{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.logo{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.08em;
  font-size:1.35rem
}

.logo i{
  font-style:normal;
  color:var(--purple)
}

.brand{
  display:flex;
  align-items:center;
  gap:10px
}

.nav-avatar{
  width:32px;
  height:32px;
  display:block;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  transition:transform .2s ease, border-color .2s ease
}

.nav-avatar:hover,
.nav-avatar:focus-visible{
  transform:scale(1.06);
  border-color:var(--blue)
}

.nav-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}

.navlinks{
  display:flex;
  align-items:center;
  gap:22px
}

.navlinks a{
  position:relative;
  color:var(--muted);
  text-decoration:none;
  font-size:.74rem;
  font-weight:700
}

.navlinks a:after{
  content:"";
  position:absolute;
  bottom:-8px;
  left:0;
  width:0;
  height:2px;
  background:var(--purple);
  transition:.2s
}

.navlinks a:hover,.navlinks a.active{
  color:#fff
}

.navlinks a.active:after{
  width:100%
}

.menu{
  display:none;
  border:0;
  background:transparent;
  color:#fff;
  font-size:1.45rem;
  cursor:pointer
}


/* ========================================
   3. Hero section
   ======================================== */
.hero{
  min-height:calc(100svh - 75px);
  display:grid;
  align-items:center;
  padding:2px 0 22px
}

.orbs span{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(143,108,255,.23);
  pointer-events:none;
  animation:float 9s ease-in-out infinite
}

.orbs span:nth-child(1){
  width:110px;
  height:110px;
  left:6%;
  top:22%
}

.orbs span:nth-child(2){
  width:48px;
  height:48px;
  right:9%;
  top:33%;
  animation-delay:-3s
}

.orbs span:nth-child(3){
  width:75px;
  height:75px;
  right:42%;
  bottom:7%;
  animation-delay:-5s
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:34px;
  align-items:center
}

.hero-grid > .reveal{
  grid-column:1;
  grid-row:1;
  text-align:left
}

.status{
  font-size:.72rem;
  color:var(--green);
  font-weight:700
}

.status:before{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 14px var(--green);
  margin-right:8px
}

.hero h1{
  font-size:clamp(3.3rem,7vw,6.8rem);
  line-height:.86;
  letter-spacing:-.09em;
  margin:10px 0 16px
}

.hero h1 strong{
  display:block;
  background:linear-gradient(100deg,#c3b5ff,#8e6cff 52%,#60d9ff);
  color:transparent;
  background-clip:text
}

.role{
  height:28px;
  color:var(--blue);
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.02em
}

.role:after{
  content:"|";
  animation:blink .75s infinite
}

.hero p{
  max-width:560px;
  color:var(--muted);
  font-size:1.02rem;
  margin:9px 0 29px
}

.hero-actions{
  display:flex;
  gap:11px;
  flex-wrap:wrap
}

.hero-photo{
  display:none;
  position:relative;
  width:200px;
  max-width:100%;
  grid-column:2;
  grid-row:1;
  justify-self:end;
  align-self:center
}

.hero-photo img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:50%;
  display:block;
  filter:saturate(.75) contrast(1.04)
}

.hero-photo:before{
  content:"";
  position:absolute;
  inset:-11px 11px 11px -11px;
  border:1px solid var(--purple);
  border-radius:50%;
  z-index:-1
}

.photo-badge{
  position:absolute;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  border-radius:12px;
  padding:12px 14px;
  font-size:.72rem
}

.photo-badge b{
  display:block;
  font-size:.8rem
}

.photo-badge span{
  color:var(--muted)
}


/* ========================================
   4. About and skills sections
   ======================================== */
.about-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:75px
}

.about-copy{
  font-size:1.08rem;
  color:var(--muted)
}

.about-copy p:first-child{
  margin-top:0
}

.about-copy strong{
  color:var(--text)
}

.mini-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:28px
}

.mini-stat{
  padding:17px;
  border-radius:12px
}

.mini-stat b{
  display:block;
  font-size:1.35rem;
  letter-spacing:-.06em;
  color:var(--purple)
}

.mini-stat span{
  font-size:.66rem;
  color:var(--muted)
}

.skills-bg{
  background:linear-gradient(110deg,rgba(100,70,220,.12),transparent 45%)
}

.skill-grid{
  margin-top:38px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px
}

.skill{
  padding:18px;
  border-radius:14px;
  transition:.25s
}

.skill:hover{
  transform:translateY(-5px);
  border-color:rgba(145,108,255,.65)
}

.skill-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:.78rem;
  font-weight:800
}

.skill span{
  font-size:.68rem;
  color:var(--blue)
}

.bar{
  height:5px;
  background:rgba(255,255,255,.08);
  border-radius:99px;
  margin-top:15px;
  overflow:hidden
}

.bar i{
  height:100%;
  display:block;
  background:linear-gradient(90deg,var(--purple),var(--blue));
  width:var(--score);
  transform:scaleX(0);
  transform-origin:left;
  transition:1.1s ease
}

.skill.show .bar i{
  transform:scaleX(1)
}


/* ========================================
   5. Services and portfolio cards
   ======================================== */
.service-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:38px
}

.service{
  padding:20px 16px;
  border-radius:14px;
  min-height:188px;
  transition:.25s
}

.service:hover{
  background:linear-gradient(150deg,rgba(145,108,255,.23),rgba(255,255,255,.04));
  transform:translateY(-6px);
  border-color:rgba(145,108,255,.55)
}

.service-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:10px;
  background:rgba(145,108,255,.16);
  color:#cbbfff;
  font-weight:900;
  font-size:.85rem
}

.service h3{
  font-size:.85rem;
  margin:15px 0 5px
}

.service p{
  font-size:.7rem;
  color:var(--muted);
  margin:0
}

.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:38px
}

#portfolio .container > .reveal{
  max-width:720px
}

.project{
  position:relative;
  overflow:hidden;
  border-radius:15px;
  border-color:rgba(255,255,255,.14);
  transition:transform .25s ease, border-color .25s ease, background .25s ease
}

.project:hover{
  transform:translateY(-7px);
  border-color:rgba(145,108,255,.58);
  background:linear-gradient(160deg,rgba(145,108,255,.13),rgba(17,17,32,.92))
}

.project-image{
  height:150px;
  overflow:hidden;
  position:relative;
  background:var(--surface-2)
}

.project-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 42%,rgba(9,9,20,.72));
  pointer-events:none
}

.project img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:.5s
}

.project:hover img{
  transform:scale(1.06)
}

.project:nth-child(3) img{
  content:url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80")
}

.project-body{
  padding:16px;
  min-height:175px;
  display:flex;
  flex-direction:column
}

.project h3{
  font-size:1rem;
  line-height:1.25;
  margin:0
}

.project p{
  font-size:.72rem;
  line-height:1.55;
  color:var(--muted);
  margin:8px 0 15px
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px
}

.tag{
  font-size:.59rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--blue);
  border:1px solid rgba(85,199,255,.25);
  background:rgba(85,199,255,.06);
  padding:4px 7px;
  border-radius:5px
}

.project-actions{
  display:flex;
  gap:16px;
  margin-top:auto;
  padding-top:18px
}

.project-actions a{
  color:#fff;
  text-decoration:none;
  font-size:.7rem;
  font-weight:800;
  transition:color .2s ease
}

.project-actions a:hover,
.project-actions a:focus-visible{
  color:var(--blue)
}

.project-actions a:last-child{
  color:var(--muted)
}

.project:first-child{
  grid-column:auto;
  display:block
}

.project:first-child .project-image{
  height:180px;
  min-height:0
}


/* ========================================
   6. Experience and achievements
   ======================================== */
.timeline{
  max-width:860px;
  margin:40px auto 0;
  border-left:1px solid var(--line);
  padding-left:32px
}

.timeline-item{
  position:relative;
  padding-bottom:39px
}

.timeline-item:last-child{
  padding-bottom:0
}

.timeline-item:before{
  content:"";
  position:absolute;
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--purple);
  left:-38px;
  top:5px;
  box-shadow:0 0 0 4px var(--bg)
}

.timeline-top{
  display:flex;
  justify-content:space-between;
  gap:15px
}

.timeline h3{
  margin:0;
  font-size:.98rem
}

.timeline .job{
  font-size:.69rem;
  color:var(--blue);
  font-weight:700
}

.date{
  font-size:.67rem;
  color:var(--muted);
  white-space:nowrap
}

.timeline p{
  font-size:.76rem;
  color:var(--muted);
  margin:9px 0 0
}

.achievements{
  padding:82px 0;
  background:linear-gradient(110deg,#5f42d8,#7d5de6 58%,#4e91d7)
}

.achievement-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px
}

.achievement{
  text-align:center;
  border-right:1px solid rgba(255,255,255,.22);
  padding:8px
}

.achievement:last-child{
  border:0
}

.count{
  font-size:clamp(1.8rem,3.6vw,3rem);
  font-weight:900;
  letter-spacing:-.07em
}

.achievement p{
  font-size:.67rem;
  margin:2px 0 0;
  color:#e6e1ff
}


/* ========================================
   7. Community CTA
   ======================================== */
.join{
  padding:70px 0
}

.join-box{
  position:relative;
  overflow:hidden;
  padding:48px;
  border-radius:20px;
  background:linear-gradient(120deg,#1e173f,#312172);
  border:1px solid rgba(153,122,255,.4)
}

.join-box:after{
  content:"";
  width:350px;
  height:350px;
  border-radius:50%;
  background:var(--pink);
  filter:blur(100px);
  opacity:.17;
  position:absolute;
  right:-110px;
  top:-180px
}

.join-box h2{
  font-size:clamp(2rem,4vw,3.5rem);
  letter-spacing:-.07em;
  line-height:1.08;
  margin:9px 0
}

.join-box p{
  color:#c8c2e7;
  margin:0
}

.join-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:26px;
  position:relative;
  z-index:1
}

.join-links a{
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.09)
}


/* ========================================
   8. Contact form and footer
   ======================================== */
.contact-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:60px
}

.contact-info p{
  color:var(--muted)
}

.contact-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px
}

.contact-list a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  color:var(--text);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  transition:transform .2s ease, color .2s ease, border-color .2s ease
}

.contact-list a:hover,
.contact-list a:focus-visible{
  transform:translateY(-3px);
  color:var(--purple);
  border-color:var(--purple)
}

.contact-list svg{
  width:21px;
  height:21px;
  fill:currentColor
}

form{
  padding:21px;
  border-radius:15px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

label{
  font-size:.68rem;
  font-weight:700
}

input,textarea{
  width:100%;
  margin-top:5px;
  display:block;
  border:1px solid var(--line);
  background:rgba(0,0,0,.15);
  border-radius:8px;
  padding:11px;
  color:#fff;
  font:inherit;
  font-size:.77rem;
  outline:none
}

input:focus,textarea:focus{
  border-color:var(--purple)
}

textarea{
  min-height:118px;
  resize:vertical
}

.full{
  grid-column:span 2
}

.form-note{
  display:none;
  color:var(--green);
  font-size:.7rem;
  align-self:center
}

footer{
  padding:25px 0;
  border-top:1px solid var(--line)
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.footer p{
  font-size:.67rem;
  color:var(--muted);
  margin:0
}

.footer-links{
  display:flex;
  gap:14px
}

.footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:.68rem
}

.to-top{
  position:fixed;
  right:20px;
  bottom:20px;
  width:42px;
  height:42px;
  border-radius:10px;
  border:0;
  background:var(--purple);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:.25s
}

.to-top.show{
  opacity:1;
  pointer-events:auto
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:.6s ease
}

.reveal.show{
  opacity:1;
  transform:none
}

@keyframes float{
  50%{
  transform:translateY(-24px) translateX(10px)
}


}

@keyframes blink{
  50%{
  opacity:0
}


}


/* ========================================
   9. Responsive layouts
   ======================================== */
@media(max-width:860px){
  .navlinks{
  display:none
}

.navlinks.open{
  display:flex;
  position:absolute;
  top:74px;
  left:0;
  right:0;
  padding:16px 20px;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  background:var(--surface);
  border-bottom:1px solid var(--line)
}

.menu{
  display:block
}

.hero-grid,.about-grid,.contact-grid{
  grid-template-columns:1fr;
  gap:40px
}

.hero-grid > .reveal{
  grid-column:1;
  grid-row:2;
  text-align:center
}

.hero-photo{
  position:relative;
  top:auto;
  left:auto;
  order:-1;
  grid-column:1;
  grid-row:1;
  justify-self:center;
  max-width:190px
}

.hero p{
  margin:9px auto 29px
}

.hero-actions{
  justify-content:center
}

.skill-grid{
  grid-template-columns:repeat(3,1fr)
}

.service-grid{
  grid-template-columns:repeat(3,1fr)
}

.project-grid{
  grid-template-columns:1fr 1fr
}

.achievement-grid{
  grid-template-columns:repeat(3,1fr)
}

.achievement:nth-child(3){
  border:0
}


}

@media(max-width:540px){
  .container{
  width:min(100% - 14px,1140px)
}

.section{
  padding:44px 0
}

.hero{
  padding:8px 0 24px;
  min-height:auto
}

.hero h1{
  font-size:3.25rem
}

.hero-actions .btn{
  width:100%
}

.hero-actions .btn-quiet[aria-label="My CV"]{
  width:auto
}

.photo-badge{
  left:50%;
  transform:translateX(-50%)
}

.mini-stats{
  grid-template-columns:1fr 1fr
}

.skill-grid,.service-grid,.project-grid{
  grid-template-columns:1fr 1fr
}

.project:first-child{
  grid-column:auto;
  display:block
}

.project:first-child .project-image{
  height:150px;
  min-height:0
}

.skill{
  padding:14px
}

.service{
  min-height:150px;
  padding:15px
}

.service h3{
  margin-top:10px
}

.achievement-grid{
  grid-template-columns:1fr 1fr;
  gap:25px
}

.achievement{
  border:0
}

.timeline{
  padding-left:24px
}

.timeline-item:before{
  left:-30px
}

.timeline-top{
  flex-direction:column;
  gap:1px
}

.join-box{
  padding:30px 22px
}

form{
  grid-template-columns:1fr
}

.full{
  grid-column:auto
}

.footer{
  flex-direction:column;
  align-items:flex-start
}

.footer-links{
  flex-wrap:wrap
}


}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important
}


}

