@font-face {
  font-family: Roboto;
  src: url(../font/Roboto-Bold.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Roboto-light;
  src: url(../font/Roboto-Light.ttf) format("truetype");
  font-display: swap;
}

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

}

body {
  margin: 0;
  background-color: #000000;
  font-size: 16px;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.container,
.main {
  display: flex;
  min-height: 80vh;
  width: 90vw;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.flex {
  display: flex;
  gap: .6rem;
}

.glass {
  width: 100%;
  color: white;
  background: rgba(44, 43, 43, 0.178);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(26, 25, 25, 0.877);
  border-top-width: 25px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.596);
  padding: 25px;
}

#width-glass {
  max-width: 700px;
}

.glass::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(15, 135, 255);
  box-shadow:
    20px 0 0 rgba(15, 135, 255, 0.753),
    40px 0 0 rgba(15, 135, 255, 0.432);
}

.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 1rem;
  line-height: 1.5;

}

.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: Roboto-light, 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
}

.tagline::before,
.tagline::after {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.title {
  margin: 0 0 12px;
  font-family: Roboto, sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  font-style: italic;
  background: linear-gradient(180deg, #d4ecfa 0%, rgb(15, 135, 255) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  filter:
    drop-shadow(1px 1px 0 #777) drop-shadow(2px 2px 0 #555) drop-shadow(3px 3px 0 #333) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.title span {
  display: block;
  min-height: 1.05em;
}

.title span.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 6px;
  background: #dadada;
  vertical-align: -0.05em;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.line1 {
  font-size: 0.85em;
}

.line2 {
  font-size: 1em;
}

.name {
  margin: 0px;
  display: flex;
  font-family: Roboto-light, sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 7px;
  color: #dadada;

}

.name span {
  font-weight: 700;
  color: #dadada;
}

.description {
  max-width: 440px;
  font-family: Roboto-light, 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 3px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.description span {
  font-weight: 600;
  color: rgba(37, 146, 255, 0.815);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #dadada;
  background-color: rgb(15, 135, 255);
  font-family: Roboto-Light, 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.btn2 {
  background-color: #ffffff00;
  border: 1px solid #dadada;
}

btn svg {
  width: 20px;
  height: 20px;
}

.btn svg,
.link-apps a svg,
.back-box svg,
.flex-svg img {
  transition: transform .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(.97);
}

a svg {
  width: 20px;
  height: 20px;
}

a:focus-visible {
  outline: 2px solid rgb(15, 135, 255);
  outline-offset: 4px;
  border-radius: 6px;
}

.link-apps {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 10px;
}

.link-apps a {
  display: flex;
  align-items: center;
  gap: 20px;

}

.github::after,
.instagram::after,
.x::after {
  content: "";
  display: block;
  width: 1px;
  height: 20px;
  background-color: #dadadad8;
}

#about-part {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 30px;
}

#about {
  max-width: 1000px;
  padding: 45px;
  display: flex;
}

.num {
  font-family: monospace;
  font-size: 3.5rem;
  color: rgba(26, 25, 25, 0.877);
}

.header {
  font-family: Roboto, sans-serif;
  font-size: 3.5rem;
  color: rgb(15, 135, 255);
  margin-bottom: 30px;
}

#info {
  font-family: Roboto-light, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: #e9e9e9e2;
  margin-bottom: 25px;
  margin-left: 10px;
}

#more-to-come {
  font-family: Roboto-light, sans-serif;
  font-size: 1.6rem;
  color: #e9e9e9a9;
  margin-left: 10px;
  letter-spacing: 2px;
}

.under-box {
  display: flex;
  gap: 40px;
  padding: 15px;
}

.back-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 250px;
  color: white;
  border: 2px solid rgba(26, 25, 25, 0.877);
  background: rgba(44, 43, 43, 0.178);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.596);
  padding: 25px;
}

.back-box,
.box-box {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.first-line {
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
  color: #e9e9e9;
}

.second-line {
  font-family: Roboto-light, sans-serif;
  color: #e9e9e9e2;
}

#skills-part {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 30px;
}

#skills {
  max-width: 1200px;
  padding: 45px;
  display: flex;
  flex-direction: column;
}

.flex-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.line {
  width: 100%;
  height: 2px;
  background-color: rgba(26, 25, 25, 0.877);
  margin-bottom: 3rem;
}

.skills-box {
  display: flex;
  justify-content: space-between;
}

.box-box {
  display: flex;
  max-width: 370px;
  flex-direction: column;
  gap: 20px;
  border: 2px solid rgba(26, 25, 25, 0.877);
  background: rgba(44, 43, 43, 0.021);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  padding: 30px;
}

.skills-text {
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #e9e9e9;
}

.description-skills {
  font-family: Roboto-light, sans-serif;
  color: #e9e9e9e2;
  font-size: 0.9rem;
}

.flex-svg {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.back-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.596);
}

#contact-part {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

#contact {
  max-width: 1100px;
  padding: 45px;
  display: flex;
  flex-direction: column;
}

.description-contact {
  font-family: Roboto-light, sans-serif;
  color: #e9e9e9e2;
  font-size: 1rem;
  margin-bottom: 20px;
}

