:root{
  --about-photo-w: clamp(200px, 26vw, 320px);
  --accent:#ff4db8;
  --accent-2:#b3ff4d;
  --bg: #000;
  --icon-size: 39px;
  --ink:#ffffff;
  --muted:#9fb0c6;
  --paper:#31333f;
  --pink:#B04B74;
  --pink-strong:#d65a8e;
  --project-media-pad: 12px;
  --project-media-ratio: 16 / 9;
  --radius:22px;
  --ring:rgba(255,255,255,.28);
  --shadow:0 12px 30px rgba(0,0,0,.28);
  *{box-sizing:border-box}
}

html,
body{
  margin:0;
}

body{
  background:#000;
  color:var(--ink);
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
}

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

img{
  display:block;
  max-width:100%;
}

.container{
  margin-inline:auto;
  width:min(1120px,92%);
}

.btn{
  align-items:center;
  border:3px solid var(--bg);
  border-radius:999px;
  box-shadow:var(--shadow);
  display:inline-flex;
  font-weight:700;
  gap:.6rem;
  padding:.9rem 1.2rem;
  transform:translateY(0);
  transition:transform .15s ease, box-shadow .2s ease;
}
.btn:hover{
  transform:translateY(-2px);
}
.btn.primary{
  background:var(--accent-2);
  color:#0b1220;
}
.btn.secondary{
  background:var(--accent);
  color:#0b1220;
}

header{
  backdrop-filter:saturate(140%) blur(8px);
  background:linear-gradient(0deg,rgba(0, 0, 0, 0.72),rgba(14, 14, 14, 0.72));
  border-bottom:1px solid rgba(32, 32, 32, 0.08);
  overflow:hidden;
  position:sticky;
  top:0;
  z-index:40;
}
.nav{
  align-items:center;
  display:flex;
  gap:1rem;
  justify-content:space-between;
  padding:14px 0;
}
.nav__links a.is-active{
  background:var(--pink);
  color:#0b1220;
  opacity:1;
}
.nav__links a.is-active:hover{
  background:var(--pink-strong);
}
.brand{
  align-items:center;
  display:flex;
  gap:.75rem;
}
.brand__title{
  font-weight:800;
  letter-spacing:.5px;
}
.nav__links{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}
.nav__links a{
  border-radius:.6rem;
  color:var(--ink);
  opacity:.9;
  padding:.5rem .8rem;
}
.nav__links a:hover{
  background:var(--pink);
  opacity:1;
}

header .container{
  position:relative;
  z-index:1;
}

header::after{
  animation:navShine 4.5s linear infinite;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.10) 55%,
    transparent 100%
  );
  content:"";
  height:100%;
  left:-120%;
  pointer-events:none;
  position:absolute;
  top:0;
  transform:skewX(-20deg);
  width:60%;
}

@keyframes navShine{
  from{ left:-120%; }
  to{ left:120%; }
}

.social-links .btn--with-icon{
  display:inline-flex;
}
.social-links .btn--with-icon .btn__icon{
  display:block;
  height:var(--icon-size, auto);
  object-fit:contain;
  width:var(--icon-size, auto);
}

.hero{
  background:var(--bg);
}
.hero__grid{
  align-items:center;
  display:grid;
  gap:2rem;
  grid-template-columns:1.1fr .9fr;
  padding:48px 0 24px;
}
.hero h1{
  font-size:clamp(28px,4vw,52px);
  line-height:1.1;
  margin:0 0 10px;
  text-transform:uppercase;
}
.hero p{
  color:var(--muted);
  margin:0 0 20px;
}
.hero__badge{
  background:var(--accent);
  border:3px solid #000;
  border-radius:999px;
  color:#0b1220;
  display:inline-block;
  font-weight:800;
  padding:.4rem .8rem;
}
.hero__card{
  background:var(--pink);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  width:clamp(260px, 35vw, 420px);
}
.hero__img{
  aspect-ratio:4/5;
  border:6px solid #000;
  border-radius:18px;
  box-shadow:var(--shadow);
  height:auto;
  object-fit:cover;
  width:100%;
}

