@import url('https://fonts.googleapis.com/css2?family=Mooli&family=Unbounded:wght@200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: Unbounded;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: #ffc900 black;
}

:root {
    --color-primary: #ffc900;
    --color-secondary: #06113C;
    --inverted-background: #1B1A17;
    --neural-color: #9AA6AC;
    ----neural-color: #EEEEEE;
}

body {
    background: black;
}

/* nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.85);
    transition: transform 0.3s, opacity 0.3s;
} */

nav { 
    width: 100%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(12px); 
    background-color: rgba(0, 0, 0, 0.85); 
    transition: transform 0.3s, opacity 0.3s; 
}

nav.non-sticky {
    transform: translateY(-100%);
    opacity: 0;
}

nav > div.content-nav {
    width: 90%;
    margin: 0 auto;
}

.logo img {
    width: 230px;
    padding: 15px 0;
}

.content-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.content-nav .items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.content-nav .items a {
    font-size: 14px;
    line-height: 17px;
    color: var(--color-primary);
    text-transform: capitalize;
    font-weight: 400;
}

.content-nav .items a:hover {
    font-weight: 500;
}

.lang-search {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-search div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-search select {
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 17px;
    color: var(--color-primary);
    text-transform: capitalize;
    font-weight: 300;
}

/* Hide mobile nav by default */
.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: #000;
    padding: 20px;
    position: absolute;
    top: 80px;
    width: 85%;
    left: 0;
    z-index: 999;
}

.nav-mobile a {
    color: #fff;
    padding: 10px 0;
    font-size: 18px;
    border-bottom: 1px solid #333;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
}

/* Media query for mobile screens */
@media (max-width: 1100px) {
   

    .items, .lang-search {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile.show {
        display: flex;
    }

    .content-nav .items {
        display: none;
        gap: 30px;
    }
}





h1 {
    font-size: 42px !important;
}

@media (max-width: 800px) {
    h1 {
        font-size: 30px !important;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 23px !important;
    }
}



div:has(.about-content) {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}



/*products-section*/

.products {
    width: 100%;
    scroll-margin-top: 90px;
}

#products {
    margin: 90px auto 90px auto;
}

.products-text {
    /* background-image: url("../images/products-back.png"); */
    background-position: center;
    background-repeat: no-repeat;
}

.products-text h1 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
 
    text-transform: uppercase;
}

.products-content {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 275px)); /* Slightly wider minmax */
    justify-content: center; /* Ensures centering */
    gap: 40px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1300px; /* Optimal max-width */
    width: 100%;
    box-sizing: border-box;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
        column-gap: 50px;
        padding: 25px;
    }
}

/* Small tablets */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(230px, 250px));
        column-gap: 400px;
        padding: 20px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .cards {
        grid-template-columns: minmax(200px, 300px);
        column-gap: 20px;
        padding: 15px;
    }
    
    .card {
        width: 100%;
        max-width: 100%; /* Ensures full width within constraints */
    }
}


.cards .col {
    width: 288px;
    display: flex;
    flex-direction: column;
}

.cards .card {
    border-radius: 15px;
    background: #5f5e64;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%; /* Kartalar balandligini tenglashtirish */
}

.cards .card-header {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    object-fit: contain;
    box-shadow: 1px -6px 21px 5px rgba(34, 60, 80, 0.2);
}

.card-header img{
    width: 100%;
    height: 100%;
}

.cards .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Tugma pastda qolishi uchun */
    flex-grow: 1; /* Kontentni to‘ldirish */
}

.card-body h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 24.8px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-body p {
    font-size: 12px;
    font-weight: 300;
    line-height: 20px;
    color: white;
    margin-bottom: 23px;
}

.card-body button {
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    color: black;
    align-self: center;
    margin-top: auto; /* Tugmani pastga tushirish */
}

.card-body button:hover {
    color: white;
}

.more-button{
    display: block; 
    width: fit-content;
    margin: 20px auto; 
    padding: 12px 24px; 
    font-size: 16px; 
    font-weight: 600; 
    background-color: var(--color-primary);
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer; 
    transition: 0.3s ease;

}

.more-button:hover {
    color:  white; 

}


/* gallery text */

.gallery {
    width: 100%;
    scroll-margin-top: 110px;
}

#gallery {
    margin-bottom: 140px;
}

.gallery-text {
    /* background-image: url("../images/gallery-back.png"); */
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-text h1 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    padding: 42px 230px;
    text-transform: uppercase;
}

.gallery-content {
    width: 95%;
    color: white;
    margin: 0 auto 40px auto;
    padding: 30px 0;
}

