/* ========== GENERAL STYLES ==========*/

@font-face {
    font-family: "Montserrat-Regular";
    src: local("Montserrat-Regular"),
     url("../fonts/Montserrat-Regular.ttf") format("truetype");
    }

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #252525;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: #000;
    --color-bg: #161B22;
    --color-bg1: #252525;
    --color-bg2: #4A4A4A;

    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}


body {
    font-family: "Montserrat-Regular";
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

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

h1, h2, h3, h4, h5 {
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1rem;
}

a {
    color: var(--color-white);
}

img {
    width: 100%;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0.4rem auto;
}

/* ========== NAVBAR ==========*/

nav {
    background: transparent;
    width: 100vw;
    height: 8rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

/* Change navbar style on scroll using JS */
.window-scroll {
    background: var(--color-primary);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__container a{
    width: 50%
}

.nav__container img {
    width: 50%;
}

nav button {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav__menu a:hover{
    color: var(--color-bg2);
}

.nav__hamburger {
    display: none;
    position: relative;
    width: 2.2rem;
    cursor: pointer;
    appearance: none;
    background: none;
    outline: none;
    border: none;
}

.nav__hamburger .nav__bar, .nav__hamburger:after, .nav__hamburger:before {
    content: '';
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: var(--color-white);
    margin: 0.4rem 0;
    transition: 0.4s;
}

.nav__hamburger.is-active:before {
    transform: rotate(-45deg) translate(-0.44rem, 0.375rem);
}

.nav__hamburger.is-active:after {
    transform: rotate(45deg) translate(-0.44rem, -0.44rem);
}

.nav__hamburger.is-active .nav__bar {
    opacity: 0;
}

/* ========== END OF NAVBAR ==========*/

/* ========== HEADER ==========*/
video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    /* opacity: 0.8; */
}

header {
    position: relative;
    top: 8rem;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    margin-bottom: 2rem;
}

.header__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}

.header__left p {
    margin: 1rem 0 2.4rem;
}

/* ========== END OF HEADER ==========*/

/* ========== SERVICES ==========*/

.services {
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
    height: 42rem;
}

.services h1 {
    line-height: 1;
    margin-bottom: 3rem;
}

.services__container {
    display: grid;
    grid-template-columns: 40% 60%;
}

.services__left {
    margin-right: 4rem;
    margin-top: 10rem;
}

.services__left p {
    margin: 1rem 0 3rem;
}

.services__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.service {
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    /* text-align: center; */
}


.service:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.service__icon {
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.service__title {
    text-align: center;
}

.service h5 {
    margin: 2rem 0 1rem;
}

.service .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ========== END OF SERVICES ==========*/

/* ========== PHOTO GALLERY ==========*/

.gallery-section {
    width: 100%;
    padding-top: 20rem;
    padding-bottom: 15rem;
    background: var(--color-bg);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
}

.gallery-section .gallery__wrap {
    padding-top: 0.6rem;
}

.gallery__wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* justify-content: space-around; */
}

.gallery-section h2 {
    margin-bottom: 0.5rem;
}

.gallery-section h3 {
    margin-bottom: 10rem;
    text-align: center;
    font-size: 1.3rem;
}

.image {
    width: 33.33%;
    height: 30vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.image-text {
    width: 100%;
    height: 100%;
    z-index: 4;
}

.image-text h4{
    position: relative;
    top: 87%;
    padding-left: 7%;
    font-size: 1rem;
    line-height: 1rem;
    color: var(--color-light);
    text-transform: capitalize;
}

.image-text .icon {
    display: none;
}

.image-text:hover {
    cursor: pointer;
    z-index: 2;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(252, 252, 252, 0.6))

}

.image-text:hover .icon {
    position: absolute;
    top: 35%;
    left: 40%;
    display: flex;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 25%;
    background: var(--color-bg);
    padding: 1rem;
    cursor: zoom-in;
    z-index: 7;
}

.gallery__icon {
    width: 4rem;
    height: 4rem;
}

.image-pop, .image-pop-under, .image-contain {
    margin: 0;
    padding: 0;
}

.image-pop {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: none;
}

.image-pop-under {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba( 0, 0, 0, 0.9);
    z-index: 12;
}

.image-pop-under:hover {
    cursor: zoom-out;
}

.image-contain {
    position: relative;
    top: 0;
    left: -20%;
    width: 80%;
    height: 80vh;
    z-index: 12;
    margin: 5vh 10%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

@keyframes he{
    100% {
        left: 0;
    }
}

.click1 {
    position: absolute;
    z-index: 14;
    top: 45%;
    left: 15%;
    cursor: pointer;
    color: var(--color-white);
}

.click2 {
    position: absolute;
    z-index: 14;
    top: 45%;
    right: 15%;
    cursor: pointer;
    color: var(--color-white);
}

.close {
    position: absolute;
    z-index: 14;
    top: 10%;
    right: 15%;
    cursor: pointer;
    color: var(--color-white);
}

.gallery__wrap .btn {
    margin-top: 4rem;
}

/* ========== END OF PHOTO GALLERY ==========*/

/* ========== FOOTER ==========*/

footer {
    background: var(--color-bg1);
    padding-top: 5rem;
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer__container > div h4 {
    margin-bottom: 1.2rem;
}

.footer__column__1, .footer__column__2, .footer__column__3, .footer__column__4 {
    padding-top: 2rem;
}

footer ul li, p {
    margin-bottom: 0.7rem;
}

footer a:hover {
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.footer__copyright {
    text-align:center;
    margin-top: 4rem;
    padding: 1.2rem;
    border-top: 1px solid var(--color-bg2);
}

/* ========== END OF FOOTER ==========*/

.general__container {
    margin: 10rem;
}

.general__container p {
    padding-top: 2rem;
}

/* ========== MEDIA QUERIES (TABLETS) ==========*/


@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.2rem;
    }

    /* ========== NAVBAR ==========*/
    .nav__container img {
        width: 70%
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        left: 100%;
        min-height: 100vh;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-bg2);
        padding-top: 7.5rem;
    }

    .nav__hamburger {
        display: block;
    }


    .nav__menu.is-active {
        left: 0;
        transition: 0.4s;
    }

    .nav__menu li {
        width: 100%;
        max-width: 12.5rem;
        margin: 0 auto 0.4rem; 
        display: block;
        text-align: center;
        padding: 0.75rem 1rem;
        background-color: var(--color-primary);
        color: var(--color-white);
        text-decoration:none;
    }

    .nav__menu li:hover {
        background-color: var(--color-bg);
    }
    /* ========== END OF NAVBAR ==========*/

    /* ========== HEADER ==========*/
    header {
        /* height: 52vh; */
        margin-bottom: 4rem;
    }

    .header__container {
        gap: 0;
        padding-bottom: 3rem;
    }
    /* ========== END OF HEADER ==========*/

    /* ========== SERVICES ==========*/
    .services {
        height: fit-content;
    }

    .services__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services__left {
        margin-right: 0;
        margin-top: 0;
    }
    /* ========== END OF SERVICES ==========*/

    /* ========== GALLERY SECTION ==========*/
    .gallery-section {
        margin-top: 0;
        padding-top: 10rem;
    }

    .image {
        width: 50%;
    }

    .click1 {
        left: 2%;
    }
    
    .click2, .close {
        right: 2%;;
    }

    /* ========== END OF GALLERY SECTION ==========*/

    /* ========== FOOTER ==========*/
    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* ========== END OF FOOTER ==========*/
    .general__container {
        margin: 3rem;
    }
}

/* ========== MEDIA QUERIES (PHONES) ==========*/
@media screen and (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }
    /* ========== NAVBAR ==========*/
    .nav__menu {
        right: 3%;
    }
    
    .nav__container img {
        width: 100%
    }
    /* ========== END OF NAVBAR ==========*/

    /* ========== HEADER ==========*/
    /* Don't display video on phones */
     /* video {
        display: none;
    } */
    
    .header__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header__left p {
        margin-bottom: 1.3rem;
    }

    .header__right {
        display: none;
    }
    /* ========== END OF HEADER ==========*/

    /* ========== SERVICES ==========*/
    .services__right {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .services__left {
        margin-top: 0;
        text-align: center;
    }

    .service {
        padding: 1rem;
        border-radius: 1rem;
    }

    .services__icon {
        margin-top: 0.25rem;
        display: inline-block;
    }
    /* ========== END OF SERVICES ==========*/

    /* ========== GALLERY SECTION ==========*/

    .gallery-section h2 {
        margin-bottom: 0;
    }
    .gallery-section h3 {
        margin-bottom: 3rem;
    }

    .image {
        width: 100%;
      	margin: 1rem;
    }

    .image-text {
        display: none;
    }


    /* ========== END OF GALLERY SECTION ==========*/


    /* ========== FOOTER ==========*/
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__column__2 p {
        margin: 1rem auto;
    }

    .footer__socials {
        justify-content: center;
    }
    /* ========== END OF FOOTER ==========*/
    .general__container {
        margin: 3rem 1rem;
    }
}



