/* ==========================================================================
   RESPONSIVE DESIGN - ALL SCREEN SIZES
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .plans-main-title {
        font-size: 32px !important;
    }

    .plan-title {
        font-size: 32px !important;
    }

    .plan-header-section {
        padding: 50px 40px 30px !important;
    }

    .plan-description,
    .features-grid {
        padding: 0 40px 30px !important;
    }

    .plan-cta {
        padding: 0 40px 40px !important;
    }

    .plan-divider {
        margin: 0 40px 30px !important;
    }
}

/* Mobile Landscape & Small Tablets (600px - 768px) */
@media (max-width: 768px) {
    .plans-header {
        text-align: center !important;
        padding: 0 20px !important;
        margin-bottom: 40px !important;
    }

    .plans-main-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .plans-subtitle {
        font-size: 14px !important;
    }

    /* Ensure navbar is visible on mobile */
    #main-navbar {
        background-color: rgba(12, 12, 12, 0.95) !important;
        backdrop-filter: blur(10px);
        padding: 15px 0 !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Ensure mobile menu button is visible */
    #mobile-menu-btn {
        display: block !important;
        color: #fff !important;
        position: relative;
        z-index: 10000;
    }

    /* Mobile Menu Styling */
    #mobile-menu {
        display: none !important;
        background-color: rgba(12, 12, 12, 0.98) !important;
        backdrop-filter: blur(10px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    #mobile-menu.active {
        display: flex !important;
    }

    .plan-card {
        margin: 0 10px !important;
    }

    .plan-header-section {
        padding: 40px 30px 30px !important;
    }

    .plan-title {
        font-size: 28px !important;
    }

    .plan-tagline {
        font-size: 14px !important;
    }

    .plan-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 32px !important;
    }

    .plan-description,
    .features-grid {
        padding: 0 30px 30px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .plan-cta {
        padding: 0 30px 40px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .plan-divider {
        margin: 0 30px 30px !important;
    }
}

/* Mobile Portrait (up to 600px) */
@media (max-width: 600px) {
    .plans-main-title {
        font-size: 24px !important;
    }

    .plans-subtitle {
        font-size: 13px !important;
    }

    .plan-header-section {
        padding: 30px 20px 20px !important;
    }

    .plan-badge {
        font-size: 9px !important;
        padding: 6px 16px !important;
    }

    .plan-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }

    .plan-title {
        font-size: 24px !important;
    }

    .plan-tagline {
        font-size: 13px !important;
    }

    .plan-description {
        padding: 0 20px 25px !important;
    }

    .plan-description p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .features-grid {
        padding: 0 20px 25px !important;
        gap: 16px !important;
    }

    .feature-column {
        padding: 20px !important;
    }

    .feature-column-header {
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }

    .feature-column-header i {
        font-size: 14px !important;
    }

    .features-heading {
        font-size: 13px !important;
    }

    .features-list li {
        padding: 8px 0 !important;
        gap: 10px !important;
    }

    .feature-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .feature-icon i {
        font-size: 12px !important;
    }

    .feature-text {
        font-size: 13px !important;
    }

    .plan-cta {
        padding: 0 20px 30px !important;
        gap: 12px !important;
    }

    .cta-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .cta-btn i {
        font-size: 14px !important;
    }

    .plan-divider {
        margin: 0 20px 25px !important;
    }

    .plan-cta::before {
        width: 300px !important;
        height: 50px !important;
    }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .plans-main-title {
        font-size: 22px !important;
    }

    .plan-header-section {
        padding: 25px 15px 20px !important;
    }

    .plan-title {
        font-size: 22px !important;
    }

    .plan-description,
    .features-grid,
    .plan-cta {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .feature-column {
        padding: 16px !important;
    }

    .cta-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    .plan-divider {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}

/* ==========================================================================
   SERVICES SECTION RESPONSIVE
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .offerings-header {
        padding: 0 20px;
        margin-bottom: 40px !important;
    }

    .offerings-title {
        font-size: 28px !important;
    }

    .offerings-subtitle {
        font-size: 16px !important;
    }

    .service-offerings-card {
        padding: 40px 30px !important;
        margin-top: 60px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .service-offerings-card {
        padding: 32px 16px !important;
        border-radius: 24px !important;
    }

    .offerings-title {
        font-size: 24px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .offerings-subtitle {
        font-size: 14px !important;
    }

    .offering-item {
        padding: 20px !important;
        flex-direction: row !important;
        gap: 16px !important;
    }

    .offering-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }

    .offering-icon {
        font-size: 20px !important;
    }

    .offering-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    .offering-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Service Modal Responsive */
    #service-modal .service-modal-content {
        max-width: 95% !important;
        margin: 20px !important;
    }

    #service-modal .bg-gradient-to-br {
        padding: 32px 24px !important;
        border-radius: 24px !important;
    }

    #modal-title {
        font-size: 28px !important;
    }

    #modal-desc {
        font-size: 16px !important;
    }

    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .offerings-title {
        font-size: 20px !important;
    }

    .offerings-icon {
        font-size: 24px !important;
    }

    .service-offerings-card {
        padding: 24px 12px !important;
    }

    .offering-item {
        padding: 16px !important;
        gap: 12px !important;
    }

    .offering-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
    }

    .offering-icon {
        font-size: 18px !important;
    }

    .offering-title {
        font-size: 14px !important;
    }

    .offering-desc {
        font-size: 12px !important;
    }
}

