/* --- Default state: Hide hamburger on Desktop --- */
.menu-toggle-btn,
.close-menu-btn {
    display: none;
}

/* --- TABLET RESPONSIVENESS (Screens up to 1024px) --- */
@media (max-width: 1024px) {
    .main-container {
        margin: 1.5rem 1rem;
    }

    /* Header becomes a 2-row layout */
    .navbar {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
        /* margin-left: 0px; */
    }

    .nav-left,
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-right {
        width: auto;
        /* Move profile icon next to the nav links on tablet */
        order: 2;
    }

    .nav-left {
        order: 1;
    }

    .search-container {
        width: 100%;
        order: 3; /* Search bar at the bottom */
        max-width: none;
    }

    .slide img {
        aspect-ratio: 16 / 7;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        margin: 10px;
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .menu-toggle-btn {
        display: flex;
    }

    .nav-left {
        gap: 16px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        padding: 16px 32px;
    }

    .close-menu-btn {
        position: absolute;
        top: 30px;
        right: 30px;
        background: var(--accent-gradient);
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-size: 24px;
        color: white;
        cursor: pointer;
        transition: var(--transition);
    }

    .search-container {
        width: 100%;
        order: 3;
    }

    .nav-right {
        order: 2;
        width: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        margin: 0px;
        padding: 12px 16px;
    }

    .logo {
        font-size: 20px;
    }

    .search-container {
        padding: 6px;
    }

    .location-selector-btn {
        padding: 10px 16px;
    }

    .search-button {
        width: 44px;
        height: 44px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Floating Animation for Interactive Elements */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.navbar:hover .logo {
    animation: float 3s ease-in-out infinite;
}

/* --- MOBILE RESPONSIVENESS (Screens up to 768px) --- */
@media (max-width: 768px) {
    /* --- HAMBURGER MENU STYLES --- */
    .menu-toggle-btn {
        /* This rule now correctly overrides the default display:none */
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 24px;
        color: var(--primary-text);
    }

    .close-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        font-size: 28px;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--background-color);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding-top: 60px;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%); /* Hide menu by default */
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.is-open {
        transform: translateX(0); /* Show menu when active */
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-left: 0px;
    }

    .nav-links li a {
        display: block;
        padding: 15px 25px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links a:hover {
        background-color: var(--hover-light);
    }
    .nav-links a::after {
        display: none; /* Remove underline animation on mobile */
    }

    /* --- HEADER LAYOUT ON MOBILE --- */
    .navbar {
        flex-wrap: nowrap;
        align-items: center;
        gap: 16px;
        justify-content: space-between;
    }

    .nav-left {
        width: auto;
        order: 1;
    }

    .nav-right {
        width: auto;
        order: 3;
    }

    .search-container {
        display: none; /* Hide the search bar from the header */
    }

    /* Slider adjustments */
    /* .slider-container {
    height: auto;
    aspect-ratio: 16 / 9;
  } */
}

/* --- Add this code to the bottom of your responsive.css file --- */

/* --- Search Overlay Styles --- */
/* --- Hidden by default --- */
.mobile-search-overlay {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 99;
    height: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- When opened --- */
.mobile-search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
}

.close-mobile-search {
    border: none;
    background: transparent;
    font-size: 22px;
    color: #111;
}

.mobile-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 6px 14px;
    background: #f7f7f7;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.close-search-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--secondary-text);
}

.search-overlay-content {
    display: flex;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.search-overlay-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--font-family);
}

.search-overlay-button {
    border: none;
    background-color: var(--primary-text);
    color: white;
    padding: 0 25px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
}

/* Initially hide the mobile search icon */
.search-toggle-btn {
    display: none;
}

/* --- Show the search icon ONLY on mobile --- */
@media (max-width: 768px) {
    .search-toggle-btn {
        display: flex; /* Show the new search icon */
    }
}

/* --- NEW: Mobile Dropdown Search Bar Styles --- */

/* Initially hide the container by collapsing it */
.mobile-search-container {
    background-color: #ffffff;
    padding: 0 1rem; /* Padding will be applied when open */
    max-height: 0;
    overflow: hidden;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

/* This class will be toggled by JS to open the search bar */
.mobile-search-container.is-open {
    padding: 1rem;
    max-height: 100px; /* Animate to this height */
}

.mobile-search-content {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.mobile-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 15px;
    font-family: var(--font-family);
}

.mobile-search-button {
    border: none;
    background-color: var(--primary-text);
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
}

/* --- Keep these rules for the search icon in the header --- */

/* Initially hide the mobile search icon */
.search-toggle-btn {
    display: none;
}

/* Show the search icon ONLY on mobile */
@media (max-width: 768px) {
    .search-toggle-btn {
        display: flex;
    }
}

.mobile-search-container {
    background-color: #fff;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mobile-search-container.is-open {
    padding: 1rem;
    max-height: 200px;
}

.mobile-search-content {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}

.mobile-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 15px;
}

