*{
    box-sizing : border-box; /* set the size of screen available */
    
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

   background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg stroke='%23111D2D' stroke-width='1.2' fill='none' opacity='0.2'%3E%3Crect x='15' y='15' width='90' height='60' rx='2'/%3E%3Cline x1='15' y1='30' x2='105' y2='30'/%3E%3Ccircle cx='23' cy='22' r='2' fill='%23111D2D'/%3E%3Ccircle cx='31' cy='22' r='2' fill='%23111D2D'/%3E%3Crect x='23' y='38' width='20' height='30'/%3E%3Crect x='50' y='38' width='20' height='30'/%3E%3Crect x='77' y='38' width='20' height='30'/%3E%3Cpath d='M180,40 L195,55 L188,57 L196,68 L192,70 L184,59 L178,63 Z' fill='%23111D2D'/%3E%3Crect x='130' y='110' width='80' height='110' rx='6'/%3E%3Ccircle cx='170' cy='212' r='3'/%3E%3Crect x='140' y='125' width='60' height='45'/%3E%3Crect x='140' y='180' width='60' height='6'/%3E%3Crect x='140' y='192' width='40' height='6'/%3E%3C/g%3E%3C/svg%3E"),

    /* Horizontal Grid Lines */
    linear-gradient(rgba(17, 29, 45, 0.065) 1px, transparent 1px),
    /* Vertical Grid Lines */
    linear-gradient(90deg, rgba(17, 29, 45, 0.065) 1px, transparent 1px);

    background-size: 240px 240px, 30px 30px, 30px 30px;
     background-repeat: repeat;
}


html {
    /*The browser tries each font from left to right and uses the first one available on the user's device.*/
        font-family: system-ui, -apple-system, 
        "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", 
        "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", 
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

}

.nav {
    position: sticky;
    top: 0;
    background-color: #111D2D;  ;
    height: 6rem; /* 6 times default html pixels eg. 6 x 16 pixels */
    z-index: 10;
}

.nav__layout{
    display:flex;
    justify-content: space-between; /* Align Left to right */
    align-items: center; /* Align up and down */
}

.nav-brand {
    /* display : block;  Allows us to change the text size */
    color: white;
    text-decoration: none;
    height : 6rem;
    line-height: 6rem; /* centers text */
    align-content: center;
}

.nav-brand__title {
    color:white;
   margin: 1rem 0 1rem;
   /*padding:0rem 1rem;*/
    font-size: 1.2rem;
    line-height: 1;
}

.nav-brand__title:hover {
    /* When the nav-brand title is hovered over it changes colour */
    color: #8ed8a9;
}

.nav-brand__job {
     
    letter-spacing: +.06em;
}

.nav-brand__name {
     
    letter-spacing: 0.015em;
}

.presentation__title{
     letter-spacing: -0.015em;
}

.button{
    display: inline-block;
    background-color: #F35A39;
    text-decoration: none;
    color: white;
    padding:0rem 0.5rem; /* Top 0.5 - Right 1  - Bottom 0.5 - Left 1 */
    line-height: 2rem;
    border-radius: 0.5rem;
    border: 0;
    /*text-transform: uppercase;*/
}

 .button a {
        color: #fff;
    }

.button:hover {
    background-color: #d95032;
}

.button__icon{
    pointer-events: none;
    width: 1.5rem;
    height:1.5rem;
    position: relative;
    top:0.4rem;
    margin-right:0.4rem;
}

.button__icon_download {
    fill:#F3F4F5;
    stroke: #f3f4f5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
}

/********************** BURGER MENU *********************/

.nav__hamburgerMenu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 10px;
  z-index: 20;
}

.nav__hamburgerMenu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.nav__hamburgerMenu.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburgerMenu.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburgerMenu.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#nav__hamburgerDiv {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* pushes hamburger to the right */
  flex: 1;
  /* expands to fill available space */
  padding: 10px;

}


/********************** END BURGER MENU *********************/

/********************* NAVIGATION BUTTONS *******************/

.nav__list {
  display: flex;
    gap:1rem;
  list-style: none;
 
}

.nav__listItem a{
    text-decoration: none;
     color:#fff;
    
}

.nav__listItem a:hover{
     color:#8ed8a9
    
}

/********************* END NAVIGATION BUTTONS *******************/

.main{
    position: relative;
    overflow: hidden; /* Prevents the background image from overflowing */
    padding-bottom: 2rem;
    flex: 1;
    
}

.main-heading{
    color: #111D2D;  ;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 0.25em;
    margin-top: 0;
    padding-top: 0.67em;
}

.container{
    width: 100%;
    padding-left: 1rem;
    padding-right:1rem;
    margin:0 auto;
}

