:root {
    /* dark shades of primary color*/
    --clr-primary-1: hsl(43, 86%, 17%);
    --clr-primary-2: hsl(43, 77%, 27%);
    --clr-primary-3: hsl(43, 72%, 37%);
    --clr-primary-4: hsl(42, 63%, 48%);
    /* primary/main color */
    --clr-primary-5: hsl(42, 78%, 60%);
    /* lighter shades of primary color */
    --clr-primary-6: hsl(43, 89%, 70%);
    --clr-primary-7: hsl(43, 90%, 76%);
    --clr-primary-8: hsl(45, 86%, 81%);
    --clr-primary-9: hsl(45, 90%, 88%);
    --clr-primary-10: hsl(45, 100%, 96%);
    /* darkest grey - used for headings */
    --clr-grey-1: hsl(209, 61%, 16%);
    --clr-grey-2: hsl(211, 39%, 23%);
    --clr-grey-3: hsl(209, 34%, 30%);
    --clr-grey-4: hsl(209, 28%, 39%);
    /* grey used for paragraphs */
    --clr-grey-5: hsl(210, 22%, 49%);
    --clr-grey-6: hsl(209, 23%, 60%);
    --clr-grey-7: hsl(211, 27%, 70%);
    --clr-grey-8: hsl(210, 31%, 80%);
    --clr-grey-9: hsl(212, 33%, 89%);
    --clr-grey-10: hsl(210, 36%, 96%);
    --clr-white: #fff;
    --ff-primary: "Roboto", sans-serif;
    --ff-secondary: "Open Sans", sans-serif;
    --transition: all 0.3s linear;
    --spacing: 0.25rem;
    --radius: 0.5rem;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --max-width: 1170px;
  }

  
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--ff-secondary);
  background: var(--clr-white);
  color: var(--clr-grey-1);
  line-height: 1.5;
  font-size: 0.875rem;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
img:not(.nav-logo) {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--spacing);
  text-transform: capitalize;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-family: var(--ff-primary);
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 0.875rem;
}
p {
  margin-bottom: 1.25rem;
  color: var(--clr-grey-5);
}

@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
/*  global classes */

.btn {
  text-transform: uppercase;
  background: var(--clr-primary-5);
  color: var(--clr-primary-1);
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--spacing);
  display: inline-block;
  font-weight: 700;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.btn:hover {
  color: var(--clr-primary-1);
  background: var(--clr-primary-7);
}
/* section */
.section {
  padding: 5rem 0;
}

.section-center {
  width: 90vw;
  margin: 0 auto;
  max-width: 1170px;
}
@media screen and (min-width: 992px) {
  .section-center {
    width: 95vw;
  }
}

/* added during recording */
.underline{
    width: 5rem;
    height: 0.25rem;
    margin-bottom: 1.25rem;
    background: var(--clr-primary-5);
    margin-left: auto;
    margin-right: auto;
}

.section-title{
    margin-bottom: 4rem;
    text-align: center;
}

.bg-grey{
    background: var(--clr-grey-10);
}

/*
=============== 
Navbar
===============
*/
.nav-links {
    display: none;
}
.nav{
    height: 5rem;
    padding: 1rem;
    display: grid;
    align-items: center;
    transition: var(--transition);
}
.nav-center{
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}
.nav-header{
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}
.nav-btn{
    background: transparent;
    border-color: transparent;
    color: var(--clr-primary-5);
    font-size: 2rem;
    cursor: pointer;
    /* justify-content: space-between; */
    justify-self: right;
}

.nav-logo {
    width: 100px;
    height: 60px;
    object-fit: cover;
}
@media screen and (min-width:768px){
    .nav{
        background: var(--clr-primary-10);
    }
    .nav-btn{
        display: none;
    }
    .nav-links{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
        column-gap: 2rem;
        justify-self: end;
    }
    .nav-links a{
        text-transform: capitalize;
        color: var(--clr-grey-1);
        font-weight: bold;
        letter-spacing: var(--spacing);
        transition: var(--transition);
    }
    .nav-links a:hover{
        color: var(--clr-primary-5);
    }
    .nav-center{
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}
/* fixed navbar */
.navbar-fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: var(--clr-white);
    box-shadow: var(--light-shadow);
}

