:root {
    --bg-dark: #050810;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --glass: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Koinot fon (Cosmos Background) */
.cosmos-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at bottom, #0d1326 0%, var(--bg-dark) 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 50%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 60px) scale(1.1); }
}

/* Navigatsiya */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 8, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Asosiy Qismlar */
.section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bosh sahifa (Hero) */
.hero {
    align-items: center;
    text-align: center;
}

.profile-frame {
    width: 150px; height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.profile-frame:hover {
    transform: rotate(0deg);
}

.profile-frame i {
    transform: rotate(-45deg);
    transition: transform 0.5s ease;
}

.profile-frame:hover i {
    transform: rotate(0deg);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

/* Statistikalar */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Aloqa va Tarmoqlar */
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.call-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.call-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.icon-btn.telegram:hover { color: #0088cc; border-color: #0088cc; box-shadow: 0 0 25px rgba(0,136,204,0.5); }
.icon-btn.instagram:hover { color: #e1306c; border-color: #e1306c; box-shadow: 0 0 25px rgba(225,48,108,0.5); }
.icon-btn.github:hover { color: #fff; border-color: #fff; box-shadow: 0 0 25px rgba(255,255,255,0.5); }

/* Yangi bo'limlar: Tillar va Ko'nikmalar */
.skills-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.skills-col {
    flex: 1;
}

.col-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.col-title i { color: var(--primary); }

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-name i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.progress-bg {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 15px var(--primary);
    position: relative;
}

/* Timeline (Rivojlanish Yo'li) */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.3rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border: 3px solid var(--bg-dark);
}

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.2);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Aloqa Formasi */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color 0.3s;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* CV Yuklash Tugmasi */
.cv-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.cv-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* Zarrachalar foni */
#particles-js {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

/* Loyihalar */
.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.project-box {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s;
    display: block;
}

.project-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.project-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-box p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-box:hover {
    transform: translateY(-15px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.project-box:hover .project-bg {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
}

/* Moslashuvchanlik (Responsive) */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .stats-container { gap: 1rem; }
    .nav-links { display: none; }
    .contact-actions { flex-direction: column; }
    .call-btn, .cv-btn { width: 100%; justify-content: center; }
    .skills-wrapper { flex-direction: column; gap: 3rem; }
    .input-group { flex-direction: column; }
}
