:root{
    --primary-color:#f99500;
    --light-color:#f3f3f3;
    --dark-color:#333;
    --animate-speed:0.8s;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background: var(--light-color);
    overflow:auto;
    height: 100%;
    min-height: 100%;
   
}

a{
    color: #333;
    text-decoration: none;
}

ul{
    list-style: none;
}

img{
    width: 100%;
}

h1,h2,h3,h4,h5,h6{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-bottom: 1rem;
    line-height:1.5rem;
}

.bottom-line {
    height: 2px;
    width: 3rem;
    background: #f99500;
    display: block;
    margin: 0 auto 1rem auto; 
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem; 
}

.section-title {
    margin-top: 2rem;
    font-size: 2rem;
    display: block;
    padding-bottom: 0.5rem;
    text-align: center;
    font-weight: 100;
    text-transform: uppercase;
 }


/* Navigation */
#main-nav{
    background:#fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

#main-nav .container{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#main-nav .logo{
    width:180px;
    height: 80px;
}

#main-nav ul{
    justify-self:end;
    display: flex;
}

#main-nav ul li a{
    padding:1rem;
    font-weight: bold;
}

#main-nav ul li:last-child{
    font-size: 18px;
    color: var(--primary-color);
}

#main-nav ul li a.current{
    background:var(--primary-color);
    color: white;
}

#main-nav ul li a:hover{
    background:var(--dark-color);
    color:var(--light-color)
}

/* showcase */

#showcase{
    background: url("../images/halfcollage.png") no-repeat center center/cover;
    height:57vh;
    color: #333;
    width: auto;
}

.header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header h1{
    font-size: 40px;
    max-width: 750px;
    line-height: 1.5;
    text-align: center;
    color: var(--primary-color);
}

.header p{
    font-size: 25px;
    max-width: 700px;
    margin:5px 30px;
    color: white;
    text-align: center;
}

.header::before{
    content: '';
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height:80vh;
    background: rgba(0,0,0,0.8);
}

.header *{
    z-index: 15;
}

#showcase h1{
    transform: translateY(-1000px);
    animation: animateheading var(--animate-speed) forwards ease-in-out;
}

#showcase p{
    transform: translateX(-1800px);
    animation: animatepara var(--animate-speed) forwards 1s ease-in-out;
}

@keyframes animateheading{
    to{
        transform: translateY(0);
    } 
 }

 @keyframes animatepara{
     to{
         transform: translateX(0);
     }
 }

 /* section a */

 #section-a .container{
    max-width: 1300px;
    padding: 2rem;
    margin: auto;
}

 #section-a .categories {
    margin-top: 3rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align: center;
     }

 #section-a .categories img{
      padding-bottom: 0.4rem; 
      width: 10rem;
      height: 10rem;
      align-items: center;
      border-radius:50%;
      transition: all 1s;
    }

#section-a .categories img:hover{
    width: 12rem;
    height: 12rem;
    line-height: 12rem;
}

#section-a p{
    text-align: center;
}

/* section b-slider styling */
   
  /* Fallback for hidden attribute */
  hidden {
    display: none;
  }

  #section-b .slider {
    position: relative;
    margin-top: 3rem;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    width: 40.625rem;
    height: 26.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
  #section-b .slider__list {
    position: absolute;
    left: 0;
    width: 162.5rem;
  }
  #section-b .slider__slide {
    float: left;
  }


  /* slider code */


  #section-b .slider__control {
    margin-right: auto;
    margin-left: auto;
    width: 4 rem;
    font-family: sans-serif;
  }
  /*#section-b .slider__control label {
     position: relative;
    display: block;
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 4.5rem;
    height: 2rem;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
    color: transparent;
    background: #ddd;
    border-radius: 2rem;
    cursor: pointer;
    -webkit-transition: left 0.15s ease-out;
    transition: left 0.15s ease-out; */
  /* } */
  /* #section-b .slider__control label:before { */
    /* content: "autoplay";
    position: absolute;
    top: 2.5rem;
    left: 0;
    color: #333;
   font-size: .95rem;
    font-weight: bold;
    text-transform: uppercase; */
  
  #section-b .slider__control label:after {
    content: "";
    position: absolute;
   top: .25rem;
   left: .25rem;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 2rem;
    background: #fff;
    -webkit-transition: left 0.15s ease-out;
    transition: left 0.15s ease-out;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  #section-b .slider__switch + .slider > .slider__list {
    -webkit-animation-name: autoplay;
    animation-name: autoplay;
    /* This will change the time it takes to move to next slide */
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
  }
  #section-b .slider__switch + .slider + .slider__control > label { background: var(--primary-color); }

  #section-b .slider__switch + .slider + .slider__control > label:after { left: 2.75rem;
     
}

  /* autoplay function */

  @-webkit-keyframes 
