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

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.carousel-item {
    flex: 0 0 auto;
    width: 230px;
    height: 150px;
    margin: 10px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}


.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms cubic-bezier(.2, .9, .3, 1), transform 600ms cubic-bezier(.2, .9, .3, 1);
    transition-delay: var(--delay, 0ms);
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


@media (prefers-reduced-motion: reduce) {
    .fade-up {
        transition: 0.5s;
        transform: none;
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners {
    margin-bottom: 100px;
}

.partners .partners_h {
    text-align: center;
    margin-bottom: 70px;
    text-decoration: underline dotted rgb(0, 0, 0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #222;
    color: white;
    flex-wrap: wrap;
}

header {
    align-items: center;
    background: #0d2a60;
    position: relative;
}

.curtain {
    position: relative;
    height: 120px;
    background: linear-gradient(#3254b1, #90afdf);
    z-index: 1;
    animation: curtainWave 5s infinite ease-in-out;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

@keyframes curtainWave {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    }

    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    }
}

nav h1 span {
    background: linear-gradient(135deg, #1e3a8a, #0346ab);
    padding: 6px;
    border-radius: 10px;
    margin-left: 100px;
}


.lang-switcher-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.lang-switcher {
    position: relative;
    font-family: inherit;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.lang-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 8px 0;
    min-width: 160px;
    z-index: 50;
}

.lang-option {
    padding: 8px 12px;
    cursor: pointer;
}

.lang-option:hover {
    background: #f2f6ff;
}

.lang-flag {
    font-size: 1rem;
}

.lang-code {
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    gap: 1rem;

}

.nav-links li a {
    margin: 0px 30px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    transform: translateY(-3px);
}

.nav-links a::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #073fae;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleY(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

#language-select {
    padding: 0px;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(12, 12, 12, 0.6)),
        url('./images/1.png') no-repeat center center;
    background-size: cover;
}

.hero .first {
    display: none;
}

.hero .info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .info p {
    font-size: 1.2rem;

}

.about {
    padding: 4rem 2rem;
}

.about h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.about {
    padding: 60px 10%;
    background: #f9f9f9;
    text-align: center;
}

.about h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.text-block h2 {
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 15px;
}

.text-block span {
    color: blue;
}

footer iframe {
    filter: grayscale(70%);
}

.text-block p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.sabablar {
    margin-top: 40px;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    width: 100%;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    animation: flip 6s infinite;
}

@keyframes flip {

    0%,
    45% {
        transform: rotateY(0);
    }

    55%,
    100% {
        transform: rotateY(180deg);
    }
}

.card:nth-child(1) .card-inner {
    animation-delay: 0s;
}

.card:nth-child(2) .card-inner {
    animation-delay: 1.5s;
}

.card:nth-child(3) .card-inner {
    animation-delay: 3s;
}

.card:nth-child(4) .card-inner {
    animation-delay: 4.5s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 5px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.card-front i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: blue;
}

.card-back {
    background-color: white;
    color: #0346ab;
    transform: rotateY(180deg);
}

.reason-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.reason-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.reason-box i {
    font-size: 2rem;
    color: blue;
    margin-bottom: 15px;
}

.reason-box h3 {
    font-size: 1.1rem;
    color: #333;
}

.footer-section img {
    width: 100px;
    border-radius: 150%;
    text-align: center;
}

.section-work {
    padding: 50px 20px;
    text-align: center;
    background: white;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: black;
}

.work-circles {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.circle {
    flex: 1 1 300px;
    max-width: 320px;
    text-align: center;

}

.circle img {
    width: 300px;
    padding: 10px 20px;
    height: 290px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.circle img:hover {
    transform: scale(1.05);
}

.arrow {
    font-size: 2rem;
    color: black;
    margin: 10px 0;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: blue;
}

.info-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

footer {
    background-color: #1e1e1e;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
    padding: 20px 0;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
    position: relative;
}

.footer-section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: #444;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 10px;
    color: #2a1cef;
}

.footer-section p,
.footer-section ul,
.footer-section li,
.footer-section a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #3619c9;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

@media (max-width: 800px) {

    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }

    nav h1 span {
        margin-left: 10px;
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #222;
        text-align: center;
        margin-left: 0;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li a {
        font-size: 14px;
        margin: 8px 0;
    }

    .hero {
        min-height: 70vh;
        padding: 1rem;
    }

    .hero .info h2 {
        font-size: 20px;
    }

    .hero .info p {
        font-size: 14px;
    }

    .about {
        padding: 30px 10px;
        height: auto;
    }

    .about h1 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .container {
        flex-direction: column;
        gap: 15px;
    }

    .content {
        flex: 1 1 100%;
        padding: 5px;
        font-size: 5px;
    }

    .section-work {
        padding: 40px 5%;
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 22px;
    }

    .circle {
        width: 200px;
        height: auto;
        padding: 15px;
        margin: 10px auto;
    }

    .circle h3 {
        font-size: 16px;
    }

    .circle p {
        font-size: 13px;
    }

    .work-circles img {
        width: 100px;
    }

    footer {
        padding: 20px 10px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
        padding: 0;
    }

    .footer-section:not(:last-child)::after {
        display: none;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p,
    .footer-section li,
    .footer-section a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .sabablar .reasons {
        grid-template-columns: 1fr;
    }

    .card {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .about .row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .about .content {
        margin: 0px 50px;
        text-align: center;
    }

    .about .text-block h2 {
        font-size: 1.5rem;
    }

    .about .text-block p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .sabablar .reasons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card {
        height: 100px;
        font-size: 10px;
    }

    .card-inner {
        animation: flip 6s infinite;
    }

    @keyframes flip {

        0%,
        45% {
            transform: rotateY(0);
        }

        55%,
        100% {
            transform: rotateY(180deg);
        }
    }

    .card:nth-child(1) .card-inner {
        animation-delay: 0s;
    }

    .card:nth-child(2) .card-inner {
        animation-delay: 1.5s;
    }

    .card:nth-child(3) .card-inner {
        animation-delay: 3s;
    }

    .card:nth-child(4) .card-inner {
        animation-delay: 4.5s;
    }


    .work-circles {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .circle {
        width: 90%;
        max-width: 300px;
    }

    .circle img {
        width: 100%;
        height: 240px;
    }

    .info-box h1 {
        font-size: 1.25rem;
    }

    .info-box p {
        font-size: 0.95rem;
    }
}

@media (min-width: 700px) and (max-width: 1100px) {
    nav {
        padding: 0.8rem 1rem;
    }


    nav h1 {
        font-size: 1.05rem;
        margin-left: 8px;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        margin: 0 14px;
        font-size: 16px;
    }

    .lang-switcher-container {
        padding-right: 0.6rem;
    }
}


@media (min-width: 900px) and (max-width: 1000px) {
    nav {
        padding: 0.9rem 1.2rem;
    }

    .nav-links li a {
        margin: 0 12px;
    }
}

@media (min-width: 1000px) and (max-width: 1200px) {
    nav {
        padding: 1rem 1.4rem;
    }

    .nav-links {
        gap: 1rem;
    }
}


@media (max-width: 768px) {
    nav {
        padding: 0.6rem 0.8rem;
        align-items: center;
    }

    nav h1 {
        margin: 0;
        flex: 1 1 auto;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 8px;
    }


    .lang-switcher-container {
        position: absolute;
        right: 56px;
        top: 8px;
        z-index: 10005;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 13px;
    }

    .menu-toggle {
        position: absolute;
        right: 8px;
        top: 6px;
        z-index: 10006;
    }
}


@media (max-width: 480px) {

    .about h1,
    .section-title {
        font-size: 1.5rem;
    }

    .about .text-block h2 {
        font-size: 1.25rem;
    }

    .info-box h1 {
        font-size: 1.1rem;
    }

    .info-box p {
        font-size: 0.9rem;
    }
}