
:root{
    --site-colour: #732027;    
    --site-shade: #5c1821;
    --text-red: red;
    --card-radius: 2em;
    --bg-color: white;
    --text-colour: black;
    --hero-text-colour: white;

    --button-font: Arial, sans-serif;
    --section-shadow: 1px 2px 5px var(--site-shade);

    --facebook: #5E80BF; /* 59, 89, 152 #3b5998*/
    --email: #EA4335;
    --quote-size: 2.5rem;
}

html{
  scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-colour);
    background-color: var(--bg-color);
    font-family: sans-serif;
}
h1, h2, h3, h4, h5, h6, nav a{
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    color: var(--site-colour)    
}  
h1{
  margin-top: 10vh;
  font-size: 36px;
}
h2{
  font-size: 2em;
}
p{
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
section{
  max-width: 100vw;
  overflow: hidden;  
}

section{
  min-height: 55vh;
}


/*******************************************
          Top Header & Navigation
*******************************************/

header {
  position: sticky;
  top: 0;
  background-color: var(--hero-text-colour); /* Light background color for the header */
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  box-shadow: var(--section-shadow);
  max-width: 100%;
  z-index: 900;

  height: 8vh;
}
header img {
  max-width: 125px; /* Adjust the size of your logo as needed */
  height: auto;
  max-height: 100%;
}

header nav{
  /*display: flex;*/
  display: none;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-grow: 1;
}

header nav a {
  text-decoration: none;
  color: var(--site-colour); /* Main color for the logo */
  font-size: 1.3rem;
  transition: 0.3s;
}

header nav a::after{
  content: '';
  width: 0;
  color: var(--site-colour);
  height: 4px;
  display: block;
  margin: auto;
  transition: 0.5s;
  background-color: var(--site-colour);
}

header nav a:hover::after,
header nav a:focus::after{
  width: 100%;
}
header .cta-btn{
  display: none;
  font-size: 30px;
}
header i{
  font-size: 1.7em;
  color:var(--site-colour);
  padding-right: 20px;
}

/*******************************************
          Mobile Menu
*******************************************/
#mobile-menu{
  margin: 0;
  padding: 0;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;

  background-color: var(--hero-text-colour);

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  
  overflow: hidden;
  
  max-width: 100vw;
  max-height: 100vh;
  
  transition: 0.5s;
  
  z-index: 899;

}
#mobile-menu a{
  text-decoration: none;
  color: var(--site-colour);
  font-size: 1.5em;
  font-weight: 600;
  transition: 0.3s;
}

#mobile-menu a::after{
  content: '';
  width: 0;
  height: 4px;
  display: block;
  background-color: var(--site-colour);
  margin: auto;
  transition: 0.5s;
}
#mobile-menu a:hover::after{
  width: 100%;
}
#mobile-menu .cta-btn:hover{
  color: white;
}
#mobile-menu .cta-btn:hover::after{
  width: 0;
}
.hide {
  display: none;
  overflow: hidden;
  height: 0;
  transition: 0.3s;
}
.show{
  display: flex;
  height: 100%;
  transition: 0.3s;
}

/*******************************************
          Hero Section
*******************************************/
#hero{
  position: relative;
  height: 80vh;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 10vh;
  
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-wrap: wrap;
  
  background-color: var(--site-colour);
  background-image: linear-gradient(rgba(255,255,255,0.3),rgba(0,0,0,0.6)),url('../img/deck.jpg');
  background-size: cover;
  background-position: center;

  color: var(--hero-text-colour);
  text-shadow: 1px 1px 2px black;
  transition: 0.5s;
  
}
.hero-container{
  width: 100%;;
}
.hero-column{
  height: 600px;
  display: flex;
  flex-direction: column;
}
#hero h1, #hero h2, #hero h3{
  
  color: var(--hero-text-colour);
}
#hero h1, #hero h2{
  text-align: center;
}
#hero h1{
  font-size: 2.5em;
  padding-bottom: 0;
  margin-bottom: 0;
}