.presentation{
    padding: 2rem 0; /* Padding - top and bottom 2rem left and 0 */
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
 
}

 .presentation__photo{
    display:block;
    max-width:100%;
    height:auto;
    background-color: rgba(238, 242, 248, 0.2);
    padding: 30px;
    border-radius: 50% 40% 60% 45% / 45% 60% 40% 50%;
}

.presentation__title{
    color:#111D2D;
}

.presentation__text{
    line-height: 1.5;
}

.presentation__desc{
    text-align: justify;
    color:#111D2D;
}

.presentation__desc p:nth-of-type(3){
    font-weight: bold;
}

.testimonials__title{
    color: #111D2D;
}
.testimonials__layout{
    padding: 1rem 0; /* Padding - top and bottom 2rem left and 0 */
    display: grid;
    gap :0.5rem;
    grid-template-columns: 1fr;
    justify-items: center;
    
    
}

.testimonials__card{
    background-color: #e7eaed;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius : 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.5);
    overflow: hidden;
}

.testimonials__card a{
     text-decoration: none;
     color: #111D2D;
}

.testimonials__card:hover{
     transform: scale(1.1);
}

.testimonials__description {
    font-size: 14px;
    text-align: justify;
}

.testimonials__signature{
    font-size: 12px;
    font-weight: bold;
    
    line-height: 1.5;

     display: block;
    
}
.quotes{
    color:#F35A39;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
  
}

.testimonials__description::before {
    font-family: "Arial Rounded MT", sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color:#F35A39;
    content: "\00201C";
}

.testimonials__description::after {
    font-family: "Arial Rounded MT", sans-serif;
     content: "\201D";
    font-weight: bold;
    font-size: 2rem;
    color: #F35A39;

    display: inline-block;
    line-height: 0;

    position: relative;
    top: 0.55em;
    margin-left: 3px;
    
}

.footer{
     /*position:fixed;*/
    display:flex;
    width: 100%;
    height: 3rem;
    bottom:0;
    align-items: center; /* Align up and down */
    z-index: 5;

    background-color: #111D2D;    
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.footer__layout{
    display:flex;
    justify-content: space-between; /* Align Left to right */
    align-items: center; /* Align up and down */
}

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

.footer__icon{
    width: 1.5rem;
    height: 1.5rem;
}
.footer__icon:hover{
    transform: scale(1.2);
}
.footer__icon path{
    fill:#F3F4F5;
}

.thankyou, .error-email {
    color: #111D2D;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 6rem - 3rem - 2rem);
    padding: 1rem;
    margin: 0;
    box-sizing: border-box;
}

.form__layout {
    width: 100%;
    max-width: 500px;
    color: #111D2D;
    background-color: #e7eaed;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.form__layout form {
    display: grid;
}

.contactBtn {
    justify-self: end;
}

label {display: block;}

input[type=text], textarea{
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 1px 1px 1px #999999;
}

/********************************* TIME LINE *************************************/
/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #328677;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline__container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline__container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;

    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;

    border: 4px solid #F35A39;
    top: 15px;
    right: -17px;

    border-radius: 50%;
    z-index: 2;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Left containers → arrow points right */
.left::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 30px;
    width: 0;
    height: 0;
    z-index: 1;
    border-style: solid;
    border-width: 10px 0 10px 10px;
}

.left__work::before {
    border-color: transparent transparent transparent #9EA2B3;
}

.left__education::before {
    border-color: transparent transparent transparent #EEAD66;
}


/* Right containers → arrow points left */
.right::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 30px;
    width: 0;
    height: 0;
    z-index: 1;
    border-style: solid;
    border-width: 10px 10px 10px 0;
}

.right__work::before {
    border-color: transparent #9EA2B3 transparent transparent;
}