.gallery-content img {
    width: 255px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    outline: none;
    border: none;
    background: black;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 390px) {
   

    .gallery-content img{
        width: 190px;
    }


}

#gallery .slick-slide {
    margin:  10px;
}

#gallery .slick-list {
    margin: -10px;
}

/*documents section*/

.document-back {
    width: 100%;
    position: relative;
}

.documents {
    width: 100%;
    margin-top: 120px;
    margin-bottom: 220px;
    scroll-margin-top: 100px;
}

img.back2 {
    position: absolute;
    bottom: -120px;
    right: 0px;
}

.documents-text {
    /* background-image: url("../images/documents-back.png"); */
    background-position: center;
    background-repeat: no-repeat;
}

.documents-text h1 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    padding: 42px 230px;
    text-transform: uppercase;
}

.documents-items {
    /* width: 70%; */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 19px;
    margin: 0 auto;
    position: relative;
    z-index: 999;
}

.documents-items a {
    font-family: Unbounded;
    font-size: 14px;
    font-weight: 400;
    line-height: 17.36px;
    letter-spacing: 0.1em;
    text-align: center;
    color: white;
}

.documents-items .item {
    width: 320px;
}

.documents-items .item > img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 4px solid gray;
}

.documents-items .item .button {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: 16px;
}


/* news section */
.news {
    width: 100%;
    margin-top: 200px;
    margin-bottom: 200px;
    scroll-margin-top: 200px;
}

.news-text {
    /* background-image: url("../images/news-back.png"); */
    background-position: center;
    background-repeat: no-repeat;
}

.news-text h1 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    padding: 42px 230px;
    text-transform: uppercase;
}

.card-description {
    font-size: 14px;
    margin-bottom: 16px;
    color: white;
}

.card-news {
    width: 288px;
    display: flex;
    flex-direction: column;
}

.news-header {
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 1px -6px 21px 5px rgba(34, 60, 80, 0.2);
}

.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-description768 {
    display: none;
    font-size: 13px;
    margin-bottom: 5px;
    color: white;
}

@media (max-width: 800px) {
    .news-text h1 {
        font-size: 22px;
        padding: 24px 15px;
    }

    .card-description768 {
        display: block;
    }

    .card-description {
        display: none;
    }
}

.news-content {
    width: 95%;
    margin: 0 auto;
}

.card-news {
    background: #5f5e64;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    width: auto;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    object-fit: cover;
    box-shadow: 1px -6px 21px 5px rgba(34, 60, 80, 0.2);
}

.card-news .card-content {
    padding: 10px
}

.badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 16px;
}

.badge {
    background-color: #ffffff;
    padding: 2px 12px;
    border-radius: 5px;
    font-size: 12px;
}

.badge.blue {
    color: #007bff;
}

.badge.green {
    color: #28a745;
}

.card-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

.news_btn {
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    color: black;
    align-self: center;
}

