/* Keen Eye to Detail Case Study Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.case-study-hero .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

.case-study-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/Keen-Eye/landscape_Image_editing_6.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 80vh;
}

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.case-study-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-hero-title {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    margin: 0;
    font-family: var(--font-bold);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Content Section */
.content-section {
    padding: 6rem 0;
    background: #19365f;
    color: var(--white);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.left-side {
    padding-right: 2rem;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.services-list {
    font-size: var(--font-size-base); /* 16px - Base text */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.right-side {
    padding-left: 2rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.project-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0;
}

/* Image Section */
.keen-eye-image-section {
    padding: 0rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.keen-eye-image-section .container {
    max-width: none;
    padding: 0;
}

.keen-eye-image-section .image-content {
    width: 100%;
}

.keen-eye-image-section img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: #000000;
    color: #ffffff;
}

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #b6bbbf;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #fbc213;
}

.btn-outline:hover {
    background: #fbc213;
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.cta-logo {
    text-align: center;
}

.cta-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
}

/* Mobile Responsive for Case Study Detail */
@media (max-width: 1536px) {
    .case-study-hero {
        height: 80vh;
        min-height: 75vh;
    }
    .case-study-hero-background {
        min-height: 75vh;
    }

    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero {
        height: 80vh;
        min-height: 70vh;
    }
    .case-study-hero-background {
        min-height: 70vh;
    }

    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 1024px) {
    .case-study-hero {
        height: 80vh;
        min-height: 65vh;
    }
    .case-study-hero-background {
        min-height: 65vh;
    }
    .case-study-hero-title {
        font-size: var(--font-size-5xl); /* 48px - Hero headings */
    }

    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        height: 80vh;
        min-height: 55vh;
        padding: 0;
    }
    .case-study-hero-background {
        min-height: 55vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .case-study-category {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .left-side,
    .right-side {
        padding: 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        height: 80vh;
        min-height: 50vh;
    
    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}
    .case-study-hero-background {
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        height: 80vh;
        min-height: 40vh;
        padding: 0;
    }
    .case-study-hero-background {
        min-height: 40vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: var(--font-size-2xl); /* 24px - Medium headings */
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .services-title {
        font-size: 1.2rem;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }

    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 360px) {
    .case-study-hero {
        height: 80vh;
        min-height: 35vh;
    
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}
    .case-study-hero-background {
        min-height: 35vh;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .case-study-hero {
        height: 80vh;
        min-height: 90vh;
    }
    .case-study-hero-background {
        min-height: 90vh;
    }
}


/* ========================================
   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;
}

/* ========================================
   CASE STUDY CONTENT SECTION - UNIVERSAL
   ======================================== */

/* Content Section */
.case-study-content-section {
    padding: 6rem 0;
    background: #19365f;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 400px;
    overflow: visible;
}

.case-study-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Side - Services */
.case-study-services-side {
    text-align: left;
}

.case-study-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-family: var(--font-bold);
}

.case-study-services-list {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Right Side - Project Description */
.case-study-project-side {
    text-align: left;
}

.case-study-project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    line-height: 1.3;
    font-family: var(--font-bold);
}

.case-study-project-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-content-section {
        padding: 4rem 0;
    }
    
    .case-study-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-study-project-title {
        font-size: 1.8rem;
    }
    
    .case-study-services-title {
        font-size: 1.3rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-content-section {
        padding: 3rem 0;
    }
    
    .case-study-content-grid {
        gap: 2rem;
    }
    
    .case-study-project-title {
        font-size: 1.5rem;
    }
    
    .case-study-services-title {
        font-size: 1.2rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 0.95rem;
    }
}

/* ========================================
   THREE IMAGES SECTION (DESKTOP)
   ======================================== */

.keen-eye-three-images {
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--light-gray);
}

.three-images-container {
    display: flex;
    gap: 0; /* No gap between images */
    width: 100%;
    margin: 0;
    padding: 0;
}

.image-item {
    flex: 1;
    min-width: 33.333%;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   MOBILE SLIDER SECTION
   ======================================== */

/* Mobile Slider Section - Hidden on desktop */
.mobile-slider-section {
    padding: 0;
    margin: 0;
    background: var(--light-gray);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: none; /* Hidden on desktop by default */
}

.mobile-slider-section .container {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-slider-container {
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mobile-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

.mobile-slider-slide {
    min-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
}

.mobile-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-slider-controls {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.mobile-slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    pointer-events: auto;
    position: absolute;
}

.mobile-slider-btn.prev {
    left: 1rem;
}

.mobile-slider-btn.next {
    right: 1rem;
}

.mobile-slider-btn:hover {
    transform: scale(1.1);
}

.mobile-slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobile/Tablet: Hide 3 images, show slider at 800px and below */
@media (max-width: 800px) {
    /* Hide desktop 3-image section */
    .keen-eye-three-images {
        display: none !important;
    }
    
    /* Show mobile slider */
    .mobile-slider-section {
        display: block;
    }
    
    
    
    .mobile-slider-controls {
        display: flex;
    }
}