@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: 'Roboto', sans-serif;
    font-family: 'Roboto Condensed', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 3.5rem;
}
:root{
    --Color-P1:#09152B;
    --Color-P2:#F99C1C;
    --bg-color:#101010;
    --secound-bg-color:#191919;
    --text-color:#fff;
    --secound-color:#c6c9d8bf;
    --main-color:#f9004d;
    --big-font:4.2rem;
    --h2-font:4rem;
    --p-font:1.1rem;
}
body{
    background: var(--Color-P1);
    color: var(--text-color);
}
section{
    height: 100%;
    padding: 60px 120px 60px 120px;
}
.home-CA{
    height: 100%;
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    align-items: center;
    animation: transition 1s;
}
.full-homepage{
    width: 100%;
    background:linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)) , url("img/DSC_5816-2.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    align-items: center;
    text-align: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: transition 1s;
}
.full-homepage-GPA{
    width: 100%;
    background:linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)) , url("img/DSC_5796-2.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    align-items: center;
    text-align: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: transition 1s;
}
.home-CA a{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.home-ED a{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}
.home-text h1{
    margin: 0px 0px 0px;
    font-size: 45px;
}
span{
    color: var(--Color-P2);
}
.home-text h3{
    font-size: 18px;
    margin-bottom: 30px;
}
.home-text h4{
    color: #b8b6b6;
    font-size: 25px;
    letter-spacing: 2px;
}
header.sticky{
    padding: 12px 15%;
    background: var(--Color-P1);
}
.sticky .navber a:hover::after{
    background: var(--Color-P2);
}
.sticky .h-btn{
    background: var(--Color-P2);
}
.center-CA{
    text-align: center;
    
}
.center-CA h2{
    font-size: var(--h2-font);
}
.center-CA p{
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
}
.center-CA a{
    color: var(--secound-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.btn-home{
    margin-top: 80px;
    margin-bottom: 80px;
    display: inline-block;
    background: var(--Color-P2);
    color: var(--text-color);
    border: 2px solid transparent;
    width: 300px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 15px;
    transition: ease .35s;
    text-align: center;
    align-items: center;
}

.btn:hover{
    transform: translateY(-8px);
    border: 2px solid var(--Color-P2);
    background: transparent;
}


.portfolio{
    background: var(--secound-bg-color);
}

.porfolio-content-CA{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 30px;
    cursor: pointer;
    text-align: center;
    animation: transition 1s;
}
.porfolio-content-ED{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 30px;
    cursor: pointer;
    text-align: center;
    animation: transition 1s;
}
.box-CA{
    background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6));
    border-radius: 10px;
}
.box-CA img{
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5px;
}
.box-CA p{
    color: var(--text-color);
    font-size: var(--p-font);
    font-weight: 700;
    margin-bottom: 5px;
}
.box-CA h5{
    color: var(--secound-color);
    font-size: 14px;
    margin-bottom: 15px;
}
.box-CA img:hover{
    transform: scale(1.05);
    transition: .5s;
}

.box-CA:hover{
    transform: scale(1.03);
    transition: .5s;
}




@media (max-width: 1270px) {
    header{
        padding: 18px 4%;
        transition: .2s;
    }
    header.sticky{
        padding: 10px 4%;
        transition: .2s;
    }
    section{
        padding: 80px 4%;
        transition: .2s;
    }
    :root{
        --big-font: 4.8rem;
        --h2-font: 3.8rem;
        --p-font: 1rem;
        transition: .2s;
    }
    .modal-content {
        width: 100%;
    }
    
}

@media (max-width: 1080px){
    .home-CA{
        height: 100vh;
    }
    #menu-icon{
        display:  initial;
    }
    .navber{
        position: absolute;
        top: -4000%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .30s;
    }
    .navber a{
        display: block;
        padding: 1.1rem;
        margin: 1.3rem;
        border-left: 2px solid var(--text-color);
    }
    .navber a:hover{
        background: var(--Color-P2);
    }
    .navber a::after{
        display: none;
    }
    .navber.active{
        top: 100%;
    }

    .about{
        grid-template-columns: 1fr;
    }
    .about-img{
        text-align: center;
        margin-bottom: 30px;
    }
    .about-img img{
        max-width: 100%;
        width: 700px;
        height: auto;
    }
    .box-CA img{
        max-width: 100%;
        width: 760;
        height: auto;
    }
    .center-CA h2{
        font-size: 2rem;
    }
}

@keyframes transition{
    from{
        opacity: 0;
        transform: scale(98%);
    }
    to{
        opacity: 1;
        transform: scale(100%);
    }
}


/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1; /* Sit on top */
    padding-top: 5px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }

  .is-visible {
    display: block;
  }

  .is-fixed {
    position: fixed;
  }


  .is-open {
    opacity: 1;
  }

  
  /* Modal Content (Image) */
  .modal-content {
    text-align: center;
    display: none;
    margin: auto;
    animation: transition 1s;
    margin-top: 3%;
  }
  
  .m-content-GPA {
    text-align: center;
    height: 90vh;
    padding: 0px 20px 20px 20px;
    animation: zoomin 1s;

  }

  .m-content {
    text-align: center;
    height: auto;
    width: 80%;
    padding: 0px 20px 20px 20px;
    animation: zoomin 1s;

  }

  
  @keyframes zoomin {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }

  @keyframes zoomout {
    from {transform:scale(1)}
    to {transform:scale(0)}
  }
  
  /* The Close Button */
  .close-btn{
    width: 94vw;
    text-align: center;
    transition: 0.3s;
  }

  .close {
    position: fixed;
    bottom: 0;
    color: #F99C1C;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #F99C1C;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 720px){
    
    .modal-content {
      column-count: 1;
    }

    .m-content {
        height: auto;
        width: 100%;
        padding: 0 20px 20px 20px;
        animation: zoomin 1s;
    }
    .m-content-GPA {
        height: auto;
        width: 100%;
        padding: 0 20px 20px 20px;
        animation: zoomin 1s;
    }
  }