.contact-text {
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: rgb(15, 135, 255);
  margin-bottom: 10px;
}

.flex-email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.email {
  font-family: Roboto-light, sans-serif;
  color: #e9e9e9e2;
  font-size: 3rem;
  margin-bottom: 10px;
}

.send-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Roboto-light, sans-serif;
  color: #e9e9e9e2;
  font-size: 1rem;
}

#copy {
  margin-top: 20px;
  color: #e9e9e9;
  font-family: Roboto-light, sans-serif;
  letter-spacing: 2px;
  font-size: .7rem;
  z-index: 100;
}

@media (hover: hover) {
  .glass:hover {
    .num {
      color: rgba(15, 135, 255, 0.432);
    }
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 135, 255, .15);
  }
  .btn:not(.btn2):hover {
    background-color: rgb(55, 155, 255);
    box-shadow: 0 8px 22px rgba(15, 135, 255, .45);
  }

  .btn2:hover {
    border-color: rgb(15, 135, 255);
    background-color: rgba(15, 135, 255, .12);
    color: #fff;
  }

  .btn:hover svg {
    transform: scale(1.15);
  }

  .link-apps a:hover svg {
    transform: translateY(-2px) scale(1.15);
  }

  .link-apps a:hover svg path {
    fill: rgb(15, 135, 255);
  }

  .back-box:hover,
  .box-box:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 135, 255, .6);
    box-shadow: 0 12px 30px rgba(15, 135, 255, .15);
  }

  .back-box:hover svg {
    transform: scale(1.12) rotate(-4deg);
  }

  .flex-svg img:hover {
    transform: translateY(-4px) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   RESPONSIVE (کامل)
   ========================================= */

/* ---------- پایه (همه‌ی اندازه‌ها) ---------- */





.skills-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.box-box {
  max-width: none;
}

.flex-svg img {
  width: clamp(44px, 12vw, 70px);
  height: auto;
}

.flex-email {
  flex-wrap: wrap;
}

.email {
  font-size: clamp(1.3rem, 5vw, 3rem);
  overflow-wrap: anywhere;
}

.btns {
  flex-wrap: wrap;
  gap: 12px 20px;
}

.link-apps {
  flex-wrap: wrap;
}

#copy {
  text-align: center;
  padding: 10px 16px 30px;
}

#about-part,
#skills-part,
#contact-part {
  flex-wrap: nowrap;
  height: auto;
}

/* ---------- لپ‌تاپ کوچیک و تبلت افقی ---------- */
@media (max-width: 1400px) {
  .min {
    width: 97vw;
  }

  .container {
    width: 80vw;
  }

  .boy img {
    width: 550px;
    margin-top: -100px;
    margin-right: 10px;
  }

  #width-glass {
    min-width: 450px;
    margin-right: -190px;
    margin-top: 370px;
  }

  .header {
    font-size: 3rem;
  }

  .back-box {
    width: 200px
  }
}

/* ---------- موبایل و تبلت عمودی ---------- */
@media (max-width: 850px) {
  .main {
    flex-direction: column-reverse;
    justify-content: center;
    height: 110vh;
  }

  .container {
    width: 90vw;
    height: 110vh;
  }

  .boy img {
    width: 550px;
    margin: 0;
  }

  .title {
    font-size: 3.5rem;
  }

  #width-glass {
    min-width: 400px;
    margin: 0;
    margin-top: -300px;
  }

  .back-box {
    width: 150px
  }

  .container {
    width: 92vw;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 20px 0;
  }

  .boy img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: top center;
  }


  /* متن‌ها */
  .title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .name {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    letter-spacing: 4px;
  }

  .description {
    max-width: 100%;
    font-size: clamp(0.9rem, 4vw, .8rem);
  }

  /* بخش‌های پایین */
  .glass {
    padding: 20px;
  }

  #about,
  #skills,
  #contact {
    padding: 24px;
  }

  .header {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .num {
    font-size: 2.2rem;
  }

  #about {
    gap: 8px;
  }

  #info {
    margin-left: 0;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  #more-to-come {
    margin-left: 0;
    font-size: 1.4rem;
  }


  .line {
    margin-bottom: 2rem;
  }

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

/* ---------- موبایل کوچیک ---------- */
@media (max-width: 500px) {

  .main,
  .container {
    width: 90vw;
    height: 110vh;
  }

  .boy img {
    width: 400px;
    margin: 0;
    margin-top: 10px;
  }

  #width-glass {
    min-width: 300px;
    margin: 0;
    margin-top: -200px;
  }

  #info {
    font-size: .9rem;
  }

  .tagline {
    font-size: .9 rem;
    letter-spacing: 2px;
    gap: 8px;
  }

  .tagline::before,
  .tagline::after {
    width: 20px;
  }

  .under-box {
    flex-direction: column;
  }

  .back-box {
    width: 90vw;
    padding: 20px;
    text-align: center;
  }

  .back-box p {
    font-size: 0.9rem;
  }

  .back-box svg {
    width: 30px;
    height: 30px;
  }

  #about-part {
    flex-direction: column;
  }
}

@media (max-width: 350px) {

  main,
  .container {
    width: 100vw;
    height: 120vh;
  }
}