autoplay {   /* position of the first slide */
  0% {
 left: 0;
}
  /* position of the second slide */
  25% {
 left: -40.625rem;
}
  /* position of the third slide */
  50% {
 left: -81.25rem;
}
  /* position of the fourth slide */
  100% {
 left: -121.875rem;
}
}
@keyframes 
autoplay {   /* position of the first slide */
  0% {
 left: 0;
}
  /* position of the second slide */
  25% {
 left: -40.625rem;
}
  /* position of the third slide */
  50% {
 left: -81.25rem;
}
  /* position of the fourth slide */
  100% {
 left: -121.875rem;
}
}

/* Footer */
 #main-footer{
    background: var(--dark-color);
    color: var(--light-color);
    padding:1rem;
    text-align: center;
    padding-top: 2rem;
   
  }

#main-footer img{
    width:150px;
    border-radius: 50%;
}

#main-footer p{
    color: var(--primary-color);
}

#main-footer a{
    color:var(--light-color);
}

#main-footer a:hover{
    color:var(--primary-color);
}

#main-footer .footer-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap:0.5 rem;
    margin:auto;
}

#main-footer .footer-container > *:last-child{
    background: #444;
    grid-column:1 /span 4;
    padding:0.5rem;
    text-align:center;
    font-size:0.75rem;
} 

/* gallery page */



/* section header */
.section-header{
    padding:30px;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    text-align: center;
    line-height: 1.8;
}
.section-header h2{
    font-size:30px;
    margin:5px 0;
}
.section-padding{
    padding: 20px 20px 40px;
}

/* flex-grid */
.flex-grid .row{
    display:flex;
    flex-wrap: wrap;
    padding: 0 4px;
    
}

.flex-grid .column{
    flex:25%;
    max-width:25%;
    padding: 4px;
    /* margin-bottom: -38rem; */
    min-height: auto;
}

.flex-grid .column img{
    height: 15rem;
    object-fit:cover;
} 

.cases img:hover{
    opacity: 0.7;
}

/* Media queries */

/* mobile */
@media(max-width:768px){
    
    #main-nav{
        background:#fff;
        position: relative;
        top: 0;
        z-index: 2;
        padding-bottom: 1rem;
        overflow-x: hidden;
    }
    
    #main-nav .container{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content:center;
        align-items: center;
        height: 100%; 
    }
    
    #main-nav .logo{
        width:180px;
       height: 80px;
       margin-bottom: 5px;
    }
    
    #main-nav ul{
        /* justify-self:end; */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #main-nav ul li{
        /* justify-self:end; */
        padding: 13px 0;
        width: 100%;
        text-align: center;
        font-size: 13px;
    }
    
    #main-nav ul li a{
        padding:1rem 8rem;
        font-weight: bold;
        width: 100%;
    }
    
   /* showcase */

    #showcase{
    background: url("../images/halfcollage.png") no-repeat center center/cover;
    height:100%;
    width: 100%;
    margin: auto;
    color: #333;
    overflow-x: hidden;
    }

    .header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%;
    }
    
    .header::before{
    content: '';
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height:105vh;
    background: rgba(0,0,0,0.8);
    }

    .header h1{
    font-size:30px;
    margin-top: 3rem;
    }

    .header p{
    font-size: 20px;
    }

    /* categories */
    #section-a .container{
        max-width: auto;
        padding: 2rem;
        margin: auto;
        overflow-x: hidden;
    }

    #section-a .section-title{
        line-height: 1.4;
    }

    #section-a .categories {
    margin-top: 3rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    text-align: center;
     }

     /* slider */
     #section-b .slider {
       
        width: 22.5rem;
        height: 18.25rem;
        
      }
     
      #section-b .slider__list {
        position: absolute;
        left: 0;
        width: 180rem;
      }
    
      /* #section-b .slider img {
        position: absolute;
        top:50%;
        left:50%;
        width: auto;
        height: 100%;
        -webkit-transform: translate3d(0, 0, 0);
    } */

    #section-b .slider__slide {
        float: left;
      }
      
    #section-b .slider__slide img {
        width:max-content;
        height: 20rem;
      }
      
    /* Footer */

    #main-footer .footer-container{
    display: block;
    margin:auto;
    width: fit-content;
    }

    #main-footer .container h3{
        margin-top: 2rem;
    }

    #main-footer .container h2{
        margin-top: 2rem;
    }

    /* gallery page */

    /* flex-grid */
 .flex-grid .row{
    display:flex;
    flex-wrap: wrap;
    padding: 0 4px;
    
}

 .flex-grid .column{
    flex:100%;
    max-width:100%;
    padding: 4px;
    min-height: auto;
}

 .flex-grid .column img{
    height: 15rem;
    object-fit:cover;
} 

/* gallery */
#cases .section-header h2{
    font-size: 1.5rem;
    line-height: 1.5;
    padding: 0.5rem;
}

}

@media only screen and (orientation: landscape){
    .header::before{
        content: '';
        position: absolute;
        top:0;
        left:0;
        width: 100%;
        height:70vh;
        background: rgba(0,0,0,0.8);
        
        }  
}