@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@200;300;400;500;600;700;800&family=Roboto+Mono:ital,wght@0,100;0,200;0,500;0,600;0,700;1,300&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;400;500;600;800;900&display=swap");

:root {
  --black: #000;
  --blue-black: #0d1117;
  --light-blue: #161b22;
  --light-blue-blur: rgb(225, 225, 225, 0.1);
  --light-gray: #cdd2d5;
  --gray: #8892b0;
  --white: #ffffff;
  --green: #64ffda;
  --biege: #fff0e5;

  --bg-wild-blue-yonder: #a6b1d8;
  --bg-orange-crayola: #fc7940;
  --bg-roman-silver-alpha-30: #87919b4d;

  --fs-1: 10px;
  --fs-2: 12px;
  --fs-3: 13px;
  --fs-4: 14px;
  --fs-5: 16px;
  --fs-6: 40px;
  --fs-7: 22px;
  --fs-10: 30px;
  --fs-20: 100px;

  --radius: 5px;
  --radius-15: 15px;

  --gradient: linear-gradient(
    to top,
    hsla(210, 25%, 5%, 0.95) 0,
    hsla(210, 24%, 7%, 0.45) 70%,
    hsla(207, 24%, 7%, 0) 100%
  );

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 0.75s ease;
  --transition-4: 0.9s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

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

li {
  list-style: none;
}

a,
img,
span,
data,
button,
i {
  display: block;
}

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

img {
  height: auto;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

i {
  pointer-events: none;
  color: var(--gray);
}

html {
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  scroll-behavior: smooth;
  font-family: "Roboto Mono", monospace;
}

body {
  background-color: var(--blue-black);
  color: var(--white);
  font-size: 1.6rem;
  overflow-x: hidden;
  transition: var(--transition-3);
}

body.active {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--blue-black);
}

::-webkit-scrollbar-thumb {
  background-color: var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray);
}

.ri-arrow-right-s-fill {
  color: var(--gray);
  font-size: var(--fs-1);
  padding-right: 1rem;
}

.blur {
  filter: blur(5px);
}

/* header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  padding: 0px 70px;
  height: 50px;
  background-color: var(--light-blue-blur);
  backdrop-filter: blur(5px);
  transition: top var(--transition-4);
  border-radius: 0.5rem;
}

.header-active {
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.name {
  color: var(--gray);
}

.links {
  display: flex;
  align-items: center;
}

h1 {
  font-weight: 500;
  color: var(--gray);
}

.link {
  margin: 0px 5px;
  font-size: var(--fs-3);
}

.link:is(:hover, :focus) a {
  color: #5a6273;
  transition: var(--transition-3);
}

.link a {
  padding: 10px;
  color: var(--gray);
}

.btn {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: max-content;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-3);
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition-1);
  border: 1px solid var(--light-blue);
  box-shadow: 2px 2px 0px 0px var(--light-blue);
  cursor: pointer;
}

.project-btn {
  margin-top: 40px;
  padding: 1.25rem 1.75rem;
}

.btn:is(:hover, :focus-visible) {
  box-shadow: 4px 4px 0px 0px var(--light-blue);
}

.open-menu,
.close-menu {
  display: none;
  font-size: var(--fs-10);
  cursor: pointer;
}

.logo {
  color: var(--gray);
}

.close-menu i {
  color: var(--gray);
}

.active {
  transform: translateX(0vw);
}

main {
  padding: 0px 150px;
}

/* hero */

