/*
=====================================================
INFRATUZILMA SAHIFASI UCHUN MAXSUS STILLAR (PREMIUM ELITE)
=====================================================
*/

/* 1. HERO SECTION (ADMISSION STYLE OVERRIDE) */
.infra-hero {
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=2070') no-repeat center center / cover !important;
}

/* Sarlavha animatsiyasi uchun "INFRATUZILMA" so'zini qo'yamiz */
.highlight-text-premium::before {
    content: 'KAMPUS' !important;
}

/* --- ANIMATSIYA: FLOATING (Tepaga-Pastga suzish) --- */
@keyframes floatInfra {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); } /* 12px yuqoriga */
}

/* 2. INFRA KARTALARI (KATTA - Asosiy qulayliklar) */
.infra-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(7, 0, 107, 0.05);
    box-shadow: 0 10px 30px rgba(7, 0, 107, 0.05);
    border-radius: 24px;

    /* SARIQ CHIZIQ */
    border-bottom: 5px solid #FFC107;

    /* ANIMATSIYA */
    animation: floatInfra 4.5s ease-in-out infinite;
}

/* Katta kartalar uchun kechikish (Delay) */
.row .col-lg-3:nth-child(1) .infra-card { animation-delay: 0s; }
.row .col-lg-3:nth-child(2) .infra-card { animation-delay: 0.5s; }
.row .col-lg-3:nth-child(3) .infra-card { animation-delay: 1.0s; }
.row .col-lg-3:nth-child(4) .infra-card { animation-delay: 1.5s; }

/* Matnlar */
.infra-card .card-title {
    color: #07006b !important;
    margin-top: 15px;
    font-weight: 800;
}

.infra-card .card-text {
    color: #555 !important;
}

.infra-card .icon-circle {
    width: 90px; height: 90px;
    font-size: 36px;
    background: #eef2ff;
    color: #07006b;
    border-color: rgba(7,0,107,0.1);
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(7, 0, 107, 0.1);
}

.infra-card:hover {
    box-shadow: 0 20px 50px rgba(7, 0, 107, 0.15);
}

.infra-card:hover .icon-circle {
    background: #07006b;
    color: #FFC107;
    box-shadow: 0 10px 25px rgba(7, 0, 107, 0.3);
    transform: rotateY(180deg);
    transition: 0.5s;
}
.infra-card:hover .icon-circle i { transform: rotateY(-180deg); }


/* 3. KICHIK KARTALAR (Qo'shimcha qulayliklar - YANGILANDI) */
.infra-card-small {
    padding: 30px 20px;
    min-height: 200px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);

    /* --- YANGI: SARIQ CHIZIQ --- */
    border-bottom: 4px solid #FFC107;

    /* --- YANGI: ANIMATSIYA --- */
    animation: floatInfra 5s ease-in-out infinite;
}

/* Kichik kartalar uchun alohida kechikish (chiroyli to'lqin effekti uchun) */
.row .col-lg-3:nth-child(1) .infra-card-small { animation-delay: 0.2s; }
.row .col-lg-3:nth-child(2) .infra-card-small { animation-delay: 0.7s; }
.row .col-lg-3:nth-child(3) .infra-card-small { animation-delay: 1.2s; }
.row .col-lg-3:nth-child(4) .infra-card-small { animation-delay: 1.7s; }

.infra-card-small:hover {
    transform: translateY(-10px); /* Hoverda qo'shimcha ko'tarilish */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.infra-card-small .card-title {
    color: #07006b !important;
    font-weight: 700;
    margin-top: 15px;
}

.infra-card-small .card-text {
    color: #666 !important;
}

.small-icon {
    width: 70px; height: 70px; /* Biroz kattalashtirdik */
    font-size: 28px;
    margin-bottom: 10px;
    background: #f0f4ff;
    color: #07006b;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(7,0,107,0.05);
}

.infra-card-small:hover .small-icon {
    background: #07006b;
    color: #FFC107;
    transform: rotateY(180deg);
}

.small-text {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 4. TOUR WRAPPER (3D TUR QISMI) */
.tour-wrapper {
    height: 450px;
    position: relative;
    z-index: 1;
    overflow: visible !important; /* Sariq ramka ko'rinishi uchun */
}

.tour-btn {
    width: 90px; height: 90px;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #07006b;
}

.tour-label {
    left: auto;
    right: -30px;
    border-left: none;
    border-right: 5px solid #FFC107;
}

/* 5. PREMIUM GALEREYA (MASONRY GRID STYLE) */
.gallery-card-premium {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card-premium:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 0, 107, 0.9) 0%, rgba(7, 0, 107, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

.gallery-card-premium:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 30px;
    color: #FFC107;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
    text-align: center;
    padding: 0 15px;
}

.gallery-card-premium:hover .gallery-icon,
.gallery-card-premium:hover .gallery-title {
    transform: translateY(0);
}

/* MOBIL MOSLASHUV */
@media (max-width: 768px) {
    .tour-label {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
        width: auto;
    }
}

