@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu+Condensed&display=swap');

:root {
    /*========== Colors ==========*/
    --title-color: #ffffff;
    --text-color: hsl(235, 20%, 57%);
    --shape-gradient: linear-gradient(90deg, hsl(300, 76%, 60%), hsl(57, 81%, 60%));
    --container-color: hsla(0, 0%, 0%, 0.822);
    /*========== Font and typography ==========*/
    --body-font: "Poppins", sans-serif;
    --biggest-font-size: 2.25rem;
    --normal-font-size: 1.25rem;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    background-size: cover;
    font-family: var(--body-font);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Background зураг Эхлэл */
.background-clip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Видео хэмжээ дэлгэцтэй тохирох */
    z-index: -1;
}

@media (min-aspect-ratio:16/9) {
    .background-clip {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio:16/9) {
    .background-clip {
        width: auto;
        height: 100%;
    }
}


/* Зэвсэгт хүчний лого болон монгол бичиг */
.logoHeder {
    position: absolute;
    display: flex;
    width: 100px;
    height: 700px;
    top: 15%;
    left: 2.5%;
    z-index: 10;
}

.logoHeder h3 {
    color: white;
    font-size: 25px;
    border-bottom: 2px solid white;
}

.logoZH {
    position: absolute;
    padding: 2px;
    width: 130px;
    height: 130px;
    top: 2%;
    left: 3%;
    z-index: 10;
}

.logoZH .zh {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navbar Гарчигийн хэсэг */
header {
    width: 100%;
    max-width: 800px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0057b3, #003d82);
    color: #fff;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 8%;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 25px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    font-weight: 700;
    padding: 10px 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: #fbff0a;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.burger i {
    font-size: 1.5rem;
    color: #fff;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        width: 100%;
        height: 60px;
        border-radius: 0;
        left: 0;
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .navigation {
        padding: 8px 20px;
        justify-content: center;
        position: relative;
    }
    
    .nav-links {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: static;
        background: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        gap: 0;
        backdrop-filter: none;
    }
    
    .nav-links li a {
        font-size: 18px;
        padding: 0;
        text-align: left;
        width: auto;
        display: block;
        border-radius: 0;
        background: none;
        transition: none;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.5px;
    }
    
    .nav-links li a:hover {
        background: none;
        transform: translateY(-50%);
    }
    

    .burger {
        display: block;
        padding: 8px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .burger:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    header {
        width: 100%;
        height: 55px;
        border-radius: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .navigation {
        padding: 6px 15px;
        justify-content: center;
        position: relative;
    }
    
    .nav-links li a {
        font-size: 16px;
        left: 15px;
        letter-spacing: 0.3px;
    }
    
    
    .burger {
        padding: 6px;
    }
    
    .burger i {
        font-size: 1.4rem;
    }
}

/* Loader */
.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 45%;
    left: 50%;
    z-index: 1001;

}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* end Loader */

/* Card  */

.card {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    background: var(--body-gradient);
    padding-block: 10px;
    bottom: 60px;
    margin-top: 80px;
}

.card__container {
    margin-inline: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2rem;
    max-width: 1200px;
    width: 100%;
    /* border: 1px solid #fff; */
}

.card__article {
    position: relative;
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 10px 10px 10px hsl(0, 0%, 0%);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card__article:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 20px hsl(0, 0%, 0%);
}

.card__img {
    width: 250px;
    height: 250px;
    margin-bottom: 1rem;
    animation: float-img 2.5s ease-in-out infinite;
    object-fit: contain;
    max-width: 100%;
}

.card__title {
    color: var(--title-color);
    font-size: 30px;
    line-height: 100%;
    margin-bottom: 45px;
    font-weight: 600;
}

.card__description {
    font-size: var(--normal-font-size);
}

.card__data {
    position: relative;
    z-index: 10;
}

.card__shapes {
    display: grid;
    justify-items: center;
    row-gap: 2.5rem;
    position: absolute;
    inset: 0;
    top: -3.5rem;
    z-index: 1;
}

.card__shape {
    display: block;
    width: 260px;
    height: 40px;
    background: var(--shape-gradient);
    border-radius: 4rem;
    transform: rotate(-24deg);
    opacity: 0;
}

.card__shape:nth-child(1) {
    animation-delay: 0.1s;
}

.card__shape:nth-child(2) {
    animation-delay: 0.2s;
}

.card__shape:nth-child(3) {
    animation-delay: 0.3s;
}

.card__shape:nth-child(4) {
    animation-delay: 0.4s;
}

.card__shape:nth-child(5) {
    animation-delay: 0.5s;
}

.card__shape:nth-child(6) {
    animation-delay: 0.6s;
}

.card__shape:nth-child(7) {
    animation-delay: 0.7s;
}

.card__shape:nth-child(8) {
    animation-delay: 0.8s;
}


/* Animation img */

@keyframes float-img {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.75rem);
    }

    100% {
        transform: translateY(0);
    }
}


/* Animation shape */

.card__article:hover .card__shape {
    animation-name: shape-animate;
    animation-duration: 0.8s;
    animation-iteration-count: 2;
    /* infinite */
}

@keyframes shape-animate {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0.1;
    }

    40% {
        opacity: 0.3;
    }

    60% {
        opacity: 0.7;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* Button*/

.but {
    position: relative;
    height: 50px;
    width: 180px;
    background: #693fa0;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-family: "Roboto Condensed", sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.but:hover {
    background: #5a3590;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.but:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.but .btn {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-family: "Roboto Condensed", sans-serif;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Байгууллага Эхлэл */
.container {
    position: fixed;
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    bottom: 1%;
    left: 17%;

}


.links {
    position: absolute;
    top: 108%;
    left: 46%;
    color: #ffffff;
    font-weight: bold;
    font-family: "Roboto", sans-serif;
}

.links i {
    margin-right: 8px;
}

.swiper-wrapper {
    transition-timing-function: linear;
}

.swiper-slide a {
    width: 160px;
    display: grid;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.swiper-slide span {
    position: relative;
    color: #fff;
    margin-top: 15px;
    font-family: "Roboto", sans-serif;
}

.swiper-slide {
    display: flex;
    padding: 0 10px;
    width: auto;
    perspective: 70px;
}

.swiper-slide a img {
    position: relative;
    left: 22%;
    width: 80px;
    border-radius: 50%;
}

/*  Байгууллага END */



/* Footer Эхлэл */
.footer {
    position: absolute;
    width: 100%;
    height: 35px;
    z-index: 1002;
    padding: 3px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #007bff96, #0057b371);
    /* border-top-right-radius: 20px; */
    /* border-top-left-radius: 20px; */
    bottom: 0;
    color: #ffffffaf;
}

.footer .footer-content {
    text-align: center;
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
}

/* Footer END */

/* Mobile Responsive Styles */

/* Small devices (phones, 320px and up) */
@media screen and (max-width: 480px) {
    .card {
        margin-top: 60px;
        padding-block: 5px;
    }
    
    .card__container {
        margin-inline: 0.5rem;
        row-gap: 1.5rem;
    }
    
    .card__article {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .card__img {
        width: 180px;
        height: 180px;
    }

    .card__title {
        font-size: 20px;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .but {
        height: 45px;
        width: 160px;
        font-size: 16px;
    }
    
    .but .btn {
        font-size: 16px;
    }
    
    .logoZH {
        display: none;
    }
    
    .logoHeder {
        display: none;
    }
    
    .footer {
        height: 40px;
        padding: 5px;
    }
    
    .footer .footer-content {
        font-size: 10px;
        text-align: center;
        width: 100%;
    }
}


/* Medium devices (tablets, 481px and up) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .card {
        margin-top: 70px;
    }
    
    .card__container {
        margin-inline: 1rem;
        row-gap: 2rem;
    }
    
    .card__article {
        padding: 2rem;
    }

    .card__img {
        width: 220px;
        height: 220px;
    }

    .card__title {
        font-size: 24px;
        margin-bottom: 35px;
    }
    
    .but {
        height: 48px;
        width: 170px;
        font-size: 17px;
    }
    
    .logoZH {
        display: none;
    }
    
    .logoHeder {
        display: none;
    }
}

/* Large devices (desktops, 769px and up) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .card__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
        margin-inline: 2rem;
    }
    
    .card__article {
        padding: 2.5rem;
    }

    .card__img {
        width: 240px;
        height: 240px;
    }

    .card__title {
        font-size: 26px;
    }
    
    .logoZH {
        display: none;
    }
    
    .logoHeder {
        display: none;
    }
}

/* Extra large devices (large desktops, 1025px and up) */
@media screen and (min-width: 1025px) {
    .card__container {
        grid-template-columns: repeat(2, 370px);
        column-gap: 6rem;
        margin-inline: 2rem;
    }
    
    .logoHeder {
        display: flex;
    }
}

@media (min-width: 340px) and (max-width: 419px) {
    /* Logo header */
    .logoHeder {
        display: none;
    }

    .logoHeder h3 {
        color: white;
        font-size: 25px;
        border-bottom: 2px solid white;
    }

    .logoZH {
        display: none;
    }

    .logoZH .zh {
        display: none;
    }

    /* Logo header END */

    /* Card Star */
    .card {
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
        background: var(--body-gradient);
        padding-block: 10px;
        top: 160px;
    }
    .card__container {
        grid-template-columns: 328px;
        margin-bottom: 50px;
    }

    /* Card END */

    /* Байгууллага Эхлэл */
    .container {
        position: absolute;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        height: 130px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
        top: 200%;
        left: 0;
    }


    .links {
        position: absolute;
        top: 190%;
        left: 34%;
        color: #ffffff;
        align-items: center;
        text-align: center;
        font-weight: bold;
        font-family: "Roboto", sans-serif;
    }

    .links i {
        margin-right: 8px;
    }

    .swiper-wrapper {
        transition-timing-function: linear;
    }

    .swiper-slide a {
        width: 90px;
        display: grid;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        text-align: center;
        margin-left: 50px;
    }

    .swiper-slide span {
        position: relative;
        color: #fff;
        margin-top: 15px;
        text-align: center;
        font-family: "Roboto", sans-serif;
    }

    .swiper-slide {
        display: flex;
        padding: 0 10px;
        width: auto;
        perspective: 70px;
        margin-left: 50px;
    }

    .swiper-slide a img {
        position: relative;
        left: 22%;
        width: 80px;
        border-radius: 50%;
    }

    /* Байгууллага END */

    /* Footer Эхлэл */
    .footer {
        position: absolute;
        width: 100%;
        height: 35px;
        z-index: 1002;
        padding: 3px;
        display: flex;
        align-items: center;
        background: linear-gradient(90deg, #007bff96, #0057b371);
        /* border-top-right-radius: 20px; */
        border-top-left-radius: 20px;
        color: #ffffffaf;
        top: 114%;
    }

    .footer .footer-content {
        text-align: center;
        width: 100%;
        font-size: 11px;
    }

    /* Footer END */
}

@media (min-width: 420px) and (max-width: 648px){
    /* Logo header */
    .logoHeder {
        display: none;
    }
    .header{
        display: none;
    }

    .logoHeder h3 {
        color: white;
        font-size: 25px;
        border-bottom: 2px solid white;
    }

    .logoZH {
        display: none;
    }

    .logoZH .zh {
        display: none;
    }

    /* Logo header END */

    /* Card Star */
    .card {
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
        background: var(--body-gradient);
        padding-block: 10px;
        top: 180px;
    }
    .card__container {
        grid-template-columns: 328px;
        margin-bottom: 50px;
    }
    /* Card END */

    /* Байгууллага Эхлэл */
    .container {
        position: absolute;
        max-width: 1200px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        height: 130px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
        top: 185%;
        left: 0;
    }


    .links {
        position: absolute;
        top: 180%;
        left: 37%;
        color: #ffffff;
        font-weight: bold;
        font-family: "Roboto", sans-serif;
    }

    .links i {
        margin-right: 8px;
    }

    .swiper-wrapper {
        transition-timing-function: linear;
    }

    .swiper-slide a {
        width: 200px;
        display: grid;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        text-align: center;
    }

    .swiper-slide span {
        position: relative;
        color: #fff;
        margin-top: 15px;
        font-family: "Roboto", sans-serif;
        font-size: 12px;
    }

    .swiper-slide {
        display: flex;
        padding: 0 10px;
        width: auto;
        perspective: 70px;
    }

    .swiper-slide a img {
        position: relative;
        left: 22%;
        width: 60px;
        border-radius: 50%;
    }

    /* Байгууллага END */

    /* Footer Эхлэл */
    .footer {
        position: absolute;
        width: 100%;
        height: 35px;
        z-index: 1002;
        padding: 3px;
        display: flex;
        align-items: center;
        background: linear-gradient(90deg, #007bff96, #0057b371);
        /* border-top-right-radius: 20px; */
        /* border-top-left-radius: 20px; */
        color: #ffffffaf;
        top: 114%;
    }

    .footer .footer-content {
        text-align: center;
        width: 100%;
        font-size: 13px;
    }

    /* Footer END */
}

@media (min-width: 650px) and (max-width: 1024px) {

    /* Logo header */
    .logoHeder {
        display: none;
    }

    .logoHeder h3 {
        color: white;
        font-size: 25px;
        border-bottom: 2px solid white;
    }

    .logoZH {
        display: none;
    }

    .logoZH .zh {
        display: none;
    }
    .header{
        display: none;
    }

    /* Logo header END */

    /* Card Star */
    .card {
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
        background: var(--body-gradient);
        padding-block: 10px;
        /* top: 200px; */
    }
    .card__container {
        grid-template-columns: repeat(2, 328px);
        column-gap: 2rem;
    }
    /* Card END */

    /* Байгууллага Эхлэл */
    .container {
        position: absolute;
        max-width: 1200px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        height: 130px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
        top: 185%;
        left: 0;
    }


    .links {
        position: absolute;
        top: 179%;
        left: 37%;
        color: #ffffff;
        font-weight: bold;
        font-family: "Roboto", sans-serif;
    }

    .links i {
        margin-right: 8px;
    }

    .swiper-wrapper {
        transition-timing-function: linear;
    }

    .swiper-slide a {
        width: 200px;
        display: grid;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        text-align: center;
    }

    .swiper-slide span {
        position: relative;
        color: #fff;
        margin-top: 15px;
        font-family: "Roboto", sans-serif;
        font-size: 12px;
    }

    .swiper-slide {
        display: flex;
        padding: 0 10px;
        width: auto;
        perspective: 70px;
    }

    .swiper-slide a img {
        position: relative;
        left: 22%;
        width: 60px;
        border-radius: 50%;
    }

    /* Байгууллага END */

    /* Footer Эхлэл */
    .footer {
        position: absolute;
        width: 100%;
        height: 35px;
        z-index: 1002;
        padding: 3px;
        display: flex;
        align-items: center;
        background: linear-gradient(90deg, #007bff96, #0057b371);
        /* border-top-right-radius: 20px; */
        /* border-top-left-radius: 20px; */
        color: #ffffffaf;
        top: 116%;
    }

    .footer .footer-content {
        text-align: center;
        width: 100%;
    }

    /* Footer END */
}

/* ******************************************* */

@media (min-width: 1025px) and (max-width: 1395px) {
    .logoHeder {
        display: none;
    }
    
    .logoZH {
        display: none;
    }

    /* Байгууллага Эхлэл */
    .container {
        position: fixed;
        max-width: 1050px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        height: 130px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
        bottom: 1%;
        left: 12%;


    }


    .links {
        position: absolute;
        top: 73%;
        left: 46%;
        color: #ffffff;
        font-weight: bold;
        font-family: "Roboto", sans-serif;
    }

    .links i {
        margin-right: 8px;
    }

    .swiper-wrapper {
        transition-timing-function: linear;
    }

    .swiper-slide a {
        width: 160px;
        display: grid;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        text-align: center;
    }

    .swiper-slide span {
        position: relative;
        color: #fff;
        margin-top: 15px;
        font-family: "Roboto", sans-serif;
    }

    .swiper-slide {
        display: flex;
        padding: 0 10px;
        width: auto;
        perspective: 70px;
    }

    .swiper-slide a img {
        position: relative;
        left: 22%;
        width: 80px;
        border-radius: 50%;
    }

    /*  Байгууллага END */
}
