@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

/* Root */
:root {
  --accent-primary: #10b981;

  --bg-page: #121212;
  --bg-card: #161616;
  --border-card: #1c1c1c;
  --border-focus: #4444;

  --text-main: #f7f7f7;
  --text-muted: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Space Grotesk", "Space Grotesk Placeholder", sans-serif;
}

html {
  font-size: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

body {
  background-color: var(--bg-page);
}

body::-webkit-scrollbar {
  display: none;
}

.wrapper {
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

/* ========== Header start ========== */

.header {
  max-width: 400px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 2rem;
  text-align: center;
  z-index: 1000;
  margin: 0 auto;
}

.header ul {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;

  /* From https://css.glass */
  background: #1c1c1cb0;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(10.9px);
  border: 0.5px solid var(--bg-card);
  padding: 1rem;
  border-radius: 1.5rem;
}

.header ul li a {
  position: relative;
  font-size: 2.5rem;
  padding: 2px 6px;
  color: var(--text-main);
  border-radius: 0.6rem;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.header ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 4px;

  z-index: -1;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header ul li a:hover {
  color: var(--border-card);
}

.header ul li a:hover::before {
  transform: scale(1);
}

.header ul li a.active {
  color: var(--border-focus);
}

.header ul li a.active::before {
  transform: scale(1);
}

/* ========== Header end ========== */

/* ========== Fixed card start ========== */

.main-card {
  width: 100%;
  padding: 1.8rem;
  text-align: center;
  border: 2px solid var(--border-card);
  border-radius: 3rem;
  background-color: var(--bg-card);
  margin-top: 8.5rem;
  transition: border 0.3s;
  animation: mainCardFade 1.2s ease-out forwards;
}

@keyframes mainCardFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-card:hover {
  border-color: var(--border-focus);
}

.main-card img {
  width: 100%;
  border-radius: 3rem;
  border: 1px solid var(--border-card);
}

.online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
  padding: 1rem;
  border: 1px solid var(--border-card);
  background-color: transparent;
  border-radius: 1rem;
}

.online p {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-main);
}

.online .dot {
  width: 1rem;
  height: 1rem;
  background-color: var(--accent-primary);
  border-radius: 50%;
  position: relative;
  background-clip: padding-box;
  animation: pulse-dot 2s ease-in-out infinite;
}

.online .dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #10b981d4;
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.main-card h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2.4rem;
}

.social ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.social ul li a {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  transition:
    border 0.3s,
    color 0.3s;
}

.social ul li a:hover {
  border-color: var(--border-focus);
  color: var(--text-muted);
}

.main-btns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.main-btns a {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 1rem;
  background-color: var(--border-card);
  border-radius: 1rem;
  transition: color 0.3s;
}

.main-btns a:hover {
  color: var(--text-muted);
}

.main-btns a:last-child {
  background-color: var(--accent-primary);
  color: var(--border-card);
}

.main-btns a i {
  font-size: 2rem;
}

/* ========== Fixed card end ========== */

/* ========== Hero start ========== */

.hero {
  width: 100%;
  margin-top: 6rem;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-top: 2.4rem;
  font-weight: 500;
}

.typed-cursor {
  color: var(--accent-primary);
  font-weight: 500;
}

#typing-text {
  color: var(--accent-primary);
  display: inline-block;
}

.hero .text {
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 2.4rem;
  color: var(--text-main);
  line-height: 2rem;
}

.num-info {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.4rem;
}

.num-item {
  text-align: center;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2.4rem;
}

.num-item h1 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0;
  margin: 0;
}

.num-item p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.num-item h1 span {
  display: inline-block;
  min-width: 1ch;
}

/* ========== Hero end ========== */

/* ========== Experience start ========== */

.experience,
.project,
.tools,
.reviews,
.contact {
  width: 100%;
  margin-top: 6rem;
}

.experience .experience-title,
.project-title,
.tools-title,
.reviews-title,
.contact-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.experience-cards {
  width: 100%;
}

.experience-cards .card {
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  background-color: var(--bg-card);
  margin-top: 2.4rem;
  transition: border 0.3s;
}

.experience-cards .card:hover {
  border-color: var(--border-focus);
}

.card .top-info {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1.5rem;
}

.card-title h1 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-main);
}

.card-title p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.card .logo {
  width: 5rem;
}

.card .date p {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
  padding: 0.8rem 1rem;
  margin-top: 1.4rem;
  border: 1px solid var(--border-focus);
  border-radius: 0.5rem;
  background-color: var(--border-card);
}

.card hr {
  border: none;
  height: 1px;
  background-color: var(--border-focus);
  margin-top: 1.4rem;
}

.card .card-text {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1.4rem;
}

/* ========== Experience end ========== */

