:root {
    --bg-color: #0d0d0d;
    --bg-surface: #141414;
    --bg-card: #1a1a1a;
    --text-main: #f5f5f7;
    --text-muted: #8e8e93;
    --text-subtle: #48484a;
    --accent-border: #2c2c2e;
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-container {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-left: 1px solid var(--accent-border);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.lang-btn {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-btn.active, .lang-btn:hover {
    color: var(--white);
    font-weight: 600;
}

main {
    padding-top: 80px;
}

.page-section {
    display: none;
    min-height: calc(100vh - 80px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
}

.hero {
    position: relative;
    height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 4rem 3rem;
    box-sizing: border-box;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c1c1e 0%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--white);
    padding-bottom: 0.4rem;
    transition: var(--transition-smooth);
}

.hero-action:hover {
    gap: 1.5rem;
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.category-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--accent-border);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-num {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.project-card {
    cursor: pointer;
}

.project-card-image {
    width: 100%;
    height: 320px;
    background-color: var(--bg-surface);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid var(--accent-border);
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-meta {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.project-card-title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.academic-years-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--accent-border);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.course-btn {
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    padding: 2.5rem 1.5rem;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.course-btn:hover {
    border-color: var(--white);
    background: var(--bg-card);
}

.course-btn .course-num {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.course-btn .course-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.project-detail-header {
    margin-bottom: 3rem;
}

.project-detail-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.project-detail-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--accent-border);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--accent-border);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--white);
    border-color: var(--white);
    background: var(--bg-card);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.media-gallery {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.media-item {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.media-caption {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--accent-border);
}

.soon-placeholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--accent-border);
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-muted);
    text-align: center;
}

.soon-title {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.soon-desc {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    color: var(--white);
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 2rem;
}

.editorial-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.editorial-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    header { padding: 1.2rem 1.5rem; }
    nav { gap: 1.2rem; }
    .lang-switcher { padding-left: 0.8rem; margin-left: 0.4rem; }
    .container { padding: 3rem 1.5rem; }
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .editorial-layout { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
    .brand-subtitle { display: none; }
    .course-grid { grid-template-columns: 1fr; }
    .project-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .tab-btn { flex: 0 0 auto; }
}/* LIGHTBOX MODAL STIL LARI */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 3rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 92%;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid var(--accent-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-muted);
    font-size: 40px;
    font-weight: 300;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--white);
}

.media-item img {
    cursor: zoom-in;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}/* CV BO'LIMI STILI */
.cv-preview-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    padding: 1rem;
    box-sizing: border-box;
}

.cv-image-wrapper {
    width: 100%;
    cursor: zoom-in;
}

.cv-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}/* HERO ALMASHINUV ANIMATSIYASI */
.fade-anim {
    animation: fadeInHero 1.2s ease-in-out;
}

