/* ========================================================
   Comprehensive Responsive Media Queries — AgenticAim
   Engineered for All Devices: Mobile (320px+), Tablets, Laptops & Desktops (4K)
   ======================================================== */

/* Large Desktops & 4K Displays (min-width: 1441px) */
@media (min-width: 1441px) {
    .section-wrapper,
    .header-container,
    .foot,
    .footer-bottom-wrapper {
        max-width: 1320px;
    }
}

/* Standard Laptops & Desktops (1201px - 1440px) */
@media (max-width: 1440px) {
    .hero-title {
        font-size: 44px;
    }
}

/* Large Tablets & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .agent-download-card {
        grid-template-columns: 1fr;
    }

    .card-visual-frame {
        border-right: none;
        border-bottom: 1px solid rgba(0, 13, 60, 0.06);
    }
}

/* Tablet Screens (max-width: 992px) */
@media (max-width: 992px) {
    .header-container,
    .section-wrapper,
    .foot,
    .footer-bottom-wrapper {
        width: 90%;
    }

    .page-hero {
        padding: 55px 0 40px;
    }

    .hero-section {
        padding: 55px 0 65px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 16px;
    }

    /* Switch desktop navigation to drawer to prevent navbar collision */
    .nav-menu {
        display: none;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
        margin: 0 auto;
        gap: 20px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Showcase Footer */
    .showcase-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .showcase-info {
        flex: 1 1 100%;
        width: 100%;
    }

    /* About Overview Grid */
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .panel-inner {
        grid-template-columns: 1fr;
    }

    .panel-image-side {
        border-right: none;
        border-bottom: 1px solid rgba(0, 13, 60, 0.06);
        padding: 18px;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    footer {
        border-top-left-radius: 80px;
        padding: 32px 0 16px;
    }

    .foot {
        gap: 28px 20px;
    }

    .col-contact {
        flex: 0 1 45%;
    }

    .col-links {
        flex: 0 1 20%;
    }

    .col-social {
        flex: 0 1 30%;
    }
}

/* Mobile Screens & Phablets (max-width: 768px) */
@media (max-width: 768px) {
    .header-container {
        width: 90%;
        height: 66px;
    }

    .brand-name {
        font-size: 22px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .page-hero,
    .hero-section {
        padding: 45px 0 50px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -0.6px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 26px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 36px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Team Section */
    .team-section {
        padding: 55px 0 70px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        gap: 20px;
    }

    /* Services Section */
    .services-section,
    .services-main-section {
        padding: 40px 0 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 26px 20px;
    }

    /* AI Agent Download Card */
    .card-details {
        padding: 28px 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Collaboration CTA */
    .collaboration-cta-section {
        padding: 60px 0 70px;
    }

    .collaboration-heading {
        font-size: 24px;
        line-height: 1.35;
    }

    .btn-work-with-us {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* About Section */
    .about-overview-section,
    .agent-frontend-gallery-section {
        padding: 40px 0 50px;
    }

    .about-narrative h2 {
        font-size: 26px;
    }

    .gallery-nav-tabs {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .gallery-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13.5px;
    }

    .panel-content-side {
        padding: 26px 18px;
    }

    .agent-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Contact Section */
    .contact-section {
        padding: 40px 0 65px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .contact-item a {
        word-break: break-all;
    }

    /* Footer Mobile */
    footer {
        border-top-left-radius: 50px;
        padding: 28px 0 14px;
    }

    .foot {
        width: 90%;
        flex-direction: column;
        gap: 22px;
    }

    .col-contact,
    .col-links,
    .col-social {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .underline {
        top: 25px;
    }

    .newsletter-form {
        max-width: 100%;
        margin-top: 10px;
    }

    .social-icons-row {
        margin-top: 14px;
    }

    .footer-bottom-wrapper {
        width: 90%;
        margin-top: 18px;
    }

    .footer-divider {
        margin-bottom: 12px;
    }

    .footer-copyright p {
        font-size: 12.5px;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .header-container,
    .section-wrapper,
    .foot,
    .footer-bottom-wrapper {
        width: 92%;
    }

    .header-container {
        height: 62px;
    }

    .brand-name {
        font-size: 20px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .hero-description {
        font-size: 14px;
    }

    .card-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .team-name {
        font-size: 18px;
    }

    .role-badge {
        font-size: 12px;
    }

    .card-title {
        font-size: 21px;
    }

    .card-description {
        font-size: 14px;
    }

    .btn-download {
        font-size: 15px;
        padding: 12px 20px;
    }

    .download-meta {
        font-size: 11.5px;
    }

    .collaboration-heading {
        font-size: 21px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 22px 16px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item i {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .form-control {
        font-size: 14px;
        padding: 11px 12px;
    }

    footer {
        border-top-left-radius: 36px;
        padding: 24px 0 14px;
    }

    .social-circle {
        width: 32px;
        height: 32px;
    }

    .social-circle i {
        font-size: 13px;
    }
}

/* Very Small / Narrow Screens (max-width: 350px) */
@media (max-width: 350px) {
    .brand-name {
        font-size: 18px;
    }

    .hero-title {
        font-size: 22px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 11px 16px;
    }
}
