/* ===================================
   RESPONSIVE PATCH - OPTIMIZED VERSION
   ADD THIS TO THE BOTTOM OF YOUR style.css
   =================================== */

/* ===================================
   TABLET LANDSCAPE & BELOW (≤ 1199px)
   =================================== */
@media (max-width: 1199px) {
    /* Container */
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    /* SVG Headings */
    .section-heading-svg,
    .services-heading-svg,
    .working-heading-svg,
    .reviews-heading-svg,
    .members-heading-svg,
    .section-jobs-svg,
    .projects-heading-svg {
        max-width: 500px;
    }

    .navbar-nav {
        gap: 0;
    }
    .nav-link {
        padding: 8px 9px !important;
    }
    
    .sd-client-icon {
        height: 40px;
        min-width: 40px;
    }
    .sd-client-icon p {
        font-size: 12px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .team-card-large .team-image {
        max-width: 170px;
    }
}
@media (max-width: 1024px) {
    .reviews-slider {
        padding: 0;
    }
    .nav-link {
        padding: 8px 6px !important;
    }
    
}

/* ===================================
   TABLET PORTRAIT & BELOW (≤ 991px)
   =================================== */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px 0;
        gap: 0;
    }
    .nav-item {
        margin: 5px 0;
    }
    .btn-quote {
        width: 100%;
        margin-top: 10px;
    }
    .hero-section {
        padding: 30px 0 50px;
    }
    .hero-image-grid {
       display: none;
    }
    .stats-row {
        margin-top: 0 !important;
    }
    .sd-client-icon {
        height: 50px;
        min-width: 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .space-top-conatiner.d-md-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 25px;
        margin-top: 0;
    }
    .space-top-conatiner {
        margin-top: 30px;
    }

    /* Team Section */
    .team-card-content {
        padding: 20px;
    }
    .team-card-large {
        flex-direction: column;
        padding: 25px;
    }
    .team-card-large .team-image {
        max-width: 100%;
        height: auto;
    }
    
    /* Footer */
    .footer .brand-column {
        border-right: none;
        border-bottom: 1px solid var(--banner-text);
        padding: 40px 20px 30px 20px;
    }
    .footer .location-column {
        padding: 30px 20px 20px 20px;
    }
    
    /* Career Page */
    .job-card {
        padding: 25px;
    }
    .job-title {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .stat-primary-card-column {
        margin-top: 0;
    }
    .stat-primary-card-column:before {
        display: none;
    }
}

