@media (min-width: 768px) {
    .hero-section .container {
        flex-direction: row; /* Yonma-yon bo'ladi */
        text-align: left;
        justify-content: space-between;
    }

    .text-content {
        flex: 1;
    }

    .image-container {
        flex: 1;
        max-width: 350px;
    }

    /* Statlarni moslashtiramiz */
    .stat-top-left {
        top: 40%;
        left: 75%;
        transform: translateX(-50%) rotate(-2deg);
    }

    .stat-bottom-left {
        bottom: 35%;
        left: 25%;
        transform: translateX(-50%) rotate(3deg);
    }

    .stat-experience-text {
        bottom: 0%;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        width: 220px;
    }

    .actions {
        display: flex;
        flex-direction: row; /* ✅ Endi yonma-yon */
        align-items: center;
        gap: 20px; /* Tugma va iconlar orasida masofa */
    }



.btn-cv {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #001946;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-cv:hover {
    background-color: #afafaf;
}


    .social-links {
        display: flex;
        gap: 10px;
    }

.social-icon {
    display: block;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    color: #ffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #001946;
    border-color: var(--primary-color);
}
}

@media (max-width: 767px) {

    .hero-section .container {
        flex-direction: column;   /* NORMAL tartib */
        text-align: center;
        gap: 30px;
    }

    /* Rasmni majburan tepaga chiqaramiz */
    .image-container {
        order: -1;                /* Tepaga chiqadi */
        max-width: 280px;
        width: 100%;
        margin: 0 auto 20px auto;
        position: relative;
    }

    .title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    /* Statlarni moslashtiramiz */
    .stat-top-left {
        top: 40%;
        left: 75%;
        transform: translateX(-50%) rotate(-2deg);
    }

    .stat-bottom-left {
        bottom: 35%;
        left: 25%;
        transform: translateX(-50%) rotate(3deg);
    }

    .stat-experience-text {
        bottom: 0%;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        width: 220px;
    }
}





/* --- TABLET (768px – 1023px) --- */
@media (max-width: 1023px) and (min-width: 768px) {
    .feature-card-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ta ustun */
        row-gap: 50px;
        column-gap: 20px;
        padding: 0 30px;
    }

    .section-main-title {
        font-size: 2rem;
    }
}

/* --- MOBILE (<=767px) --- */
@media (max-width: 767px) {

    .main-content-container {
        padding: 0 20px;
    }

    .section-main-title {
        font-size: 1.6rem;
    }

    .feature-card-grid {
        grid-template-columns: 1fr;  /* 1 ta ustun */
        row-gap: 50px;
        column-gap: 0;
        padding: 0; /* Yon bo'shliqni kamaytirish */
    }

    .feature-card-item {
        padding: 20px;
        text-align: left;
        align-items: flex-start;
    }

    .card-feature-title {
        font-size: 1rem;
    }

    .card-feature-description {
        font-size: 0.9rem;
    }
}






/* --- DESKTOP (Katta ekranlar) uchun moslashuvchanlik --- */
@media (min-width: 768px) {
    .profile-container {
        flex-direction: row; 
        text-align: left;
    }
    
    .author-info-content {
        max-width: 55%; 
    }
    
    .author-image-wrapper {
        width: 45%;
        margin-left: auto; 
    }
    
    .author-name {
        font-size: 4rem; 
    }
    
    .author-details-list {
        margin-left: 0;
        max-width: 90%;
    }
    
    .company-logos {
        justify-content: flex-start; 
    }
    
    /* Iqtibosni desktopda rasm chetidan tashqariga chiqarish */
    .mission-quote-box {
        bottom: 50px; 
        left: -100px; 
        max-width: 350px;
    }
}

/* --- MOBILE uchun maxsus stillar --- */
@media (max-width: 767px) {
    
    /* Mobil rejimda iqtibosni rasm ostiga, markazga joylashtirish */
    .mission-quote-box {
        position: static; /* Mutlaq joylashuvni o'chiramiz */
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        text-align: center;
        box-shadow: none; 
    }
}