/* Case Studies Section - Modern Slider */
.case-studies-section {
    padding: 50px 0;
    background-color: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.case-studies-section .section-header {
    max-width: 100%;
    margin: 0 0 40px 0;
    text-align: center;
}

.case-studies-section h5 {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #c56641;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    justify-content: flex-start;
    width: 100%;
}

.case-studies-section h2 {
    font-size: 38px;
    font-weight: 700;
    color: #c56641;
    margin-bottom: 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    width: 100%;
}

/* Slider Navigation Arrows */
.slider-arrows {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 15px;
    top: -80px;
    z-index: 10;
}

.case-studies-prev,
.case-studies-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #eee;
}

.case-studies-prev:hover,
.case-studies-next:hover {
    background: #c56641;
    color: #ffffff;
    transform: translateY(-3px);
    border-color: #c56641;
}

/* Case Studies Slider */
.case-studies-slider {
    position: relative;
    padding: 20px 0 80px;
    overflow: hidden;
    margin-top: 30px;
}

.case-study-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 10px;
    position: relative;
    align-items: center;
}

.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px; /* Fixed height for all images */
    background: #f8f9ff;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.project-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.7;
}

/* Pagination */
.case-studies-slider .swiper-pagination {
    position: relative;
    margin-top: 40px;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-studies-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d9d9d9;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.case-studies-slider .swiper-pagination-bullet-active {
    background: #c56641;
    width: 12px;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .project-content {
        padding: 25px 20px;
    }
    
    .project-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .case-studies-section {
        padding: 80px 0;
    }
    
    .case-studies-section h2 {
        font-size: 32px;
    }
    
    .slider-arrows {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
    
    .case-studies-prev,
    .case-studies-next {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .case-studies-section h2 {
        font-size: 28px;
    }
    
    .case-studies-section .section-header {
        margin-bottom: 15px;
    }
    
    .case-study-card {
        margin: 5px;
    }
    
    .project-content {
        padding: 20px 15px;
    }
    
    .project-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .project-content p {
        font-size: 14px;
        line-height: 1.6;
    }
}
.logo-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 30px;
}

.logo-slider-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.logo-item {
    flex: 0 0 auto;
    padding: 0 25px;
    cursor: pointer;
    position: relative;
    filter: grayscale(0%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item img {
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-item.active {
    opacity: 1;
    filter: grayscale(0%);
    position: relative;
}

/* Make logos behave like navigation arrows on hover */
.logo-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}
.logo-item:hover img {
    filter: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Project Details Container */
.project-details-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    /* min-height: 400px; */
}

/* Dots pagination under case studies (same style as other sections) */
.case-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.case-navigation .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
    transition: all .3s ease;
}
.case-navigation .dot.active {
    background: #c56641;
    transform: scale(1.15);
}

.project-detail {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

.project-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.project-image {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Removed hover scale effect on project images */

.project-content {
    flex: 0 0 45%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.project-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Navigation Arrows */
.logo-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Removed hover effect */
}
.logo-slider-nav.prev {
    left: -25px;
}

.logo-slider-nav.next {
    right: -25px;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .project-content {
        padding: 40px 30px;
    }
    
    .project-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .case-studies-section {
        padding: 80px 0;
    }
    
    .project-detail {
        flex-direction: column;
    }
    
    .project-image,
    .project-content {
        flex: 0 0 100%;
    }
    
    .project-image {
        height: 300px;
    }
    
    .logo-item {
        padding: 0 15px;
    }
    
    .logo-item img {
        max-width: 100px;
    }
}

@media (max-width: 767px) {
    .case-studies-section h2 {
        font-size: 32px;
    }
    
    .logo-slider-container {
        padding: 0 15px;
    }
    
    .project-content {
        padding: 30px 20px;
    }
    
    .project-content h3 {
        font-size: 22px;
    }
    
    .logo-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .logo-slider-nav.prev {
        left: -15px;
    }
    
    .logo-slider-nav.next {
        right: -15px;
    }
}

@media (max-width: 575px) {
    .case-studies-section {
        padding: 60px 0;
    }
    
    .case-studies-section h2 {
        font-size: 28px;
    }
    
    .case-studies-section h5 {
        font-size: 14px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .logo-item {
        padding: 0 10px;
    }
    
    .logo-item img {
        max-width: 80px;
    }
}

.case-study-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(60, 114, 252, 0.1) 0%, rgba(60, 114, 252, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Removed card hover effects */

.case-study-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    transition: transform 0.3s ease;
}

.case-study-img:hover {
    transform: scale(1.02);
}

.case-study-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-study-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.case-study-img::after {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 30px;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.case-study-img:hover::before {
    opacity: 1;
}

.case-study-img:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.case-study-img:hover img {
    transform: scale(1.05);
}
.case-study-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-category {
    display: inline-block;
    color: #3C72FC;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(60, 114, 252, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.case-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
    font-family: 'Poppins', sans-serif;
}

/* Removed title hover effect */

.read-more {
    color: #3C72FC;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: all 0.3s ease;
    font-size: 15px;
    padding-top: 10px;
    position: relative;
    width: fit-content;
}

.read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #3C72FC;
    /* Removed read more hover effect */
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* Removed read more link hover effects */

/* View All Button */
.case-studies-section .btn-one {
    margin-top: 30px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    background: #3C72FC;
    color: #fff;
    border: 2px solid #3C72FC;
    /* Removed button hover effect */

/* Responsive Styles */
@media (max-width: 1199px) {
    .case-studies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .case-studies-section h2 {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .case-studies-section {
        padding: 80px 0;
    }
    
    .case-studies-section h2 {
        font-size: 36px;
    }
    
    .case-studies-section p {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .case-studies-section {
        padding: 70px 0;
    }
    
    .case-studies-section h2 {
        font-size: 32px;
    }
    
    .case-studies-section .section-header {
        margin-bottom: 40px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .case-study-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .case-studies-section h2 {
        font-size: 28px;
    }
    
    .case-studies-section h5 {
        font-size: 14px;
    }
    
    .case-studies-section p {
        font-size: 16px;
    }
    
    .case-study-content {
        padding: 25px 20px;
    }
    
    .case-title {
        font-size: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow.fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Add delay classes for staggered animations */
.wow.delay-100ms {
    animation-delay: 0.1s;
}

.wow.delay-200ms {
    animation-delay: 0.2s;
}

.wow.delay-300ms {
    animation-delay: 0.3s;
}

.wow.delay-400ms {
    animation-delay: 0.4s;
}

.wow.delay-500ms {
    animation-delay: 0.5s;
}
}