.hero {
  /* height: 100vh; */
  padding: 145px 0 0 0;
  margin: 0 0 140px 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.hero h1 {
  font-size: var(--fs-2);
  font-weight: 400;
  color: var(--gray);
}

.hero h2 {
  font-size: var(--fs-20);
  font-weight: 400;
  color: var(--white);
}

.web {
  font-size: var(--fs-6);
  font-weight: 400;
  color: var(--gray);
}

.hero p {
  font-size: var(--fs-2);
  color: var(--gray);
  max-width: 530px;
  line-height: 2;
  margin-top: 20px;
}

/* about */
.about {
  display: flex;
  align-items: baseline;
  margin-bottom: 140px;
}

.about-title {
  color: var(--white);
}

.about h1 {
  font-weight: 500;
}

.about-detail {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-right: 50px;
}

.about-text {
  font-size: var(--fs-4);
  line-height: 2;
  margin-top: 20px;
  color: var(--gray);
}

.img-wrapper {
  object-fit: cover;
  overflow: hidden;
  /* box-shadow: 15px 15px 0px 0px var(--light-blue); */
  transition: var(--transition-2);
  width: 2.5rem;
  border-radius: 100%;
  /* height: 350px; */
}

.img-wrapper img {
  object-fit: cover;
  aspect-ratio: 2/2;
  width: 100%;
  height: inherit;
}

/* .img-wrapper:hover {
  box-shadow: 25px 25px 0px 0px var(--light-blue);
} */

.about-lists {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.about-lists li {
  display: flex;
  align-items: center;
  color: var(--white);
  font-weight: 200;
  font-size: var(--fs-3);
  margin-top: 10px;
  font-family: "Roboto Mono", monospace;
}

/* experience */
.experience {
  display: flex;
  flex-direction: column;
  margin: 0 auto 130px;
}

.experience h1 {
  display: flex;
  margin: 20px auto;
  font-weight: 500;
  color: white;
}

.experience-details {
  display: flex;
  margin-top: 20px;
}

.tabs {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: "Roboto Mono", monospace;
}

.tab-btn {
  position: relative;
  transition: var(--transition-2);
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0px 20px 2px;
  border-left: 2px solid #233554;
  background-color: transparent;
  color: var(--white);
  font-size: var(--fs-3);
  text-align: left;
}

.tab-btn:hover {
  background-color: var(--light-blue);
}

.tab-btn.active {
  background-color: var(--light-blue);
}

.tab-btn:hover .tab-btn-span {
  color: var(--gray);
}

.tab-btn-span {
  color: var(--gray);
}

.scroll {
  display: none;
  position: absolute;
  top: 0px;
  left: -2.5px;
  z-index: 10;
  width: 3.5px;
  height: 42px;
  border-radius: 4px;
  /* background: var(--green); */
  /* transform: translateY(calc(4 * 42px)); */
  transition: transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1) 0.1s;
}

.active-scroll {
  display: flex;
  background: var(--gray);
}

.active-span {
  color: var(--bg-wild-blue-yonder);
}

.content {
  display: none;
  color: var(--gray);
  align-items: flex-start;
  flex-direction: column;
  font-size: var(--fs-4);
}

.content div {
  transition: var(--transition-3);
}

.content div:nth-child(2) {
  margin-top: 20px;
}

.content-heading-wrapper {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.content-heading {
  color: var(--white);
  font-size: var(--fs-5);
}

.place {
  color: var(--bg-wild-blue-yonder);
  margin-left: 10px;
  font-size: var(--fs-4);
  font-weight: 800;
}

.content .date {
  font-size: var(--fs-2);
  margin-bottom: 20px;
  font-family: "Roboto Mono", monospace;
}

.work-lists {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.list:nth-child(2) {
  transition-delay: 200ms;
}

.list:nth-child(3) {
  transition-delay: 400ms;
}

.list:nth-child(4) {
  transition-delay: 600ms;
}

.list:nth-child(5) {
  transition-delay: 800ms;
}

.list:nth-child(6) {
  transition-delay: 1000ms;
}

.list:nth-child(7) {
  transition-delay: 1200ms;
}

.list:nth-child(8) {
  transition-delay: 1400ms;
}

.list:nth-child(9) {
  transition-delay: 1600ms;
}
.list:nth-child(10) {
  transition-delay: 1800ms;
}
.list:nth-child(11) {
  transition-delay: 2000ms;
}

.work-lists li {
  display: flex;
  align-items: flex-start;
  color: var(--gray);
  margin-bottom: 10px;
}

.work-lists li span {
  /* margin-top: -1px; */
  /* display: flex;
  align-items: center; */
}

.work-lists li i {
  font-size: var(--fs-5);
}

.active-content {
  display: flex;
}

/* projects */

.projects {
  margin-bottom: 100px;
  /* background-color: var(--bg-wild-blue-yonder); */
}

.projects h1 {
  font-weight: 500;
  text-align: center;
  color: var(--white);
}

.projects h2 {
  margin-top: 20px;
  font-weight: 400;
  color: var(--white);
  transition: var(--transition-3);
}

.project-card {
  margin: 20px 0 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-card:nth-child(2) {
  flex-direction: row-reverse;
}
.project-card:nth-child(4) {
  flex-direction: row-reverse;
}

.project-details {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: 10px 10px 0 0;
  z-index: 2;
}

.project-details p {
  box-shadow: 0 10px 30px -15px var(--gradient);
  transition: var(--transition-2);
  padding: 25px;
  border-radius: 4px;
  background-color: #112240;
  color: var(--gray);
  font-size: var(--fs-3);
  width: 400px;
  height: 170px;
  box-shadow: 5px 5px 0px 0px var(--light-blue);
  font-family: "Roboto Mono", monospace;
}

.project-tools {
  display: flex;
  align-items: center;
  font-size: var(--fs-1);
  color: var(--gray);
  flex-wrap: wrap;
  /* margin: 15px 0 0 0; */
}

.project-tools span {
  margin-right: 20px;
}

.project-tools-info a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
}

.project-tools-info a:hover i {
  transform: translateX(10px);
  transition: var(--transition-3);
}
.project-tools-info a p {
  color: var(--gray);
  font-size: var(--fs-1);
  margin-right: 2px;
  width: max-content;
}

.project-tools-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 0 0 0;
}

.project-img {
  width: 400px;
  height: 200px;
  z-index: 1;
  transition: var(--transition-3);
  border-radius: 5px;
  overflow: hidden;
}

.project-img:hover {
  opacity: 0.8;
}

.project-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  transition: var(--transition-2);
}

.project-card:is(:hover, :focus-within) .project-img img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.project-details .ri-external-link-line {
  margin-top: 10px;
  font-size: var(--fs-5);
  cursor: pointer;
}

.featured-project {
  color: var(--gray);
  font-size: var(--fs-3);
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.5rem;
  padding: 100px 0;
}

.main-project-card {
  position: relative;
  border-radius: var(--radius-15);
  overflow: hidden;
}

.main-project-card .card-banner img {
  transition: var(--transition-2);
}

.main-project-card .card-banner img {
  width: 100%;
}

.main-project-card:is(:hover, :focus-within) .card-banner img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.main-project-card .card-content {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  /* background-color: var(--bg-wild-blue-yonder); */
  border-radius: var(--radius-10);
  padding: 30px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(calc(-50% + 20px));
  transition: var(--transition-2);
}

.main-project-card .card-tag {
  color: var(--blue-black);
  font-size: var(--fs-9);
}

.main-project-card:is(:hover, :focus-within) .card-content {
  opacity: 1;
  transform: translateY(-50%);
}

.grid-list > li:first-child {
  width: 100%;
}

.grid-list > li:last-child {
  width: 100%;
}

/* side projects */
.side-project-cards {
  list-style: none;
  /* padding: 0px; */
  /* margin: 50px 0px 0px; */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  position: relative;
}

.side-project-card {
  background-color: var(--light-blue);
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 2s;
}

.side-project-card i {
  font-size: 30px;
  color: var(--gray);
  cursor: pointer;
}

.top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  width: 100%;
}

