@media (max-width: 420px) {

    .navbar,
    .navbar-about {
        top: 0;
    }
}

@media (min-width:768px) {
    .navbar .navbar-brand .logo {
        width: 300px;
        align-items: center;
        display: flex;
    }
}

@media (max-width: 768px) and (min-width: 320px) {
    .navbar .nav-links {
        display: none;
    }

    .navbar .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 15px 10px;
    }

    .navbar-brand .logo {
        width: 100% !important;
        max-width: 290px;
    }

}

@media (min-width: 1025px) {
    .hero .owl-carousel .item img {
        height: 500px !important;
    }

}

@media (max-width: 1025px) {
    .hero .owl-carousel .item img {
        height: 80vh !important;
        min-height: 220px;
        max-height: 400px;
    }

    .hero .owl-carousel .item {
        min-height: auto !important;
    }

    .hero .owl-carousel {
        min-height: auto !important;
    }

    .carousel-text {
        top: 60% !important;
    }

    .services-list {
        gap: 52px !important;
    }

    .cont-section {
        display: grid;
        gap: 0;
    }

    .workflow-cards {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }

    .footer-links {
        gap: 38px;
    }

    .footer {
        padding: 2rem;
    }

    .image-mobile {
        max-width: 47%;
    }

    .custom-app-development .container .phone-image1 {
        height: 350px;
    }
     .cont-section {
        display: flex !important;
        flex-direction: column !important;
    }
    .cont-section .content {
        order: 1;
    }
    .cont-section .image-container {
        order: 2;
        margin-top: 1em;
        text-align: center;
    }
    .cont-section .image-container img {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 900px) and (max-width: 1025px) {
    .carousel-text h2 {
        font-size: 2.8rem !important;
    }

    .section,
    .section1,
    .partner-section {
        padding: 3rem 3rem 2% !important;
    }
    
}


@media (max-width: 768px) {
    .carousel-overlay {
        width: 100%;
    }

    .carousel-text {
        max-width: 80%;
        left: 8%;
        top: 55%;
        transform: translateY(-55%);
        padding-right: 10px;
        padding-left: 10px;
        text-align: left;
    }
    .portfolio-card {
        height: 420px !important;
    }
    .portfolio-card img {
        height: 380px !important;
        object-fit: cover !important;
        width: 100% !important;
        display: block;
    }

    .carousel-text h2 {
        font-size: 2.3rem !important;
    }

    .carousel-text p {
        font-size: 1rem;
    }

    .services-list {
        gap: 20px !important;
    }

    .content-container {
        display: grid !important;
    }

    .image-column img,
    .image-container img {
        width: 70% !important;
        max-width: 100% !important;
    }

    .topbar {
        display: none;
    }

    .section,
    .services-section,
    .partner-section,
    .custom-app-development .container {
        padding: 2rem;
    }

    .partner-section {
        display: grid;
    }

    .partner-content {
        max-width: 100%;
    }

    .footer-container {
        justify-content: start;
        margin-bottom: 40px;
    }

    .footer-about {
        max-width: 100%;
    }

    .link-group:nth-of-type(2) {
        margin-top: 30px !important;
    }

    .footer-links {
        gap: 95px;
    }

    .story-content {
        display: inline;
    }

    .image-mobile {
        display: none;
    }

    .custom-app-development .content {
        max-width: 100%;
    }

    .mv-card {
        padding: 1.5rem;
    }

    .port-card {
        width: 345px;
    }

    .portfolio-container {
        gap: 20px;
        padding: 3rem 1rem 2%;
    }

    .erp-container {
        flex-direction: column;
        text-align: center;
    }

    .erp-content {
        position: static;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    }

    .mobile-develop {
        margin: 2rem;
    }

    .footer {
        padding: 1.5rem;
    }
     .cont-section {
        display: flex !important;
        flex-direction: column !important;
    }
    .cont-section .content {
        order: 1;
    }
    .cont-section .image-container {
        order: 2;
        margin-top: 1em;
        text-align: center;
    }
    .cont-section .image-container img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .carousel-overlay {
        width: 100%;
    }

    .carousel-text {
        width: 80%;
        max-width: 100%;
        left: 50%;
        top: 60%;
        transform: translate(-50%, -50%);
        padding: 0 5px;
        box-sizing: border-box;
    }
    .portfolio-card {
        height: 250px !important;
    }
    .portfolio-card img {
        height: 218px !important;
        object-fit: cover !important;
        width: 100% !important;
        display: block;
    }

    .carousel-text h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .carousel-text p {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .carousel-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .carousel-text h2 {
        font-size: 1.5rem !important;
    }

    .section,
    .section1 {
        padding: 2rem 1.5rem 2% !important;
    }

    .heading {
        font-size: var(--font-heading-small);
    }

    .services-section {
        padding: 3rem 2rem 2%;
    }

    .services-section1 {
        padding: 1rem;
    }

    .services-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-list li {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .image-container img {
        width: 100% !important;
    }

    .footer-links {
        display: inline;
    }

    .footer-container {
        gap: 30px;
    }

    .link-group:nth-of-type(2) {
        margin-top: 0px !important;
    }

    .footer-social {
        margin-top: 30px;
        text-align: initial;
    }

    .social-icons {
        margin: 0;
        justify-content: initial;
    }

    .footer-logo img,
    .story-content img {
        max-width: 310px;
    }

    .about-hero-content {
        margin-top: 5rem;
    }

    .about-hero-section {
        height: 36vh !important;
    }

    .mobile-develop {
        margin: 0;
    }

    .section-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .text-cont {
        width: 100%;
    }

    .content-container {
        padding: 0;
    }

    .section,
    .services-section,
    .partner-section,
    .custom-app-development .container,
    .erp-container,
    .cont-section {
        padding: 1.5rem;
        text-align: left;
    }

    .erp-benefits {
        max-width: 350px;
    }

    .erp-content {
        margin-right: 0;
    }

    .uiux-services {
        padding: 20px 20px;
    }
}

@media (min-width:1450px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-links {
        justify-content: center;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
    .portfolio-card {
        height: 500px !important;
    }
    .portfolio-card img {
        height: 400px !important;
        object-fit: cover !important;
        width: 100% !important;
        display: block;
    }
}

@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        gap: 28px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 28px 20px;
    }
}
@media (max-width: 600px) {
    .floating-buttons {
        right: 12px;
        bottom: 16px;
        gap: 10px;
    }
    .floating-buttons a {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .portfolio-grid{
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        margin: 1rem;
    }
}

