/* Enhanced Responsive Design for All Screen Sizes */

/* Large Desktop - 1200px+ */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .project-card, .education-card, .achievement-card, .certificate-card, .language-card, .interest-card {
        padding: 1.5rem;
    }
}

/* Medium Desktop/Tablet - 992px */
@media (max-width: 992px) {
    .container {
        max-width: 900px;
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-grid, .projects-grid, .education-grid, .achievements-grid, .certificates-grid, .languages-grid, .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card, .education-card, .achievement-card, .certificate-card, .language-card, .interest-card {
        padding: 1.2rem;
    }
    
    .project-content h3, .project-content h4 {
        font-size: 1.1rem;
    }
    
    .company-logo-img {
        width: 20px;
        height: 20px;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    /* HIGH PRIORITY MOBILE GRID FIXES - DESKTOP TABLET */
    /* Force 2-column layout on desktop tablet for Awards, Interests, and Languages */
    
    .achievements-grid,
    .interests-grid,
    .languages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
        width: 100% !important;
    }
    
    .achievement-card,
    .interest-card,
    .language-card {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        padding: 18px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        min-height: 40vh;
        padding: 40px 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 1rem;
    }
    
    .hero-image {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .highlights-grid {
        justify-content: center;
        gap: 10px;
    }
    
    .highlight-card {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Experience Section - Mobile Optimized */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .project-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .project-content {
        text-align: left;
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        text-align: left;
        line-height: 1.4;
    }
    
    .project-content h4 {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0.5rem;
        color: var(--text-color);
    }
    
    .project-content p {
        font-size: 0.95rem;
        text-align: left;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    .project-tech {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 1rem;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .company-logo-img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .experience-date {
        font-size: 0.9rem;
        padding: 6px 12px;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .project-content ul {
        text-align: left;
        padding-left: 1rem;
    }
    
    .project-content li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        line-height: 1.5;
    }
    
    /* Other sections */
    .projects-grid, .education-grid, .achievements-grid, .certificates-grid, .languages-grid, .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-card, .achievement-card, .certificate-card, .language-card, .interest-card {
        padding: 1.5rem;
    }
    
    /* HIGH PRIORITY MOBILE GRID FIXES - TABLET */
    /* Force 2-column layout on tablet for Awards, Interests, and Languages */
    
    .achievements-grid,
    .interests-grid,
    .languages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .achievement-card,
    .interest-card,
    .language-card {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-list li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .hero {
        min-height: 35vh;
        padding: 25px 0 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Experience Section - Mobile Optimized */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5px;
    }
    
    .project-card {
        padding: 1.5rem 1rem;
        margin-bottom: 0.8rem;
        border-radius: 10px;
    }
    
    .project-content {
        text-align: left;
        padding: 0.5rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        text-align: left;
        line-height: 1.3;
    }
    
    .project-content h4 {
        font-size: 0.95rem;
        text-align: left;
        margin-bottom: 0.4rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .project-tech {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .company-logo-img {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .experience-date {
        font-size: 0.85rem;
        padding: 4px 8px;
        margin-bottom: 0.8rem;
    }
    
    .project-content ul {
        text-align: left;
        padding-left: 0.8rem;
    }
    
    .project-content li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        line-height: 1.4;
    }
    
    /* Other cards */
    .education-card, .achievement-card, .certificate-card, .language-card, .interest-card {
        padding: 1.2rem;
    }
    
    .highlight-card {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    /* HIGH PRIORITY MOBILE GRID FIXES */
    /* Force 2-column layout on mobile for Awards, Interests, and Languages */
    
    .achievements-grid,
    .interests-grid,
    .languages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .achievement-card,
    .interest-card,
    .language-card {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        padding: 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}