/* ===================================
   MOBILE LANDSCAPE & BELOW (≤ 768px)
   =================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    /* Container */
    .container {
        padding: 0 20px;
    }
    section {
        padding: var(--section-padding-mobile);
    }
    .top-bar .col-md-6:first-child .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .hero-title {
        font-size: 35px;
        margin-bottom: 20px;
    }
    .bg-primary-custom {
        padding: 25px !important;
        background-size: contain;
    }
    .hero-badge:before {
        top: -9px;
        left: -19px;
        height: 25px;
        width: 25px;
    }
    .hero-badge {
        font-size: 12px;
        margin-bottom: 30px;
        padding: 7px 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.5rem;
    }

    /* Team Section */
    .team-members-slider {
        padding: 0;
    }
    
    .team-members-slider .slick-prev,
    .team-members-slider .slick-next {
        display: none !important;
    }
    
    .team-slide {
        padding: 0 10px;
    }
    
    .team-card-name {
        font-size: 1.25rem;
    }
    
    .team-card-role {
        font-size: 0.85rem;
    }
    
    .team-card-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .team-card-large {
        padding: 15px;
        gap: 15px;
    }
    .team-name {
        font-size: 1.25rem;
    }
    .team-position {
        font-size: 0.9rem;
    }
    .team-description {
        font-size: 0.9rem;
    }
    .team-image-small {
        height: 220px;
    }
    
    /* Footer */
    .footer-copyright {
        text-align: left !important;
        margin-top: 15px;
    }
    .footer {
        border-radius: 40px 40px 0 0;
    }
    .footer .brand-column,
    .footer .location-column {
        padding: 30px 15px 20px 15px;
    }
    .footer-logo {
        max-width: 150px;
    }
    .footer-description,
    .footer-text {
        font-size: 0.9rem;
    }
    .footer-title {
        font-size: 1.1rem;
    }
    .footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .footer-contact .d-flex {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .footer-social {
        gap: 18px;
        justify-content: flex-start;
    }
    .footer-social a {
        font-size: 18px;
    }
    
    /* Pages Banner */
    .banner-projects-svg { 
        top: 50px;
    }
    .page-hero {
        padding: 0 0 60px;
    }
    /* Career Page */
    .job-card {
        padding: 20px;
        border-radius: 40px 0 40px 40px;
    }
    .job-title {
        font-size: 1.2rem;
    }
    .job-description {
        font-size: 0.9rem;
    }
    .job-detail-item {
        font-size: 0.85rem;
    }
    .job-card .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Services Section */
    .service-card {
        padding: 25px 20px;
        border-radius: 40px 0 40px 40px;
    }
    
    /* Working Process */
    .process-card {
        padding: 30px 20px;
    }
    .process-number {
        font-size: 2.5rem;
    }
    .process-title {
        font-size: 1.5rem;
    }
    
    /* Reviews Section */
    .review-card {
        padding: 30px 25px;
    }
    .review-text {
        font-size: 0.95rem;
    }
    
    /* Projects Section */
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Hero Section */
    .stat-card {
        padding: 35px 15px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-label {
        font-size: 14px;
    }
    
    /* About Section */
    .experience-time {
        padding: 30px;
    }
    .experience-time h2 {
        font-size: 40px;
    }
    .contact-icon {
        font-size: 2.5rem;
    }
    
    /* Gallery */
    .gallery-item {
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    /* SVG Headings */
    .section-heading-svg,
    .services-heading-svg,
    .working-heading-svg,
    .reviews-heading-svg,
    .members-heading-svg,
    .section-jobs-svg,
    .projects-heading-svg {
        max-width: 350px;
        top: 20px;
    }
    .banner-career-svg {
        max-width: 350px;
        top: 30px;
    }
}

/* ===================================
   MOBILE PORTRAIT & BELOW (≤ 576px)
   =================================== */
@media (max-width: 576px) {
    /* Header */
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .btn-lg {
        padding: 12px 32px;
        font-size: 15px;
    }
    /* Container */
    .container {
        padding: 0 15px;
    }
    .hero-title {
        font-size: 24px;
    }
    /*About Section*/
    .contact-info-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    /* Team Section */
    .team-card-image {
        padding-top: 100%; /* Square aspect ratio on mobile */
    }
    .team-card-content {
        padding: 15px;
    }
    .team-card-large {
        padding: 18px;
        gap: 18px;
    }
    .team-name {
        font-size: 1.15rem;
    }
    .team-image-small {
        height: auto;
    }

    /*Project section + page*/
    .project-filters {
        gap: 10px;
        padding: 10px;
    }
    .filter-btn {
        padding: 8px 16px;
    }
    
    /* Footer */
    .footer {
        border-radius: 30px 30px 0 0;
    }
    .footer .brand-column,
    .footer .location-column {
        padding: 25px 10px 15px 10px;
    }
    .footer-logo {
        max-width: 130px;
    }
    .footer-description,
    .footer-text,
    .footer-link {
        font-size: 0.85rem;
    }
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
    
    /* Career Page */
    .job-card {
        padding: 18px;
        border-radius: 30px 0 30px 30px;
    }
    .job-title {
        font-size: 1.1rem;
    }
    .job-section-title {
        font-size: 0.95rem;
    }
    .job-description {
        font-size: 0.85rem;
    }
    .job-detail-item {
        font-size: 0.8rem;
    }
    
    /* Services Section */
    .service-card {
        padding: 20px 18px;
        border-radius: 30px 0 30px 30px;
    }
    
    /* Working Process */
    .process-card {
        padding: 25px 18px;
    }
    .process-number {
        font-size: 2.5rem;
    }
    .process-title {
        font-size: 1.3rem;
    }
    .process-description {
        font-size: 0.9rem;
    }
    
    /* Reviews Section */
    .review-slide {
        padding: 0 10px;
    }
    .review-card {
        padding: 25px 20px;
    }
    .reviewer-name {
        font-size: 1.1rem;
    }
    .reviewer-position {
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    .stat-card {
        padding: 30px 15px;
        border-radius: 30px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 13px;
    }
    
    /* About Section */
    .experience-time {
        padding: 25px;
    }
    .experience-time h2 {
        font-size: 32px;
    }
    .contact-icon {
        font-size: 2rem;
    }
    .banner-career-svg {
        max-width: 280px;
        top: 20px;
    }

    #teamImageModal .modal-body img {
        max-height: 70vh;
    }
    
    .team-overlay i {
        font-size: 2.5rem;
    }
}
