 :root {
   --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: 88vw;
   --conatiner-width-md: 92%;

   --transition: all 400ms ease
}

::-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;
}





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

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Montserrat", sans-serif;
    background: var(--color-bg-3) url(./Assets/bg-texture.png) ;
    color: var(--color-light);
    line-height: 1.7;
}


h1, h2 {
    line-height: 1.1;
    font-weight: 400;
}

h1 {
      font-size: 3.5rem;
      color: var(--color-white)
}

h2 {
    font-size: 3.5rem;
}

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{
     height: 5rem;
     width: 100vw;
     display: grid;
     place-items: center;
     position: fixed;
     z-index: 99;
     top: 0;
     left: 0;
}

/* nav class on scroll using javascript */

.window-scrolled{
    background: var(--color-bg-2);
    border-bottom: 0.2rem solid var(--color-bg-3);
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.3);
}

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

/* only need in tablets and phones  */

.nav-toggle-btn{
    display: none;
}

.nav-logo{
    width: 8rem;
    
    
   
}
.nav-links{
  display: flex;
  gap: 4rem;
}

.nav-socials{
    display: flex;
    gap: 4rem;
    
}

.nav-socials a {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(var(--color-primary-variant),var(--color-primary));
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    color: var(--color-bg-4);
    transition: var(--transition);
}

.nav-socials a:hover{
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4);
    transform: translateY(-0.3rem);

}


/* ================= 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: 35% 50%;
    gap: 6%;
    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: 28rem;
    height: 27rem;
    overflow: hidden;
    position: absolute;
    left: 6rem;
    top: 6rem;
    transition: var(--transition);
    border: 0.5rem solid rgba(5, 97, 158, 0.356);
    border-radius: 1%;
}

.header-left:hover .header-image-sm {
    opacity: 0;
}

.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;
    align-items: flex-start;
}
  

/* grnrral empty style  */



.empty{

    height: 3.5rem;
    width: 18rem;
    background: var(--color-bg-2);
    /* background-image: url(./Assets/doddles.jpeg); */
    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);
    /* object-fit: calc(30px); */
    
}

.header-tag{
     color: var(--color-primary-variant);
}

.header-right p{
     margin-top: 2rem;
     width: 85%;
}


/* // only show in tyablets and phones  */

.header-btn-md{
    display: none;
}

.header-frames {
    position: absolute;
    top: 88vh;
    right: 44rem;
    transition: var(--transition);
}

.header-frame{
    width: 12rem;
    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 of contact button  */

.contact-btn{
    color: var(--color-bg-1);
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    display: grid;
    cursor: pointer;
    place-items: center;
    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: 4rem;
 position: absolute;
 transform: rotate(35deg);
}

.contact-btn p {
   font-size: 1rem;
   font-weight: 600;
   width: 10rem;
   height: 10rem;
   display: flex;
   justify-content: center;
   animation: spinText 20s 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 26rem 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{
    position: relative;
}

.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: 8rem;
    height: 22rem;
    width: 22rem;
    overflow: hidden;
    box-shadow: 2rem 2rem 2rem rgba(0, 0, 0, 0.3) ;
    transition: 500ms ease;;
    border: 0.01rem solid rgba(255, 255, 255, 0.26);
    
}


.about-image:hover .about-image-sm{
    opacity: 0;
}

.about-image:hover .about-image-lg{
    filter: saturate(1) brightness(1);
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.2);
    border: 1rem solid var(--color-bg-4);
    left: 0;
    bottom: 0;
}

.about-right{
    margin-left: 5rem;
}

.about-right p {
    margin: 0 4rem 1.5rem 0;
    line-height: 2rem;
}


/* <!-- ====================== Gallery  ==================== --> */

#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: 5rem;
}

.swiper-slide{
    border: 0.5rem solid var(--color-bg-4);
    height: fit-content;
    max-height: 46rem;
    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-color: var(--color-primary-variant) !important; /* Default color of the bullets */
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;/* Active bullet color */
}


.swiper-pagination{
    color: #ff6347;
}

/* <!-- ====================== exhibations ==================== --> */

#exhibitions{
    margin-top: 10rem;
 

}

.exhibitions-container{

    position: relative;
}

.exhibitions-empty{
    width: 23rem;
    position: absolute;
    right: 15rem;
    top: 0;
}

.exhibitions-head{
        display: grid;
        grid-template-columns: auto 10rem;
        justify-content: space-between;
        align-items: center;
}

.exhibitions-head > p {
    width: 45rem;
    padding-top: 2rem ;
}

.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: 4rem;
    gap: 3rem;
}

.exhibitions-gallery article{
  border: 0.5rem solid var(--color-bg-4);
  transition: var(--transition);
}

.exhibitions-gallery article:nth-child(1)
{
         grid-row: 3/3;
         
}
.exhibitions-gallery article:nth-child(4){
    grid-column: 3/4;
    grid-row: 2/3;
}

