* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0px;
  padding: 0px;
  width: 100vw;
  overflow-x: hidden;
}

:root {
  --white: #fff;
  --navy-blue: rgb(0, 26, 48);
}

.section {
  padding: 8rem 3rem;
  transition: transform 1s, opacity 1s;
}

.section-hidden {
  opacity: 0;
  transform: translateY(8rem);
}

/* ----------------- Navigation Bar ----------------- */
nav {
  position: sticky;
  top: 0;
  height: 120px;
  background-color: #f5f7f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  z-index: 4;
}

.nav-left {
  margin-left: 5rem;
  display: flex;
  align-items: center;
}

.nav-left span {
  font-family: "Brush Script MT", cursive;
  font-size: 40px;
}

nav span {
  margin-left: 15px;
  font-size: 25px;
  color: var(--navy-blue);
  font-weight: 600;
}

.nav-right {
  margin-right: 10rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-right button {
  color: var(--navy-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

/* ----------------- Home Page ----------------- */
.home-container {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--white);
  justify-content: center;
}

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

.bio {
  display: grid;
  color: var(--navy-blue);
}

.bio .intro {
  font-size: 45px;
}

.bio .name {
  font-size: 70px;
}

.typer {
  white-space: nowrap;
  overflow: hidden;
  border-right: solid 3px var(--navy-blue);
  font-weight: 600;
}

.profile img {
  animation: morph 8s ease-in-out infinite;
  border: solid 4px var(--navy-blue);
  border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  height: 25rem;
  width: 22rem;
  transition: all 1s ease-in-out;
  object-fit: cover;
  object-position: 50%;
}

.bio .icons {
  margin-top: 30px;
  display: flex;
  gap: 1rem;
}

.profile i {
  position: relative;
  color: var(--navy-blue);
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }

  to {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

/* ----------------- Skills Page ----------------- */
.skills-container {
  position: relative;
  display: flex;
  min-height: 25vh;
  background-color: var(--navy-blue);
  justify-content: center;
  align-items: center;
  gap: 3rem 8rem;
  overflow-wrap: inherit;
  flex-wrap: wrap;
  padding: 50px 50px;
}

.skills-container::-webkit-scrollbar {
  display: none;
}

.skills-container i {
  text-align: center;
  color: var(--white);
  font-size: 100px;
}

.skills-container i h2 {
  margin-top: 10px;
  color: var(--white);
  font-size: 25%;
}

/* ----------------- About Page ----------------- */
.about-container {
  position: relative;
  min-height: 100vh;
  background-color: var(--white);
  color: var(--navy-blue);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

.about-bio {
  padding-right: 70px;
}

.about-container > h2 {
  text-align: center;
}

.about-container img {
  position: relative;
  width: 500px;
  border-radius: 20px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.about-bio h1 {
  margin-bottom: 20px;
}

.basic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--navy-blue);
}

.basic div div {
  display: flex;
  gap: 0.5rem;
  font-size: 18px;
}

.me,
.education {
  display: grid;
  gap: 1rem;
}

.summary {
  margin-top: 30px;
  font-size: 20px;
}

.summary span {
  font-weight: 600;
}

/* ----------------- Projects Page ----------------- */
.projects-container {
  display: grid;
  min-height: 100vh;
  background-color: var(--navy-blue);
}

.projects-container > h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 4rem;
}

.projects {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  overflow-wrap: inherit;
  flex-wrap: wrap;
}

.projects > a {
  position: relative;
  text-align: center;
  text-decoration: none;
  color: white;
  width: 350px;
  height: 350px;
  overflow: hidden;
  box-shadow: 0 3px 3px rgba(255, 255, 255, 0.2);
  border-radius: 3%;
  cursor: pointer;
}

.projects > a h4,
.projects > a h3 {
  opacity: 0;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.projects > a h4 {
  top: 82%;
  color: #cccccc;
  font-size: 18px;
}
.projects > a h3 {
  top: 75%;
  font-size: 21px;
}

.projects > a:hover h4,
.projects > a:hover h3 {
  animation: fadeInText 1s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.projects > a:hover div {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: black;
  animation: fadeInBackground 1s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

#project-WordleRush {
  background-image: url("./assets/imgs/WordleRush.png");
  background-size: cover;
}

#project-Trendz {
  background-image: url("./assets/imgs/Trendz.png");
  background-size: cover;
}

#project-Forkify {
  background-image: url("./assets/imgs/Forkify.png");
  background-size: cover;
}

#project-SpacedOut {
  background-image: url("./assets/imgs/SpacedOut.png");
  background-size: cover;
}

.projects > a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.projects > a:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
  transition-delay: 0.5s;
}

.projects > a:hover:after {
  left: 100%;
}

.projects > a span {
  position: absolute;
  display: block;
  transition: 0.5s ease;
}

.projects > a span:nth-child(1) {
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #fff;
}

.projects > a:hover span:nth-child(1) {
  width: 100%;
  transform: translateX(100%);
}

.projects > a span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: #fff;
}

