/* css/mobile.css */

@media (max-width: 933px) {
    body {
        font-size: 0.95rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    section {
        padding: 1.5rem 0.5rem;
    }

    header {
        padding: 0.8rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    header .site-header-text {
        display: block;
        font-size: 1.1rem;
        color: #333;
        font-weight: bold;
        text-decoration: none;
        margin-left: auto;
        margin-right: 0;
    }


    .site-header-text {
        font-size: 1.1rem;
        color: #333;
        font-weight: bold;
        text-decoration: none;
        margin-left: auto;
        margin-right: 0;
    }

    .mobile-nav-toggle {
        display: block;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        order: -1;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #f9f9f9;
        width: 100%;
        z-index: 10;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
    }

    nav ul.open {
        display: block;
    }

    nav li {
        margin: 0;
        border-bottom: 1px solid #555;
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        color: #555;
        padding: 0.8rem 1.2rem;
        text-align: left;
    }

    nav a.active {
        font-weight: bold;
        color: #007bff;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        margin-top: 1rem;
    }

    .hero-buttons .cta-button,
    .hero-buttons .cta-button.secondary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        margin-left: 0;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .skills span {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        margin: 0.3rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .about-details,
    .contact-details,
    .mlops-details,
    .experiments-details {
        padding: 1rem;
    }

    .profile-pic {
        max-width: 65%;
    }

    .algorithm-tabs {
        display: flex;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
    }

    .tab-button {
        flex-shrink: 0;
    }

    .chatbot-widget {
        width: 100%;
        font-size: 0.9rem;
    }

    #chatbot-conversation {
        font-size: 0.9rem;
    }

    #chatbot-input {
        font-size: 0.9rem;
    }

    #chatbot-send {
        font-size: 0.9rem;
    }

    .chatbot-message-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .chatbot-features-summary ul {
        grid-template-columns: 1fr;
    }

    .chatbot-features-summary h2,
    .tech-stack-breakdown h2,
    .skills-category h3,
    .sample-prompts-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p,
    .chatbot-features-summary li,
    .tech-stack-breakdown p,
    .sample-prompts-section p,
    .about-section p,
    .contact-section p {
        font-size: 1rem;
    }

    .contact-links i {
        font-size: 2rem;
    }

    .ai-experiments .experiment-image {
        max-width: 60%;
        height: auto;
        float: none;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 2rem;
        display: block;
    }

    .ai-experiments .experiment-card h3 {
        margin-top: 1rem;
        text-align: center;
    }

    .ai-experiments .experiment-card p {
        clear: both;
    }

    .ai-experiments .experiment-card.coming-soon .coming-soon-overlay {
        top: 5px;
        left: 5px;
    }
}

@media (max-width: 600px) {
    .experiments-details {
        padding: 1rem;
    }

    .experiments-details h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .experiment-card {
        padding: 1rem;
    }

    .experiment-card h3 {
        font-size: 1.3rem;
    }

    .experiment-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    section {
        padding: 1.5rem 0.5rem;
    }
    .hero {
        padding: 2rem 1rem;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .cta-button,
    .cta-button.secondary {
        width: 100%;
    }
    .chatbot-features-summary,
    .tech-stack-breakdown,
    .sample-prompts-section,
    .about-section,
    .contact-section {
        padding: 1.5rem;
    }
}