.exhibitions-gallery article video {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    transition: var(--transition);
}

.exhibitions-gallery article video:hover {
    filter: saturate(1);
    transform: scale(1.03);
    box-shadow: 0 4rem 4rem rgba(0, 0, 0, 0.5);
}

.exhibitions-gallery article:hover{
    box-shadow: 0 4rem 4rem rgba(0, 0, 0, 0.5);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

/* Modal Content (Video) */
.modal-content {
    margin: auto;
    display: block;
    width: 95%; /* Adjust width as needed */
    height: 90%; /* Adjust height as needed */
    max-width: 80%;
    max-height: 95%;
    border-radius: 10px;
    
}

/* Close Button */
.close {
    position: absolute;
    top: 1px;
    right: 30px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
}

/* Hide default controls and style video thumbnail */
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Disable direct interaction with video */
    /* opacity: 40%; */
}

/* .video-thumb:hover{
    opacity: 100%;
} */

/* Thumbnail container styling */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    opacity: 100%;
}

.video-thumbnail:hover{
    opacity: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem 1.5rem;
    pointer-events: none;
    transition: .09s ease-in; /* Ensures icon itself isn’t interactive */
}

.video-thumbnail:hover .play-icon {
    color: #ff0000; /* Change color on hover for visual feedback */
    opacity: 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;
        transition: var(--transition);
        transform: rotate(45deg);

        
}

.footer-btn:hover{
    transform: translateY(-1rem) rotate(45deg);
    border-color: var(--color-primary);
 
}

.footer-links{
    margin: 3rem 0 5rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}



/* ============================== Media Queris (Medium Screens) ======================== */


@media screen and (max-width: 1024px){
    .container{
        width: var(--conatiner-width-md);
        position: relative;
    }
    h1{
        font-size: 2.5rem;
        line-height: 3rem;
    }
    h2{
        font-size: 2.5rem;
        
        
    }
    
    
    /* Close Button */

    .close {
        position: absolute;
        top: 1px;
        right: 30px;
        color: #fff;
        font-size: 50px;
        font-weight: bold;
        cursor: pointer;
    }

    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: white;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 0.1rem 0.6hrem;
        pointer-events: none;
        transition: .09s ease-in; /* Ensures icon itself isn’t interactive */
    }
    /* ====== nav ============ */

    .nav-socials{
      display: none;
    }

    .nav-links{
        position: absolute;
        top: 100%;
        right: 0;
        gap: 0;
        flex-direction: column;
        display: none;
    }
    /* .nav-links li{
        height: 5rem;
        box-shadow: -3rem 3rem 3rem rgba(0, 0, 0, 0.7)
    } */
    

    .nav-links li{
        height: 5rem;
        box-shadow: -3rem 3rem 3rem rgba(0, 0, 0, 0.7);
        animation: navAnimation 600ms ease forwards;
        transform: rotateX(90deg);
        opacity: 0;
        transform-origin: top;
    }

    .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 navAnimation {
        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-3);
        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: 0.3rem;

     }

     .header-btn-md:hover{
        color: var(--color-bg-1);
     }



         /* ========================== ABOUT ================================ */




     .about-container{
        left: auto auto;
       grid-template-columns: 40% 50%;
       gap: 6%   
    }

    .about-image-bg, .about-image-sm{
        display: none;
    }

    .about-image-lg{
        left: 0;
        right: 0;
        top: 0;filter: saturate(1) brightness(1);
        border: 0.5rem solid var(--color-bg-4);
    }
     

    /* .about-image-lg:hover .about-image-lg{
     border: none;
    } */
    
    .about-right{
        margin: 0;
    } 
 

    .about-right p{
        margin-bottom: 2rem;
        width: 100%;
        font-size: 0.9rem;
    }
     
   

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


    #gallery{
         margin-top: 8rem;
    }

    .gallery-container p{
        width: 100%;
        margin-top: 2%;
    }

    .swiper-wrapper{
        margin-top: 3rem;
        height: fit-content;
    }
    

    
    /* =========================== exhibitions ==========================/ */

    .exhibitions-head > p{
        width: 100%;
        margin-bottom: 1rem;
    }

    .exhibitions-gallery{
        margin-top: 2rem;
        gap: 1rem;
    }

    .exhibitions-gallery article{
         border: none;
        
    }

}



/* ============================== Media Queris (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;
    }
    .close {
        position: absolute;
        top: 1px;
        right: 20px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
    }

    /* ============================= 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;
        }

        .swipper-wrapper{
            margin-top: 3rem;
        }


          /* ============================= EXHIBITION ========================== */





        #exhibition{
            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;
        }



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



        
        .footer-head{
            flex-direction: column;
        }   

        .footer-head h2{
            font-size: 1.5rem;
        }

        .footer-links{
             flex-direction: column;
             gap: 2rem;
             margin-top: 5rem;
        }



}