#hero h2{
  font-size: 2em;
  padding-top: 0;
  margin-top: 0;
  font-weight: 400;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#hero img{
  display: block;
  margin: auto;
  width: 75vw;
  max-width:1024px;
}
#hero h3{
  font-size: 1.7em;
  
}
#hero h3, #hero p{
  padding-bottom: 0;
  margin: auto;
}
#hero p{
  font-size: 1.2em;
  max-width: 75vw;
  line-height: 1.5;
  margin-top: 0;
  padding-top: 5vh;
  padding-bottom: 15vh;
}
/*******************************************
          CTA Button
*******************************************/
.hero-cta{
  display: none;
  text-decoration: none;
}
.cta-btn{     
  text-decoration: none;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-red);

  padding: 10px 20px;
  border-radius: 7px;
  max-width: 500px;
  font-size: 36px;
  width: 30;
  transition: 0.3s;
  font-weight: 600;
  border: 4px solid var(--text-red);
}

.cta-btn:hover{
  background-color: var(--site-colour);
  color: white;
}

.cta-txt{
  color: var(--site-colour);
  font-weight: 600;
}
.cta-txt:hover,
.cta-txt:focus{
  color: red;
  font-size: 1.1em;
}
.site-colour{
  color: var(--site-colour);
}
/*******************************************
          Service Section
*******************************************/
#services{
  display: block;
  background-color: var(--site-colour);
  color: white;
}
#services h1, #services h2{
  text-align: center;
  color: white;
}
#services h2{
  font-size: 26px;
}

.horizontal-slider{
  --_spacer: 1rem;
  --_column-size:80%;
  display: grid;
  gap: var(--_spacer);
  grid-auto-flow: column;
  grid-auto-columns: var(--_column-size);

  padding: 0 var(--_spacer) var(--_spacer);

  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.service-container{
  margin-bottom: 10vh;
  height: auto;
}
.service-item{
  display: grid;
  grid-template-rows: min-content;
  gap: var(--_spacer);
  padding: var(--_spacer);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
  width: var(--_column-size);
  max-width: 800px;
  margin: auto;
}

.service-item > img{
  margin-top: -10px;
  inline-size: 100%;
  width: 55%;
  max-width: 400px;
  aspect-ratio: 16/16;
  
  object-fit: cover;
  background-position: center;
  
  margin: auto;
  
  border: 3px solid black;  
  border-radius: 50% ;

}
.service-item > p{
  height: 45vh;
  font-size: 1.3rem;
  line-height: 1.5;

}
.snaps-inline {
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--_spacer, 5vh);
}

.snaps-inline > * {
  scroll-snap-align: center;
}
/*******************************************
          Portfolio Section
*******************************************/
#projects{
  position: relative;
  width: 95%;
  height: 1000px;
  margin: auto;
}

#projects h1{
  text-align: center;
}
.project-container{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 92%;
  height: 600px;
  background-color: #f5f5f5;
  box-shadow: 5px 10px 50px #dbdbdb;
}

.project-container .project-slider .project{
  width: 100px;
  height: 150px;
  position: absolute;
  top: 75%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  display: inline-block;
  transition: 0.5s;
}

/* Project items */
.project-container .project-slider .project:nth-child(1),
.project-container .project-slider .project:nth-child(2){
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
  
  filter: brighness(10%);
}

.project-container .project-slider .project:nth-child(3){
  left: 50%;
  box-shadow: 0 0 20px var(--site-colour);
}
.project-container .project-slider .project:nth-child(4){
  left: calc(50% + 110px);
}