/* sidebar */
.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-10);
    z-index: 4;
    display: grid;
    /* align-items: center;
    justify-content: center; */
    place-items: center;
    transition: var(--transition);
    /* add later */
    transform: translateX(-100%);
}
.show-sidebar{
    transform: translateX(0);
}
.sidebar-links{
    text-align: center;
}
.sidebar-links a{
    font-size: 2rem;
    text-transform: capitalize;
    transition: var(--transition);
    color: var(--clr-grey-5);
    letter-spacing: var(--spacing);
    display: inline-block;
    margin-bottom: 1.5rem;
}
.sidebar-links a:hover{
    color: var(--clr-primary-5);
}
.social-icons {
    display: grid;
    margin-top: 3rem;
    width: 20rem;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
}
.social-icon {
    font-size: 1.5rem;
    color: var(--clr-grey-1);
    transition: var(--transition);
}
.social-icon:hover{
    color: var(--clr-primary-5);
}
.close-btn{
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    transition: var(--transition);
    color: #bb2525;
    cursor: pointer;
}
.close-btn:hover{
    color: #e66b6b;
}

/* hero */
/* underline global  */
.hero .underline{
    margin-bottom: 0.5rem;
    margin-left: 0;
}
.hero-img{
    display: none;
}
.hero{
    background: var(--clr-primary-10);
}
.hero-center{
    min-height: calc(100vh - 5rem);
    display: grid;
    place-items: center;
}
.hero-info h4{
    color: var(--clr-grey-5);
}
.hero-icons{
    justify-items: start;
}
.her0-btn{
    margin-top: 1.25rem;
}
@media screen and (min-width:992px){
    .hero-img{
        display: block;
        position: relative;
    }
    .hero-center{
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-img::before, .about-img::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-primary-5);
        top: 2rem;
        right: -2rem;
        border-radius: var(--radius);
    }
}

.hero-photo{
    max-width: 25rem;
    max-height: 30rem;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}

/* about */
/* section title added to global */
.about-title{
    text-align: left;
    margin-bottom: 2rem;
}
.about-title .underline{
    margin-left: 0;
}
.about-center{
    display: grid;
    gap: 3rem 2rem;
}
.about-img{
    justify-self: center;
}
@media screen and (min-width:992px){
    .about-center{
        grid-template-columns: 1fr 1fr;
    }
    .about-img{
        position: relative;
    }
    .about-img::before{
        left: -2rem;
    }
    .about-info{
        align-self: center;
    }
    .hero-photo{
        min-height: 100%;
        background-position: center;
    }
}

/* services */
/* br-grey */
.service{
    background: var(--clr-white);
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.service i{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-icon{
    font-size: 2rem;
    margin-bottom: 1rem;
}
.service .underline{
    width: 3rem;
    height: 0.12rem;
    transition: var(--transition);
}
.service p{
    transition: var(--transition);
}
.service:hover{
    background: var(--clr-primary-5);
    color: var(--clr-white);
}
.service:hover p{
    color: var(--clr-white);
}
.service:hover .underline {
    background: var(--clr-white);
}
@media screen and (min-width:676px){
    .services-center{
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
}

    @media screen and (min-width:992px){
        .services-center{
            grid-template-columns: 1fr 1fr 1fr;
        }
}
/* grid different setup 
services */

/* projects */
.project-text{
    width: 80vw;
    max-width: 30rem;
    margin: 0 auto;
}
.project{
    position: relative;
    background: var(--clr-primary-5);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.project-info{
    text-align: center;
    color: var(--clr-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    opacity: 0;
}
.project-info p{
    text-transform: capitalize;
    color: var(--clr-white);
}
.project:hover .project-info{
    opacity: 1;
}
.project-img{
    transition: var(--transition);
    border-radius: var(--radius);
    height: 15rem;
    object-fit: cover;
}
.project:hover .project-img {
    opacity: 0.1;
}
.project::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0.25px solid var(--clr-white);
    border-radius: var(--radius);
    border-color: red;
    transition: var(--transition);
    opacity: 0;
}
.project:hover::after{
    opacity: 1;
    transform: scale(0.8);
}
@media screen and (min-width: 676px){
    .projects-center{
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }

    @media screen and (min-width: 992px){
        .projects-center{
            
            grid-template-columns: repeat(3, 1fr);
            
        }    
        @media screen and (min-width: 1170px){
            .projects-center{
                grid-template-rows: 200px 200px;
                gap: 1rem;
                grid-template-areas: 
                "a b b"
                "a c d"
                ;
            }
            .project-img{
                height: 100%;
            }
            .project{
                height: 100%;
            }

            .project-1{
                grid-area: a;
            }   
            .project-2{
                grid-area: b;
            }   
              
            .project-3{
                grid-area: c;
            }   
              
            .project-4{
                grid-area: d;
            }   
              
                
            }        
    }
        
}

/* connect video */

.connect{
    min-height: 40vh;
    position: relative;
    margin: 5rem 0;
    padding: 10rem 0 5rem 0;
}

.video-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.connect::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-white);
    opacity: 0.5;
    z-index: -1;
}
.connect{
    display: grid;
    place-items: center;
}

.video-banner .section-title{
    margin-bottom: 2rem;
}

.video-text{
    max-width: 30rem;
}
.video-banner{
    background: var(--clr-primary-10);
    padding: 3rem 5rem 12rem 5rem;
    text-align: center;

    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);

}
.connect{
    /* clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%); */
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);

}