/* ==========================================================================
   GENERAL MOBILE IMPROVEMENTS
   ========================================================================== */

/* Ensure no horizontal overflow */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden !important;
    }

    * {
        max-width: 100%;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    main.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Section padding adjustments */
    .sec-box {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .main-sec {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hero CTA improvements */
    .hero-cta-group {
        width: auto !important;
        max-width: 100% !important;
        padding: 5px !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }

    .hero-cta-btn {
        white-space: nowrap !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex-shrink: 0;
    }

    .hero-cta-text {
        font-size: 0.75rem !important;
        padding: 0 10px 0 15px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Stats row mobile */
    .hero-stats-row {
        gap: 16px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .hero-stat-item {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 33.333%;
        text-align: center;
    }

    .hero-stat-item h4 {
        font-size: 18px !important;
        white-space: nowrap;
        margin-bottom: 4px !important;
    }

    .hero-stat-item p {
        font-size: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.5px !important;
    }
}

/* Very small devices */
@media (max-width: 375px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .sec-box {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-cta-group {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .hero-cta-btn {
        width: auto !important;
        margin-bottom: 0 !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .hero-cta-text {
        text-align: left !important;
        padding: 0 8px 0 10px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        max-width: 140px;
    }

    .hero-stats-row {
        gap: 12px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .hero-stat-item h4 {
        font-size: 16px !important;
    }

    .hero-stat-item p {
        font-size: 7px !important;
        letter-spacing: 0.3px !important;
    }
}

/* ==========================================================================
   MARQUEE ANIMATION SPEED - MOBILE
   ========================================================================== */

/* Speed up marquee on mobile for better readability */
@media (max-width: 768px) {
    .animate-marquee {
        animation: marquee 20s linear infinite !important;
        white-space: nowrap !important;
    }

    /* Reduce text size to fit on one line */
    .animate-marquee span {
        font-size: 1.125rem !important;
        /* 18px */
        white-space: nowrap !important;
    }
}

/* Even faster on very small screens */
@media (max-width: 480px) {
    .animate-marquee {
        animation: marquee 15s linear infinite !important;
    }

    /* Further reduce text size for small screens */
    .animate-marquee span {
        font-size: 0.875rem !important;
        /* 14px */
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .animate-marquee span {
        font-size: 0.75rem !important;
        /* 12px */
    }
}