/*---------------------------Defaults--------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

html{
    box-sizing: border-box;
}

*, *::after, *::before{
    box-sizing: inherit;
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif, 'Courier New', Courier, monospace;
    scroll-behavior: smooth;
}

body{
    background: #1D1D1D;
    font-weight: 300;
    position: relative;
    display: flex;
    flex-direction: column;
}

html, body{
    height: 100%;
    scroll-padding-top: 43px;
}

header{
    background:#1D1D1D ;
    width: 100%;
    position:fixed;
    top: 0;
    left: 0;
    border-bottom: 1.5px solid #444;
    z-index: 2;
}

.container{
    width: 80%;
    margin: 0 auto;
}

.sub{
    border-top: 1.5px solid #444;
    width: 100%;
    padding: 0 10%;
}

h1, h2, h3, h4{
    color: #D9D9D9;
    padding: 10px;
    text-shadow: 1px 1px black;
}

h1{
    font-size: 30px;
}

h2{
    font-size: 25px;
    border:#F6821F solid;
    /* border-style: double; */
    width: 50%;
    margin: 0 auto;
    color: #FBAD41;
    border-radius: 50px;
    padding: 20px;
}

h3{
    font-size: 18px;
}

h4{
    font-size: 15px;
}

/*--------------------nav bar--------------------*/
nav ul{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav li{
    position: relative;
    margin: 0 15px;
}

nav a{
    color:#D9D9D9;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    width: 100%;
    padding: 12px;
}

.navigated{
    color: #444;
    outline: none;
}

nav a::before{
    content: '';
    display: block;
    height: 5px;
    background-color: #D9D9D9;
    position: absolute;
    top: 0;
    width: 0%;
    transition: all ease-in-out 250ms;
}

.navigated::before{
    width: 80%;
}

.sub nav a{
    font-size: 14px;
}

/*----------------------content blocks----------------------*/
div.content{
    text-align: center;
}


div.block{
    min-height: 400px;
    border-bottom: 1.5px solid #444;
    color: #D9D9D9;
}

div.block.one{
    padding-top: 44.8px;
    position: relative;
}

div.block.one.project{
    padding-top: 131px;
}

div.block.two{
    padding: 60px 0;
}

div.block.three{
    padding: 60px 0;
}

/*----------------------block content container----------------------*/
.block-content{
    border: 1.5px solid #444;
    margin: 0 auto;
    margin-top: 60px;
    padding: 30px;
    width: 80%;
    border-radius: 20px;
}

/*------------------------footer-----------------------*/
footer{
    margin-top: auto;
}

footer div{
    padding: 10px;
    width: 80%;
    margin: auto;
    text-align: center;
    color: #D9D9D9;
}

/*----------------------Start(slide show)---------------------*/
.block.one .text{
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin: 0 auto;
    z-index: 1;
    width: 80%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    padding: 20px 20px 40px 20px;
    text-transform: uppercase;
    color: white;
}

.block.one .text h1{
    text-shadow: none;
    border: none;
    letter-spacing: 5px;
    padding-bottom: 50px;
    font-size: 40px;
    color: inherit;
}

.block.one .text p{
    font-size: 20px;
    text-transform: none;
    text-align: center
}

.slideshow{
    width:100%;
    height: 700px;
    position: relative;
    overflow: hidden;
}

.slideshow-item{
    width:inherit;
    height: inherit;
    position:absolute;
    opacity: 0;
    animation: cycleImages 31s infinite;
}

.slideshow-item img{
    width:100%;
    height: 100%;
    object-fit: cover;
    animation: zoom 31s infinite;
}

.slideshow-item:nth-child(1),
.slideshow-item:nth-child(1) img{
    animation-delay: 0s;
}

.slideshow-item:nth-child(2),
.slideshow-item:nth-child(2) img{
    animation-delay: 10s;
}

.slideshow-item:nth-child(3),
.slideshow-item:nth-child(3) img{
    animation-delay: 20s;
}

@keyframes cycleImages {
    25%{
        opacity: 1;
    }
    40%{
        opacity: 0;
    }
}

@keyframes zoom{
    100%{
        transform: scale(1.3);
    }
}

/*----------------------Projects---------------------*/
.all-projects-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.all-projects-container h3{
    color: #D9D9D9;
    text-transform: capitalize;
}

.project-product{
    overflow: hidden;
    margin: auto;
    max-width: 625px;
    max-height: 350px;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

.project-image{
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.project-product:hover .project-image{
    transform: scale(1.1);
}

.project-overlay{
    position: absolute;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s;
}

.project-overlay > *{
    transform: translateY(20px);
    transition: transform 0.25s;
}

.project-product:hover .project-overlay > *{
    transform: translateY(0);
}

.project-product:hover .project-overlay{
    visibility: visible;
    opacity: 1;
}

.buttons{
    width: 100%;
}

.view-button{
    width: 100% !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

/*buttons*/
.buttons button:focus,
.buttons button:hover{
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: #FBAD41;
    transition: 0.3s ease-in;
    cursor: pointer;
}

.buttons button{
    background-color: rgba(0, 0, 0, 0.25);
    color: #D9D9D9;
    padding: 10px;
    border-radius: 20px;
    border: none;
    transition: 0.3s ease-in;
}

/*----------------------About---------------------*/
.about-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    
}

.about-container .image-container{
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 100%;
    border: solid 3px #444;
    transition: 0.3s ease-out;
}

.about-container .image-container img{
    margin-left: -25px;
    height: 120%;
    width: 120%;
    object-fit: cover;
}

.icons{
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.icons .icon{
    color: inherit;
    font-size: 35px;
    transition: 0.3s ease-out;
    margin: 0 12.5px;
}

.about-container .title{
    font-size: 20px;
    text-transform: uppercase;
}

.about-container .desc{
    text-align: justify;
    text-justify: distribute;
    width: 80%;
    margin: 0 auto;
    /* word-break: break-all; */
    font-size: smaller;
}

.about-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-grid .grid-item{
    border: 1.5px solid #444;
    border-radius: 20px;
    width: 100%;
    text-align: left;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 400px;
    transition: 0.3s ease-out;
}

.about-grid .grid-item .title,
.about-grid .grid-item .highlight{
    padding: 0;
}

.bullet-point{
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 5px;
}

.bullet-point p{
    color: #aeaeae;;
}

.highlight{
    color: #FBAD41;
}

.grid-content{
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/*---------------------------Responsive---------------------------*/

/*Responsive Mobile 1000px*/
@media (max-width: 1000px){
    /*Projects*/
    .all-projects-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-container .desc{
        width: 100%;
    }
}

/*Responsive Mobile 500px*/
@media (max-width: 500px){
    /*Projects*/
    .all-projects-container, .about-grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .about-grid .grid-item{
        min-height: none;
        height: 200px;
        overflow: auto;
    }
}

/*devices that can hover*/
@media (hover: hover) and (pointer: fine){
    nav a:hover{
        color: #444;
        outline: none;
    }
    nav a:hover::before{
        width: 80%;
    }
    .icons .icon:hover{
        color: #FBAD41;
        transition: 0.3s ease-in;
    }

    .about-grid .grid-item:hover {
        border-color: #FBAD41;
        transition: 0.3s ease-out;
    }

    .image-container:hover{
        border-color: #FBAD41;
        transition: 0.3s ease-out;
    }
}


/*---------------------------Scroll Bar---------------------------*/
::-webkit-scrollbar{
    width: 0.5em;
    height: 0.5em;
}

::-webkit-scrollbar-track{
    background:#444;
    border-radius: 100vw;
    margin-block: .5em;
}

::-webkit-scrollbar-thumb{
    background: #D9D9D9;
    border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover{
    background: #ffffff;
}