
:root {
 
    /* =====green theme ====== */
    --color-primary:#ff7b02;
    --color-primary-variant:#e5a55d; 
    --color-bg-1:#000e17;
    --color-bg-2:#001e2d;
    --color-bg-3:#012734;
    --color-bg-4:#003347;
    --color-light:#85a2b2;
    --color-white: hsl(0, 0%, 90%);

    --container-width-lg: 88%;
    --container-width-md: 92%;

    --transition: all 400ms ease;

}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: 0;
    list-style: none;
    box-sizing: border-box;
}

 ::-webkit-scrollbar {
    width: 0.5rem;
    background: rgba(229, 165, 93, 0.2);

}

::-webkit-scrollbar-thumb {
    width: 100%;
    background: var(--color-primary-variant);
    border-radius: 0.25rem;

}

html {
    scroll-behavior: smooth;
}

body{
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--color-light);
    background: var(--color-bg-3);
}

h1, h2 {
    line-height: 1.1;
    font-weight: 400;
}

h1{
    font-size: 2.4rem;
}

h2{
    font-size: 2rem;
}


a {
    color: var(--color-light);
    transition: var(--transition);
}


a:hover {
    color: var(--color-primary);
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
    max-width: 2160px;
}

img {
    display: block;
    object-fit: cover;
    width: 100%;
}

/* =========nav=============== */
nav {
    width: 100vw;
    height:5rem;
    display: grid;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__toggle-btn {
    display: none;
}

.nav__logo {
    width: 7.5rem;
}

.nav__links {
    display: flex;
    gap: 4rem;
}

.nav__socials {
    display: flex;
    gap: 1rem;
}


.nav__socials a {
   width: 2rem;
   height: 2rem;
   background: linear-gradient(var(--color-primary-variant), var(--color-primary));
   border-radius: 0.5rem;
   color: var(--color-bg-4);
   display: grid;
   place-items: center;
}

.nav__socials a:hover {
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4) ;
}
.window-scrolled {
    background: var(--color-bg-2);
    border: 0.2rem solid var(--color-bg-3);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

/* ====================================header==== */
header {
    max-width: 100vw;
    height: 100vh;
    position: relative;
    top: 0;
    background: linear-gradient(var(--color-bg-3), var(--color-bg-1));
    overflow: hidden;
}

.header__container {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 10%;
    margin-top: 10rem;
    position: relative;
}

.header__image-bg {
    background: var(--color-bg-4);
    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: 29rem;
    height: 20rem;
    overflow: hidden;
    position: absolute;
    left: 6rem;
    top: 6rem;
    transition: var(--transition);
}

.header__left:hover .header__image-sm {
    display: none;
}

.header__left:hover .header__image-lg {
    filter: saturate(1) brightness(1);
    border: 1rem solid  var(--color-bg-4);
    top: 0;
    left: 0;
}

.header__head {
    display: flex;
    gap: 2rem;
}

.empty {
    height: 3.5rem;
    width: 18rem;
    background: var(--color-bg-2);
    border-radius: calc(3.5rem / 2);
    margin-bottom: 3.5rem;
    box-shadow: inset 0 1rem 1rem rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-bg-4);
}

.header__tag {
    color: var(--color-primary-variant);
}

.header__right p {
    margin-top: 2rem;
    width: 85%;
}

/* only shows on tablet and phones */
.header__btn-md {
    display: none;
}

.header__frames {
    position: absolute;
    top: 88vh;
    right: 44rem;
    transition: var(--transition);
}

.header__frame {
    width: 14rem;
    border: 0.4rem solid var(--color-bg-3);
    box-shadow: 0 0 4rem rgba(0, 0, 0, 0.5);
    position: absolute;
    transform: rotate(-10deg);
    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 button */
.contact__btn {
    color: var(--color-bg-1);
    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-primary-variant), 
    var(--color-primary), var(--color-primary-variant));
    position: absolute;
    right: 6%;
    bottom: -3rem;
}

.header__btn:hover {
    box-shadow: 0 2rem 2rem rgba(0, 0, 0, 0.3);
    transform: translateY(-1rem);
    color: var(--color-bg-1);
}

