* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    height: 100vh;
    color: #fff;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Terminal --- */
.terminal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 10px; 
    z-index: 10;
    line-height: 1.5;
}

.prompt {
    color: #4af626;
    font-weight: 500;
}

.command-text {
    color: #fff;
}

.cursor {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.output {
    color: #CC2121; 
    font-size: 10px; 
    font-weight: normal; 
    margin-bottom: 0px; 
}

/* --- Markaziy Oyna (Card) --- */
.card {
    background: rgba(20, 20, 20, 0.35); /* Shishaning yengil qoramtir tusi (35%) */
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(1.5px); /* Yozuv xira ko'rinadi, lekin o'qish mumkin bo'ladi */
    -webkit-backdrop-filter: blur(1.5px); /* Safari uchun */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Shisha cheti yorqinroq ko'rinishi uchun */
    max-width: 380px;
    width: 90%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.6s ease;
    z-index: 20;
}
 

.card.show {
    opacity: 1;
    transform: scale(1);
}

.card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.card h2 {
    font-size: 18px; 
    margin-bottom: 5px;
    min-height: 27px;
}

.subtitle {
    font-size: 11px;
    color: #777;
    margin-bottom: 15px;
    min-height: 16px;
}

.about-me {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-me p {
    font-family: 'Fira Code', monospace;
    font-size: 10.5px; 
    color: #bbb;
    margin-bottom: 8px;
}

.about-me p:last-child {
    margin-bottom: 0;
}

/* --- Tugmalar --- */
.nav-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    transition: 0.5s;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: 0.3s;
}

.nav-btn:hover {
    border-color: #fff;
    color: #fff;
}

.nav-btn.active {
    color: #4af626;
    border-color: #4af626;
    background: rgba(74, 246, 38, 0.05);
}

/* Scroll qilinadigan hudud uchun */
.scroll-container {
    max-height: 200px; /* Modalning maksimal balandligi */
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
    margin-bottom: 15px;
}

/* Custom chiroyli Scrollbar */
.scroll-container::-webkit-scrollbar {
    width: 4px;
}
.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(74, 246, 38, 0.3); /* Yashil shaffof scroll */
    border-radius: 4px;
}

.scroll-container p {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 16px;
}

#dynamic-content {
    transition: opacity 0.4s ease; /* Kontent almashish animatsiyasi */
}

/* --- Loyihalar (Projects) Bo'limi Uslublari --- */
.project-item {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Rasm va matn orasidagi masofa */
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08); /* Ajratib turuvchi chiziq */
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    flex-shrink: 0; /* Matn ko'payganda rasm qisqarib ketmasligi uchun */
    background-color: #111; /* Rasm yuklanguncha turadigan fon */
}

.project-details {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 13px; /* Kattaroq shrift */
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    min-height: 18px; /* Yozilayotganda sakrash bo'lmasligi uchun */
}

.project-desc {
    font-family: 'Fira Code', monospace;
    font-size: 10.5px; /* Kichikroq shrift */
    color: #aaaaaa;
    line-height: 1.5;
    min-height: 30px;
}

/* --- Aloqa (Contact) Bo'limi Uslublari --- */
.contact-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Telegram va Instagram qutichalari (Sketch uslub) */
.main-socials {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px dashed rgba(255, 255, 255, 0.4); /* Oq/kulrang kesik chiziqlar */
    border-radius: 6px;
    color: #cccccc;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    background: transparent; /* Fon yo'q, sketch uslubi */
    transition: all 0.3s ease;
}

.social-box:hover {
    border: 1px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dumaloq shakldagi mini logotiplar (Email, Github, VK, X) */
.mini-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Dumaloq chiziq */
    border-radius: 50%;
    color: #aaaaaa; /* Rangsiz kulrang ikonka */
    text-decoration: none;
    font-size: 15px;
    background: transparent;
    transition: all 0.3s ease;
}

.circle-icon:hover {
    border-color: #4af626; /* Hover qilinganda terminal yashiliga o'tadi */
    color: #4af626;
    transform: translateY(-3px); /* Ozgina tepaga sakraydi */
}