.hero .social-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}
.hero .social-links .btn--with-icon{
  border-radius:999px;
  display:grid;
  height:var(--social-size);
  padding:0;
  place-items:center;
  width:var(--social-size);
  --social-size:56px;
}
.hero .social-links .btn--with-icon .btn__icon{
  height:24px;
  object-fit:contain;
  width:24px;
}

@media (max-width: 680px){
  .hero .social-links{
    display:grid !important;
    gap:10px !important;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    margin-top:12px !important;
  }
  .hero .social-links .btn--with-icon{
    --social-size:58px;
  }
}
@media (max-width: 420px){
  .hero .social-links{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

#about .about__grid{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
}
#about .section__title{
  margin:0;
  position:relative;
}
#about .section__title::after{
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:999px;
  content:" ";
  display:block;
  height:6px;
  margin-top:8px;
  width:96px;
}

#about .about__text{
  align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius, 22px);
  box-shadow:0 8px 26px rgba(0,0,0,.22);
  display:grid;
  gap:16px;
  grid-template-columns:var(--about-photo-w) 1fr;
  padding:16px;
  position:relative;
}
#about .about__photo{
  justify-self:center;
  margin-bottom:10px;
  max-width:360px;
  width:100%;
}
#about .about__photo .hero__img{
  aspect-ratio:4 / 5;
  height:auto;
  object-fit:cover;
  width:100%;
}
#about .about__copy p{
  color:var(--ink);
  font-size:clamp(14px, 1.05vw, 16px);
  line-height:1.85;
  margin:0;
  opacity:.96;
}

@media (max-width: 820px){
  #about .about__text{
    grid-template-columns:1fr;
    justify-items:start;
  }
  #about .about__photo{
    max-width:360px;
    width:100%;
  }
}

.strip{
  --h:56px;
  --pill-fs:15px;
  --pill-gap:10px;
  --pill-h:44px;
  --pill-w:180px;
  align-items:center;
  border-block:1px dashed rgba(255,255,255,.18);
  display:flex;
  height:var(--h);
  justify-content:center;
  margin:38px 0;
  overflow:hidden;
}
.strip__rail{
  animation:marquee 20s linear infinite;
  display:flex;
  gap:22px;
  width:max-content;
  will-change:transform;
}
.pill{
  align-items:center;
  background:var(--paper);
  border:1px solid var(--bg);
  border-radius:999px;
  color:#e9e9ff;
  display:inline-flex;
  gap:var(--pill-gap);
  height:var(--pill-h);
  justify-content:center;
  line-height:2;
  padding:0 12px;
  white-space:nowrap;
  width:var(--pill-w);
  font-size:var(--pill-fs);
}
.pill__icon{
  flex:0 0 auto;
  height:20px;
  object-fit:contain;
  width:20px;
}

@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  header::after{ animation:none; }
}

