@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@700&family=Inter:wght@400;700&family=Josefin+Sans:wght@300;400&display=swap');


:root { /* Main colours that are used throughout website */
    --primary-colour: #f5f5f5;
    --accent-colour : #a8b591;
    --secondary-colour:#d9ddd7 ;
    --third-colour: #d9d9d9;
    --fourth-colour: #9f9f9f;
    --text-bg: #eceeeb;

    --ratio:1.5;
    --f1: 1rem;
    /* 24 */
    --f2: calc(var(--f1) * var(--ratio));
    /* 36  */
    --f3: calc(var(--f2) * var(--ratio));
    /* 54 */
    --f4: calc(var(--f3) * var(--ratio));
    --f5: calc(var(--f4) * var(--ratio));
    --f6: calc(var(--f5) * 2.5);

    --heading-font: "Abhaya Libre";
    --body-text: "Josefin Sans";
    --nav-text: "Inter";
}

html {
  scroll-behavior: smooth;
}

body {
    position: relative;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    font-family: var(--nav-text), sans-serif;
    padding: 0;
    margin: 0;
    background-color: var(--primary-colour);
}

/* NAVBAR START */
.hamburger {
  display: none;
  align-items: center;
}
.logo  img {
    max-height: 5rem ; /* Main logo img in nav bar */
    max-width: 14rem;
}

.logo figure {
    margin: 0;
    display: flex;
    align-items: center;
}

#navbar {
    display: flex;
    width: 100%;
    background-color: var(--third-colour);
}

#navbar > nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    padding-right: 1rem;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-size: var(--f2);
    padding: 1rem;
}

/* NAVBAR END */

/* FOOTER START */

.footer {
    display: flex;
    width: 100%;
    flex-direction: column; 
}

.footer__newsletter {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}
.footer__newsletter p {
  text-align: center;
  line-height: 1rem;
}


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

.footer__right figure {
  max-width: 30%;
}

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



.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__email {
  text-decoration: none;
  color: inherit;


}

.footer__form input[type="email"] {
  padding: 0.5rem;
  border: 2px solid #4e4e4e;
}

.social__icons {
  display: flex;
  gap: 2rem;
}

.social__icon > svg {
  height: 2rem;
}

/* FOOTER END */


/* ATOMIC COMPONENTS START  */


.paper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8rem 0;
}

.paper { /* Big rectangle background of content */
  width: 80%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  position: relative;
  background-color: var(--third-colour);
}

.heading { /* h1 Headings that are green */
    font-size: var(--f6);
    color: var(--accent-colour);
    font-family: var(--heading-font), sans-serif;

}

