html {
    scroll-behavior: smooth;
}
/* Yuqori kontakt panel */
.top-bar {
    background-color: #f8f9fa;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
}
.top-bar a {
    color: #333;
    margin-right: 10px;
    text-decoration: none;
}
.top-bar a:hover {
    color: #dc3545;
}
/*To top btn*/
.to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #093663;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999;
}

.to-top img {
    width: 24px;
    height: 24px;
}
/* Asosiy navbar */
.navbar-brand img {
    width: 70px;
    height: auto;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
}
.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

footer {
    background-color: #222;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #dc3545;
}
.navbar .dropdown:hover .main-menu {
    display: block;
    position: absolute;
    top: 96px;
}
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
}
/* Dropdown menyuni markazga surish */
.navbar .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
}

/* Ayniqsa mega menyu uchun (position-static bo‘lsa) */
.navbar .dropdown.position-static .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
}
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverflow-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px; /* oldin 80px edi */
}
.coverflow-container {
    width: 100%;
    height: 100%;
    top: -80px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px;
    position: relative;
}

.coverflow {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 300px;
}
.coverflow-item {
    position: absolute;
    width: 600px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    user-select: none;
}

.coverflow-item .cover {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); /* oldin juda kuchli edi */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    background: #333;
}
.coverflow-item .cover img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Reflection */
.coverflow-item .reflection {
    position: absolute;
    top: 100%; /* rasm tagidan boshlanadi */
    left: 0;
    width: 100%;
    height: 70%; /* endi rasm balandligining 70 foizi */
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    transform: scaleY(-1);
}

/* Reflection ichida rasmni joylashtiramiz */
.coverflow-item .reflection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(70%);
    opacity: 0.4;
    transform: scaleY(-1);
}

/* Quyida asta yo‘qolish uchun gradient */
.coverflow-item .reflection::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 1) 100%);
}

/* Active item (center) */
.coverflow-item.active {
    z-index: 100;
    transform: translateX(0) translateZ(0) rotateY(0deg);
}

.coverflow-item.active .cover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75); /* biroz kuchliroq, lekin yumshoq */
}
/* Navigation */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 175, 31, 0.548);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: black;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 200;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 50px;
}

.nav-button.next {
    right: 50px;
}
/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 200;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.171);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}
/* Info display */
.info {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    text-align: center;
    z-index: 200;
}

.info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.info p {
    font-size: 16px;
    opacity: 0.7;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
/* Smooth image loading */
.image-loading {
    background: linear-gradient(45deg, #333, #555);
    position: relative;
}

.image-loading::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.5;
}