/* ========== Project start ========== */

.project-card {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  background-color: var(--bg-card);
  margin-top: 2.4rem;
  transition: border 0.3s;
}

.project-card:hover {
  border-color: var(--border-focus);
}

.project-image {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
}

.project-image img {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
  transition: transform 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.card-info .pr-card-title h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-info .pr-card-title p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.project-arrow {
  font-size: 2rem;
  color: var(--text-main);
  padding: 1rem 1.3rem;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  background-color: transparent;
  transition: border 0.3s;
}

.project-arrow i {
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s;
}

.project-card:hover .project-arrow i {
  transform: rotate(0);
}

.project-card:hover .project-arrow {
  border-color: var(--border-focus);
}

/* ========== Project end ========== */

/* ========== Tools start ========== */

.tools-cards {
  width: 100%;
}

.tool-card {
  width: 100%;
  margin-top: 2.4rem;
  padding: 1.5rem;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: start;
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  gap: 1.5rem;
  transition: border 0.3s;
}

.tool-card:hover {
  border-color: var(--border-focus);
}

.tool-card img {
  width: 5rem;
}

.tool-card-title h1 {
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 600;
}

.tool-card-title p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ========== Tools end ========== */

/* ========== Reviews start ========== */

.review-row {
  overflow: hidden;
}

.arrow-btns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
  margin-top: 2.4rem;
}

.arrow-btns button {
  border: none;
  font-size: 2.2rem;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--border-card);
  transition:
    transform 0.2s,
    opacity 0.3s;
}

.arrow-btns button:active {
  transform: scale(0.9);
}

.review-container {
  width: 100%;
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  overflow: visible;
  will-change: transform;
}

.review-card {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 2rem;
  background-color: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border-card);
  transition: border 0.3s;
}

.review-card:hover {
  border-color: var(--border-focus);
}

.profile-info {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.profile-info img {
  width: 5rem;
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.review-card p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ========== Reviews end ========== */

/* ========== Contact start ========== */

.contact .contact-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2.4rem;
}

.form input,
textarea {
  width: 100%;
  padding: 1.5rem;
  margin-top: 1.4rem;
  border: 1px solid var(--border-focus);
  background-color: var(--bg-card);
  border-radius: 1.5rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
  outline: none;
  text-decoration: none;
}

.form input::placeholder,
textarea::placeholder {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form textarea {
  height: 15rem;
}

.form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--border-card);
  border-radius: 1.6rem;
  border: none;
  background-color: var(--accent-primary);
}

.form p {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.4rem;
}

/* ========== Contact end ========== */

/* ========== Footer start ========== */

.footer {
  width: 100%;
  margin-top: 6rem;
  padding: 2rem;
  border-top: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer a {
  font-size: 1.6rem;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-card);
  transition:
    background-color 0.3s,
    border 0.3s;
}

.footer a:hover {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
}

/* ========== Footer end ========== */

/* Additional elements */

.layout {
  opacity: 0;
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 23px;
  height: 26px;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
}

body,
a,
button,
.card,
img,
input,
textarea {
  cursor: none !important;
}

/* ========== MEDIA ========== */

@media (min-width: 810px) {
  .wrapper {
    padding: 0 3rem;
  }

  .main-card {
    width: 100%;
    height: min-content;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 2rem;
    text-align: start;
    margin-top: 9rem;
  }

  .main-card img {
    width: auto;
    height: 23rem;
  }

  .social ul {
    justify-content: start;
  }

  .main-btns a {
    width: auto;
  }

  .row {
    display: contents;
  }

  .num-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .card .top-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .project-title,
  .tools-title {
    margin-bottom: 2.4rem;
  }

  .project-cards,
  .tools-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    row-gap: 2rem;
  }

  .project-card,
  .tool-card {
    margin: 0;
  }

  .top-inp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero h2 {
    font-size: 2.4rem;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .num-item h1 {
    font-size: 3.4rem;
  }

  .hero,
  .experience,
  .project,
  .tools,
  .reviews,
  .contact {
    margin-top: 8rem;
  }

  .experience .experience-title,
  .project-title,
  .tools-title,
  .reviews-title,
  .contact-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 1200px) {
  .layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 6rem;
    align-items: stretch;
    position: relative;
  }

  .left {
    position: relative;
    height: 100%;
  }

  .right {
    min-width: 0;
    overflow: visible;
  }

  .main-card {
    position: sticky;
    top: 6rem;
    margin-top: calc(50vh - 300px);
    max-width: 38rem;
    height: fit-content;
    margin-top: 0;
    display: block;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-card img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }

  .social ul {
    justify-content: center;
  }

  .header {
    position: static;
    margin-bottom: 6rem;
    margin-top: 2.4rem;
  }
}