@keyframes fadeInHero {
    from {
        opacity: 0.3;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-explore-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-explore-btn:hover {
    opacity: 0.7;
}/* HERO ANIMATSIYASI */
.hero-fade-anim {
    animation: heroFadeIn 1.2s ease-in-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0.3;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}/* ==========================================
   ARXITEKTURA STILIDAGI THEME TOGGLE BUTTON
   ========================================== */
.arch-theme-btn {
    background: transparent;
    border: 1px solid var(--text-muted, #444);
    color: var(--text-main, #fff);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    outline: none;
}

.arch-theme-btn:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.arch-theme-btn .theme-icon {
    font-size: 1.1rem;
    position: absolute;
    transition: all 0.4s ease;
}

/* Standart (Qora rejim): Oy ko'rinadi, Quyosh berkinadi */
.arch-theme-btn .sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
.arch-theme-btn .moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Oq rejimda: Quyosh ko'rinadi, Oy berkinadi */
body.light-theme .arch-theme-btn .sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
body.light-theme .arch-theme-btn .moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
body.light-theme .arch-theme-btn {
    border-color: #111;
}

/* ==========================================
   KUNDUZGI (LIGHT) REJIM QOIDALARI (MAJBURIY)
   ========================================== */
body.light-theme {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Barcha section va div backgroundlarini oqqa almashtirish */
body.light-theme section,
body.light-theme header,
body.light-theme nav,
body.light-theme footer,
body.light-theme .page-section,
body.light-theme .modal-content,
body.light-theme .card,
body.light-theme .project-card {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Matn va shrift ranglarini o'zgartirish */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme p,
body.light-theme a,
body.light-theme span,
body.light-theme div,
body.light-theme .hero-title,
body.light-theme .contact-value {
    color: #111111 !important;
}

/* Kichik va xira matnlarni kulrang qilish */
body.light-theme .hero-subtitle,
body.light-theme .hero-badge,
body.light-theme .contact-label,
body.light-theme .text-muted {
    color: #666666 !important;
}

/* ==========================================
   KUNDUZGI (LIGHT) REJIM QOIDALARI
   ========================================== */
body.light-theme {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Saytning barcha asosiy bo'limlari oq fon va to'q matn bo'ladi */
body.light-theme section:not(#sec-home),
body.light-theme header,
body.light-theme nav,
body.light-theme footer,
body.light-theme .modal-content,
body.light-theme .card,
body.light-theme .project-card {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Sayt ichidagi umumiy yozuvlar */
body.light-theme section:not(#sec-home) h1,
body.light-theme section:not(#sec-home) h2,
body.light-theme section:not(#sec-home) h3,
body.light-theme section:not(#sec-home) p,
body.light-theme section:not(#sec-home) a,
body.light-theme section:not(#sec-home) span,
body.light-theme .contact-value {
    color: #111111 !important;
}

/* ==========================================
   INTRO (HERO) MATNLARI UCHUN ISTISNO (DOIM OQ)
   ========================================== */
#sec-home,
#sec-home .hero-content,
#sec-home .hero-title,
#sec-home #hero-project-title,
#sec-home .hero-badge,
#sec-home .hero-subtitle,
#sec-home .hero-action,
#sec-home .hero-action span,
#sec-home [data-key="hero_type"],
#sec-home [data-key="hero_explore"] {
    color: #ffffff !important; /* Kunduzi ham, kechasi ham OQ rangda qoladi */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important; /* Rasm ustida ravshan ko'rinishi uchun soya */
}

/* Introdagi overlay (qorong'i qatlam) */
#sec-home .hero-overlay,
#sec-home .hero::after {
    background: rgba(0, 0, 0, 0.4) !important; /* Rasm oqarib ketmasligi uchun saqlanadi */
}/* ==========================================
   ACADEMIC YEARS (1-4 KURS) TUGMALARI UCHUN
   ========================================== */

/* Kunduzgi rejimda kvadrat tugmalarning foni oq bo'lishi */
body.light-theme .course-btn {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
}

/* Sichqoncha olib borilganda (Hover) */
body.light-theme .course-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #111111 !important;
}

/* 1 COURSE, 2 COURSE (katta yozuvlar) uchun to'q rang */
body.light-theme .course-btn .course-name {
    color: #111111 !important;
}

/* YEAR 01, YEAR 02 (kichik yozuvlar) uchun kulrang */
body.light-theme .course-btn .course-num {
    color: #666666 !important;
}
/* ==========================================
   SOFTWARE & SKILLS BLOKLARI UCHUN KUNDUZGI REJIM
   ========================================== */

/* Bloklar foni oq va chegarasi ingichka bo'ladi */
body.light-theme .skill-card,
body.light-theme .skill-item,
body.light-theme .skills-grid *,
body.light-theme [class*="skill"] {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #e5e5e5 !important;
}

/* Blok ichidagi barcha matnlar majburan to'q qora bo'ladi */
body.light-theme .skill-card *,
body.light-theme .skill-item *,
body.light-theme [class*="skill"] * {
    color: #111111 !important;
}

/* Sichqoncha olib borilganda (Hover) */
body.light-theme .skill-card:hover,
body.light-theme .skill-item:hover,
body.light-theme [class*="skill"]:hover {
    background-color: #f5f5f5 !important;
    border-color: #111111 !important;
}
/* ==========================================
   TASHQI KATTA RAMKANI YO'QOTISH (SOFTWARE & SKILLS)
   ========================================== */

/* 1. Skill bo'limining barcha tashqi o'rovchi (parent) bloklaridan ramkani olib tashlash */
body.light-theme section,
body.light-theme div:has(> .skill-card),
body.light-theme div:has(> .skill-item),
body.light-theme .skills-grid,
body.light-theme .skills-container,
body.light-theme .skills-wrapper,
body.light-theme .about-skills,
body.light-theme .software-skills {
    border: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* 2. FAQUAT skill tugmalarining/bloklarining o'zida ramka va rangni saqlab qolish */
body.light-theme .skill-card,
body.light-theme .skill-item,
body.light-theme .skills-grid > *,
body.light-theme .skills-container > * {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #e5e5e5 !important; /* Skill'larning o'zidagi ingichka ramka */
}/* ==========================================
   TIL TUGMALARI (UZ, ENG, RU) - ODDIY KUNDUZGI REJIM
   ========================================== */

/* Tanlanmagan tillar uchun xira kulrang */
body.light-theme .lang-btn,
body.light-theme .lang-switch *,
body.light-theme [class*="lang"] {
    color: #888888 !important;
    background: transparent !important;
    border: none !important;
}

/* TANLANGAN (FAOL) TIL - Shrift rangi to'liq qora bo'ladi */
body.light-theme .lang-btn.active,
body.light-theme .lang-switch *.active,
body.light-theme [class*="lang"].active,
body.light-theme [data-lang].active {
    color: #111111 !important;
    font-weight: bold !important;
}/* ==========================================
   SOFTWARE & SKILLS - HOVER VA BOSISH EFFEKTINI OLIB TASH LASH
   ========================================== */

/* 1. Bosilishi mumkin bo'lgan kursor (pointer) va hover effektlarini bekor qilish */
body.light-theme .skill-card,
body.light-theme .skill-item,
body.light-theme .skills-grid >,
body.light-theme [class*="skill"] {
    cursor: default !important;
    pointer-events: none !important; /* Bosish imkoniyatini mutlaqo o'chirish */
    transition: none !important;
}

/* 2. Sichqoncha olib borilganda (Hover) va bosilganda rang hamda ramka o'zgarmaydi */
body.light-theme .skill-card:hover,
body.light-theme .skill-item:hover,
body.light-theme [class*="skill"]:hover,
body.light-theme .skill-card:focus,
body.light-theme .skill-item:focus,
body.light-theme .skill-card:active,
body.light-theme .skill-item:active {
    background-color: #ffffff !important;
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
    outline: none !important;
}.admin-entry{font-size:.65rem;letter-spacing:.14em;color:var(--text-muted);text-decoration:none;margin-left:12px;opacity:.45;transition:opacity .2s}.admin-entry:hover{opacity:1}.hero-fade-anim{animation:heroFade .8s ease both}@keyframes heroFade{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}html[data-animation="minimal"] *{scroll-behavior:auto}html[data-animation="none"] *{animation:none!important;transition:none!important}
