* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

a {
    cursor: pointer;
}

article {
    cursor: default;
}

p {
    font-family: 'open sans', sans-serif;
    font-size: 1em;
    font-weight: 300;
    color: #000;
    text-align: center;
    line-height: 1.6;
}

h1 {
    font-family: 'open sans', sans-serif;
    font-size: 1.8em;
    font-weight: bolder;
    text-align: center;
    width: 100%;
    color: #000;
    text-shadow: 1px 1px 3px rgba(200, 200, 200, 1);
}

h2 {
    font-family: 'open sans', sans-serif;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    color: #000;
}

h3 {
    font-family: 'open sans', sans-serif;
    font-size: 1.4em;
    font-weight: bolder;
    text-align: center;
    color: #000;
}


/* Header */

header {
    top: 0;
    background-color: #fff;
    height: 100vh;
    max-width: 100%;
    min-width: 100%;
    position: fixed;
    z-index: 1;
    overflow: hidden;
    bottom: 0%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    transition: opacity 0.5s;
    background-image: url("../images/completelayer.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.headerbgfirst {
    min-width: 100%;
    max-width: none;
    position: fixed;
    bottom: 0%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background-image: url("../images/firstlayer.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 4;
}

.headerbgmiddle {
    min-width: 100%;
    max-width: none;
    position: fixed;
    bottom: 0%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background-image: url("../images/middlelayer.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 3;
}

.headerbglast {
    min-width: 100%;
    max-width: none;
    position: fixed;
    bottom: 0%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background-image: url("../images/lastlayer.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 2;
}


/* Vertical slider section */

.slidercontainer {
    position: absolute;
    width: 100%;
    top: 50%;
    margin-top: -2.5em;
    z-index: 6;
    cursor: default;
}

.carousel {
    width: 100%;
    height: 2.5em;
    position: relative;
    overflow: hidden;
}


/* I am */

.slider {
    transition: all 1s;
    margin: -2.5em 0 0 0;
}


/* Ambitous */

.slider1 {
    transition: all 1s;
    margin: -2.5em 0 0 0;
}

section {
    height: 2.5em;
    line-height: 2.5em;
    width: 100%;
    text-align: center;
    display: inline-block;
}


/* Content after Header */

.contentbox {
    position: relative;
    background-color: white;
    height: auto;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 1400px 0 0 0;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.5s;
}


/* About me */

.textbox {
    float: left;
    height: auto;
    width: 90%;
    padding: 50px 5%;
    margin: 0;
    position: relative;
    z-index: 4;
}

.textbox h3 {
    padding-bottom: 10px;
}

.line {
    height: 1px;
    margin: 0px 20% 0 20%;
    width: 60%;
    padding: 0;
    background: linear-gradient(90deg, #ebaa97, #ac5740);
}

.aboutmeimg {
    float: left;
    height: 500px;
    width: 100%;
    margin: 0 0 100px 0;
    position: relative;
    z-index: 4;
}

img.image-overs {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 450px;
    opacity: 0;
    -webkit-transition: opacity 100ms ease;
    -moz-transition: opacity 100ms ease;
    -ms-transition: opacity 100ms ease;
    -o-transition: opacity 100ms ease;
    transition: opacity 100ms ease;
}


/* Grid Section */

.gridtext {
    position: absolute;
    left: 0;
    top: 0;
    width: 92%;
    height: 400px;
    padding-top: 150px;
    margin: 0 4% 0 4%;
}

.gridtext h3,
.gridtext h2 {
    margin: 0;
    padding: 0;
    justify-content: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(45, 45, 45, 1);
}

.grid {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 20px 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}


/* Slide Effect */

.grid::before {
    position: absolute;
    top: 0;
    left: -200%;
    z-index: 2;
    display: block;
    content: '';
    width: 75%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%);
    -webkit-transform: skewX(45deg);
    transform: skewX(45deg) scale3d(1, 1, 1);
}

.grid:hover::before {
    -webkit-animation: shine 1.5s;
    animation: shine 1.5s;
    cursor: pointer;
}

@-webkit-keyframes shine {
    100% {
        left: 200%;
    }
}

@keyframes shine {
    100% {
        left: 200%;
    }
}


/* enlarge image & grayscale */

.grid .image {
    width: 100%;
    height: 400px;
    transform: scale3d(1.01, 1.01, 1.01);
    -webkit-transition: .7s ease-in-out;
    transition: .7s ease-in-out;
}

.grid:hover .image {
    transform: scale3d(1, 1, 1);
}


/* Images in grid */

#wfa {
    background-image: url("../images/WFA1.jpeg");
    background-size: cover;
    background-position: center;
}

#da {
    background-image: url("../images/da.png");
    background-size: cover;
    background-position: center;
}

#mediacliq {
    background-image: url("../images/Mediacliq1.png");
    background-size: cover;
    background-position: center;
}

#motion {
    background-image: url("../images/hrc4.jpg");
    background-size: cover;
    background-position: center;
}