.soft-grid{
  display:grid;
  gap:18px;
  grid-template-columns:1fr 1fr;
  margin-top:12px;
}
.soft-card{
  background:var(--paper, #1f2533);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  color:var(--ink, #fff);
  padding:18px 20px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.soft-card:hover{
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 26px rgba(0,0,0,.32);
  transform:translateY(-2px);
}
.soft-card__title{
  color:var(--accent, #ff4db8);
  font-size:16px;
  font-weight:700;
  margin:0 0 10px;
}
.soft-card__text{
  color:var(--ink, #fff);
  line-height:1.7;
  margin:0;
  opacity:.92;
}

@media (max-width: 720px){
  .soft-grid{
    grid-template-columns:1fr;
  }
}

.section{
  padding:48px 0;
  scroll-margin-top:120px;
}
.section__title{
  font-size:clamp(22px,3.3vw,40px);
  margin:0 0 18px;
  text-transform:uppercase;
}
.section__subtitle{
  color:var(--muted);
  margin:0 0 24px;
}
#skills.section{
  padding-bottom:16px;
}

#skills .strip{
  margin-bottom:8px;
}

.accordion{
  display:grid;
  gap:12px;
}

.acc{
  background:linear-gradient(0deg, var(--paper), var(--paper));
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  position:relative;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}
.acc::before{
  background:linear-gradient(180deg, var(--accent), var(--pink-strong));
  border-radius:16px 0 0 16px;
  content:"";
  inset:0 auto 0 0;
  opacity:0;
  position:absolute;
  transform:translateX(-2px);
  transition:opacity .22s ease, transform .22s ease;
  width:4px;
}
.acc__head{
  align-items:center;
  border-radius:14px;
  cursor:pointer;
  display:flex;
  gap:1rem;
  justify-content:space-between;
  min-height:64px;
  padding:18px 20px;
}
.acc__head h3{
  font-size:18px;
  margin:0;
  transition:color .22s ease;
}
.acc__head .tag,
.acc__head .tag2{
  border:2px solid #000;
  border-radius:999px;
  font-weight:800;
  padding:.25rem .6rem;
  transition:transform .18s ease, background-color .22s ease;
}
.acc__head .tag{
  background:var(--accent);
  color:#0b1220;
}
.acc__head .tag2{
  background:var(--accent-2);
  color:#0b1220;
}
.acc__body{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .30s ease;
}
.acc__content{
  overflow:hidden;
}
.acc.open .acc__body{
  grid-template-rows:1fr;
}
.acc__content-inner{
  color:var(--muted);
  padding:0 20px 20px;
}
.acc:hover,
.acc:focus-within{
  background-color:rgba(255,255,255,.02);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 12px 32px rgba(0,0,0,.30);
  transform:translateY(-2px);
}
.acc:hover::before,
.acc.open::before,
.acc:focus-within::before{
  opacity:.95;
  transform:translateX(0);
}
.acc:hover .acc__head h3,
.acc:focus-within .acc__head h3{
  color:#fff;
}
.acc:hover .acc__head .tag,
.acc:hover .acc__head .tag2{
  transform:translateY(-1px);
}
.acc__head:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  .acc,
  .acc::before{
    transition:none;
  }
}

#experience .accordion{
  align-items:start;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
#experience .acc{
  isolation:isolate;
  position:relative;
}
#experience .acc::after{
  background:linear-gradient(180deg, var(--pink), var(--pink-strong));
  border-radius:16px;
  content:"";
  inset:0;
  opacity:0;
  position:absolute;
  transform:scaleX(.02);
  transform-origin:left;
  transition:opacity .28s ease, transform .32s ease;
  z-index:0;
}
#experience .acc:hover::after,
#experience .acc:focus-within::after,
#experience .acc.open::after{
  opacity:1;
  transform:scaleX(1);
}
#experience .acc__head,
#experience .acc__content-inner{
  position:relative;
  z-index:1;
}
#experience .acc:hover .acc__head h3,
#experience .acc:focus-within .acc__head h3,
#experience .acc.open .acc__head h3{
  color:#0b1220;
}
#experience .acc:hover .acc__content-inner,
#experience .acc:focus-within .acc__content-inner,
#experience .acc.open .acc__content-inner{
  color:#0b1220;
}
#experience .acc .tag,
#experience .acc .tag2{
  position:relative;
  z-index:1;
}
#experience .acc:hover::before,
#experience .acc:focus-within::before,
#experience .acc.open::before{
  opacity:0;
}

@media (prefers-reduced-motion: reduce){
  #experience .acc::after{
    transition:none;
  }
}

