@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #050814; /* Chuqur qora-ko'k fon */
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigatsiya */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #3b82f6; /* Och ko'k urg'u */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Tugmalar */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
    display: inline-block;
}

.btn.primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn.primary:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #3b82f6;
}

.btn.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

/* Asosiy Qism */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #050814 100%);
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #3b82f6;
}

.hero-content h3 {
    font-size: 26px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Sarlavhalar */
.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}

.section-title span {
    color: #3b82f6;
}

/* Xizmatlar */
.services, .portfolio, .contact {
    padding: 100px 8%;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: #0f172a;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.service-box i {
    font-size: 50px;
    color: #3b82f6;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-box p {
    color: #94a3b8;
    font-size: 15px;
}

/* Loyihalar */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.profile-img-container img {
    border-radius: 50%; /* Dumaloq qilishning eng yaxshi usuli */
    width: 100%; /* Ekran o'lchamiga moslashadi */
    max-width: 400px; /* Eng katta holatda 400px dan oshmaydi */
    aspect-ratio: 1 / 1; /* Bo'yi va eni mutanosib (kдрат) bo'lishini ta'minlaydi */
    object-fit: cover; /* Rasm siqilib qolmasligi uchun */
    border: solid 5px #3b82f6;
    margin: 0 auto; /* O'rtaga joylashishini ta'minlaydi */
}

.card-info h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.card-info p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-link:hover {
    color: #81b9fd;
    gap: 15px;
}

/* Aloqa */
.contact-content {
    text-align: center;
    background: #0f172a;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #050814;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: 0.4s;
}

.social-links a:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-3px);
}
.social-links-minimal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Aylana foni */
    color: #ffffff !important; /* Icon rangi oq bo'lishi shart */
    font-size: 24px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon ichidagi 'i' tegi ko'rinishini kafolatlash */
.social-icon i {
    display: block;
    line-height: 1;
}

/* Hover effektlari */
.social-icon.tg:hover {
    background: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
    transform: translateY(-5px);
}

.social-icon.insta:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.5);
    transform: translateY(-5px);
}
/* Footer */
/* Asosiy Footer Stili */
.main-footer {
    background-color: #03081f;
    padding: 80px 8% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.hrbek{
    color: #020511;
    background-color:#020511 ;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
    line-height: 1.6;
    font-size: 14px;
    max-width: 300px;
}

.footer-links-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

/* Footer Pastki Qismi */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 13px;
}

.footer-legal a {
    color: #3b82f6;
    text-decoration: none;
    font-style: italic;
}

/* Mobil Moslashuvchanlik */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animatsiyalar (JS uchun classlar) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #0f172a;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.contact-form-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.contact-form-main input, 
.contact-form-main textarea {
    width: 100%;
    background: #050814;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: white;
    border-radius: 10px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

.contact-form-main textarea {
    height: 150px;
    resize: none;
}

.contact-form-main input:focus, 
.contact-form-main textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.full-width {
    width: 100%;
    cursor: pointer;
}

/* Ikonkalar konteyneri */
.social-icons {
    display: flex;
    gap: 15px; /* Ikonkalar orasidagi masofa */
    padding: 20px;
    text-align: center;
    justify-content: center;
}

/* Barcha ikonka tugmalari uchun umumiy uslub */
.icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Doira shakli uchun */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Yengil oq kontur */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white; /* Ikonka rangi */
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05); /* To'q fon effekti */
    transition: all 0.3s ease;
}

/* Hover effekti (sichqoncha borganda) */
.icon-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}
/* --- Oldingi CSS kodlaringiz shunday qoladi --- */

/* Til almashtirish tugmalari */
.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch button {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.lang-switch button:hover, 
.lang-switch button.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Men haqimda bo'limi */
.about-me {
    padding: 100px 8%;
    background: #050814;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    background: #0f172a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

/* Burger tugmasi stili */
.menu-btn {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    order: 2;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row !important; /* Ustma-ust tushishni to'xtatadi */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 5% !important;
    }

    .logo {
        font-size: 20px !important; /* Logotip kichrayadi */
        order: 1;
    }

    .menu-btn {
        display: block; /* 3 chiziq ko'rinadi */
    }

    .lang-switch {
        order: 3;
        margin-top: 0 !important;
    }

    .nav-links {
        display: none; /* Menyuni yashirib turamiz */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 8, 20, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #3b82f6;
    }

    .nav-links.active {
        display: flex; /* Tugma bosilganda chiqadi */
    }
}
/* Mobil moslashuvchanlik ichiga shuni qo'shib qo'ying */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .lang-switch {
        margin-top: 10px;
    }
}
/* Mobil moslashuvchanlik */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    
    .profile-img-container img {
        max-width: 250px; /* Telefonda rasmni biroz kichraytiramiz */
    }

    .hero-content h1 { 
        font-size: 32px; /* Telefonda matn juda yirik bo'lib ketmasligi uchun */
    }
    
    .hero-content h3 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 30px;
    }

    .hero-buttons { 
        flex-direction: column; 
        gap: 15px;
    }

    .btn { 
        text-align: center; 
        width: 100%; /* Tugmalar telefonda to'liq kenglikni egallaydi */
    }

    .footer-container { 
        flex-direction: column; 
    }

    .footer-bottom { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
    
    /* Yon qismlardagi bo'shliqni telefonda qisqartirish */
    .services, .portfolio, .contact, .main-footer {
        padding: 60px 5%;
    }
    .hero {
        padding: 0 5%;
    }
}