.project-container .project-slider .project:nth-child(5){
  left: calc(50% + 220px);
}
.project-container .project-slider .project:nth-child(n+6){
  left: calc(50% + 330px);
  opacity: 0;
}
/* Project Content */
.project-container .project-slider .project .project-content{
  position: absolute;
  top: 50%;
  left: 100px;
  width: 72%;
  text-align: left;
  color: white;
  transform: translate(0, -50%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: none;
}

.project-container .project-slider .project:nth-child(2) .project-content{
  display: block;
}

.project-container .project-slider .project .project-content .work{
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--text-red);
  text-decoration: 3px 3px 6px #fff;
  text-shadow: #fff 0px 0px 5px,   #fff 0px 0px 5px,   #fff 0px 0px 5px,
  #fff 0px 0px 5px,   #fff 0px 0px 5px,   #fff 0px 0px 5px;
}
.project-container .project-slider .project .project-content .location{
  font-size: 25px;
  font-weight: bolder;
  text-shadow: #000 0px 0px 3px,   #000 0px 0px 3px,   #000 0px 0px 3px,
  #000 0px 0px 3px,   #000 0px 0px 3px,   #000 0px 0px 3px;
  letter-spacing: 1.2rem;
  /* color: white; */
  color: white;
}
.project-container .project-slider .project .project-content .desc{
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.01rem;
  padding: .25rem;
  background-color: white;
  width:auto;
  color: black;
}

@keyframes animate{
  from{
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to{
    opacity: 0;
    transform: translate(0);
    filter: blur(0);
  }
}
/* Project buttons */
.project-button{
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 20px;
}

.project-button button{
  width: 40px;
  height: 35px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  background-color: var(--site-colour);
  color: white;
  transition: 0.3s;
  font-size: 20px;
  
}

.project-button button:hover,
.project-button button:focus{
  box-shadow: 1px 4px 10px var(--site-colour);
  background-color: white;
  color: var(--site-colour);
}

/*******************************************
          Reviews Section
*******************************************/
#reviews{
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-direction: column;
  background-color: var(--site-colour);
  color: white;
  padding: 10vh 1em;
  box-shadow: var(--section-shadow);
}
#reviews h1{
  padding: 0;
  margin: 0;
  width: 100%;
}
.review{
  position: relative;
  display: inline;
  margin: 1em;
  flex: 1;
  max-width: 500px;

  display: flex;
  flex-direction: column;

  justify-content: space-between;
}
.review p{
  line-height: 2em;
}
.review p::before{
  content: open-quote;
  font-size: var(--quote-size);
}
.review p:after{
  content: close-quote;
  font-size: var(--quote-size);
}
.reviewer{
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1em;
  margin-top: 0;
}
.more-reviews{
  text-align: center;
  flex: 0 0 100%;
  
}
.more-reviews a{
  text-decoration: none;
  color: white;
  font-size: 2em;
  transition: ease-in 0.3s;
}
.more-reviews a:hover,
.more-reviews a:focus{
  font-weight: 600;
  text-shadow: 1px 1px 5px black;
}
.horizontal-slider .review{
  display: grid;
  grid-template-rows: min-content;
  gap: var(--_spacer);
  padding: var(--_spacer);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
  width: var(--_column-size);
  max-width: 800px;
  margin: auto;
}

/*******************************************
          About Section
*******************************************/

#about{
  padding: 2%;
}

#about h1{
  text-align: center;
}
#about p{
  font-size: 1.3em;
  width: 75%;
  padding-left: 50px;
}


#about p:nth-child(odd){
  align-items: flex-start;
}

/*******************************************
          CTA Form Section
*******************************************/

/* Contact Section */

#contact h1{
  text-align: center;
}
.contact-container{
  
  max-width: 100vw;
  margin-top: 2em;
  margin-bottom: 5%;
}

#contact img{
  display: none;
}

/* Fieldset and legend*/
form{
  margin: auto;
  width: 100vw;
  max-width: 900px;

}
fieldset{
  margin: 2em 1em;
  padding: 1em 2em;
  border: solid 2px var(--site-colour);
  border-radius: 6px;
  min-width: 10%;
  
}

legend{
  font-size: 1.5em;
  padding: 0 1em;
  color: var(--site-colour);
  font-family: 'Times New Roman', Times, serif;
}
/* labels */
label{
  display: block;
  margin-top: 1em;
}
label:first-of-type{
  margin-top: 0;
}

/* Inputs and textarea */
input{
  padding: .5em;
  border: solid 1px var(--site-colour);
  color: var(--site-colour);
}
input[type="email"],input[type="text"]{
  width: 15em;
}

