/* 1. Umumiy sozlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body, html {
    overflow-x: hidden;
}

/* Scroll qilganda joyida turadigan (Fixed) Navbar */
.samsu-navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Kontent Navbardan pastda boshlanishi uchun Body Paddingi (Muhim!) */
body {
    padding-top: 60px;
}

/* Logo uslublari */
.samsu-navbar-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
}
.samsu-logo-img {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    margin-top:15px;
}
.samsu-logo-text {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Menyu uslublari - Default (1540px dan yuqori) */
.samsu-navbar-menu ul {
    list-style: none;
    display: flex;
}

.samsu-navbar-menu ul li {
    margin-left: 20px;
}

.samsu-navbar-menu ul li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: color 0.3s;
}

/* default chiziq yo‘q */
.samsu-navbar-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 3px;
    background-color: black;
    width: 0;
    transition: width 0.3s ease-in-out;
}

/* hover paytida chiqadi */
.samsu-navbar-menu ul li a:hover::after {
    width: 100%;
}

/* bosilganda chiziq qoladi */
.samsu-navbar-menu ul li a:focus::after {
    width: 100%;
}

/* bosilgan linkda chiziq doimiy ko‘rinsin */
.samsu-navbar-menu ul li a:visited::after {
    width: 100%;
}

/*.samsu-navbar-menu ul li a.samsu-active::after {
    width: 100%;
}
*/
/* Hamburger ikonkasini va checkboxni katta ekranlarda yashirish (Default, 1540px dan yuqori) */
.samsu-menu-toggle, .samsu-hamburger-icon {
    display: none !important;
}


/* ---------------------------------------------------- */
/* 2. Responsive qismi (Mobil/Planshet/O'rta Desktop uchun hamburger rejimiga o'tkazish) */

/* Kichik Mobil ekranlar (Max 480px) */
@media (max-width: 480px) {
    .samsu-navbar-logo { font-size: 20px; }
    .samsu-logo-img { width: 30px; height: 30px; }
    .samsu-navbar { padding: 8px 15px; }
    .samsu-hamburger-icon { font-size: 25px; }
    .samsu-navbar-menu ul li a { padding: 12px 15px; font-size: 14px; }

    /* Hero */
    .samsu-main-title2 { font-size: 36px; }
    .samsu-subtitle2 { font-size: 18px; }
    .samsu-description2 { font-size: 14px; }
}

/* Mobil / Planshet / O'rta Desktop diapazoni (Max 1540px gacha) */
/* Barcha ekranlar 1400px gacha hamburger rejimiga o'tadi */
@media (max-width: 1400px) {
    body { padding-top: 60px; }

    /* Hamburger ikonkasini ko'rsatish */
    .samsu-hamburger-icon {
        display: block !important;
        font-size: 30px;
        cursor: pointer;
        order: 2; /* Logodan keyin kelishi uchun */
    }

    /* Checkboxni yashirish */
    .samsu-menu-toggle {
        display: none;
    }

    /* Menyuni vertikal joylashish va yashirish */
    .samsu-navbar-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        display: none !important; /* Hamburger yopiq turishi uchun */
        z-index: 1001;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    .samsu-navbar-menu ul {
        flex-direction: column !important; /* Vertikal menyu */
        text-align: center;
    }

    .samsu-navbar-menu ul li {
        margin: 0;
        border-bottom: 1px solid #ddd;
    }
    .samsu-navbar-menu ul li:last-child {
        border-bottom: none;
    }

    .samsu-navbar-menu ul li a {
        padding: 15px 20px;
        color: black;
    }

    /* Mobil menyuda ostki chiziqni yashirish */
    .samsu-navbar-menu ul li a::after {
        content: none;
    }

    /* HAMBURGERNING ISHLASHI UCHUN ASOSIY QISM: */
    .samsu-menu-toggle:checked ~ .samsu-navbar-menu {
        display: block !important; /* Ochilganda majburlab ko'rsatish */
    }

    /* Hero Section (Planshet uslublari) */
    .samsu-main-title2 { font-size: 60px; } /* Bu diapazonda kattaroq font saqlanib qoladi */
    .samsu-subtitle2 { font-size: 24px; }
}


/* ---------------------------------------------------- */
/* 3. Responsive qismi (Min-width qoidalari - 1541px dan yuqori ekranlar UCHUN DESKTOP) */