.projects__wrap{
  margin-inline:auto;
  max-width:1120px;
  padding-inline:4px;
  position:relative;
}
.projects__rail{
  display:grid;
  gap:24px;
  grid-auto-columns:100%;
  grid-auto-flow:column;
  overflow:hidden;
  scroll-behavior:smooth;
}
.projects__card{
  align-items:start;
  background:var(--paper);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:var(--shadow);
  display:grid;
  gap:14px;
  grid-auto-rows:min-content;
  grid-template-columns:min(480px, 45%) 1fr;
  min-height:var(--project-card-min-h);
  padding:16px;
}
.projects__head{
  align-items:center;
  display:flex;
  gap:.8rem;
  grid-column:1 / -1;
  margin-bottom:.6rem;
}
.projects__card > img{
  aspect-ratio:var(--project-media-ratio);
  background:var(--bg);
  border:6px solid #000;
  border-radius:18px;
  box-shadow:var(--shadow);
  display:block;
  grid-column:1;
  grid-row:2 / span 3;
  object-fit:contain;
  padding:var(--project-media-pad);
  width:100%;
}
.projects__card p{
  grid-column:2;
  margin-top:2px;
}
.projects__card .btn{
  grid-column:2;
  justify-self:start;
}
.projects__ctrl{
  inset:0;
  pointer-events:none;
  position:absolute;
}
.projects__ctrl button{
  border:3px solid #000;
  border-radius:999px;
  pointer-events:auto;
  position:absolute;
  top:50%;
  translate:0 -50%;
}
.projects__ctrl .prev{
  left:-6px;
}
.projects__ctrl .next{
  right:-6px;
}

@media (max-width: 1024px){
  .projects__wrap{
    max-width:840px;
  }
  .projects__rail{
    grid-auto-columns:100%;
  } /* keep one per slide */
}
@media (max-width: 720px){
  .projects__card{
    grid-template-columns:1fr;
  }
  .projects__card > img{
    grid-column:1;
    grid-row:auto;
    margin-bottom:10px;
  }
  .projects__card p,
  .projects__card .btn{
    grid-column:1;
  }
}
@media (max-width: 640px){
  .projects__wrap{
    max-width:100%;
  }
  .projects__rail{
    grid-auto-columns:100%;
  }
}


#certificates.section{
  padding-top:32px;
}

.certificates__grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px){
  .certificates__grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 680px){
  .certificates__grid{
    grid-template-columns:1fr;
  }
}

.certificate__card{
  background:var(--pink);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius, 22px);
  box-shadow:var(--shadow);
  color:#0b1220;
  display:flex;
  flex-direction:column;
  height:100%;
  padding:18px;
}
.certificate__img,
.slider__rail .certificate__img{
  aspect-ratio:16 / 10;
  background:#0b1220;
  border:6px solid #000;
  border-radius:18px;
  box-shadow:var(--shadow);
  display:block;
  object-fit:cover;
  width:100%;
}
.certificate__body{
  align-items:center;
  background:transparent;
  display:flex;
  gap:12px;
  justify-content:space-between;
  padding:12px 6px 0;
}
.certificate__title{
  color:#0b1220;
  font-size:16px;
  line-height:1.35;
  margin:0;
}
.certificate__card:hover{
  transform:translateY(-2px);
}

.slider{
  background:#0b1220;
  overflow:hidden;
  position:relative;
  width:100%;
}
.slider__rail{
  display:flex;
  gap:0;
  transition:transform .35s ease;
  will-change:transform;
}
.slider__btn{
  background:rgba(0,0,0,.42);
  border:2px solid #000;
  border-radius:999px;
  box-shadow:var(--shadow);
  color:#fff;
  cursor:pointer;
  height:36px;
  left:auto;
  min-width:36px;
  padding:0 10px;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
}
.slider__btn--prev{
  left:10px;
}
.slider__btn--next{
  right:10px;
}
.slider__btn:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  .slider__rail{
    transition:none;
  }
}

.section__title{
  display:inline-block;
  position:relative;
}
.section__title::after{
  background:linear-gradient(
    90deg,
    var(--bar-start, var(--accent)),
    var(--bar-end,   var(--accent-2))
  );
  border-radius:999px;
  content:"";
  display:block;
  height:var(--bar-h, 6px);
  margin-top:8px;
  width:var(--bar-w, 96px);
}

#skills      { --bar-w: px; }
#soft-skills { --bar-w: px }
#experience  { --bar-w: px; }
#projects    { --bar-w: px; }
#certificates{ --bar-w: px; }

footer{
  border-top:1px solid rgba(255, 255, 255, .08);
  color:var(--muted);
  padding:32px 0;
}
