* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #0CAFFF;
    --color-primary-variant: #0443ca;
    --color-secondary: #9ed3fc;
    --color-light: #e3e9ee;
    --color-black: #000;
    --color-bg: #012169;
    --color-bg1: #033bbd;
    --color-bg2: #0CAFFF;
   
    --container-width-lg: 88%;
    --container-width-md: 92%;
   
    --transition:all 400ms ease;
}   

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
}

html{
    scroll-behavior: smooth;
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
    max-width: 2160px;
}


h1, h2 {
    line-height: 1.1;
    font-weight: 400;
}

h1 {
    font-size: 4rem;
    color: var(--color-light);
}

h2 {
    font-size: 3.5rem;
}

a {
    color: var(--color-white);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}


/*============= NAVBAR ============*/

nav {
    height: 5rem;
    width: 100vw;
    display: grid;
    place-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

/* nav class on scroll using javascript */
.window-scrolled {
    background: var(--color-bg);
    border-bottom: 0.2rem solid var(--color-bg1);
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.3);
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__toggle-btn {
    display: none;
}

.nav__logo {
    width: 4rem;
}

.nav__links {
    display: flex;
    gap: 4rem;
}

.nav__socials {
    display: flex;
    gap: 1rem;
}

.nav__socials a {
    width: 4rem;
    height: 4rem;
}


/*============= HEADER ============*/
header {
    max-width: 100vw;
    height: 100vh;
    position: relative;
    top: 0;
    background: linear-gradient(var(--color-primary-variant), #011441);
    overflow: hidden;
}

.header__container {
    display: grid;
    grid-template-columns: 43% 53%;
    gap: 4%;
    margin-top: 2rem;
    position: relative;
}

.header__image-bg {
    background: #1d60fd;
    height: 22rem;
    width: 16rem;
    position: absolute;
}

.header__image-lg {
    width: 29rem;
    position: relative;
    top: 1rem;
    left: 1rem;
    filter: saturate(0)
    brightness(0.3);
    transition: var(--transition);
}

.header__image-sm {
    width: 25rem;
    height: 25rem;
    overflow: hidden;
    position: absolute;
    left: 10rem;
    top: 14rem;
    transition: var(--transition);
}

.header__left:hover .header__image-sm {
    opacity: 0;
}

.header__left:hover .header__image-lg {
    filter: saturate(1) brightness(1);
    border: 1rem solid #1d60fd;
    left: 0;
    top: 0;
}

.header__head {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.empty {
    height: 3.5rem;
    width: 18rem;
    background: var(--color-bg);
    border-radius: calc(3.5rem / 2);
    box-shadow: inset 0 1rem 1rem rgba(2, 0, 26, 0.3);
    border: 1px solid var(--color-bg1);
}

.header__tag {
    color: #0CAFFF;
    margin-top: 1rem;
}

.header__right h1 {
    margin-top: 3rem;
}

.header__right p {
    margin-top: 2rem;
} 

.header__frames {
    position: absolute;
    margin-top: 1.5rem;
    top: 88vh;
    right: 53rem;
    transition: var(--transition);
}

.header__frame {
    width: 14rem;
    border: 0.4rem solid #1d60fd;
    box-shadow: 0 0 4rem rgba(2, 0, 26, 0.5);
    position: absolute;
    transform: rotate(-12deg);
    transform-origin: bottom left;
    transition: var(--transition);
}

.header__frame:nth-child(2) {
    transform: rotate(20deg);
    top: -2rem;
    left: 2rem;
}

.header__frames:hover .header__frame {
    transform: rotate(0);
}

.header__frames:hover .header__frame:nth-child(2) {
    top: 0;
    left: 15rem;
}


/*general style for contact buttons */
.contact__btn {
    color: var(--color-secondary);
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.header__btn {
    background: linear-gradient(-30deg, var(--color-bg), var(--color-primary), var(--color-bg));
    position: absolute;
    right: 6%;
    bottom: -6rem;
}

.header__btn:hover {
    box-shadow: 0 2rem 2rem  rgba(2, 0, 26, 0.3);
    transform: translateY(-1rem);
    color: var(--color-white);
}

.contact__btn i {
    font-size: 3.5rem;
    position: absolute;
}

.contact__btn p {
    font-size: 1rem;
    font-weight: 600;
    width: 10rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    animation: spinText 15s linear infinite;
}

.contact__btn p span {
    position: absolute;
    transform-origin: 0.3rem 5rem;
}

@keyframes spinText {
    to {
        transform: rotate(360deg);
    }
}

/*============= PORTFOLIO ============*/

#portfolio {
    margin-top: 12rem;
}

.portfolio__head {
    display: flex;
    justify-content: space-between;
}

.portfolio__container p {
    width: 60rem;
    font-size: 1.3rem;

}

.portfolio__title {
    font-weight: 600;
}

.swiper-wraper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.swiper-slide img {
    inline-size: 28rem;
}

.swiper-slide {
    border: 0.7rem solid var(--color-bg1);
    height: fit-content;
    max-height: 36rem;
    overflow: hidden;
    transition: var(--transition);
}

.swiper-slide:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.5);
}

/*============= GALLERY ============*/

.gallery__container {
    position: relative;
}

.gallery__title {
    position: relative;
    right: 32rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gallery__empty {
    width: 26rem;
    position: relative;
    left: 55rem;
    top: 0;
    margin-bottom: 0.2rem;
}

.gallery__head {
    display: grid;
    grid-template-columns: auto 10rem;
    justify-content: space-between;
    align-items: center;
}

.gallery__head > p {
    width: 50rem;
    font-size: large;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gallery__btn {
    color: #0CAFFF;
}

.gallery__btn:hover {
    transform: translateY(-2rem);
}

.exhibition__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
    gap: 2.5rem;
}

.exhibition__gallery article {
    border: 0.5rem solid var(--color-bg1);
    transition: var(--transition);
}

.exhibition__gallery article:nth-child(1) {
    grid-row: 1/3;
}

.exhibition__gallery article:nth-child(4) {
    grid-column: 2/4;
    grid-row: 2/3;
}

.exhibition__gallery article:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.5);
}

.exhibition__gallery1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
    gap: 2.5rem;
}

.exhibition__gallery1 article {
    border: 0.5rem solid var(--color-bg1);
    transition: var(--transition);
}

.exhibition__gallery1 article:nth-child(3) {
    grid-row: 1/3;
}

.exhibition__gallery1 article:nth-child(4) {
    grid-column: 2/4;
    grid-row: 2/3;
}

.exhibition__gallery1 article:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.5);
}



/*============= GALLERY ============*/


.motion__graphics {
    margin-top: 2rem;
}

.motion__graphics h2 {
    font-weight: 600;
    margin-bottom: 5rem;
}

.motion__graphics .motion__video {
    inline-size: 25rem;
}

.motion__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.motion {
    background: var(--color-bg1);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.motion:hover {
    background: transparent;
    border-color: var(--color-primary);
}

.motion__info {
    padding: 2rem;
}

.motion__info p {
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
}

.motion_info h6 {
    margin: 1.2rem 0 2rem;
    font-size: 1rem;
    color: #00d4ff;
}
