/* ====================================================================
   🎯 1-QISM: UMUMIY SOZLAMALAR VA STRUKTURA
   ==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    scroll-margin-top: 100px;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

.container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menyu qismi (Glassmorphism effekti) */
.header {
    background-color: rgba(13, 35, 58, 0.4); 
    backdrop-filter: blur(3px); 
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: 0.3s;
}

.nav a:hover {
    color: #00bcd4; 
}


/* ====================================================================
   🎯 2-QISM: BOSH SAHIFA BANNERI (HERO SECTION) VA ANIMATSIYA
   ==================================================================== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden; /* Animatsiya chekkadan chiqib ketmasligi uchun majburiy */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    margin-bottom: 50px;
}

/* 🔥 TINIQLIKNI SAQLAGAN HOLDA UZOQDAN YaQINLAShIB ChIQISh EFFEKTI (ZOOM-IN) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Rasm qoraytirish darajasi original tiniqlikda tiklandi: */
    /* 🔥 YANGI TO'G'RI QATOR (Papka va nomidagi katta harf JPG hisobga olindi): */
background: linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.20)), 
            url('hero.JPG') no-repeat center center/cover;

    z-index: 1;
    /* 🎬 Sahifa ochilganda 12 soniya davomida mayin va silliq yaqinlashadi: */
    /*animation: zoomInHeroAnimation 20s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;*/
}

/* Matnlar rasm ostida qolib ketmasligi uchun uning ustiga chiqarildi */
.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes zoomInHeroAnimation {
    0% {
        transform: scale(1.12); /* Boshida rasm 12% uzoqroq/kattaroq turadi */
    }
    100% {
        transform: scale(1);    /* Oxirida silliq o'z joyiga qaytadi */
    }
}
/* ====================================================================
   🎯 MATNLARNING UZOQDAN VA TEZKOR YUGURIB KELISH ANIMATSIYALARI
   ==================================================================== */
.hero-content h1 {
    color: #fff;
    font-size: 45px;
    margin-bottom: 20px;
    opacity: 0;
    /* 🔥 Vaqti 0.8s ga tushirildi (Tezlashdi) */
    animation: slideFromLeft 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    animation-delay: 0.5s; 
}

.hero-content p {
    color: #ccc;
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideFromRight 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    animation-delay: 0.6s; 
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00bcd4;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.1s;
    opacity: 0;
    animation: slideFromRight 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    animation-delay: 0.6s; 
}

.btn:hover {
    background-color: #008ba3;
}

