*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --bg:#050b14;
  --panel:#0b1624;
  --panel2:#0f1e30;
  --text:#f4f8ff;
  --muted:#8998aa;
  --blue:#55c7ff;
  --border:rgba(255,255,255,.09);
}

html{
  scroll-behavior:smooth;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:"Vazirmatn",sans-serif;
  line-height:1.8;
  overflow-x:hidden;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 75% 10%,
      rgba(55,190,255,.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 70%,
      rgba(0,120,255,.06),
      transparent 25%
    );
  z-index:-1;
}

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

button{
  font-family:inherit;
}


/* ================= HEADER ================= */

.header{
  height:78px;
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 6%;
  background:rgba(5,11,20,.78);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  direction:ltr;
  font-weight:900;
  letter-spacing:2px;
}

.logo-box{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--blue);
  border-radius:11px;
  color:var(--blue);
}

.blue{
  color:var(--blue);
}

.nav{
  display:flex;
  gap:30px;
}

.nav a{
  color:#aab7c7;
  font-size:13px;
  transition:.25s;
}

.nav a:hover{
  color:var(--blue);
}

.menu{
  display:none;
  background:none;
  border:0;
  color:white;
  font-size:26px;
  cursor:pointer;
}


/* ================= HERO ================= */

.hero{
  width:min(1180px,88%);
  min-height:calc(100vh - 78px);
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:60px;
}

.eyebrow{
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:12px;
}

.hero h1{
  font-size:clamp(45px,6vw,78px);
  line-height:1.25;
  font-weight:900;
  letter-spacing:-2px;
}

.hero h1 span{
  color:var(--blue);
}

.hero-text>p{
  color:var(--muted);
  max-width:560px;
  font-size:14px;
  margin:24px 0 30px;
}

.buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 22px;
  border-radius:11px;
  font-size:12px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  transition:.25s;
}

.primary{
  background:var(--blue);
  color:#03111b;
  border-color:var(--blue);
}

.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 35px rgba(85,199,255,.2);
}

.secondary:hover{
  color:var(--blue);
  border-color:var(--blue);
}


/* ================= HERO IMAGE ================= */

.hero-image{
  height:570px;
  position:relative;
  display:grid;
  place-items:center;
}

.circle{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(85,199,255,.2);
}

.circle1{
  width:350px;
  height:350px;
}

.circle2{
  width:230px;
  height:230px;
  border-style:dashed;
}