.arrow--upwards {
  transform: rotate(180deg);
  padding: 2rem;
  z-index: 20;
  /* background-color: var(--accent-colour); */
  position: sticky;
  top: 90%;
  left: 90%;
}
.arrow {
  height: 3rem;
  width: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.arrow svg{
  max-width: 100%;
  height: auto;
}


.button--secondary:hover {
  background-color: black;
  color: white;
  transition: all 0.2s ease-in;
}

.button--accent:hover {
  background-color: black;
  color: white;
  transition: all 0.2s ease-in;
}

.button--accent {
  font-size: var(--f2);
    font-family: var(--nav-text), sans-serif;
    font-weight: 700;
    border: 2px solid black;
    border-radius: 28px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white !important;
    background-color: var(--accent-colour);
}

.button--secondary {
    font-size: var(--f2);
    font-family: var(--nav-text), sans-serif;
    font-weight: 700;
    border: 2px solid black;
    border-radius: 28px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white !important;
    background-color: var(--fourth-colour);
}

.divider { /* Squiggle used to seperate sections */
    background-image: url("/images/separator_squiggle.svg");
    height: 1rem;
    margin-bottom: 5rem;
}


/* ATOMIC COMPONENTS END */

/* HOME PAGE LANDING START */

.fullpage {
    min-height: 88vh;
}

.hero { /* Main Logo and image of myself */
    display: flex;
    width: 100%;
    align-items: center;
    height: 100%;
    justify-content: space-around;
}

.hero__left {
    max-width: 50%;
    padding-top: 5rem;
}

.hero__left h2 {
    font-size: var(--f4);
    font-family: var(--body-text) ,sans-serif;
    letter-spacing: 0.75rem;
}

.hero__left a:hover{
  background-color: #000000;
  color: white;
  transition: all 0.2s ease-in;
}

.hero__left a {
    font-size: var(--f2);
    font-family: var(--body-text) ,sans-serif;
    border: 2px solid black;
    border-radius: 28px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.hero__right img {
    width: 15rem;
    height: auto;
    position: relative;
    left: -50px;
    top: 60px;
}

.hero__image--1 {
    background-color: var(--fourth-colour);
    padding: 1rem;
    border-radius: 20px;
    transform: rotate(-15deg);
    top: -80px;
}

.hero__image--2 {
    position: absolute;
    background-color: var(--third-colour);
    padding: 1rem;
    border-radius: 20px;
    transform: rotate(15deg);
}

/* Animation of home landing page text (Chion, 2021) */
@keyframes wiggle {
    0% {
      transform: rotate(-3deg);
    }
    50% {
      transform: rotate(3deg);
    }
    100% {
      transform: rotate(-3deg);
    }
  }
  
  .wiggle-animation {
    animation: wiggle 2s ease-in-out;
  }



/* HOME PAGE LANDING END */

/* ABOUT START */
.about-container {
  display: flex;
  justify-content: center;
  padding-bottom: 3rem;

  margin-top: 8rem;
}

.about {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-colour);
    position: relative;
    max-width: 90%;
}

.about__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about__text {
    max-width: 50%;
    background-color: var(--text-bg) ;
    padding: 3rem;
    border-radius: 14px;
    position: relative;
    font-family: var(--body-text), sans-serif;
    font-size: var(--f2);
}

.about__link {
    position: absolute;
    bottom: -14%;
    left: 70%;
    
}

.about__image {
    height: 80vh;
    z-index: 2;
}

.about__image img {
    max-height: 100%;
}

.about .heading {
    position: absolute;
    top: -18rem;
    left: -4.5%;
}

/* Animation of heading (Stackoverflow, 2020) */
@keyframes slideInFromLeft {
    0% {
      transform: translateX(-150%);
    }
    100% {
      transform: translateX(0);
    }
  }
  
  .slide-in {
    animation: slideInFromLeft 2s ease-in;
  }
/* ABOUT END */

/* SERVICES START  */

.services-container{
  display: flex;
  justify-content: center;
  margin-top: 8rem;
} 

.services__heading {
  position: absolute;
  top: -45%;
  left: -4.5%;
}
.services {
    margin-bottom: 3rem;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-colour);
    position: relative;
    width: 90%;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 40%);
    justify-items: center;
    justify-content: center;
    gap: 1rem;
}

.services__card {
    background-color: var(--text-bg);
    padding: 1rem;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 90%;
    height: 15rem;
}

.services__card h3 {
    font-size: var(--f4);
    font-family: var(--nav-text);
    font-weight: 700;
    margin: 0;
}

.services__card p {
  font-family: var(--body-text);

}

/* PROJECTS PAGE */