.mobile-search-button {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* --- UPDATED: Responsive styles for Services Section --- */

@media (max-width: 1024px) {
    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 16px;
    }
    .service-cards-grid {
        /* Grid will automatically adjust, maybe to 2 columns */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 21px;
        font-weight: 700;
    }
    .section-subtitle {
        font-size: 14px;
        padding: 0 1rem; /* Add padding to subtitle on mobile */
    }
    .service-cards-grid {
        /* Grid will stack to 1 column automatically */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* A slightly smaller gap for better spacing */
        padding: 0 1rem;
    }
    .service-card {
        flex-direction: column; /* This is the key change: stacks items vertically */
        text-align: center; /* Centers the text below the image */
        padding: 20px;
        gap: 10px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 10px; /* Adds some space below the image */
    }

    .service-text-content {
        text-align: center; /* Ensures text inside the container is centered */
    }

    .service-name {
        font-size: 16px;
    }
}

/* --- NEW: Responsive Styles for Cool Brands Section --- */

@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    .brands-title {
        font-size: 28px;
    }
    .brands-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .brands-section-futuristic {
        padding: 50px 0;
    }
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .brands-title {
        font-size: 24px;
    }
    .brands-subtitle {
        font-size: 14px;
        padding: 0 1rem;
    }
    /* Disable the hover animation on touch devices */
    .brand-card:hover {
        transform: none;
        box-shadow: none;
    }
    .brand-card:hover::before {
        background-size: 0 2px, 0 2px, 2px 0, 2px 0; /* Keep lines hidden */
    }
    .brand-card:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* --- NEW: Responsive Styles for Modern Process Cards --- */

@media (max-width: 1024px) {
    .process-grid-final {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .process-section-final {
        padding: 60px 0;
    }
    .process-grid-final {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 40px; /* Increase gap for vertical layout */
        padding: 0 1.5rem;
    }
    .card-title {
        font-size: 20px;
    }
    .card-description {
        font-size: 14px;
    }
}

/* Responsive Design why choose us */
/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
        padding: 40px 20px;
    }

    .main-title {
        font-size: 48px;
    }

    .solutions-title {
        font-size: 36px;
    }

    .laptop-container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }

    .solutions-title {
        font-size: 28px;
    }

    .laptop-container {
        transform: scale(0.6);
        display: none;
    }

    .experience-number {
        font-size: 80px;
    }
}

/* issue slider responsive */

/* --- CORRECTED RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .tech-section {
        padding: 30px;
    }

    .tab-content {
        /* Stack the two main columns vertically on tablets and mobile */
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-box {
        position: static; /* Un-stick the info box */
    }
}

@media (max-width: 768px) {
    .tech-section {
        padding: 20px;
    }

    .tabs-container {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-slider .slide {
        min-width: 170px; /* readable cards */
        padding: 10px;
        gap: 8px;
    }

    .category-slider .slide img {
        width: 27px;
        height: 41px;
    }

    .category-slider .slide p {
        font-size: 14px;
    }

    .issue-title {
        font-size: 22px;
    }
}

/* ✅ Responsive features */
@media (max-width: 1024px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 16px;
    }

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

/* testimonial Responsive */
@media (max-width: 768px) {
    .slider {
        animation: scroll 60s linear infinite;
        gap: 15px;
        padding: 0 10px;
    }

    .testimonial-card {
        width: 100%;
        max-width: 350px;
        min-height: 205px;
        height: auto;
        padding: 20px;
        margin: 0 auto;
        box_sizing: border-box;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        word-wrap: break-word;
    }

    .testimonial-section h2 {
        font-size: 22px;
        line-height: 1;
        padding: 0 10px;
    }

    .testimonial-section::before,
    .testimonial-section::after {
        width: 50px; /* ✅ edge fade chhota kar diya */
    }
}

/* RESPONSIVE faq */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-right {
        order: 2;
    }
    .faq-left {
        order: 1;
    }
    .faq-title {
        font-size: 28px;
    }
}

/* ✅ Responsive rating */
@media (max-width: 768px) {
    .trust-container {
        flex-direction: column;
        text-align: center;
    }
    .trust-text {
        font-size: 16px;
    }
}

/*footer responsive*/
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr; /* 1 column on mobile */
        /* text-align: center; */
    }
    .footer-about p {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
}


/* Mobile View specific styles */
@media (max-width: 768px) {
    /* Make the H3 clickable and align arrow */
    .footer-collapse h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        /* align-items: center; */
        margin-bottom: 0px;
        padding: 0px 0;
        border-bottom: 1px solid #e0e0e0; /* Optional: separator line */
    }

    /* Show the arrow on mobile */
    .mobile-arrow {
        display: block;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when open */
    .footer-collapse.active .mobile-arrow {
        transform: rotate(180deg);
    }

    /* Hide the list by default with smooth animation */
    .footer-collapse .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
        opacity: 0;
        margin-top: 0;
    }

    /* Show the list when active class is added */
    .footer-collapse.active .footer-links {
        max-height: 500px; /* Big enough to fit content */
        opacity: 1;
        margin-top: 10px;
    }

    /* Remove default margin from LI to make animation smoother */
    .footer-col li {
        margin-bottom: 12px;
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 4px solid #eee;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .process-grid-final {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .process-section-final {
        padding: 0px 0;
    }
    .process-grid-final {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 40px; /* Increase gap for vertical layout */
        padding: 0 1.5rem;
    }
    .card-title {
        font-size: 20px;
    }
    .card-description {
        font-size: 14px;
    }
}