/* 🎬 1-ANIMATSIYA: Chapdan (Uzoq masofadan) markazga tezkor uchish */
@keyframes slideFromLeft {
    0% {
        transform: translateX(-350px); /* 🔥 Masofa 350px ga uzaytirildi (Uzoqdan keladi) */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 🎬 2-ANIMATSIYA: O'ngdan (Uzoq masofadan) markazga tezkor uchish */
@keyframes slideFromRight {
    0% {
        transform: translateX(350px); /* 🔥 Masofa 350px ga uzaytirildi */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.container-column {
    width: 85%;
    margin: 0 auto;
    text-align: center;
}

.container-column h2 {
    font-size: 32px;
    color: #0d233a;
    margin-bottom: 10px;
}

.line {
    width: 80px;
    height: 4px;
    background-color: #00bcd4;
    margin: 0 auto 30px auto;
    border-radius: 2px;
}


/* ====================================================================
   🎯 3-QISM: BOʻLIMLAR STILI VA KARTALAR DIZAYNI
   ==================================================================== */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.projects-section {
    padding: 80px 0;
    background-color: #f4f6f9;
}

.cards-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h3 {
    color: #0d233a;
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.news-section {
    padding: 80px 0;
    background-color: #f8fafc; 
}

.news-card {
    border-top: 4px solid #00bcd4; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-link {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
    transition: 0.2s;
}

.news-link:hover {
    color: #0d233a;
}

.news-card-style {
    background: #fff;
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #0d233a;
}

.card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}


/* ====================================================================
   🎯 4-QISM: DROPDOWN (PODMENU) VA SHAFFOFLIK SOZLAMALARI
   ==================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 25px; 
    margin-bottom: -25px;
}

.dropdown-btn {
    cursor: pointer;
    display: inline-block;
}

/* Podmenyu qutisi (Shaffof fon daxshat darajada oshirildi) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(13, 35, 58, 0.65) !important; 
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.3);
    border-radius: 6px;
    z-index: 1000;
    top: 100%; 
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden; 
    backdrop-filter: blur(8px) -webkit-backdrop-filter(8px); 
}

/* Podmenyu ichidagi havolalar */
.dropdown-content a {
    color: #ffffff !important;
    padding: 14px 20px !important; 
    text-decoration: none !important;
    display: block !important;
    font-size: 14px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; 
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.dropdown-content a:last-child {
    border-bottom: none !important;
}

/* 🔥 SICHQONCHA USTIGA KELGANDA 0.55 LIK SHAFFOF YASHIL RANG */
.dropdown-content a:hover {
    background-color: rgba(39, 174, 96, 0.55) !important; 
    color: white !important;
    padding-left: 26px !important; 
}

.dropdown:hover .dropdown-content {
    display: block !important;
}


/* ====================================================================
   🎯 5-QISM: SAYTNING SAYT PASTI (FOOTER)
   ==================================================================== */
.footer {
    background-color: #0d233a;
    color: #fff;
    padding: 60px 0 20px 0;
    margin-top: 40px;
}

.footer-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-info, .footer-contacts {
    flex: 1;
}

.footer h3 {
    font-size: 20px;
    color: #00bcd4;
    margin-bottom: 20px;
}

.footer p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a3654;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
}
/* ====================================================================
   🎯 AVTOMAT ALMAShADIGAN SLAYDER STILLARI (FADE EFFECT)
   ==================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    margin-bottom: 50px;
}

/* Har bitta rasm qatlami */
.hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 1;
    opacity: 0; /* Boshida rasmlar ko'rinmaydi */
    /* 🔥 Rasm almashganda 1.5 soniya davomida mayin erib o'tish silliqligi: */
    transition: opacity 1.5s ease-in-out; 
}

/* Faol turgan (ekrandagi) rasm */
.hero .slide.active {
    opacity: 1; /* Faqat shu rasm ko'rinadi */
    /* 🔥 Siz o'zingiz sozlagan uzoqdan 5 soniya davomida sekin yaqinlashish animatsiyasi: */
    animation: zoomInHeroAnimation 5s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
}

.hero-content {
    position: relative;
    z-index: 2; /* Matn va tugmalar rasmlarning mutlaqo ustida turadi */
}
/* Google Translate vidjetini menyuga moslash */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
}
/* Google tepasidagi ortiqcha panellarni yashirish */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}

/* Google'ning tepadagi barcha panellarini ekrandan butunlay haydash */
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-banner,
.goog-te-gadget-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    top: -9999px !important;
    left: -9999px !important;
    position: absolute !important;
}

/* Sayt sahifasini tepaga majburlab mixlash */
html, body {
    top: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
    position: static !important;
}
/* Google Tarjimon vidjetining tashqi ko'rinishini butunlay yangilash */
.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important; /* Dumaloq burchak */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Sichqoncha ustiga kelganda o'zgarishi */
.goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: #00d2ff !important; /* Sizdagi ko'k rangli knopkaga mos */
}

/* Ichidagi matn stillari */
.goog-te-gadget-simple span, 
.goog-te-gadget-simple a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: inherit !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* Pastga qaragan xunuk strelkani to'g'rilash */
.goog-te-gadget-simple span[style*="color: rgb(118, 118, 118)"] {
    color: #ffffff !important;
    margin-left: 5px !important;
}