.top-section div {
  display: flex;
  align-items: center;
}

.top-section div i {
  font-size: 20px;
  padding-left: 10px;
}

.middle-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
}

.middle-section h3 {
  font-size: var(--fs-5);
  margin-bottom: 10px;
}

.middle-section p {
  color: gray;
  font-size: var(--fs-3);
}

.bottom-section {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.bottom-section span {
  color: gray;
  margin-right: 10px;
  font-size: var(--fs-1);
}
/* contact */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.contact h1 {
  display: flex;
  margin: auto;
  font-weight: 500;
  color: var(--white);
}

.contact div {
  font-size: var(--fs-3);
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--white);
  margin: 0 20px;
  display: flex;
  align-items: center;
  transition: var(--transition-3);
  cursor: pointer;
}

.contact div i {
  font-weight: 400;
  color: var(--gray);
}

.email {
  margin: 20px 0;
  color: var(--gray);
  font-weight: 400;
}

.contact div:hover {
  transform: translateY(-10px);
  color: var(--gradient);
}

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links li {
  margin: 20px;
}

.footer-links li a i {
  font-size: 18px;
  transition: var(--transition-2);
  color: var(--gray);
}

.footer-links li a:hover i {
  color: #233554;
  transform: scale(1);
  transform: translateY(-10px);
}

