:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00f3ff; /* Neon Cyan */
    --secondary-accent: #bc13fe; /* Neon Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Animatsiyali chiziq */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

.hero-content {
    max-width: 600px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: var(--font-code);
}

.name {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profession {
    font-size: 2rem;
    color: #fff;
    margin: 10px 0 20px;
}

.typed-text {
    color: var(--secondary-accent);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.btn-main {
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    text-decoration: none;
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Container & Sections */
.container {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

/* Glass Effect Cards */
.glass-effect {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.glass-effect:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 30px;
}

.skill-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-list span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px;
    font-family: var(--font-code);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #fff;
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0,0,0,0.5);
    margin-top: 50px;
}

.socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobil menya keyin yoziladi */
    }
    .menu-btn {
        display: block;
    }
    .name {
        font-size: 3rem;
    }
    .hero-section {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }
}