/* Katta Desktoplar (1401px va undan yuqori) */
@media (min-width: 1401px) {

    /* Hamburger elementlarini YASHIRISH */
    .samsu-menu-toggle, .samsu-hamburger-icon {
        display: none !important;
    }

    /* Navbar Menyusini Desktop holatiga qaytarish */
    .samsu-navbar-menu {
        display: block !important; /* Majburan desktop ko'rinishiga qaytarish */
        position: static;
        width: auto;
        box-shadow: none;
    }

    .samsu-navbar-menu ul {
        display: flex;
        flex-direction: row !important; /* Gorizontal menyu */
        text-align: left;
    }
    .samsu-navbar-menu ul li {
        border-bottom: none;
        margin-left: 30px; /* Keng ekran uchun yetarli joy */
    }

    /* Navbar paddingini kengaytirish */
    .samsu-navbar {
        padding: 10px 80px;
    }

    /* Hero sarlavhalarni kattalashtirish */
    .samsu-main-title2 {
        font-size: 90px;
    }
    .samsu-hero-content2 {
        max-width: 900px;
    }
}


/* ---------------------------------------------------- */
/* Hero Section uchun uslublar (O'zgarmagan) */
.samsu-hero-section2 {
    height: 100vh;
    width: 100%;
    background-image: url('/static/images/samdu1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.samsu-hero-section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.samsu-hero-content2 {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 90%;
}
.samsu-main-title2 {
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.samsu-subtitle2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
}
.samsu-description2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
}
.samsu-date-location2 {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
}
.samsu-scroll-down2 {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    font-size: 30px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer */

/* ========================================= */
/* FOOTER USLUBLARI */
/* ========================================= */
.samsu-footer {
    background-color: #363636; /* Rasmdagi kabi to'q kulrang fon */
    color: white; /* Asosiy tekst rangi oq */
    padding: 40px 20px 20px 20px;
    position: relative; /* Info ikonka uchun */
}

.samsu-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ustunlar yuqoridan boshlansin */
    max-width: 1200px; /* Maksimal kenglik */
    margin: 0 auto; /* O'rtada joylashtirish */
    flex-wrap: wrap; /* Kichik ekranlarda pastga tushirish */
}

.samsu-footer-column {
    flex: 1; /* Teng taqsimlash */
    min-width: 250px; /* Kichik ekranlarda kamida shu kenglikda qolish */
    padding: 15px;
}

/* 1. Sarlavha uslublari */
.samsu-footer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white; /* Sarlavhalar oq bo'lishi shart */
}

/* 2. Tekst uslublari */
.samsu-footer-column p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    opacity: 0.8; /* Tekstni biroz ochroq qilish (rasmdagi kabi) */
}

/* 3. O'rta ustun (Previous Conference) */
.samsu-center-column {
    text-align: center;
}
.samsu-footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 30px;
    transition: color 0.3s;
}
.samsu-footer-link:hover {
    color: #ffd700; /* Oltin rangga o'xshash rang */
}

/* Kirish raqamlari (Hit Counter) uslubi */
.samsu-hit-counter {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.samsu-hit-counter .digit {
    border: 1px solid white;
    padding: 5px 8px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* 4. Organizer ustuni (Logotip) */
.samsu-organizer-column {
    text-align: right; /* Logotipni o'ng tomonga joylashtirish */
}
.samsu-organizer-logo {
    max-width: 150px; /* Logotipning maksimal kengligi */
    height: auto;
    margin-top: 10px;
}

/* Info ikonka uslubi (Pastki chap burchak) */
.samsu-info-icon {
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
    opacity: 0.7;
}

/* ========================================= */
/* FOOTER RESPONSIVE (Moslashuvchanlik) */
/* ========================================= */
@media (max-width: 768px) {
    .samsu-footer-container {
        flex-direction: column; /* Ustunlar vertikal joylashadi */
        align-items: center;
    }

    .samsu-footer-column {
        min-width: 90%; /* Kenglikni to'liq qamrab oladi */
        padding: 20px 0;
        text-align: center; /* Barcha tekstni markazga surish */
    }

    /* O'rta ustunni markazga moslashtirish */
    .samsu-center-column {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Logotip ustunini markazga surish */
    .samsu-organizer-column {
        text-align: center;
    }

    /* Info ikonkani markazga surish */
    .samsu-info-icon {
        left: 50%;
        transform: translateX(-50%);
    }
}