#welcome {
    background-image: url("../images/WHsyr.jpg");
    background-size: cover;
    background-position: center;
}


/* footer */

footer {
    position: relative;
    height: auto;
    width: 80%;
    padding: 100px 10% 100px 10%;
    margin: 0;
    background-color: #f9f9f9;
    z-index: 99;
    text-shadow: 1px 1px 3px rgba(200, 200, 200, 1);
}

.contact {
    width: 50px;
    height: 50px;
    margin: 25px auto 0 auto;
    border-radius: 50px;
    background-color: #fff;
    overflow: show;
    display: block;
    cursor: pointer;
    box-shadow: 1px 1px 3px rgba(200, 200, 200, 1);
}

.plane {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0;
    left: 0px;
    z-index: 950;
    display: block;
    cursor: pointer;
}

.copyright {
    position: relative;
    height: auto;
    width: 80%;
    padding: 10px 10% 10px 10%;
    margin: 0;
    background-color: #fff;
    z-index: 99;
}

.copyright p {
    color: #454545;
}


/* Menu bar */

#menu {
    position: fixed;
    height: 50px;
    width: 90%;
    line-height: 50px;
    padding: 0 5% 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: white;
}

#menu .logo {
    position: relative;
    display: flex;
    z-index: 999;
}

#menu ul {
    position: relative;
    display: flex;
    z-index: 999;
}

#menu ul li {
    position: relative;
    list-style: none;
    height: 50px;
}

#menu ul li a {
    position: relative;
    padding: 5px 10px;
    color: #000;
    display: inline-block;
    text-decoration: none;
}

.toggle {
    display: none;
}

.scroll {
    position: relative;
    display: block;
    cursor: pointer;
}

.scroll:before,
.scroll:after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    top: 50%;
    margin-top: 15px;
    background: #fff;
}

.scroll:before {
    left: -2.5px;
}

.scroll:after {
    left: -2.5px;
    background: linear-gradient(90deg, #ebaa97, #ac5740);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scroll:hover:before {
    background: linear-gradient(90deg, #ebaa97, #ac5740);
    width: 110%;
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scroll:hover:after {
    background: transparent;
    width: 100%;
    transition: 0s;
}


/* scrolldown btn */

.scrolldown {
    width: 50px;
    height: 50px;
    left: 50%;
    bottom: 0;
    border-radius: 50px;
    box-shadow: 1px 1px 3px rgba(200, 200, 200, 1);
    background-color: white;
    margin-left: -25px;
    margin-bottom: 50px;
    position: fixed;
    z-index: 5;
    overflow: show;
    display: block;
    transition: opacity 0.5s;
    cursor: pointer;
}


/*loader*/

#overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
}

.cirlces {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    background: gray;
    border-radius: 100px;
    margin: -25px 0 0 -25px;
    opacity: 0.0;
    /* initial state */
    animation: circles 1s ease-out infinite;
}

#cirlce {
    animation-delay: 0s;
}

#cirlce1 {
    animation-delay: 2s;
}

@keyframes circles {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0.0;
    }
    50% {
        opacity: 1.0;
    }
    100% {
        transform: scale(1, 1);
        opacity: 0.0;
    }
}