/* skills */

@media screen and (min-width:768px){
    .skills-center{
        display: grid;
        column-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
}

.skills{
    background: var(--clr-primary-9);
}
.skills h3{
    margin: 1.5rem 0;
    color: var(--clr-primary-1);
}
.skill{
    margin-bottom: 1.25rem;
}
.skill p{
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--clr-primary-1);
}
.skill-container{
    background: var(--clr-white);
    height: 1rem;
    width: 100%;
    border-radius: var(--radius);
    position: relative;
}
.skill-value{
    position: absolute;
    top: 0;
    left: 0;
    background: var(--clr-primary-5);
    height: 100%;
    width: 50%;
    border-radius: var(--radius);
}
.value-10{
    width: 10%;
}
.value-20{
    width: 20%;
}
.skill-text {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
}
.skill-text-10{
    right: 10%;
}

.skill-text-20{
    right: 20%;
}

/* blog */

.blog {
    background: var(--clr-grey-10);
  }
  .card {
    perspective: 1500px;
    height: 26rem;
    position: relative;
    /* display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto; */
  }
  .card-side {
    -webkit-transition: all 2s linear;
    transition: all 2s linear;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius);
    -webkit-transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  .card-front {
    background: var(--clr-white);
  }
  .card-back {
    transform: rotateY(180deg);
    background: var(--clr-primary-10);
    display: grid;
    place-items: center;
  }
  .card:hover .card-front {
    transform: rotateY(-180deg);
  }
  .card:hover .card-back {
    transform: rotateY(0);
  }
  /* rest of the styles */
  .card-front img {
    height: 13rem;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
  }
  .card-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .card-footer img {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 50%;
  }
  .card-footer p {
    margin-bottom: 0;
    text-transform: uppercase;
    justify-self: end;
    color: var(--clr-primary-5);
    font-size: 0.85rem;
  }
  .card-info {
    padding: 1rem 1.5rem;
  }
  .blog-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 3rem 1rem;
  }

/* footer */
.footer{
    padding-bottom: 2rem;
    background: #222;
    display: grid;
    place-items: center;
}
.footer .social-icons{
    margin-bottom: 2rem;
}
.footer .social-icon{
    color: var(--clr-primary-4);
}
.footer .social-icon:hover{
    color: var(--clr-primary-8);
}
.footer p{
    font-size: 1.25rem;
    margin-top: 1rem;
    text-transform: capitalize;
    color: var(--clr-white);
}

/* single-page */

/* .single-page{
    background: var(--clr-primary-5);
    min-height: calc(100vh - 5rem - 198px);
} */

.single-page {
    background-color: var(--clr-primary-10);
    min-height: calc(100vh - 5rem - 198px);
  }
.page-info {
    max-width: 700px;
    background: var(--clr-primary-10);
}
  
.page-info a {
    color: var(--clr-primary-5);
    transition: var(--transition);
}
  
.page-info a:hover {
    color: var(--clr-primary-1);
}
  /*
  =============== 
  Projects
  ===============
  */
.projects-hero {
    height: 40vh;
    background: var(--clr-primary-10);
    display: grid;
    place-items: center;
}

.projects-hero .section-title {
    margin-bottom: 0;
}