.projects > a:hover span:nth-child(3) {
  width: 100%;
  transform: translateX(-100%);
}

.projects > a span:nth-child(2) {
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #fff;
}

.projects > a:hover span:nth-child(2) {
  height: 100%;
  transform: translateY(100%);
}

.projects > a span:nth-child(4) {
  bottom: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: #fff;
}

.projects > a:hover span:nth-child(4) {
  height: 100%;
  transform: translateY(-100%);
}

.hidden {
  visibility: hidden;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 4rem;
  color: var(--navy-blue);
  cursor: pointer;
  border: none;
  background: none;
  z-index: 20;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  background-color: white;
  padding: 3rem;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  gap: 1rem;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 4rem;
}

.modal-SpacedOut img {
  height: 500px;
  border-radius: 20px;
  border: 5px solid var(--navy-blue);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.modal-SpacedOut .images {
  padding: 2rem 0;
}

.modal-Trendz img,
.modal-Forkify .pic-1,
.modal-WordleRush .pic-1 {
  width: 500px;
  object-fit: fill;
  border-radius: 20px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.modal-WordleRush .pic-2 {
  width: 175px;
  object-fit: fill;
  border-radius: 20px;
  border: 5px solid var(--navy-blue);
  background-color: white;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.modal-SpacedOut .pic-1 {
  transform: translate(50px, -25px);
}

.modal-SpacedOut .pic-2 {
  transform: translate(-50px, 25px);
}

.modal-Trendz .pic-1,
.modal-WordleRush .pic-1 {
  transform: translate(-25px, 50px);
}

.modal-Trendz .pic-2 {
  transform: translate(25px, -50px);
}

.modal-WordleRush .pic-2 {
  transform: translate(325px, -50px);
}

.modal-text {
  color: var(--navy-blue);
  font-size: 18px;
}

.modal-text .cat,
.modal-text .tech,
.modal-text .github {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.modal-text h1 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
}

.modal-text span {
  font-weight: 600;
}

.modal-text .github a {
  text-decoration: none;
  color: #4169e1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.modal-text .description {
  margin-top: 20px;
  display: grid;
  gap: 2rem;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInBackground {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.6;
  }
}

/* ----------------- Resume Page ----------------- */
.resume-container {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  background-color: var(--white);
}

.resume-container > h2 {
  color: var(--navy-blue);
  text-align: center;
}

.resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: solid 3px var(--navy-blue);
  border-radius: 20px;
  background-color: var(--navy-blue);
  padding: 2rem;
  width: 175px;
  height: 70px;
  font-size: 22px;
  transform: translate(560px, 30px);
  z-index: 2;
  text-decoration: none;
}

.resume-btn:hover {
  background-color: #ff5361;
  border-color: #ff5361;
  cursor: pointer;
}

.resume-btn i {
  margin-right: 10px;
}

.resume {
  position: relative;
  width: 85%;
  border: solid 3px var(--navy-blue);
  border-radius: 30px;
  padding: 2rem 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.resume hr {
  transform: translateX(-3rem);
  margin-top: 20px;
  width: 105%;
  color: var(--navy-blue);
}

.resume-box {
  position: relative;
  display: grid;
  gap: 10px;
}

.res-header {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company {
  display: flex;
}

.company-name {
  margin-right: 1rem;
}

.years {
  float: right;
  text-align: right;
}

.location,
.res-sub .tech,
.date {
  border-left: #808080 solid 2px;
  padding-left: 1rem;
  color: #808080;
  font-weight: 500;
}

.res-sub {
  display: flex;
  font-size: 20px;
  gap: 1rem;
}

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

.res-body {
  display: grid;
  margin-left: 3rem;
  margin-bottom: 10px;
  font-size: 18.5px;
  gap: 5px;
  list-style-position: disc;
  list-style-position: inside;
}

.res-body li {
  text-indent: -27px;
}

.coursework {
  position: relative;
  width: 80%;
  height: 35vh;
}

/* SLIDER */
.slider {
  max-width: 100rem;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  width: 33%;
  height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.slider__btn {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: var(--navy-blue);
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  font-size: 1.77rem;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.slider__btn--left {
  left: 0;
}

.slider__btn--right {
  right: 0;
}

.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot {
  border: none;
  background-color: #b9b9b9;
  opacity: 0.7;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  background-color: #ff5361;
  opacity: 1;
}

/* Courses */
.course {
  width: 65%;
  position: relative;
}

.course::before {
  position: absolute;
  top: -5.7rem;
  left: -6.8rem;
  line-height: 1;
  font-size: 20rem;
  font-family: inherit;
  color: var(--navy-blue);
  z-index: -1;
}

.course-name {
  text-align: center;
  text-transform: capitalize;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--navy-blue);
}

.course-no {
  color: #808080;
  font-size: 15px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.college {
  display: flex;
  align-items: center;
  color: var(--navy-blue);
  gap: 10px;
}

.college-info h5 {
  font-size: 15px;
}

.college-info span {
  font-size: 13px;
}

.course img {
  height: 50px;
}
/* ----------------- Contact Page ----------------- */
.contact-container {
  position: relative;
  display: grid;
  min-height: 100vh;
  background-color: var(--navy-blue);
  padding-bottom: 6rem;
}

.contact-container > h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 4rem;
}

.contact-info {
  display: grid;
  width: 90%;
  gap: 3rem;
  place-items: center;
}

.social-type {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  gap: 2rem;
  width: 70%;
  border-radius: 10px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.social-type h2,
.social-type h3 {
  color: var(--navy-blue);
  text-align: center;
  margin: 1rem;
}

.social-type > i {
  font-size: 50px;
  color: var(--navy-blue);
}

.socials .icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem;
}

.socials .icons a {
  color: var(--navy-blue);
  font-size: 20px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

form {
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 2vw 4vw;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

form h3 {
  color: var(--navy-blue);
  font-weight: 800;
  margin-bottom: 20px;
}

form input,
form textarea {
  border: 0;
  margin: 10px 0;
  padding: 20px;
  outline: none;
  background: #f5f5f5;
  font-size: 16px;
}

form button {
  padding: 15px;
  background: #ff5361;
  color: var(--white);
  font-size: 18px;
  border: 0;
  outline: none;
  cursor: pointer;
  width: 150px;
  margin: 20px auto 0;
  border-radius: 30px;
}

.footer {
  color: var(--white);
  background-color: var(--navy-blue);
  text-align: center;
  padding-bottom: 2rem;
}

.footer span {
  font-weight: 600;
}

/* Small devices (phones) */
@media only screen and (max-width: 600px) {
  nav {
    width: 100vw;
    display: flex;
    justify-content: center;
  }

  .nav-right button {
    font-size: 14px;
  }

  .nav-right {
    gap: 2rem;
    margin: 0;
  }

  .nav-left {
    display: none;
  }

  .section {
    padding: 4rem 1rem;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .bio span {
    font-size: 25px;
  }

  .bio .intro {
    font-size: 30px;
  }

  .bio .name {
    font-size: 50px;
  }

  .profile img {
    height: 20rem;
    width: 17rem;
  }

  .skills-container i {
    font-size: 50px;
  }

  .skills-container i h2 {
    font-size: 25px;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-container > h2,
  .contact-container > h2 {
    margin-bottom: 4rem;
  }

  .about img {
    width: 100%;
    height: auto;
  }

  .about-bio {
    padding: 0;
    margin-top: 1rem;
  }

  .basic div div {
    font-size: 14px;
  }

  form {
    margin-top: 2rem;
  }

  .resume-btn {
    transform: translate(0, 0);
    width: 150px;
    height: 50px;
    font-size: 18px;
    padding: 1rem;
  }

  .resume {
    width: 100%;
    padding: 1rem;
  }

  .resume hr {
    transform: translateX(0);
    width: 100%;
  }

  .res-header {
    font-size: 63%;
  }

  .res-body {
    margin-left: 0;
    font-size: 16px;
  }

  .res-body li {
    text-indent: 0;
  }

  .location,
  .res-sub .tech,
  .date {
    padding-left: 0.5rem;
  }

  .company-name {
    margin-right: 0.5rem;
  }

  .res-sub {
    font-size: 75%;
    gap: 0.5rem;
  }

  .resume-btn {
    transform: translateY(50%);
  }

  .dots {
    margin-bottom: 20px;
  }

  .slide {
    width: 100%;
  }

  .course {
    width: 100%;
  }

  .course::before {
    font-size: 12rem;
  }

  .course-name,
  .course-no {
    font-size: 18px;
  }

  .college-info h5,
  .college-info span {
    font-size: 14px;
  }

  .course img {
    height: 40px;
  }

  .projects-container a:hover {
    cursor: pointer;
  }

  .modal {
    padding: 2rem;
    overflow: hidden;
  }

  .modal-content {
    grid-template-rows: auto auto;
    grid-template-columns: unset;
    gap: 2rem;
  }

  .images {
    grid-row: 2;
  }

  .modal-Trendz .modal-text,
  .modal-WordleRush .modal-text {
    transform: translateY(4rem);
  }

  .modal-WordleRush .pic-1 {
    transform: translate(-10px, 40px);
  }

  .modal-WordleRush .pic-2 {
    width: 30%;
    transform: translateX(100px);
  }

  .modal-SpacedOut .images img {
    height: 200px;
  }

  .modal-SpacedOut .pic-1 {
    transform: translate(10%);
  }

  .modal-SpacedOut .pic-2 {
    transform: translate(-10%, 10%);
  }

  .modal-SpacedOut .modal-text {
    transform: translateY(15%);
  }

  .modal-text {
    font-size: 75%;
  }

  .modal-text .description {
    gap: 1rem;
  }

  .modal-content .images img {
    max-width: 80%;
  }

  .close-modal {
    font-size: 2.5rem;
  }

  .contact-info {
    width: 100%;
  }

  .social-type {
    width: 90%;
  }

  .footer {
    padding: 1rem;
  }
}