.footer p {
  display: flex;
  margin: 0 auto 20px;
  font-size: var(--fs-1);
  word-spacing: 4px;
  letter-spacing: 3px;
  font-family: "Roboto Mono", monospace;
}
/* 
.overlay {
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 24;
  top: 0;
  left: 0;
  background-color: rgb(35, 53, 84,0.7);
} */

/* .overlay-active {
  display: flex;
} */

/* keyframes */

.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 0.7s;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.hide {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(60px);
  transition: all 1s;
}

.hide:nth-child(2) {
  transition-delay: 200ms;
}

.hide:nth-child(3) {
  transition-delay: 400ms;
}

.hide:nth-child(3) {
  transition-delay: 200ms;
}

.hide:nth-child(3) {
  transition-delay: 400ms;
}

.up {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* .left {
  -webkit-animation: slide-left 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-left 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
} */

.top {
  -webkit-animation: slide-top 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-top 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
/*
.right {
  -webkit-animation: slide-right 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-right 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.bottom {
  -webkit-animation: slide-bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
} */

@-webkit-keyframes slide-top {
  0% {
    -webkit-transform: translateY(100vw);
    transform: translateY(100vw);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes slide-top {
  0% {
    -webkit-transform: translateY(100vw);
    transform: translateY(100vw);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-webkit-keyframes slide-left {
  0% {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slide-left {
  0% {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slide-right {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateY(0);
  }
}

@keyframes slide-right {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(100vw);
    transform: translateY(100vw);
  }
}

@keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(-100vw);
    transform: translateY(-100vw);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }

  .hide {
    transition: none;
  }
}

@media (max-width: 600px) {
  .header {
    /* width: 100%; */
    top: 2rem;
    transform: translate(-50%, 0);
  }

  .header,
  main {
    padding: 0 20px;
  }

  .open-menu {
    display: flex;
  }

  .nav {
    position: fixed;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0px;
    bottom: 0px;
    right: 0px;
    padding: 50px 10px;
    width: min(75vw, 400px);
    height: 100vh;
    outline: 0px;
    background-color: var(--light-blue);
    box-shadow: -10px 0px 30px -15px var(--black);
    transform: translateX(100vw);
    visibility: visible;
    transition: var(--transition-3);
  }

  .active {
    transform: translateX(0vw);
  }

  .links {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
  }

  .link {
    margin-top: 30px;
    font-size: var(--fs-5);
  }

  .link-a {
    color: var(--white);
  }

  .close-menu {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .experience-details {
    flex-direction: column;
    margin: auto;
  }

  .tabs {
    flex-direction: row;
  }

  .tab-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 15px;
    border-left: 0px;
    text-align: center;
    border-bottom: 2px solid #233554;
  }

  .scroll {
    top: auto;
    bottom: -2px;
    width: 100%;
    left: 0px;
    height: 2px;
  }

  .project-details p {
    width: 300px;
  }

  .project-img {
    width: 300px;
  }

  .project-card {
    margin-bottom: 200px;
  }

  .content div {
    margin-top: 15px;
  }

  .resume-btn {
    background-color: var(--blue-black);
    color: var(--white);
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: var(--fs-4);
  }

  .hero h2 {
    font-size: var(--fs-6);
  }

  .about {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  /* 
  .img-wrapper {
    display: flex;
    margin: 20px auto 0;
  } */

  .project-card {
    flex-wrap: wrap;
    margin-bottom: 200px;
  }

  .project-details {
    position: absolute;
    top: 0;
  }

  .project-img {
    opacity: 0.5;
  }
}

@media (min-width: 600px) {
  .about-text {
    width: 630px;
  }

  .project-details:nth-child(2) {
    padding: 0;
  }

  .project-details:nth-child(4) {
    padding: 0;
  }

  .footer-links {
    position: fixed;
    bottom: 20px;
    left: 20px;
    flex-direction: column;
  }

  .content {
    margin-left: 20px;
  }

  .experience {
    max-width: 700px;
  }
}

@media (max-width: 1000px) {
  .grid-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
