@charset "utf-8";

:root { 
  --background: rgb(0,0,32);
  --primary-colour: #8f70e3;
  --lighter-primary: #BBA9EE;
  --border-radius: 4px;
  --border-color: #c6c6c6;
}

* {
  margin: 0;
  border: 0;
  padding: 0;
  outline: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.container {
    width: min(100% - 30px, 980px);
    padding: 0 15px;
    margin-inline: auto;
}

.flex {
  display: flex;
}

.wrap {
  flex-wrap: wrap;
}

.gap-10 {
  gap: 10px;
}

.gap-20 {
  gap: 20px;
}

.gap-40 {
  gap: 40px;
}

.align {
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

.center {
  justify-content: center;
  align-items: center;
}

/*---------------------------------------------------------------------------*/
/*-------------------------------Fonts---------------------------------------*/
/*---------------------------------------------------------------------------*/

.poppins-light {
  font-family: "Poppins", serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", serif;
  font-weight: 800;
  font-style: normal;
}

.inter {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/*---------------------------------------------------------------------------*/
/*--------------------------------body---------------------------------------*/
/*---------------------------------------------------------------------------*/

body {
  background-color: var(--background);
}


/*---------------------------------------------------------------------------*/
/*------------------------------Hero Banner----------------------------------*/
/*---------------------------------------------------------------------------*/

.hero-banner {
    height: 100dvh;
    background: #fff url(../img/hero-image.jpg)center center/cover  no-repeat;

    .overlay {
      height: 100%;
      text-align: center;
      place-content: center;
      backdrop-filter: brightness(90%);
      

      h2 {
          font-family:"Poppins", serif;
          font-size: 7rem;
          font-weight: 800;
          text-wrap: balance;
          color: #fff;
          line-height: 1.2;
          margin-bottom: 8px;
          letter-spacing: 3px; 
          
      }

      p {
          color: #fff;
          font-size: 1.8rem;
          font-weight: 400;
          margin-bottom: 48px;
          margin-left: auto;
          margin-right: auto;
          max-width: 800px; 
          padding: 0 20px; 
      }

      a {
          text-decoration: none;
          padding: 12px 32px;
          
          border-radius: 30px;
          color: #fff;
          border:solid #fff;
          &:hover {
            box-shadow: 0 0 20px 5px rgba(244, 244, 244, 0.515); 
        }  
      }
  }
}

/*---------------------------------------------------------------------------*/
/*------------------------------Down Arrow ----------------------------------*/
/*---------------------------------------------------------------------------*/
/* I followed a tutorial on cssanimation.rocks for the header-down-arrow*/


.header-down-arrow {
  position: absolute;
  bottom: 4dvh;
  justify-items: center;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  cursor: pointer;
}

.header-down-arrow img {
  animation: fade-slide-up 1s 1s ease-out forwards,
             pulse 2s 3s ease-out infinite;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.header-down-arrow:hover img {
  transform: scale(1.1); 
  opacity: 0.8; 
  
}

@keyframes fade-slide-up {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: none;
  }
  50% {
    opacity: .8;
    transform: scale(.8);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.content {
    width: 60%;

    h3 {
        font-size: 3.5rem;
        color: var(--primary-colour);
        margin-bottom: 20px;
        line-height: 1.2;
    }

    p {
        font-size: 1.7rem;
    }
}

h3 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 4rem;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 20px;
  color: var(--primary-colour);
}

/*---------------------------------------------------------------------------*/
/*----------------------------About-Me Section ------------------------------*/
/*---------------------------------------------------------------------------*/


#about-me .container {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
}

#about-me .content {
  font-weight: 250;
  max-width: 500px;
}

.special-text {
  color: var(--lighter-primary);
  font-weight: 700;
}

p {
  color: #fff;
  margin-bottom: 20px;
}

figure {
  width: 300px; 
  height: 300px;
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-colour);
}


/*---------------------------------------------------------------------------*/
/*-----------------------------Past Projects---------------------------------*/
/*---------------------------------------------------------------------------*/
.column {
  flex: 1 1 calc(25% - 40px); 
  width: calc(25% - 15px); 
  height: 200px;
  min-width: 200px;
  border-radius: 5px;
  background-color: #fff;
  position: relative; 
  box-shadow: 1px 1px 2px rgb (0 0 0 / 5%);
  text-align: center;
}


.column img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

.project-text {
  color: #fff; 
  font-size: 1.2rem; 
  margin-top: 10px; 
  font-family: "Inter", Arial, sans-serif; 
  font-weight: 400; 
}

/*---------------------------------------------------------------------------*/
/*-----------------------------Infinite Scroll-------------------------------*/
/*---------------------------------------------------------------------------*/

/* I followed an example on youtube by 'Slaying the Dragon' for this section*/

.white {
  color: #fff;
}
.infinite-scroll {
  margin-top: 2rem;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.wrapper {
  width: 100%;
  max-width: 1236px;
  margin-inline: auto;
  height: 80px; 
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

.row {
  display: flex;
  gap: 20px; 
  position: absolute;
  white-space: nowrap;
  animation: scrollLeft linear 20s infinite; 
}

.item {
  height: 60px;
  padding: 10px 30px;
  background-color: #797979;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  
  img {
    width: 32px; 
    height: 32px; 
    margin-right: 10px; 
    object-fit: contain; 
  }
}
.item p {
  margin: 0;
  font-size: 2rem;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Translate by 50% of the row width */
  }
}
/*---------------------------------------------------------------------------*/
/*----------------------------Contact-Me-------------------------------------*/
/*---------------------------------------------------------------------------*/

.contact-me {
  background-color: var(--background); 
  text-align: center;
  margin-bottom: 50px;
}

.contact-me h3 {
  color: var(--primary-colour); 
  font-size: 3.5rem; 
  margin-bottom: 20px; 
}

.contact-me form {
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px; 
  padding: 0 20px;
}

.contact-me input,
.contact-me textarea {
  padding: 15px;
  border-radius: var(--border-radius); 
  border: 2px solid var(--border-color); 
  background-color: rgba(255, 255, 255, 0.1); 
  color: #fff; 
  font-size: 1.2rem;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}



.contact-me input:focus,
.contact-me textarea:focus {
  border-color: var(--primary-colour); 
  box-shadow: 0 0 10px rgba(143, 112, 227, 0.5); 
  outline: none; 
}

.contact-me textarea {
  resize: none; 
}

.contact-me button {
  padding: 15px 30px;
  background-color: var(--primary-colour); 
  color: #fff;
  border: none;
  border-radius: 30px; 
  font-size: 1.2rem;
  cursor: pointer;
  max-width: 180px;
  margin: auto;
}

/*---------------------------------------------------------------------------*/
/*------------------------------Footer---------------------------------------*/
/*---------------------------------------------------------------------------*/

footer {
  height: 60px;
  background-color: var(--background);
  color: #fff;

  .left-footer ul li{
      display: inline;

      a {
          text-decoration: none;
          height: 40px;
          width: 40px;
          padding: 5px;
          border-radius: 50%;
          font-size: 1.6rem;
          background-color: rgb(255 255 255 / 10%);
          backdrop-filter: blur(100px) saturate(140%);
          height: 30px;
          width: 30px;
          border: 1px solid #dcdcdc;
          position: relative;
          right: 2px;

          i {
              color: #fff;
          }

          &:hover {
              background-color: #672C36;
              transition: color 0.25s ease-in-out;
          }
      }
  }
}

/*---------------------------------------------------------------------------*/
/*------------------------------Media Queries--------------------------------*/
/*---------------------------------------------------------------------------*/

/* 992px and down */
@media (max-width: 992px) {
  .hero-banner .overlay h2 {
    font-size: 6rem;
    line-height: 1.1;
  }

  .hero-banner .overlay p {
    margin-left: 200px;
    margin-right: 200px;
    font-size: 1.8rem;
  }

  .about-container .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content {
    width: 80%;
    margin-bottom: 40px;
  }

  .lg-25 {
    flex: 0 0 50%;
    max-width: calc(50% - 10px);
  }
}

/* 768px and down */
@media (max-width: 768px) {
  .hero-banner .overlay h2 {
    font-size: 4rem;
    line-height: 1;
  }

  .hero-banner .overlay p {
    margin-left: 100px;
    margin-right: 100px;
    font-size: 1.4rem;
  }
  .left-triangle,
  .right-triangle {
    display: none; 
  }

  .content {
    width: 90%;
  }

  .column {
    height: 150px;
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .wrapper {
    width: 90%;
  }

  .itemLeft,
  .itemRight {
    width: 120px;
    height: 60px;

    i {
      font-size: 2rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  #about-me .container {
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }

  #about-me .content {
    width: 100%; 
    margin-bottom: 20px; 
  }

  figure {
    margin: 0 auto;
  }
  .column.lg-25 {
    flex: 1 1 calc(50% - 20px); 
    max-width: calc(50% - 20px);
  } 

}


/* 480px and down */
@media (max-width: 480px) {
  .hero-banner .overlay h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .hero-banner .overlay p {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 1.2rem;
  }

  .hero-banner .overlay a {
    padding: 10px 20px;
    font-size: 1.2rem;
  }

  .content {
    width: 100%;
  }  

  .lg-25 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .column {
    height: 120px;
    flex: 1 1 100%;
  }

  .wrapper {
    width: 100%;
  }

  .itemLeft,
  .itemRight {
    width: 100px;
    height: 50px;

    i {
      font-size: 1.5rem;
    }

    p {
      font-size: 1.2rem;
    }
  }

  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  footer .left-footer ul {
    gap: 10px;
  }

}
