﻿/**
 * NBEAT IT Solution - Responsive Stylesheet
 * Mobile Navbar, Infinite Marquee, Full Mobile Polish
 */

/* =============================================
   INFINITE MARQUEE - TESTIMONIALS
   ============================================= */
.testimonials-marquee-section {
    overflow: hidden;
}

.testimonials-marquee-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    padding: 12px 0 20px;
}

.testimonials-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 36s linear infinite;
}

.testimonials-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-marquee-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 26px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-width: 320px;
    max-width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.testimonial-marquee-card:hover {
    box-shadow: 0 12px 36px rgba(0, 86, 224, 0.14);
    transform: translateY(-4px);
}

.quote-icon-sm {
    font-size: 1.8rem;
    color: rgba(0, 86, 224, 0.18);
    line-height: 1;
    margin-bottom: 10px;
}

/* =============================================
   MOBILE NAVBAR ELEMENTS
   ============================================= */
.navbar-toggler-custom {
    background: transparent;
    border: 2px solid rgba(0, 86, 224, 0.25);
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.navbar-toggler-custom:hover,
.navbar-toggler-custom:focus {
    background: var(--primary-light);
    border-color: var(--primary);
    outline: none;
}

.navbar-toggler-custom .bi {
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.25s ease;
    line-height: 1;
}

.mobile-whatsapp-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-whatsapp-btn:hover {
    background: #1da851;
    transform: scale(1.06);
}

/* Nav icons hidden on desktop */
.nav-icon {
    display: none;
}

/* =============================================
   TABLET NAVBAR & LAYOUT (max 991px)
   ============================================= */
@media (max-width: 991.98px) {

    .nav-icon {
        display: inline-flex;
        font-size: 0.88rem;
        color: var(--primary);
        margin-right: 4px;
    }

    .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(11, 21, 40, 0.14);
        margin-top: 12px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(0, 86, 224, 0.1);
    }

    .navbar-collapse .navbar-nav {
        padding: 12px 8px 8px;
    }

    .navbar-nav .nav-link {
        padding: 11px 16px !important;
        border-radius: 10px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--dark-navy) !important;
        border-left: 3px solid transparent;
        margin-bottom: 2px;
        transition: all 0.2s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--primary-light);
        color: var(--primary) !important;
        border-left-color: var(--primary);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-custom .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-radius: 10px;
        background: #f8fafc;
        margin: 0 8px 8px;
        padding: 6px;
        animation: none;
        border-top: none;
        min-width: unset;
    }

    .dropdown-item {
        border-radius: 8px;
        font-size: 0.88rem;
        padding: 9px 14px;
    }

    .dropdown-item.primary-item {
        border-radius: 8px;
        margin-bottom: 2px;
    }

    .mobile-nav-cta {
        padding: 14px 16px;
        background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
        border-top: 1px solid rgba(0, 86, 224, 0.1);
    }

    .mobile-nav-cta .btn-secondary-gradient {
        font-size: 0.9rem;
        padding: 10px 16px;
        border-radius: 10px;
    }

    .mobile-nav-contact {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .mobile-nav-contact a {
        flex: 1 1 auto;
        text-align: center;
        background: #ffffff;
        border: 1px solid rgba(0, 86, 224, 0.18);
        border-radius: 8px;
        padding: 6px 8px;
        font-size: 0.78rem;
        color: var(--primary);
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-decoration: none;
        transition: all 0.2s ease;
        min-width: 130px;
    }

    .mobile-nav-contact a:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .top-bar {
        text-align: center;
    }

    .top-bar .contact-items {
        justify-content: center !important;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-section {
        padding: 60px 0 80px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats-box {
        justify-content: center;
    }

    .hero-mockup-wrapper {
        margin-top: 50px;
    }

    .web-highlight-section {
        padding: 40px 24px;
        text-align: center;
    }

    .web-spec-grid {
        text-align: left;
    }

    .cta-banner {
        text-align: center;
        padding: 45px 25px;
    }

    .cta-banner .d-flex {
        justify-content: center !important;
        margin-top: 20px;
    }

    .page-banner {
        padding: 50px 0;
        text-align: center;
    }

    .page-banner h1 {
        font-size: 2.2rem;
    }
}

/* =============================================
   MOBILE (max 767px)
   ============================================= */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-lead {
        font-size: 0.95rem;
    }

    .section-py {
        padding: 55px 0;
    }

    .form-card {
        padding: 25px 20px;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 38px;
        height: 38px;
    }

    .floating-tech-badge {
        display: none;
    }

    .hero-stats-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .page-banner {
        padding: 40px 0;
    }

    .page-banner h1 {
        font-size: 1.9rem;
    }

    .testimonials-marquee-track {
        animation-duration: 24s;
    }

    .testimonial-marquee-card {
        min-width: 285px;
        max-width: 305px;
        padding: 22px 18px;
    }

    .cta-banner {
        border-radius: 16px;
        padding: 36px 20px;
    }

    .project-thumb {
        height: 180px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* =============================================
   SMALL PHONES (max 575px)
   ============================================= */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 40px 0 55px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-group .btn-primary-gradient,
    .hero-btn-group .btn-outline-light-custom {
        /* width: 100%; */
        justify-content: center;
    }

    .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    .hero-stats-box {
        grid-template-columns: 1fr 1fr;
    }

    .page-banner h1 {
        font-size: 1.65rem;
    }

    .page-banner p {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .testimonial-marquee-card {
        min-width: 260px;
        max-width: 278px;
        padding: 18px 15px;
    }

    .testimonials-marquee-track {
        gap: 14px;
        animation-duration: 20s;
    }
}