.right__education::before {
    border-color: transparent #EEAD66 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

.left__education::after,
.right__education::after {
    background-image: url('../images/mortarboard.svg');
    border-color: #EEAD66;
}

.left__work::after,
.right__work::after {
    background-image: url('../images/briefcase.svg');
    border-color: #9EA2B3;
}

/* The actual content */
.content {
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.content__work{
    background-color: #9EA2B3;
}

.content__education{
    background-color: #EEAD66;
}

.myList {    
    display: inline;
    
}

.place{
   font-size: 1rem;
   font-weight: bold;
}


.project__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project__card-link {
     
    text-decoration: none;
    color: inherit;
    display: flex; /* Makes the card expand to fill full link height */
}


.project__card{
    width: 100%;
    background-color: #e7eaed;
    margin-bottom: 2rem;
    border-radius : 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.5);
    overflow: hidden;
    
    
}
.project__heading{
   color: #111D2D;
}

.project__description-container{
    padding: 1rem;
   
}

.project__desc{
    text-align: justify;
}

.project__title{
    color:#fff;  ;
    background-color: #111D2D;
    text-align: center;
}

.project__image{
    overflow: hidden;
}

.pagination{
    display : flex;
    justify-content: flex-end;
    list-style-type: none;
    margin: 0;
    padding: 0;

}

.pagination__link{
    display: block;
    text-align: center;
    text-decoration: none;
    color: #111D2D;  ;
    border: 0.125rem solid rgb(200,200,200);
    width: 2rem;
    height: 2rem;
    line-height: 1.75rem;
    margin-left: 0.5rem;
    border-radius: 0.5rem;
    background-color: white;
}

.pagination__link:hover{
    background-color: #328677;
    border: 0.125rem solid #328677;
    color: white;
}

.pagination__link--active{
    border: 0.125rem solid #328677;
    color: #328677;
}


.pagination__li--active{
    text-decoration: underline;
}



.footer__heading{
    color:white;
    margin : 0;
    align-items: center;
    font-size: 1rem;
}

.review__layout {
    color:#111D2D;
    text-align: justify;
    line-height: 1.5;
}


.review__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}



.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}


.features__text{
   width : 100%;
}

.photo__div {
    display: flex;
    justify-content: center;
    
}

.features__photos {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.features__photo {
    width: 100%;
    height: auto;
    display: block;
}

.intro__photo {
    width: 100%;
    height: auto;
    display: block;
}


.features__title{
    font-weight: bold;
}

.review__video {
    display: flex;
    justify-content: center;
}

.features__video{
    width: 80%; 
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .timeline__container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  .timeline__container::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
    }

    .timeline__container.left__work::before,
    .timeline__container.right__work::before {
        border-color: transparent #9EA2B3 transparent transparent;
    }

    .timeline__container.left__education::before,
    .timeline__container.right__education::before {
        border-color: transparent #EEAD66 transparent transparent;
    }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 15px;
  }
  
  /* Make all right containers behave like the left ones */
  .right {
  left: 0%;
  }

}
/********************************************************************************/

@media (min-width: 420px) {
    .nav-brand__title {
        font-size: 2rem;
    }

    .button{
        padding:0rem 1rem;
        line-height: 2.5rem;
    }

    .presentation{
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        
    }


    .photo-wrapper{
        order: 1;
    }

    
}



@media(min-width: 576px){ /* At least 576px in width*/
    .container{
        max-width:540px;
    }
}


@media (max-width: 768px) {

    .nav__hamburgerMenu {
        display: flex;
        line-height: 1;
        position: relative;
        z-index: 20;
    }

    .nav__buttons {
        position: absolute;
        top: 6rem;              /* directly below the nav */
        right: 1rem;
        width: 180px;
        background: #111D2D;
        display: none;
        justify-content: center;
        align-items: center;
        border-radius: 0 0 5px 5px;
      
        border: 1px outset #fff;
        z-index: 15;
    }

    .nav__buttons.active {
        display: flex;
    }

    .nav__buttons ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        margin: 0;
        list-style: none;
    }

    .nav__buttons ul li a {
        color: #fff;
    }

    .nav__buttons ul li a:hover {
        color: #8ed8a9;
    }

}

@media(min-width: 768px){
    .card__image{
         width: 15rem;
    height: 2rem; /* Initial height */
    min-height: 100%; /* Wished height - this means the image adjusts */
    box-shadow: 0.25rem 0rem 0.5rem rgba(0,0,0,0.1);
    }

     .card{
        flex-direction: row;
    }

    .container{
        max-width:720px;
        padding-left: 2rem;
        padding-right: 2rem;
    }


    .nav__buttons{
        display:flex;
    }

    .testimonials__layout{
        grid-template-columns: 1fr 1fr 1fr;
        justify-content: space-between;
         gap :2rem;
    }

     .myList {    
        display: block;
    }

    

}
    
@media(min-width: 992px){
    .container{
        max-width:960px;
         padding-left: 4rem;
        padding-right: 4rem;
    }

}

@media(max-width: 1200px){
    .review__intro {
            grid-template-columns: 1fr;
            gap: 30px;
        }

     .features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features__photos {
        order: 1;
    }

    .features__text {
        order: 2;
    }

    .intro__photo {
        width: 80%;
    }

    
}

@media(min-width: 1200px){
    .container{
        max-width:1140px;
         padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media(min-width: 1400px){
    .container{
        max-width:1320px;
         padding-left: 5rem;
        padding-right: 5rem;
    }
}