@media only screen and (max-width: 769px) {
    #menu ul {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        padding: 50px 0 0 0;
        text-align: center;
        overflow: auto;
        transition: 0.5s;
        background-color: white;
        flex-direction: column;
        opacity: 0;
        transform: translateY(-100%);
    }
    #menu.active ul {
        top: 50px;
        opacity: 1;
        transform: translateY(0);
    }
    #menu ul li a {
        margin: 5px 0;
    }
    .toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }
    .toggle:before {
        content: '';
        position: absolute;
        top: 4px;
        width: 100%;
        height: 2px;
        background: #000;
        z-index: 999;
        box-shadow: 0 10px 0 #000;
        transition: 0.5s;
    }
    .toggle:after {
        content: '';
        position: absolute;
        bottom: 4px;
        width: 100%;
        height: 2px;
        background: #000;
        z-index: 999;
        transition: 0.5s;
    }
    #menu.active .toggle:before {
        top: 14px;
        transform: rotate(45deg);
        box-shadow: 0 0 0 #000;
    }
    #menu.active .toggle:after {
        bottom: 14px;
        transform: rotate(-45deg);
    }
}

@media only screen and (min-width: 500px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1em;
    }
    h3 {
        font-size: 2em;
    }
    .slidercontainer {
        margin-top: -3.2em;
    }
    .carousel {
        height: 3.2em;
    }
    .slider {
        margin: -3.2em 0 0 0;
    }
    .slider1 {
        margin: -3.2em 0 0 0;
    }
    section {
        height: 3.2em;
        line-height: 3.2em;
    }
    .textbox {
        width: 80%;
        padding: 50px 10%;
    }
    .grid {
        width: 90%;
        margin: 20px 5%;
    }
}

@media only screen and (min-width: 800px) {
    h1 {
        font-size: 3.5em;
    }
    h2 {
        font-size: 1em;
    }
    h3 {
        font-size: 3em;
    }
    .slidercontainer {
        margin-top: -4.8em;
    }
    .carousel {
        height: 4.8em;
    }
    .slider {
        margin: -4.8em 0 0 0;
    }
    .slider1 {
        margin: -4.8em 0 0 0;
    }
    section {
        height: 4.8em;
        line-height: 4.8em;
    }
    .textbox {
        width: 60%;
        padding: 50px 20%;
    }
}

@media only screen and (min-width: 1440px) {
    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 2.5em;
    }
    p {
        font-size: 1em;
    }
    .slidercontainer {
        margin-top: -5em;
    }
    .carousel {
        height: 5em;
    }
    .slider {
        margin: -5em 0 0 0;
    }
    .slider1 {
        margin: -5em 0 0 0;
    }
    section {
        height: 5em;
        line-height: 5em;
    }
    .textbox {
        width: 60%;
        padding: 50px 20%;
    }
    #menu {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .contact {
        width: 75px;
        height: 75px;
        border-radius: 75px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .scrolldown {
        width: 75px;
        height: 75px;
        border-radius: 75px;
        margin-left: -37px;
        margin-bottom: 50px;
    }
    .plane {
        position: relative;
        width: 75px;
        height: 75px;
    }
    .grid {
        width: 80%;
        margin: 50px 10%;
    }
}

@media only screen and (min-width: 2560px) {
    h1 {
        font-size: 6em;
    }
    h2 {
        font-size: 3em;
    }
    h3 {
        font-size: 3.75em;
    }
    p {
        font-size: 1.5em;
    }
    .slidercontainer {
        margin-top: -8em;
    }
    .carousel {
        height: 8em;
    }
    .slider {
        margin: -8em 0 0 0;
    }
    .slider1 {
        margin: -8em 0 0 0;
    }
    section {
        height: 8em;
        line-height: 8em;
    }
    .textbox {
        width: 60%;
        padding: 50px 20%;
    }
    #menu {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .contact {
        width: 75px;
        height: 75px;
        border-radius: 75px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .scrolldown {
        width: 75px;
        height: 75px;
        border-radius: 75px;
        margin-left: -37px;
        margin-bottom: 50px;
    }
    .plane {
        position: relative;
        width: 75px;
        height: 75px;
    }
    .aboutmeimg {
        height: 800px;
        margin: 0 0 300px 0;
    }
    img.image-overs {
        width: 600px;
    }
    .grid {
        height: 600px;
    }
    .grid .image {
        height: 600px;
    }
    .gridtext {
        padding-top: 250px;
    }
    #menu ul li a {
        padding: 5px 30px;
    }
    .scroll:before,
    .scroll:after {
        height: 3px;
        margin-top: 30px;
    }
    .line {
        height: 3px;
    }
}