.success-alert {
    display: none;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    color: black;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001; 
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-alert button {
    background-color: black;
    color: var(--color-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}


/*slider news*/
.slider {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.card-news {
    margin: 0 15px; /* Add some space between cards */
}

/* Ensure the slide container doesn't show partial slides */
.slick-list {
    overflow: hidden;
}

/*slider news*/


.card-des-item {
     height: 120px;
    /* display: grid; */
    /* grid-auto-rows: 90px 31px; */
}

.card-time {
    text-align: end;
    font-size: 12px;
    color: #d9d9d9;
}


/* contact us section */

.contact-back {
    width: 100%;
    position: relative;

}


.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #5f5e64;
    padding: 30px 0;
    /*border-radius: 10px;*/
    /*max-width: 95%;*/
    margin: 100px auto 45px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.decorative-img {
    width: 400px;
    height: 400px;
    position: absolute;
    bottom: -100px;
    left: 0;
    z-index: -1;
}

.contact-container h2 {
    font-family: Unbounded;
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 600;
    line-height: 39.68px;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 20px;
}

.contact-container > div:first-child {
    width: 95%;
}

.contact-container > div:first-child div:first-child {
    /* background-image: url('../images/contact-us-back.png'); */
    background-position: center;
    background-size: 330px;
    background-repeat: no-repeat;
    padding: 8px 22px;
}


.contact-info {
    width: 95%;
    display: flex;
    justify-content: space-between;
    margin: 12px auto 0 auto;
}

.gap-2 {
    width: 45%;
    display: flex;
    flex-direction: column;
    column-gap: 15px;
}

.gap-2 div {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.align-items-end {
    align-items: flex-end;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 7px 0;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
}

.address-modal {
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    color: black;
    align-self: center;
    margin-top: 10px;
}

.contact-info p:hover {
    cursor: pointer;
    color: var(--color-primary);
}

.contact-info div .address-icon {
    width: 20px;
    margin-right: 10px;
}

.social-logo-the {
    margin-left: 10px;
}

.map-container {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/*footer section */
footer {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-right: 10px;
}

.footer-items {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    flex-wrap: wrap;
    row-gap: 15px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin: 0 15px;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 300;
    text-transform: capitalize;
}

.gap-2 a {
    font-weight: 300;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.gap-2 a:hover {
    color: #f9e400;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-social img {
    margin-right: 8px;
}


/*scroll up */
#scrollUpBtn {
    position: fixed; /* Keeps the button in place as you scroll */
    bottom: 40px;
    right: 40px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #000000;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
    opacity: 0;
    z-index: 99;
}

#scrollUpBtn:hover {
    background-color: #d4bf00; /* Slightly darker shade for hover */
}

#scrollUpBtn.show {
    opacity: 1;
}

/*@media only screen and (max-width: 2000px) and (min-width: 1024px)  {*/
/*    .slick-track {*/
/*        width: 100%!important;*/
/*        display: flex!important;*/
/*        justify-content: center!important;*/
/*    }*/
/*}*/

/* Media Queries */


@media (max-width: 768px) {

    .card-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
        object-fit: cover;
        border-radius: 12px;
    }
    nav > div.content-nav {
        flex-direction: row;
        gap: 20px;
    }

   
    .products-content,  .gallery-content.slider {
        flex-direction: column;
        justify-content: center;
    }

    /*.products-content .card, .documents-items .item, .gallery-content img, .news-content .card-news {*/
    /*    max-width: 100%;*/
    /*}*/
    .decorative-img {
        width: 100px;
        height: 100px;
        bottom: -70px;
    }

    img.back2 {
        width: 300px;
        bottom: -140px;
    }
}



@media (max-width: 480px) {


    div:has(.about-content) {
        width: 95%;
        margin: 0 auto;
    }


/* 
    .cards {
        width: 75%;
    } */

    #products, #gallery, .documents, #news {
        margin-top: 50px;
        margin-bottom: 30px;
    }

    #gallery {
        padding: 50px 5px 30px 5px;
    }

    .about-content {
        width: 410px;
        height: 500px;
        padding: 15px;
        gap: 0;
    }

    .about-content p {
        font-size: 14px;
        font-weight: 400;
        line-height: 27px;
        letter-spacing: 0em;
    }

    .documents-items {
        width: 95%;
        display: flex;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
        gap: 30px;
        margin: 0 auto;
        padding: 10px;
    }

    .news-content {
        width: 92% !important;
        margin: 0 auto;
        display: block;
          /* !important; */
        justify-content: center;
    }

    .card-body h2 {
        font-size: 18px;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        padding: 0;
        padding-bottom: 10px;
        margin: 50px 15px;
    }

    .contact-info {
        flex-direction: column;
    }

    .gap-2 {
        width: 100%;
    }

    .align-items-end {
        align-items: flex-start;
    }

    .footer-items {
        justify-content: center;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        column-gap: 20px;
        padding-top: 20px;
        border-top: 1px solid #333;
    }

    .about-text h1,.new-added-text h1, .products-text h1, .gallery-text h1, .documents-text h1, .news-text h1 {
        /* color: white; */
        font-weight: 600;
        font-size: 24px;
        line-height: 39px;
        text-align: center;
        padding: 25px 10px;
        text-transform: uppercase;
    }

    .news {
        width: 100%;
        margin-top: 70px;
    }
}

@media (max-width: 320px) {
    .new-added-text{
        margin-top: 240px;
    }
 
}


::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #c7bc3a;
}


.new-added {
    width: 80%;
    margin: 0 auto;
    scroll-margin-top: 200px;
}

.new-added .new-added-text h1 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 30px;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
    text-transform: uppercase;
}


.new-added .grid-container {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.new-added .feature-card {
    /* max-width: 90%; */
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.new-added .feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(206, 168, 0, 0.2);
    border-color: #d1d5db;
}

.new-added .icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.new-added .feature-card:hover .icon-container {
    transform: scale(1.1);
}

.new-added .icon {
    width: 3rem;
    height: 3rem;
}


.new-added .feature-title {
    padding: 0 40px;
    font-weight: 500;
    color: #1f2937;
    text-align: center;
}


/* Media queries for responsive design */
@media (min-width: 768px) {
    .new-added-text{
        margin-top: 200px;
    }
    .new-added .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .new-added .grid-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}




/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal_form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal_input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 16px;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 500px;
    text-align: center;
    position: relative;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-image {
    width: 50%;
    max-height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-description {
        font-size: 14px;
    }
}