/* Google so'zi va logotipini butunlay yashirish */
.goog-logo-link, 
.goog-te-gadget span[style*="white-space: nowrap"] {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}
/* Orqa fondagi barcha Google xunuk panellarini butunlay yo'q qilish */
.skiptranslate, 
.goog-te-banner-frame, 
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0px !important;
}

/* Bizning shaxsiy til almashtirgichimiz stillari */
.custom-lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-lang-switcher .lang-btn {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    padding: 2px 4px;
}

.custom-lang-switcher .lang-btn:hover {
    color: #00d2ff !important; /* Saytdagi ko'k rangli knopkaga mos */
}

.custom-lang-switcher .lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin: 0 4px;
}

/* 1. Umumiy kartalar joylashadigan setka (Har qatorda 3 tadan bo'lib joylashadi) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 2. Toshkent Invest uslubidagi yangilik kartasi */
.news-card-style {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important; /* Yengil chiroyli soya */
    border: 1px solid #eef2f5 !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Sichqoncha karta ustiga kelganda butun karta kattalashadi va ko'tariladi */
.news-card-style:hover {
    transform: translateY(-10px) scale(1.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}


/* 3. Karta ichidagi rasm bloki (Kattalashish effekti uchun) */
.card-img-wrapper {
    width: 100%;
    height: 220px; /* Rasmlar hamma kartada bir xil tekis turishi uchun */
    overflow: hidden;
    position: relative;
}

.news-card-style .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rasm cho'zilib ketmasdan, chiroyli kesiladi */
    transition: transform 0.5s ease !important;
}

/* Sichqoncha kelganda faqat rasm ichida chiroyli kattalashadi */
/* Sichqoncha karta ustiga kelganda atrofida ko'k chiziq chiqadi */
.news-card-style:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important; /* Soyani sal to'qroq qilamiz */
    border-color: #00d2ff !important; /* Atrofidagi o'sha chiroyli ko'k chiziq */
}


/* 4. Karta ichidagi matnlar qutisi */
.card-body {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

/* Sana yozuvi */
.news-date {
    font-size: 13px !important;
    color: #9ea8b6 !important;
    margin-bottom: 10px !important;
    display: block;
}

/* Yangilik sarlavhasi  */
.card-body h3 {
    font-size: 18px !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    /* Matn 2 qatordan oshsa, uchta nuqta qiladi */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Qisqa matn tafsiloti */
.card-body p {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* "Batafsil" havolasi */
.news-link {
    color: #00d2ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: auto; /* Doimo kartaning eng pastida tekis turadi */
    display: inline-block;
}
.hero .slide.active {
    animation: zoomInHeroAnimation 6s linear forwards !important;
}
/* 🌊 Animatsiyaga tayyorgarlik holati */
.fade-in-left {
    opacity: 0;
    transform: translateX(-100px); /* Chapdan kelish uchun */
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(100px);  /* O'ngdan kelish uchun */
    transition: opacity 1s ease, transform 1s ease;
}

/* 🔥 Animatsiya ishga tushgandagi yakuniy holat */
.fade-in-left.appear, .fade-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}
/* 🌊 Chapdan judayam sekin va silliq kiruvchi animatsiya */
@keyframes sekinChapdan {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 🌊 O'ngdan judayam sekin va silliq kiruvchi animatsiya */
@keyframes sekinOngdan {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dastlabki holatda kartochkalar ko'rinmay turadi */
.fast-fade-left, .fast-fade-right {
    opacity: 0;
}

/* 🚀 Skroll qilinganda ishga tushadigan qism (Vaqtni 1.5s qildik, judayam sekin chiqadi) */
.fast-fade-left.run {
    animation: sekinChapdan 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

.fast-fade-right.run {
    animation: sekinOngdan 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}


/* 🚀 Skroll qilinganda ishga tushadigan yakuniy tezkor holat */
.fast-fade-left.run, .fast-fade-right.run {
    opacity: 1;
    transform: translateX(0);
}
/* Eng oxiridagi kodni mana shu bilan to'liq almashtiring */
.news-card-style {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.news-card-style:hover {
    transform: translateY(-12px) scale(1.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;

