/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px; /* Ingichka qildik */
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: var(--neon-blue); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0088cc; /* Sal to'qroq ko'k */
}


:root {
    /* LIGHT THEME - Myagkiy ko'kimtir fon */
    --bg-color: #e6edf3; 
    --text-color: #1a202c;
    --text-muted: #4a5568;
    --neon-blue: #0ea5e9;
    --accent-red: #e63946;
    --glass-bg: rgba(255, 255, 255, 0.3); /* Toza shaffof shisha */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    --orb-color: rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] {
    /* DARK THEME - Qop-qora */
    --bg-color: #03060c;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --neon-blue: #00f3ff;
    --accent-red: #ff003c;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --orb-color: rgba(0, 243, 255, 0.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: sans-serif; 

    transition: background-color 0.3s, color 0.3s, border-color 0.3s; 
}

body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }

/* Z-INDEX va Particles */
#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }


/* Qotirilgan (Sticky) Navigatsiya */
.sticky-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px;
    background: var(--glass-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border);
}
.main-content { padding-top: 100px; }


/* --- NAVIGATSIYA HOVER EFFEKTI --- */
.nav-links a { 
    color: var(--text-color); 
    text-decoration: none; 
    margin: 0 15px; 
    font-weight: 600; 
    position: relative; /* Chiziq uchun kerak */
    padding-bottom: 5px;
}   


/* O'ngdan chapga qarab chiziladigan Neon chiziq */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--neon-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--neon-blue); /* Neon chaqnash */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%; /* Hover qilinganda to'liq chiziladi */
}


.neon-text { color: var(--neon-blue); font-weight: bold; }

/* Control tugmalari (Tema va Til) */
.controls { display: flex; align-items: center; gap: 15px; }
.glass-icon-btn {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 8px 15px; border-radius: 8px; color: var(--text-color);
    font-weight: bold; display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .glass-icon-btn:hover { color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); border-color: var(--neon-blue); }

/* Til menyusi */
.custom-lang-dropdown { position: relative; }
.lang-options {
    position: absolute; top: 120%; right: 0; background: var(--glass-bg);
    backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: 8px; list-style: none; padding: 5px 0;
    min-width: 80px; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease;
}
.custom-lang-dropdown:hover .lang-options { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-options li { padding: 8px 20px; text-align: center; font-weight: 600; }
.lang-options li:hover { background: var(--neon-blue); color: #fff; }

/* Glass panellar */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 30px; }

/* Hero */
.hero { min-height: calc(100vh - 100px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.badge { padding: 8px 20px; font-size: 0.9rem; margin-bottom: 25px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }

/* Buttons */
.magnetic-btn { padding: 14px 35px; border: none; border-radius: 30px; font-weight: 600; font-size: 1rem; }
.btn-primary { background: var(--neon-blue); color: #fff; box-shadow: 0 4px 15px var(--orb-color); }
.glass-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-color); margin-left: 15px; }

/* Footer (Pastki BAR) */
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    margin-top: 80px; padding: 60px 0 20px 0;
    position: relative; z-index: 10;
}
.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 0 20px;
}
.footer-logo { font-size: 1.5rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 250px;}
.footer-col h3 { font-size: 1.1rem; margin-bottom: 25px; color: var(--text-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.footer-links a:hover { color: var(--neon-blue); padding-left: 5px; }
.social-links i { margin-right: 10px; width: 15px; text-align: center; color: var(--neon-blue); }
.footer-contact-info { list-style: none; }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.85rem; }


/* --- BOSH SAHIFA QO'SHIMCHA BLOKLARI --- */

/* Umumiy sarlavhalar */
.section-title { text-align: center; margin-bottom: 50px; margin-top: 80px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* 1. Statistika qismi */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}
.stat-box {
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
}
.stat-box h2 { font-size: 3rem; margin-bottom: 10px; }
.stat-box p { color: var(--text-muted); font-weight: 500; }

/* 2. Qisqa fakultetlar qismi */
.faculties-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.fac-quota-mini {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. Afzalliklar qismi */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
    text-align: center;
}
.feature-item { padding: 20px; }
.feature-icon {
    width: 60px; height: 60px;
    margin: 0 auto 20px auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--neon-blue);
    box-shadow: 0 0 15px var(--orb-color);
}
.feature-item h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; }

/* Responsive (Telefon va planshet) */
@media (max-width: 992px) {
    .stats-container, .faculties-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .stats-container, .faculties-preview-grid, .features-grid { grid-template-columns: 1fr; }
}


/* --- KARTALAR UCHUN UMUMIY STILLAR (Bosh sahifa uchun) --- */
.fac-card {
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0, 0.1);
}

[data-theme="dark"] .fac-card:hover {
    box-shadow: 0 15px 30px rgba(0, 243, 255, 0.1);
}

.icon-blob {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.fac-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.fac-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}