@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

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

body {
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3, .logo, .nav-links a {
    font-family: 'Poppins', sans-serif;
}

/* ===== HEADER ===== */
header {
    background-color: #fff;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

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

.lang-switcher {
    display: flex;
    gap: 6px;
}

.lang-switcher button {
    background: transparent;
    border: 1.5px solid #2c3e50;
    color: #2c3e50;
    padding: 4px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: 0.3s;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background: #2c3e50;
    color: #fff;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #fff;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-image img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 6px solid #fff;
}

.hero-image h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    margin-top: 8px;
}

.hero-image h2 {
    font-size: 16px;
    color: #e74c3c;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
.about {
    background-color: #f8f9fa;
    padding: 80px 5%;
    text-align: center;
}

.about h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 35px;
}

/* Info kartochkalar */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: #fff;
    border-left: 4px solid #2c3e50;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    flex: 1 1 200px;
    text-align: left;
}

.info-card i {
    font-size: 18px;
    color: #2c3e50;
    flex-shrink: 0;
}

.info-card.marital {
    border-left-color: #e74c3c;
    color: #e74c3c;
}

.info-card.marital i {
    color: #e74c3c;
}

/* Iqtibos bloklar */
.edu-block {
    background: #fff;
    border-left: 5px solid #e74c3c;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 12px auto;
    max-width: 750px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    font-style: normal;
}

.edu-block i {
    font-size: 24px;
    color: #e74c3c;
    margin-top: 3px;
    flex-shrink: 0;
}

.edu-block p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

/* Tillar */
.languages {
    margin-top: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.languages h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lang-tags span {
    background: linear-gradient(135deg, #2c3e50, #3d566e);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== XIZMATLAR ===== */
.portfolio {
    background-color: #fff;
    padding: 80px 5%;
    text-align: center;
}

.portfolio h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.projects {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.project-card {
    background-color: #f8f9fa;
    padding: 35px 25px;
    border-radius: 14px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.project-card i {
    font-size: 36px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== ALOQA ===== */
.contact {
    text-align: center;
    background-color: #f8f9fa;
    padding: 80px 5% 100px;
}

.contact h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact > p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 38px;
    color: #2c3e50;
    transition: 0.3s;
}

.social-links a:hover {
    color: #e74c3c;
    transform: scale(1.15);
}

.phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 10px;
}

/* ===== MOBIL ===== */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 8px; }
    .nav-links { gap: 12px; justify-content: center; }
    .hero-image h1 { font-size: 20px; }
    .hero-image h2 { font-size: 14px; }
    .about h2, .portfolio h2, .contact h2 { font-size: 26px; }
    .edu-block { flex-direction: column; gap: 10px; }
    .info-card { flex: 1 1 100%; }
    .social-links { gap: 20px; }
    .social-links a { font-size: 32px; }
}