.profile-card{
  width:320px;
  height:420px;
  position:relative;
  z-index:2;
  overflow:hidden;
  transform:rotate(4deg);
  border-radius:28px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(145deg,#12263b,#07121e);
  box-shadow:25px 35px 80px rgba(0,0,0,.5);
}

.profile-photo{
  height:330px;
  position:relative;
  background:radial-gradient(circle,#173b56,#08131f 65%);
}

.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.photo-placeholder{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue);
  font-size:75px;
  font-weight:900;
}

.profile-info{
  height:90px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.profile-info strong{
  display:block;
  font-size:14px;
}

.profile-info small{
  color:var(--blue);
  font-size:9px;
  direction:ltr;
  display:block;
}

.profile-info>span{
  color:#6f8194;
  font-size:10px;
}

.floating{
  position:absolute;
  z-index:5;
  padding:8px 14px;
  border:1px solid var(--border);
  background:#091522e8;
  border-radius:9px;
  font-size:9px;
  letter-spacing:2px;
}

.one{
  top:95px;
  right:3%;
}

.two{
  bottom:105px;
  left:4%;
}


/* ================= GENERAL ================= */

.section{
  width:min(1180px,88%);
  margin:auto;
  padding:115px 0;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:35px;
}

.section-title h2{
  font-size:40px;
  line-height:1.2;
}

.section-title>p{
  color:var(--muted);
  font-size:12px;
}


/* ================= FILTER ================= */

.filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:25px;
}

.filter{
  cursor:pointer;
  color:#8292a5;
  background:transparent;
  border:1px solid var(--border);
  border-radius:9px;
  padding:8px 16px;
  font-size:11px;
  transition:
    background .2s,
    color .2s,
    border-color .2s,
    transform .2s;
}

.filter:hover{
  color:var(--blue);
  border-color:var(--blue);
}

.filter.active{
  background:var(--blue);
  color:#03111b;
  border-color:var(--blue);
}

.filter:active{
  transform:scale(.96);
}


/* ================= PORTFOLIO ================= */

.portfolio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.work{
  min-width:0;
  animation:portfolioIn .35s ease;
}

@keyframes portfolioIn{
  from{
    opacity:0;
    transform:translateY(12px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

.work-img{
  height:340px;
  overflow:hidden;
  position:relative;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    linear-gradient(145deg,#0c1e30,#07101b);
}

.work-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:
    transform .4s ease,
    opacity .3s ease;
}

.work:hover .work-img img{
  transform:scale(1.04);
}

.number{
  position:absolute;
  top:15px;
  right:18px;
  color:rgba(85,199,255,.35);
  font-size:42px;
  font-weight:900;
  line-height:1;
  pointer-events:none;
}

.zoom{
  position:absolute;
  bottom:15px;
  left:15px;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid var(--border);
  background:#07111ddd;
  color:var(--blue);
  cursor:pointer;
  font-size:17px;
  transition:.25s;
}

.zoom:hover{
  background:var(--blue);
  color:#03111b;
  transform:scale(1.08);
}

.work-info{
  padding:14px 5px 5px;
}

.work-info h3{
  font-size:14px;
  font-weight:700;
}

.work-info span{
  color:#68788c;
  font-size:9px;
  direction:ltr;
  display:block;
  margin-top:2px;
}


/* ================= RESUME ================= */

.resume{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.resume-card,
.skills{
  padding:30px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:20px;
}

.resume-person{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:28px;
}

.avatar{
  width:65px;
  height:65px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#102d43;
  color:var(--blue);
  font-size:20px;
  font-weight:900;
}

.resume-person h3{
  font-size:19px;
}

.resume-person span{
  color:var(--blue);
  font-size:10px;
}

.resume-row{
  padding:17px 0;
  border-top:1px solid var(--border);
}

.resume-row label{
  display:block;
  color:var(--blue);
  font-size:10px;
  margin-bottom:5px;
}

.resume-row p{
  color:#bdc9d6;
  font-size:11px;
}

.skills{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:25px;
}

.skills h3{
  font-size:18px;
  margin-bottom:5px;
}

.skill>div:first-child{
  display:flex;
  justify-content:space-between;
  font-size:11px;
}

.skill b{
  color:var(--blue);
}

.bar{
  height:5px;
  margin-top:8px;
  background:#172536;
  border-radius:20px;
  overflow:hidden;
}

.bar i{
  display:block;
  height:100%;
  background:var(--blue);
  border-radius:20px;
}


/* ================= SERVICES ================= */

.services{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.service{
  padding:28px 22px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:17px;
  transition:.3s;
}

.service:hover{
  transform:translateY(-6px);
  border-color:rgba(85,199,255,.4);
}

.service>span{
  color:var(--blue);
  font-size:10px;
}

.service h3{
  font-size:15px;
  margin:18px 0 7px;
}

.service p{
  color:var(--muted);
  font-size:10px;
}


/* ================= CONTACT ================= */

.contact{
  padding-top:40px;
}

.contact-box{
  padding:80px 25px;
  text-align:center;
  border-radius:28px;
  border:1px solid rgba(85,199,255,.15);
  background:
    radial-gradient(
      circle at center,
      #102b3f,
      #07111e 65%
    );
}

.contact-box h2{
  font-size:clamp(38px,5vw,62px);
  line-height:1.3;
  margin-bottom:14px;
}

.contact-box h2 span{
  color:var(--blue);
}

.contact-box p{
  max-width:480px;
  margin:0 auto 27px;
  color:var(--muted);
  font-size:12px;
}


/* ================= FOOTER ================= */

footer{
  border-top:1px solid var(--border);
  padding:25px 6%;
  display:flex;
  justify-content:space-between;
  color:#59697c;
  font-size:9px;
}


/* ================= MODAL ================= */

.modal{
  position:fixed;
  inset:0;
  z-index:500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(10px);
}

.modal.show{
  display:flex;
}

.modal img{
  max-width:90%;
  max-height:85vh;
  width:auto;
  height:auto;
  border-radius:15px;
  object-fit:contain;
  box-shadow:0 25px 80px rgba(0,0,0,.6);
}

.close{
  position:fixed;
  top:20px;
  left:25px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background:#0b1725;
  color:white;
  font-size:28px;
  cursor:pointer;
  z-index:510;
  transition:.2s;
}

.close:hover{
  background:var(--blue);
  color:#03111b;
}


/* ================= ANIMATION ================= */

.animate{
  opacity:0;
  transform:translateY(25px);
  transition:
    opacity .7s ease,
    transform .7s ease;
}

.animate.show{
  opacity:1;
  transform:translateY(0);
}


/* ================= TABLET ================= */

@media(max-width:1000px){

  .portfolio{
    grid-template-columns:repeat(2,1fr);
  }

  .services{
    grid-template-columns:repeat(2,1fr);
  }

}


/* ================= MOBILE ================= */

@media(max-width:900px){

  .hero{
    grid-template-columns:1fr;
    text-align:center;
    padding-top:70px;
  }

  .hero-text>p{
    margin-left:auto;
    margin-right:auto;
  }

  .buttons{
    justify-content:center;
  }

  .hero-image{
    height:480px;
  }

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

}


/* ================= SMALL MOBILE ================= */

@media(max-width:620px){

  .header{
    padding:0 5%;
  }

  .menu{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:78px;
    right:5%;
    left:5%;
    flex-direction:column;
    gap:0;
    padding:8px;
    background:#091522;
    border:1px solid var(--border);
    border-radius:14px;
  }

  .nav.open{
    display:flex;
  }

  .nav a{
    padding:11px;
  }

  .hero{
    width:90%;
  }

  .hero h1{
    font-size:43px;
  }

  .hero-image{
    height:420px;
  }

  .circle1{
    width:300px;
    height:300px;
  }

  .circle2{
    width:200px;
    height:200px;
  }

  .profile-card{
    width:270px;
    height:360px;
  }

  .profile-photo{
    height:280px;
  }

  .section{
    width:90%;
    padding:80px 0;
  }

  .section-title{
    flex-direction:column;
    align-items:flex-start;
  }

  .section-title h2{
    font-size:34px;
  }

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

  .work-img{
    height:390px;
  }

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

  .filters{
    gap:7px;
  }

  .filter{
    padding:7px 12px;
    font-size:10px;
  }

  footer{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }

  .modal{
    padding:15px;
  }

  .modal img{
    max-width:96%;
    max-height:80vh;
  }

  .close{
    top:12px;
    left:12px;
  }

}


/* ================= VERY SMALL SCREENS ================= */

@media(max-width:380px){

  .hero h1{
    font-size:37px;
  }

  .profile-card{
    width:245px;
    height:340px;
  }

  .profile-photo{
    height:260px;
  }

  .work-img{
    height:350px;
  }

}
