/* =============== Responsive Styles =============== */

/* Large Desktop - 1400px */
@media (max-width: 1400px) {
    .img-container {
        max-width: 100%;
        height: 420px;
    }

    .slide-content {
        width: 360px;
        height: 210px;
    }
}

/* Desktop - 1200px */
@media (max-width: 1200px) {
    .stats-grid {
        gap: 8px;
        padding: 15px;
    }

    .stat-item {
        width: 120px;
        height: 130px;
    }

    .img-container {
        height: 380px;
    }

    .slide-content {
        width: 320px;
        height: 200px;
    }


    .navbar-links li a {
        font-size: 14px;
    }

    .navbar-logo {
        height: 70px;
        width: 220px;
    }
}

/* Tablet Landscape - 1024px */
@media (max-width: 1024px) {

    /* nav */
    .navbar-logo {
        height: 70px;
        width: 200px;
    }

    .stats-container {
        margin-top: 50px;
    }

    .stats-grid {
        top: -55px;
        gap: 6px;
    }

    .stat-item {
        width: 110px;
        height: 120px;
        border-radius: 24px;
        padding: 10px 14px;
    }

    .stats-grid::after {
        top: 50px;
    }

    .img-container {
        height: 340px;
    }

    .company-tagline {
        padding: 14px 18px;
    }

    .tagline-text {
        font-size: 15px;
    }

    .slide-content {
        width: 300px;
        height: 195px;
    }

    .oppinion {
        margin: 70px 0;
    }
}

@media (max-width: 992px) {

    .navbar-actions button,
    .navbar-links {
        display: none;
    }

    .menu-div,
    .menu-div a,
    .navbar-actions-menu {
        display: flex;
    }

    .navbar-actions-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .nav-bar-container {
        justify-content: end;
    }

    .hero .our-features .feature-item1 {
        position: absolute;
        top: 10%;
        left: 11%;
    }

    .hero .our-features .feature-item2 {
        position: absolute;
        top: 65%;
        left: 9%;
    }

    .hero .our-features .feature-item3 {
        position: absolute;
        top: 20%;
        right: 13%;
    }

    .hero .our-features .feature-item4 {
        position: absolute;
        top: 75%;
        right: 11%;
    }

    .hero .main-title {
        width: 80%;
    }

    .stats-container {
        margin-top: 40px;
    }

    .stats-grid {
        top: -50px;
        flex-wrap: wrap;
        max-width: 320px;
        border-radius: 0 0 32px;
    }

    .stat-item {
        width: calc(50% - 8px);
        height: 110px;
        border-radius: 20px;
    }

    .img-container {
        height: 300px;
    }

    .company-tagline {
        border-radius: 32px 0 0;
        padding: 12px 16px;
    }

    .tagline-text {
        font-size: 14px;
    }

    .slide-content {
        width: 280px;
        height: 190px;
    }

    .client-image {
        width: 170px;
        height: 58px;
    }

    .oppinion {
        margin: 60px 0;
    }

    .oppinion::after,
    .oppinion::before {
        width: 80px;
        height: 65px;
    }

    .card-layer h2 {
        font-size: 22px;
    }

    .card-layer p {
        font-size: 18px;
        margin-top: 15px;
        padding: 8px;
    }

    .card-layer li {
        font-size: 17px;
        padding: 8px;
    }

    .content-serves .image {
        max-width: 400px;
    }

    .content-serves .layer span {
        font-size: 14px;
        padding: 8px 14px;
    }

    .content-serves .layer span:nth-child(1) {
        left: 100px;
        bottom: 130px;
    }

    .content-serves .layer span:nth-child(2) {
        right: 100px;
        bottom: 120px;
    }

    .content-serves .layer span:nth-child(3) {
        left: 100px;
        top: 130px;
    }

    .content-serves .layer span:nth-child(4) {
        right: 20px;
        top: 120px;
    }

    .image-modal .modalImage {
        width: 90%;
    }
}