.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 30s linear infinite;
}

.contact__btn p span {
    position: absolute;
    transform-origin: 0.3rem 5rem;
}

@keyframes spinText {
    to {
        transform: rotate(360deg);
    }
}

/* =====================about============== */
#about {
    margin-top: 18rem;
}

.about__container {
    display: grid;
    grid-template-columns: 10rem 20rem auto;
    gap: 3rem;
    position: relative;
}

.about__title {
    position: absolute;
    top: -7rem;
    z-index: 1;
}

.about__btn {
    color: var(--color-primary-variant);
    align-self: end;
}

.about__btn:hover {
    transform: translateY(-1rem);
    color: var(--color-primary);
}

.about__image-bg {
    width: 16rem;
    height: 24rem;
    position: absolute;
    bottom: 0;
    background: var(--color-bg-4);
}

.about__image-lg {
    position: relative;
    left: 1rem;
    bottom: 1rem;
    filter: saturate(0) brightness(0.3);
    transition: 500ms ease;
}

.about__image-sm {
    position: absolute;
    top: 3rem;
    left: 15rem;
    height: 22rem;
    width: 20rem;
    overflow: hidden;
    box-shadow: 2rem 2rem 2rem rgba(0, 0, 0, 0.2);
    transition: 500ms ease;
}

.about__image:hover .about__image-sm {
    opacity: 0;
}


/* =====================galley============== */
#gallery {
    margin-top: 12rem;
}

.gallery__head {
    display: flex;
    justify-content: space-between;
}

.gallery__container p {
    width: 45rem;
}

.swiper-wrapper {
    margin-top: 5rem;
    height: 37rem;
    padding-bottom: 1rem;
}

.swiper-slide {
    border: 0.5rem solid var(--color-bg-4);
    height: fit-content;
    max-height: 36rem;
    overflow: hidden;
    transition: var(--transition);
}

.swiper-slide:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.4);
}

.swiper-slide  img {
    filter: saturate(0);
    transition: var(--transition);
}

.swiper-slide:hover img {
    filter: saturate(1);
}

.swiper-pagination-bullet {
    background: var(--color-primary);

}

/* exhibitions */

#exhibitions {
    margin-top: 10rem;
        
}

.exhibitions__container {
    position: relative;
        
}

.exhibitions__empty {
    width: 26rem;
    position: absolute;
    right: 10rem;
    top: 0;
}

.exhibitions__head {
    display: grid;
    grid-template-columns: auto 10rem;
    justify-content: space-between;
    align-items: center;        
}

.exhibitions__head > p {
    width: 35rem;
}

.exhibitions__btn {
    color: var(--color-primary-variant);
}

.exhibitions__btn:hover {
    transform: translateY(-1rem);
}

.exhibitions__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 5rem;
    gap: 3rem;
} 

.exhibitions__gallery article {
    border: 0.5rem solid var(--color-bg-4);
    transition: var(--transition);
}

.exhibitions__gallery article:nth-child(1) {
    grid-row: 1/3;
}


.exhibitions__gallery article:nth-child(4) {
    grid-column: 2/4;
    grid-row: 2/3;
}


.exhibitions__gallery article img {
    height: 100%;
    filter: saturate(0);
    transition: var(--transition);
}

.exhibitions__gallery article:hover img {
    filter: saturate(1);
}

.exhibitions__gallery article:hover {
    box-shadow: 0 4rem 4rem rgba(0, 0, 0, 0.5);
}

