:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: #000;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   KOINOT FONLARI (SPACE/STARS)
   ========================================= */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: -2;
}

.stars {
    background: #000 url('https://www.transparenttextures.com/patterns/stardust.png') repeat top center;
}

.twinkling {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 150s linear infinite;
    opacity: 0.5;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* =========================================
   HEADER & MP3 PLAYER
   ========================================= */
header {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 40px;
    position: relative;
}

.glass-player {
    position: absolute;
    top: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    width: 90%;
    max-width: 400px;
}

.player-info {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.track-marquee {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    display: inline-block;
    animation: scroll-text 8s linear infinite;
}

#track-artist {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.player-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.ctrl-btn:hover { color: var(--primary-color); }
.play-active { font-size: 1.4rem; color: var(--primary-color); }

.progress-container {
    position: absolute;
    bottom: -1px; left: 10%; width: 80%;
    height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 2px; cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.1s linear;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   PROFILE ELEMENTS
   ========================================= */
.profile-glow {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    margin-bottom: 25px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #000;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text { 
    font-size: 1.2rem; 
    color: var(--primary-color); 
    height: 30px; 
    margin-top: 10px;
}

/* =========================================
   TYPOGRAPHY & SECTIONS
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-white);
}

section { padding: 60px 0; }

/* =========================================
   MARQUEE / POYEZD SLAYDERI
   ========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track.reverse { animation: marquee-reverse 30s linear infinite; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-reverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Moslashuvchan Glass Kartochkalar */
.marquee-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 450px;
    transition: 0.4s ease;
}

.marquee-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(255,255,255,0.3); 
}

/* =========================================
   RASM RAMKASI (MOSLASHUVCHAN)
   ========================================= */
.img-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03); /* Rasmlar atrofidagi bo'shliq uchun yengil fon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrapper img {
    width: 100%;
    height: 220px; /* Barcha kartochkalar balandligi bir xil bo'lishi uchun */
    object-fit: contain; /* ASOSIY O'ZGARISH: Rasmni kesib tashlamay, to'liq sig'diradi */
    transition: transform 0.5s ease;
}

.marquee-card:hover .img-wrapper img { 
    transform: scale(1.05); 
}

/* Kontentli kartochkalar (Education, Projects) */
.content-card { min-width: 380px; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-info p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 15px; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.card-link:hover { color: var(--text-white); }

/* =========================================
   CONTACT SECTION & BUTTONS
   ========================================= */
.contact-section { 
    display: flex; 
    justify-content: center; 
    padding: 60px 20px; 
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.contact-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 25px; 
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}
.btn-glow:hover { 
    transform: scale(1.05); 
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6); 
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--text-gray);
}
.btn-outline:hover { 
    background: #fff; 
    color: #000; 
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    text-align: center; 
    padding: 25px; 
    color: var(--text-gray); 
    font-size: 0.9rem; 
}