textarea{
  min-height: 8em;
  width: 95%;
  padding: .5em;
  border: solid 1px var(--site-colour);
}

/* Request Estimate */
input[type="submit"]{
  margin-top: 1vh;
  padding: .5em 1em;
  border-radius: 6px;
  background-color: transparent;
  color: var(--site-colour);
  font-family: var(--button-font);
  font-size: 1em;
  transition: 0.2s;
}
input[type="submit"]:hover,
input[type="submit"]:focus{
  color: white;
  background-color: var(--site-colour);
}
/*  Large screens rules */



/*******************************************
          Footer 
*******************************************/
footer{
  display: flex;
  flex-direction: column;
  justify-content:space-around;
  align-items: center;
  margin: 3vh 0;
}
#footer-cta{
  position: sticky;
  bottom: 0;
  
  display: none;
  justify-content: space-around;
  height: 50px;

  color: var(--site-colour);
  background-color: white;
 
  width: 100%;
  margin: 0;
  
  box-shadow: -1px -1px 5px rgba(0, 0, 0, .5);
  z-index: 898;
  transition: 2s;
  overflow: 0;
  
}
#footer-cta a{
  width: 500px;
  color: inherit;  
  text-align: center;
  text-decoration: none;

  font-size: 1.5rem;
  font-weight: 600;
  
  padding-top: 5px;
  margin: 5px;
  
}

#footer-cta:hover,
#footer-cta:focus{
  transition: ease-in-out 0.5s;
  background-color: var(--site-colour);
}
#footer-cta:hover a,
#footer-cta:focus a{

  color: white; 
}
#footer-cta .cta-btn{
  border: none;
}
#footer-cta .cta-btn:hover,
#footer-cta .cta-btn:focus{
  background-color: transparent;
}

/*******************************************
          Socials and Contact 
*******************************************/
.contact{
  max-width: 1080px;
  max-width:50% ;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.socials {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 95vw;
  max-width: 900px;
  font-size: 1.7em;
  margin-bottom: 10vh;
}
.socials  a .fa-facebook{
  color: var(--facebook);
}

.socials a .fa-phone{
  color: #E6A900;
}
.socials a .fa-envelope{
  color: #fd5949;
}

.socials a:hover .fa-envelope,
.socials a:hover .fa-facebook,
.socials a:hover .fa-phone,
.socials a:focus .fa-envelope,
.socials a:focus .fa-facebook,
.socials a:focus .fa-phone{
  color: var(--site-colour);
  font-size: 1.8rem;
}

/*******************************************
          Scroll Up button
*******************************************/

#home-button{
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;

  width: 50px;
  height: 50px;

  position: fixed;
  bottom: 10vh;
  right: 2vw;

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(115, 32, 39, .5);
  
  box-shadow: 2px 2px 5px black;
}

#home-button a{
  margin-top: auto;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: 0.5s;
}

#home-button:hover,#home-button:focus{
  background-color: rgba(255, 255, 255, 1);
  color: rgba(115, 32, 39, 1);
  box-shadow: none;
}

.thank-you{
  font-size: 2rem;
  margin: 0 10px;
}
.error{
  color:red;
  text-align: center;
  font-size: 1.4rem;
}

.submitted-info{
  max-width: 80%;
  margin: auto;
}
.submit-issues{
  width: 75%;
  margin: auto;
}

.submit-issues p{
  margin: 20px;;
}

/*******************************************
          Linkback to my website
*******************************************/
.designer{
  text-decoration: none;
  font-family: monospace;
  text-transform: lowercase;
  color: black;
  font-weight: 900;
  font-size: 1.1rem;
}

.designer:hover,.designer:focus{
  color: orangered;
}


.designer span{
    padding-top: 1vh;
    display: inline-block;
    color: black;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 500;
    text-transform:capitalize;
    font-size: 1.2rem;
}
.designer::after{
  content: '.dev';
  margin-top: -7px;
  font-size: .75rem;
}