/* contact form */
.contact__container {
    background: var(--color-bg1);
    padding: 4rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    height: 30rem;
    margin: 15rem auto;
    border-radius: 1rem;
}
 
 /* ==========aside ================= */
 .contact__aside {
     background: var(--color-bg-2);
     padding: 3rem;
     border-radius: 1rem;
     position: relative;
     bottom: 10rem;
 }
 
 .aside__image {
     width: 12rem;
     margin-bottom: 2rem;
 }
 
 .contact__aside h2 {
     text-align: left;
     margin-bottom: 1rem;
 }
 
 .contact__aside p {
     font-size: 0.9rem;
     margin-bottom: 2rem;
 }
 
 .contact__details li {
     display: flex;
     gap: 0.8rem;
     margin-top: 3rem;
     
 }
 
 .contact__socials {
     display: flex;
     gap: 0.8rem;
     margin-top: 3rem;
     list-style-type: none;
 }
 
 .contact__socials a {
     background: var(--color-bg2);
     padding: 0.5rem;
     border-radius: 50%;
     font-size: 0.9rem;
     transition: var(--trasition);
 }
 
 .contact__socials a:hover {
     background: transparent;
 }
 
 /* form */
 form {
     display: flex;
     flex-direction: column;
     gap: 1.2rem;
     margin-right: 4rem;
 }
 
 .form__name {
     display: flex;
     gap: 1.2rem;
 }
 
 .contact__form input[type="text"] {
     width: 50%;
 }
 
 input, textarea {
     width: 100%;
     padding: 1rem;
     background: var(--color-bg-4);
     color: var(--color-white);
 }
 
 .contact__form .btn {
     background: #003347;
     width: max-content;
     margin-top: 1rem;
     cursor: pointer;
 }
 
 /*   media query */
 
 @media screen and (max-width:1024px) {
     .contact__container {
         gap: 1.5rem;
         margin-top: 3rem;
         height: auto;
         padding: 1.5rem;
     }
 
     .contact__aside {
         width: auto;
         padding: 1.5rem;
         bottom: 0;
     }
 
     .contact__form {
         align-self: center;
         margin-right: 1.5rem;
     }
     
 }
 
 
 /*  phones */
@media screen and (max-width:1024px) {
     .contact__container {
         grid-template-columns: 1fr;
         gap: 3rem;
         margin-top: 0;
         padding: 0;
     }
 
 
     .contact__form {
         margin: 0 1.5rem 3rem;
     }
 
     .form__name {
         flex-direction: column;
     }
 
     .form__name input [type="text"] {
         width: 100%;
     }
 }
 
 
 
   /* Add CSS to make the iframe responsive */
   .map-container {
     position: relative;
     overflow: hidden;
     padding-top: 56.25%; /* 16:9 aspect ratio (adjust as needed) */
   }
   
   .map-container iframe {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
   }
 

   /* footer */
   footer{
    margin-top: 7rem;

}

.footer__container {
   border-top: 0.5rem solid var(--color-bg-4);
   padding-top: 5rem;
}

