/* Work Page Specific Styles */

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}



.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline-white:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.cta-logo img {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.1);
}

/* CTA Section Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 2.2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-logo {
        height: 250px;
    }
    
    .cta-logo img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-outline-white {
        width: 200px;
        text-align: center;
    }
    
    .cta-logo {
        height: 200px;
    }
    
    .cta-logo img {
        max-width: 200px;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
}

/* Remove focus outlines globally */
* {
    outline: none !important;
}

*:focus {
    outline: none !important;
}

*:focus-visible {
    outline: none !important;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Section spacing for anchor navigation */
.case-studies-section {
    scroll-margin-top: 100px; /* Account for fixed header */
}
.work-hero {
    background: var(--gradient-secondary);
    padding: 8rem 0 4rem 0;
    height: 70vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-hero-content {
   
    text-align: center;
    width: 100%;
}


.work-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: center;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.work-hero h1 {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: block;
}

/* Responsive Hero Font Sizes */
@media (max-width: 1536px) {
    .work-hero h1 {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .work-hero h1 {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 1024px) {
    .work-hero h1 {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .work-hero h1 {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 640px) {
    .work-hero h1 {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .work-hero h1 {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 360px) {
    .work-hero h1 {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}

.work-hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    margin: 20px auto 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    opacity: 0.95;
    text-align: center;
    display: block;
}

.work-intro {
    
    padding: 2rem 0;
    background: #19365f;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.work-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.work-intro p {
    font-size: 1.2rem;
    color: #b6bbbf;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.case-studies-section {
    padding: 2rem 0;
}

.case-studies-section.alt-bg {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.case-study-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 350px;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


.case-study-item {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    min-width: 350px;
}

.case-study-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.case-study-image {
    position: relative;
    height: auto;
    overflow: hidden;
}

.case-study-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 54, 95, 0.1) 0%, rgba(251, 194, 19, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.case-study-item:hover .case-study-image::after {
    opacity: 1;
}





.case-study-image img {
    width: 100%;
    height: 530px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-item:hover .case-study-image img {
    transform: scale(1.05);
}


/* Portfolio card links */
.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.portfolio-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Standardized logo containers for consistent sizing */
.case-study-logo-container {
    margin: 0rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 0 0rem;
    border-radius: 16px;
    margin: 1.5rem 1rem;
    backdrop-filter: blur(10px);
}

.case-study-logo-container img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Specific logo adjustments for better balance */
.case-study-logo-container.ipbd-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: cover;
}

.case-study-logo-container.esko-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: cover;
}

.case-study-logo-container.akbar-logo img {
    max-height: 100px;
    max-width: 80%;
    object-fit: cover;
}

.case-study-logo-container.clover-logo img {
    max-height: 100px;
    max-width: 40%;
    object-fit: cover;
}

.case-study-logo-container.cilek-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: cover;
}

.case-study-logo-container.soul-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: cover;
}

.case-study-logo-container.case-study-logo img {
    max-height: 60px;
    max-width: 70%;
    object-fit: cover;
}

.case-study-logo-container.impactful-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.case-study-logo-container.keen-eye-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/* Image Grid Layout (for cases with ≤3 images) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-4px);
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 3-Slide Slider Layout */
.image-slider .slider-wrapper {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    transition: transform 0.5s ease;
}

.image-slider .slider-slide {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    position: relative;
}

.image-slider .slider-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Ensure slider container is properly styled */
.image-slider .slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slider controls positioned at the ends */
.image-slider .slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.image-slider .slider-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    color: #333;
}

.image-slider .slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.image-slider .slider-btn.prev {
    margin-left: 1rem;
}

.image-slider .slider-btn.next {
    margin-right: 1rem;
}

.image-slider .slider-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.image-slider .slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.image-slider .slider-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.image-slider .slider-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.image-slider .slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Updated Case Study Card Styles */
.case-study-title-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* Image Section Styling */
.image-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.image-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Specific image section classes */
.ayouthveda-2-image-section,
.ayouthveda-image-section,
.ayurverde-image-section,
.clover-2-image-section,
.mtml-image-section,
.rapid-services-image-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Image grid specific styling */
.mtml-image-section .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}


/* New case study logo styles */
.case-study-logo-container.riverside-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.case-study-logo-container.coeur-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.case-study-logo-container.super-dist-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.case-study-logo-container.golden-berry-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}



.case-study-logo-container.signature-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.case-study-services {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1.5rem 2rem 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Service tags layout - first 3 on top row, rest on bottom row */
.case-study-services .service-tag:nth-child(1),
.case-study-services .service-tag:nth-child(2),
.case-study-services .service-tag:nth-child(3) {
    order: 1;
}

.case-study-services .service-tag:nth-child(4),
.case-study-services .service-tag:nth-child(5),
.case-study-services .service-tag:nth-child(6) {
    order: 2;
    margin-top: 0;
}

.service-tag {
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    background: #000000;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
    white-space: nowrap;
}

.service-tag:hover {
    color: #fbc213;
    transform: translateY(-2px);
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

.coming-soon-content {
    text-align: center;
    color: #6c757d;
}

.coming-soon-content i {
    font-size: var(--font-size-5xl); /* 48px - Hero headings */
    margin-bottom: 1rem;
    color: #adb5bd;
}

.coming-soon-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.coming-soon-content p {
    font-size: var(--font-size-base); /* 16px - Base text */
    color: #6c757d;
}

/* More Button Section */
.case-studies-more {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.case-studies-more .more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    font-size: var(--font-size-base); /* 16px - Base text */
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #000000;
    color: #000000;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-studies-more .more-btn:hover {
    background: #fbc213;
    color: #ffffff;
    transform: translateY(-1px);
    border: 2px solid #fbc213;
    box-shadow: 0 5px 15px rgba(251, 194, 19, 0.2);
}

.case-studies-more .more-btn i {
    transition: transform 0.3s ease;
}

.case-studies-more .more-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .work-hero {
        height: 80vh; /* Set to 80vh for tablet */
        padding: 6rem 0 3rem 0;
    }

    .work-hero h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .work-hero-subtitle {
        font-size: var(--font-size-base); /* 16px - Base text */
    }
    
    .work-hero h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .work-hero-description {
        font-size: 1.1rem;
        margin: 15px auto 0 auto;
        max-width: 90%;
    }

    .work-intro {
        padding: 4rem 0;
        height: auto;
        min-height: 45vh;
    }

    .work-intro-content {
        padding: 0 2rem;
    }

    .work-intro h2 {
        font-size: var(--font-size-2xl); /* 24px - Medium headings */
        margin-bottom: 1.5rem;
    }

    .work-intro p {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .case-studies-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: var(--font-size-2xl); /* 24px - Medium headings */
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .case-study-logo-container {
        height: 70px;
        margin: 1rem 0.5rem;
        padding: 0 1.5rem;
    }
    
    .case-study-logo-container img {
        max-height: 50px;
    }
    
    .case-study-services {
        padding: 0 1rem 1.5rem 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Tablet responsive styles for new layouts */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .image-slider .slider-wrapper {
        gap: 1.5rem;
    }
    
    .image-slider .slider-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .image-slider .slider-slide img {
        height: 280px;
    }
    
    /* 2-image layout specific styles */
    .image-slider[data-image-count="2"] .slider-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .image-slider[data-image-count="2"] .slider-wrapper {
        justify-content: center;
    }
    
    .service-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 480px) {
    .work-hero {
        height: 80vh; /* Set to 80vh for mobile */
        padding: 5rem 0 2rem 0;
    }
    
    .work-hero-description {
        font-size: var(--font-size-base); /* 16px - Base text */
        margin: 10px auto 0 auto;
        max-width: 95%;
    }
    
    .work-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .work-hero h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .work-intro {
        padding: 3rem 0 !important;
        height: auto !important;
        min-height: 40vh !important;
    }

    .work-intro-content {
        padding: 0 1.5rem;
    }

    .work-intro h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.2;
    }

    .work-intro p {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 0;
    }

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

    /* Mobile case studies grid */
    .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem;
    }

    .case-study-card {
        min-width: unset !important;
        width: 100% !important;
    }

    .case-study-item {
        min-width: unset !important;
        width: 100% !important;
    }

    .case-study-logo-container {
        height: 60px;
        margin: 1rem 0.5rem;
        padding: 0 1rem;
    }
    
    .case-study-logo-container img {
        max-height: 45px;
    }
    
    /* Mobile responsive styles for new layouts */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .image-slider .slider-wrapper {
        gap: 1rem;
    }
    
    .image-slider .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
    
    .image-slider .slider-slide img {
        height: 450px;
    }
    
    .image-slider .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-slider .slider-btn.prev {
        margin-left: 0.5rem;
    }
    
    .image-slider .slider-btn.next {
        margin-right: 0.5rem;
    }
    
    .case-study-title {
        font-size: 1.1rem;
    }
    
    /* Specific mobile styles for image sections */
    .mtml-image-section .image-grid {
        grid-template-columns: 1fr;
    }
    
    
    .service-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.5px;
    }
}


/* ========================================
   FOOTER SIZE REDUCTION
   ======================================== */

/* Footer Logo Size Reduction */
.footer-brand .logo {
    height: 100px !important;
    width: 140px !important;
}

/* Footer Paragraph Spacing Reduction */
.footer-brand p {
    margin-bottom: 1rem !important;
}