@media (max-width: 769px) {
    .main-title {
        width: 95%;
    }

    .hero .main-title {
        width: 80%;
    }

    .our-services .main-btn,
    .projects .main-btn,
    .news .main-btn {
        display: none;
    }

    .servicesPage .main-btn,
    .projectsPage .main-btn,
    .services-deatails .main-btn {
        display: flex;
    }

    .our-services .main-btn.more {
        display: flex;
    }

    .our-services .btn-mobile,
    .projects .btn-mobile,
    .news .btn-mobile {
        display: flex;
    }

    .main-heading {
        width: 100%;
    }

    .stats-container {
        margin-top: 30px;
    }

    .stats-grid {
        position: relative;
        top: 0;
        left: 0;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        border-radius: 16px;
        margin-bottom: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .stats-grid::before,
    .stats-grid::after {
        display: none;
    }

    .stat-item {
        width: calc(50% - 12px);
        height: 100px;
        border-radius: 16px;
    }

    .img-container {
        height: 260px;
    }

    .img-container img {
        border-radius: 24px;
        clip-path: none !important;
    }

    .company-tagline {
        position: relative;
        right: auto;
        bottom: auto;
        border-radius: 16px;
        margin-top: 16px;
        justify-content: center;
    }

    .company-tagline::before,
    .company-tagline::after {
        display: none;
    }

    .tagline-text {
        font-size: 13px;
        text-align: center;
    }

    .slider,
    .slider-back {
        margin-top: 30px;
    }

    .slide-content {
        width: 100%;
        height: auto;
        min-height: 180px;
    }

    .client-image {
        width: 160px;
        height: 55px;
    }

    .oppinion {
        margin: 50px 0;
    }

    .oppinion::after,
    .oppinion::before {
        width: 60px;
        height: 50px;
    }

    .hero .our-features .feature-item1 {
        position: absolute;
        top: 10%;
        left: 4%;
    }

    .hero .our-features .feature-item2 {
        position: absolute;
        top: 65%;
        left: 2%;
    }

    .hero .our-features .feature-item3 {
        position: absolute;
        top: 20%;
        right: 7%;
    }

    .hero .our-features .feature-item4 {
        position: absolute;
        top: 75%;
        right: 4%;
    }

    .hero .main-title {
        width: 80%;
    }


    .hero .our-features span {
        font-size: 14px;
    }

    .hero .our-features .img-container {
        width: 30px;
        height: 30px;
    }

    .hero .our-features .item {
        padding: 5px 10px;
    }

    .grid-bg {
        grid-template-columns: repeat(7, 1fr);
    }

    .services-deatails .image {
        height: 300px;
    }
}

/* Mobile Medium - 550px */
@media (max-width: 550px) {
    .stats-grid {
        padding: 12px;
        gap: 8px;
    }

    .stat-item {
        width: calc(50% - 8px);
        height: 90px;
        border-radius: 14px;
        padding: 8px 10px;
    }

    .img-container {
        height: 220px;
    }

    .company-tagline {
        padding: 10px 14px;
    }

    .tagline-text {
        font-size: 12px;
    }

    .slide-content {
        min-height: 160px;
    }

    .slide-content .client-opinion p {
        font-size: 13px;
        padding: 14px 14px 70px;
    }

    .client-image {
        width: 150px;
        height: 52px;
        padding: 14px;
    }

    .client-image img {
        width: 40px;
        height: 40px;
    }

    .oppinion {
        margin: 40px 0;
    }

    .oppinion::after,
    .oppinion::before {
        width: 50px;
        height: 40px;
    }

    .hero .our-features .feature-item1 {
        position: absolute;
        top: 10%;
        left: 1%;
    }

    .hero .our-features .feature-item2 {
        position: absolute;
        top: 65%;
        left: 1%;
    }

    .hero .our-features .feature-item3 {
        position: absolute;
        top: 20%;
        right: 1%;
    }

    .hero .our-features .feature-item4 {
        position: absolute;
        top: 75%;
        right: 1%;
    }

    .hero .our-features span {
        font-size: 12px;
    }

    .hero .our-features .img-container {
        width: 30px;
        height: 30px;
    }

    .hero .our-features .item {
        padding: 5px 10px;
    }

    .grid-bg {
        grid-template-columns: repeat(5, 1fr);
    }

    .our-messages .message-card .icon-box {
        width: 50px;
        height: 40px;
    }

    .card-layer h2 {
        font-size: 18px;
    }

    .card-layer p {
        font-size: 14px;
        line-height: 1.6;
    }

    .card-layer li {
        font-size: 14px;
        line-height: 1.6;
        margin-right: 5px;
    }

    .content-serves .image {
        max-width: 260px;
    }

    .content-serves .layer span {
        font-size: 10px;
        padding: 5px 8px;
        width: 120px;
        white-space: wrap;
    }

    .image-modal .modalImage {
        height: 50%;
    }
}

/* Mobile Small - 400px */
@media (max-width: 400px) {
    .stat-item {
        flex-direction: column;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 16px;
        border-radius: 12px;
    }

    .stat-number {
        margin-bottom: 0;
        font-size: 22px;
    }

    .stat-label {
        text-align: right;
        font-size: 12px;
    }

    .img-container {
        height: 180px;
    }

    .tagline-text {
        font-size: 11px;
    }

    .slide-content {
        min-height: 150px;
    }

    .client-image {
        width: 140px;
        height: 48px;
    }
}