/* Mobile-friendly CSS for index.html and agents.html */
/* Only affects mobile devices (≤768px) */

@media (max-width: 768px) {
    /* General Mobile Fixes */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.8rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        text-align: center;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
    
    /* About Section Mobile */
    .about {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .about-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Product Section Mobile */
    .product {
        padding: 4rem 0;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .use-case-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .use-case-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Team Section Mobile */
    .team {
        padding: 4rem 0;
    }
    
    .team-card {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .team-card h3 {
        font-size: 1.2rem;
    }
    
    .team-role {
        font-size: 0.8rem;
    }
    
    .team-card p {
        font-size: 0.9rem;
    }
    
    /* Contact Section Mobile */
    .contact {
        padding: 4rem 0;
    }
    
    .contact-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-item-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-nav {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Agents Page Mobile */
    .agents-section {
        padding: 4rem 0;
    }
    
    .agents-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .agent-card {
        padding: 1.5rem;
    }
    
    .agent-avatar {
        width: 100px;
        height: 100px;
    }
    
    .agent-name {
        font-size: 1.3rem;
    }
    
    .agent-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .agent-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .agent-actions .btn {
        width: 100%;
    }
    
    /* Filter Section Mobile */
    .filter-section {
        padding: 2rem 0 1rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 70vh;
    }
    
    .feature-list li {
        font-size: 0.9rem;
    }
    
    .integration-badges {
        gap: 0.25rem;
    }
    
    .integration-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Utility Classes Mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile-2 {
        margin-bottom: 2rem;
    }
    
    .px-mobile-1 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile devices */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .about-card,
    .feature-card,
    .use-case-card,
    .team-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .agent-card {
        padding: 1rem;
    }
    
    .agent-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn,
    .nav-link,
    .tab-btn,
    .filter-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text selection on buttons */
    .btn,
    .tab-btn,
    .filter-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Fix viewport issues */
    .hero,
    .about,
    .product,
    .team,
    .contact,
    .agents-section {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}