.projects__page { /* Landing of projects page */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.projects__landing {
  width: 80%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background-color: var(--third-colour);

}

.projects__landing h1 {
  color: #69615e;
  margin: 0;
  font-size: var(--f6);
  font-family: var(--heading-font);
  text-align: end;
}

.projects__landing--bottom{
  display: flex;
  align-items: end;
  width: 100%;
  justify-content: space-between;
}
.projects__landing--textbox{
  background-color: var(--fourth-colour);
  padding: 3rem;
  border-radius: 14px;
}
.projects__landing--textbox h2 {
  font-size: var(--f5);
  font-family: var(--heading-font);
  color: var(--secondary-colour);
  margin: 0;
}

.infographic__heading { /* Challenge description of brief */
  position: absolute;
  top: -20%;
  left: -4.5%;
  margin: 0;
}

.infographic__container {
  font-family: var(--body-text);
  font-size: var(--f2);
  border-radius: 14px;
  background-color: var(--text-bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;

}
.infographic__container p:nth-of-type(2) {
  margin-left: 1rem;
}

.infographic__skills {
  display: flex;
  gap: 1rem;
}

.infographic__skill:hover {
  background-color: #000000;
  color: white;
  transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

.infographic__skill {
  background-color: var(--fourth-colour);
  padding: 2rem;
  border: solid 2px black;
  border-radius: 14px;
  color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Execution mockup pictures */
.outcome {
  background-color: var(--fourth-colour);
}

.outcome__container { 
  background-color: #cfcfcf;
  padding: 3rem;
border-radius: 14px;
display: flex;
flex-direction: column;
align-items: center;
}

.outcome__images {
  display: flex;
  justify-content: space-around;
}

.outcome__image:hover{
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}
.outcome__image {
  width: 25%;
  height: auto;
  border-radius: 14px;
}

.outcome__description {
  width: 60%;
  font-family: var(--body-text);
  font-size: var(--f2);
  
}

.decisions__images {
  display: flex;
  justify-content: center;
}
.decisions__container {
  display: flex;
  padding: 3rem;
  background-color: var(--text-bg);
  border-radius: 14px;
  justify-content: space-around;
}

.outcome__description {
  width: 40%;
}

/* PROJECTS END */

  
/* CONTACT FORM PAGE */

.contact__image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.contact__heading {
    position: absolute;
    top: -76%;
    left: -10%;
}

.contact-container {
    background-color: var(--fourth-colour);
    display: flex;
    padding: 20px;
    width: 75%;
    position: relative;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group > label {
    display: block;
    color: white;
    font-weight: bold;
  }
  
  .form-group > input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    width: 250px;
    padding: 10px;
    border: 1px solid white;
    color: white;
    background-color: transparent;
    border-radius: 1rem;
  }
  
  .form-group > textarea {
    height: 150px;
  }

  .contact__form {
    width: 50%;
    display: flex;
    flex-direction: column;
  }
  
  .contact__form > button {
    padding: 10px 20px;
    background-color: #FFFFFF;
    border: none;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 1rem;
  }
  
  .contact__form > button:hover {
    background-color: #FFFFFF;
  }

  .contact__image-container {
    margin-left: 20px;
  }
  
  .contact__image-container img {
    width: 70%; /* Adjust the width as per image size */
    height: auto;
  }

  /* Portfolio Page */
  .portfolio__landing {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    
  }

  .portfolio__landing h2 {
    text-align: center;
    font-size: var(--f4);
    font-family: var(--body-text) ,sans-serif;
    letter-spacing: 0.75rem;
  }

  .portfolio__landing h2{
    font-family: var(--nav-text);
    font-size: var(--f4);
    font-weight: 300;
  }

  .portfolio__image:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
  }

  .portfolio__image {
    width: 33%;
    display: flex;
    justify-content: center;
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); */
  }

  .portfolio__image img {
    width: 50%;
  }

  .portfolio__image--left {
    background-color: var(--fourth-colour);
    border-radius: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: rotate(-15deg);
    padding: 3rem 0;
  }

  .portfolio__image--right {
    background-color: var(--fourth-colour);
    border-radius: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 5rem 0;
    transform: rotate(15deg);
  }
  .portfolio {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .portfolio__links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
  }
  .portfolio__link{
    text-decoration: none;
    color: inherit;
  }

  .portfolio__button {
    padding: 1rem;
    border-radius: 24px;
    border: 2px solid #4e4e4e;
  }
  

  /* PROJECTS SECTION OF PORTFOLIO PAGE */

  .portfolio__section { /* Row of different projects showcased */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem;
  }

  .portfolio__projects { 
    background-color: #D9DDD7;
    position: relative;
    margin-top: 8rem;
    display: flex;
    align-items: center;
    padding: 8rem;

  }

  .portfolio__projects h2 {
    position: absolute;
    top: -45%;
    left: -4.5%;
  }  

  .card-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    background-color: #FFFFFF; /* Set the background colour for the smaller rectangle */
    z-index: 1;
  }
  .card:hover{
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
  }
  
  .card {
    /* flex-basis: calc(33.33% - 20px); Calculate the width for each card (33.33% - spacing) */
    background-color: #9F9F9F;
    padding: 1rem;
    box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.4);
    flex-basis: calc(33.33% - 20px); /* Calculate the width for each card (33.33% - spacing) */
    border-radius: 14px;
    /* box-shadow: 0 0 5px ; */
  }
  
  .card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .card p {
    font-size: 14px;
  }

  .read-more-button {
    display: inline-block;
    text-decoration: none;
    border: 2px solid black; /* Set the border colour for the button */
    border-radius: 28px; /* Make the button round */
    padding: 10px 20px; /* Adjust the padding within the button */
    color: #FFFFFF; /* Set the text colour for the button */
    background-color: #AEBC96;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Adjust the spacing between the card content and the button */
  }
  
  .read-more-button:hover {
    background-color: black; /* Change the background colour on hover */
    color: white; /* Change the text colour on hover */
  }

  .my-button {
    background-color: #9F9F9F; /* Desired background colour */
    color: #ffffff; /* Desired text colour */
    border: 2px solid #000000; /* Change this to your desired border colour */
    border-radius: 10px; /* Adjust the value to change the amount of rounding */
    padding: 10px 20px; /* Adjust the padding */
  }

  /* Portfolio Page End */


  /* 404 PAGE */
  .not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--secondary-colour);
  }

  .not-found__buttons {
    display: flex;
    gap: 4rem;
  }

  .not-found__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 15rem;
    border-radius: 14px;
    background-color: var(--text-bg);
  }

  .not-found .heading {
    margin: 0;
  }

  /* 404 Page End */




  /* Mobile */
  @media only screen and (max-width: 600px) {
    :root {
      --ratio: 1.125;
    }


    .heading {
      font-size: calc(var(--f5) * 1.2);
    }
    

    /* NAVBAR */
    .logo {
      grid-area: logo;
    }

    .hamburger{
      display: flex;
      grid-area: hamburger;
      width: 100%;

    }

    #navbar nav {
      display: grid;
      justify-content: space-between;
      align-items: center;
      grid-template-areas:
      "logo hamburger hamburger"
      "link link link";
    }

    .nav-links {
      display: none;
      grid-area: link;
    }
    
    /* HOME PAGE */

    /* HERO */
    .hero__left--buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    .hero__left {
      max-width: 90%;
      padding: 0;
    }
    .hero__image--1 {
      margin-top: 1rem;
      transform: rotate(0deg);
      position: static !important;
    }
  
    .hero__left h2 {
      font-size: var(--f3);
      letter-spacing: 0.25rem;
    }
    .hero {
      flex-direction: column-reverse;
    }

    .hero__image--2 {
      display: none;
    }


    /* ABOUT */
    .about .heading {
      position: absolute;
      top: -7rem !important;
      left: -4.5%;
  }

    .about__text {
      max-width: 100%;
      padding: 1rem;
      margin: 0;
      line-height: 1.4;
    }

    .about__link {
      position: static;
    }
    .about__image {
      margin: 0;
    }
    .about__text {
      width: 90%;
    }
    .about__image {
      height: 40vh;
    }

    /* SERVICES */
    .services {
      width: 100%;
      padding: 4rem 1rem;
    }

    .services__grid {
      grid-template-columns: 1fr;
    }
    .services__heading {
      font-size: calc(var(--f5) *1.1) !important;
      top: -7rem !important;
      left: 0.5rem;
    }
    

    /* HOME PAGE END */

    /* CONTACT */
    .contact__image-container {
      display: none;
    }

    /* PORTFOLIO  */

    .portfolio__projects {
      padding: 0;
    }

    .portfolio__projects h2{
      top: -9rem !important;
    }

    .portfolio__landing:nth-child(3){
      display: none;
    }
    .portfolio__scroll h2 {
      letter-spacing: 0.2rem;
      font-size: var(--f3);

    }

    /* PROJECT */

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

    .projects__landing--textbox h2{
      font-size: var(--f4);
    }
    .projects__landing h1{
      font-size: var(--f5) !important;
    }

    .infographic__skills {
      display: grid;
      grid-template-columns: repeat(2, 1fr);

    }
    .infographic__heading {
      top: -3rem;
      left: 1rem;
    }

    .decisions__header {
      top: -3rem !important;
      left: 1rem !important;
    }

    .infographic__skill {
      padding: 0.5rem;
    }
    .outcome__container {
      padding: 1rem;
    }

    .paper {
      width: 100%;
      padding: 0.5rem;
    }
    .infographic__container {
      font-size: var(--f2) !important;
    }


    .outcome__image {
      width: 42%;
    }
    .outcome__image:nth-of-type(2) {
      display: none;
    }
    .contact__heading {
      top: -8rem;
      left: -1rem;
    }
    
  }


  /* Tablet */
  @media only screen and (max-width: 768px) {
    :root {
      --ratio: 1.414;
    }

    /* COMPONENTS */
    .footer__right figure {
      max-width: 63%;
    }

    .footer__right {
      flex-direction: column;
    }

    /* HOME PAGE */

    /* HERO */
    .hero__left {
      max-width: 60%;
      padding-top: 5rem;
      z-index: 10;
      padding: 1rem;
    }

    /* ABOUT  */

    .about__inner {
      flex-direction: column;
    }
    .about__image {
      height: 64vh;
    }
    .about .heading {
      position: absolute;
      top: -15rem;
      left: -4.5%;
  }

    .about__inner figure {
      margin: 0;
    }

    .about__text {
      max-width: 90%;
      padding: 1rem;
      margin: 0;
      line-height: 1.4;
    }

    /* SERVICES */

    .services__grid {
      grid-template-columns: 1fr;
    }
    .services__card {
      width: 90%;
    }
    .services__heading {
      font-size: calc(var(--f5) *1.8);
      top: -11rem;
    }

    /* HOME PAGE END */

    /* CONTACT */
    .contact__image-container img {
      width: 120%;
    }

    /* CONTACT END */


    /* PORTFOLIO START */

    .portfolio__projects h2 {
      position: absolute;
      top: -16rem;
      left: -4.5%;
    }

    .portfolio__landing {
      flex-direction: column;
    }
    .portfolio__image {
      width: 88%;
    }

    .portfolio__scroll {
      z-index: 15;
    }

    .card-container {
      flex-direction: column;
    }


    /* 404 */
    .not-found__container {
      padding: 3rem 7rem;
    }


    /* Project */

    .outcome__image {
      width: 32%;
    }
    .outcome__description {
      width: 100%;
      text-align: center;
    }
    .decisions__container {
      flex-direction: column;
    }

    .infographic__container{
      font-size: var(--f1);
    }
    .infographic__skill {
      padding: 1rem;
    }

    .projects__landing--textbox{
      padding: 1rem;
    }
    .projects__landing h1{
      font-size: calc(var(--f5)* 1.5);
    }
    .decisions__header {
      top: -11%;
    }
  }