.footer__head {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer__btn {
    width: 5rem;
    height: 5rem;
    border: 0.2rem solid var(--color-primary-variant);
    border-radius: 50%;
    font-size: 3rem;
    color: var(--color-primary-variant);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__btn:hover {
    transform: translateY(-1rem);
    border-color: var(--color-primary);
}


.footer__links {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin: 3rem 0 5rem;
}

/* media query for medium screens */
@media screen and (max-width: 1200px) {
    .container {
        width: var(--container-width-md);
        position: relative;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* nav */
    .nav__socials {
        display: none;
    }

    .nav__links {
        position: absolute;
        top: 100%;
        /* background: red; */
        right: 0;
        flex-direction: column;
        gap: 0;
        display: none;
    }

    .nav__links li {
        height: 5rem;
        box-shadow: -3rem 3rm 3rem rgba(0, 0, 0, 0.3);
        width: 100%;
        height: 5.8rem;
        animation: animateNavItems 600ms ease forwards ;
        transform-origin: top;
        opacity: 0;
        transform: rotateX(90deg);
    }

    .nav__links li:nth-child(2) {
        animation-delay: 200ms;
    }

    .nav__links li:nth-child(3) {
        animation-delay: 400ms;
    }

    .nav__links li:nth-child(4) {
        animation-delay: 600ms;
    }

    @keyframes animateNavItems {
        
        to {
            transform:  rotateX(0) ;
            opacity: 1;
        }
    }


    .nav__links li a {
        background: var(--color-bg-4);
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        padding: 1rem 5rem 1rem 3rem;
        border-top: 1px solid var(--color-bg-2);
    }

    .nav__toggle-btn {
        display: inline-block;
        font-size: 2rem;
        background: transparent;
        cursor: pointer;
        color: var(--color-white);
    }

    #nav__toggle-close {
        display: none;
    }




/* ==================header ============== */

header {
    height: fit-content;
    padding: 12rem 0 10rem;
    display: grid;
    place-items: center;
}
 
.header__image-bg, .header__image-sm {
    display: none;
}

.header__container {
    grid-template-columns: 40% 54%;
    gap: 6%;
    margin: 0;
}

.header__image-lg {
    filter: saturate(1) brightness(1);
    border: 1rem solid var(--color-bg-2);
    border-radius: 15rem 15rem 0 0;
    overflow: hidden;
    width: 100%;
    top: 0;
    left: 0;
}

.empty {
    display: none;
}

.header__tag {
    margin-bottom: 1rem;
}

.header__right p {
    width: 100%;
    margin-top: 1.5rem;
}

.header__frames, .contact__btn {
    display: none;
}

.header__btn-md {
    background: linear-gradient(135deg, var(--color-primary-variant),
    var(--color-primary));
    color: var(--color-bg-1);
    margin-top: 2rem;
    display: inline-block;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    border-radius: 0.3rem;
}

.header__btn-md:hover {
    color: var(--color-bg-1);
}

/* about */

.about__container {
    grid-template-columns: 40% 60%;
    gap: 6%;
}

.about__image-bg, .about__image-sm {
    display: none;
}

.about__image-lg {
    left: 0;
    top: 0;
    filter: saturate(1) brightness(1);
}

.about__image:hover .about__image-lg {
    border: none;
}

.about__right {
    margin: 0;
}

.about__right p {
    margin-bottom: 1rem;
}

/* gallery */
#gallery {
    margin-top: 8rem;
}

.gallery__container p {
    width: 100%;
    margin-top: 2rem;
}

.swiper-wrapper {
    margin-top: 3rem;
    height: fit-content;
}


/* ===================exhibition=============== */
.exhibitions__head > p {
    width: 100%;
    margin-top: 2rem;
}

.exhibitions__gallery {
    margin-top: 3rem;
    gap: 1rem;
}

.exhibitions__gallery article {
    border: none;
}

.exhibitions__gallery article:nth-child(1) {
    height: 30rem;
}

.exhibitions__gallery article:nth-child(3) {
    height: 15rem;
}

.exhibitions__gallery article:nth-child(5) {
    height: 15rem;
}

.exhibitions__gallery article:nth-child(6) {
    height: 20rem;
}
}



/* media query for small screens */

@media screen and (max-width:600px)  {

    h1, h2 {
        font-size: 2rem;
        line-height: 1.3;
        color: var(--color-white);
    }

 header {
    padding:  0 ;
    padding-bottom: 6rem;
}

.header__container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
}

.header__image-lg {
    width: 80%;
    height: 20rem;
    margin: 0 auto;
    margin-top: 7rem;
    overflow: hidden;
    border-radius: 15rem 15rem 0 0;
}

.header__head {
    justify-content: center;
}

.header__right p {
    margin-top: 1rem;
}
 
.header__title {
    margin-top: 1rem;
}

/* ==================about======= */
    
.about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about__right p {
    width: 100%;
}

.swiper-slide {
    border: 0;
}

/* ---------------gallery-------------- */

#gallery {
    margin-top: 6rem;
}

.gallery__container p {
    margin-top: 1rem;
}

.swiper-wrapper {
    margin-top: 3rem;
}

/* exhibiti */

.exhibitions {
    margin-top: 6rem;
}

.exhibitions__head {
    grid-template-columns: 1fr;
}

.exhibitions__head > p {
    margin-top: 1rem;
}

.exhibitions__gallery {
    display: block;
}

.exhibitions__gallery article {
    width: 100%;
    height: fit-content;
    margin-bottom: 1rem;
}


/* footr */
.footer__head {
    flex-direction: column;
}

.footer__head h2 {
    font-size: 1.5rem;
}


.footer__links{
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;

}


}