/* Case Study Virtual Tour Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.case-study-hero .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

/* Removed background image - now using full-width banner section */

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 42, 74, 0.6) 30%, rgba(251, 194, 19, 0.1) 70%, rgba(25, 54, 95, 0.8) 100%);
    z-index: 1;
}

.case-study-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    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;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-family: var(--font-bold);
}

.case-study-hero-title {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-bold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Full Width Video Section */
/* Full Width Video Section - FIXED */
.full-width-video-section {
    padding: 4rem 0; /* FIXED: Added proper padding to prevent overlap */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 1;
}

.full-width-video-section .vimeo-video-container {
    margin: 0;
}

/* Responsive Video Section Padding */
@media (max-width: 768px) {
    .full-width-video-section {
        padding: 3rem 0; /* Reduced padding on mobile */
    }
}

@media (max-width: 480px) {
    .full-width-video-section {
        padding: 2rem 0; /* Further reduced padding on small mobile */
    }
}

/* Vimeo Video Container */
.vimeo-video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.vimeo-video-container iframe {
    pointer-events: auto;
}

.vimeo-video-container .vp-spinner,
.vimeo-video-container [class*="spinner"],
.vimeo-video-container [class*="loading"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 54, 95, 0.3) 0%, rgba(20, 42, 74, 0.2) 50%, rgba(251, 194, 19, 0.1) 100%);
    z-index: 1;
}

/* Video Controls - Center */
.vimeo-video-controls-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    transition: all 0.3s ease;
}

.vimeo-play-btn-big {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.vimeo-play-btn-big:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.vimeo-play-btn-big i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-left: 5px;
}

/* Video Controls - Bottom */
.vimeo-video-controls-bottom {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 20;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.vimeo-play-btn-small,
.vimeo-volume-btn {
    background: rgba(255, 255, 255, 0.95);
    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.3);
    backdrop-filter: blur(10px);
}

.vimeo-play-btn-small:hover,
.vimeo-volume-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.vimeo-play-btn-small i,
.vimeo-volume-btn i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.vimeo-play-btn-small i {
    margin-left: 3px;
}

/* Video Hover Overlay */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Video Controls - Centered Big Play Button */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 3;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Big centered play button */
.play-pause-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* Small bottom controls (initially hidden) */
.mute-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 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);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
}

/* When video is playing, move controls to bottom center */
.video-container.playing .video-controls {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 1rem;
}

.video-container.playing .play-pause-btn {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
}

.video-container.playing .mute-btn {
    opacity: 1;
    visibility: visible;
    position: static;
    transform: none;
}

.video-container.playing::before {
    opacity: 0;
    visibility: hidden;
}

.play-pause-btn:hover, .mute-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-pause-btn i {
    font-size: 2.5rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mute-btn i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.play-pause-btn.playing i {
    color: #27ae60;
}

.mute-btn.unmuted i {
    color: #e74c3c;
}

/* Ensure buttons are clickable */
.play-pause-btn, .mute-btn {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
    cursor: pointer !important;
}

/* Debug: Make sure buttons are visible and clickable */
.play-pause-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Video container click handling */
.video-container {
    cursor: pointer;
}

.video-container.playing {
    cursor: default;
}

/* Image Section */
.image-section {
    padding: 4rem 0;
    background: var(--white);
}

.image-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.02);
}

/* Responsive Design */
/* Mobile responsive video controls */
@media (max-width: 1024px) {
    .play-pause-btn {
        width: clamp(60px, 12vw, 100px);
        height: clamp(60px, 12vw, 100px);
    }
    
    .play-pause-btn i {
        font-size: 2rem;
    }
    
    .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
    }
    
    .mute-btn i {
        font-size: 1rem;
    }
    
    /* Centered controls on tablet */
    .video-container.playing .video-controls {
        bottom: 15px;
        gap: 0.8rem;
    }

    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    /* Content Section */
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .play-pause-btn {
        width: clamp(60px, 12vw, 100px);
        height: clamp(60px, 12vw, 100px);
    }
    
    .play-pause-btn i {
        font-size: 1.8rem;
    }
    
    .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
    }
    
    .mute-btn i {
        font-size: 0.9rem;
    }
    
    /* Centered controls on mobile */
    .video-container.playing .video-controls {
        bottom: 10px;
        gap: 0.6rem;
    }
    
    /* CTA Section */
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    /* Image Section */
    .image-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    /* Content Section */
    .content-section {
        padding: 3rem 0;
    }
    
    .services-title {
        font-size: 1.5rem;
    }
    
    .play-pause-btn {
        width: clamp(60px, 12vw, 100px);
        height: clamp(60px, 12vw, 100px);
    }
    
    .play-pause-btn i {
        font-size: 1.5rem;
    }
    
    .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
    }
    
    .mute-btn i {
        font-size: 0.8rem;
    }
    
    /* Centered controls on small mobile */
    .video-container.playing .video-controls {
        bottom: 8px;
        gap: 0.5rem;
    }
    
    .project-title {
        font-size: var(--font-size-2xl); /* 24px - Medium headings */
    }
    
    
    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Image Section */
    .image-section {
        padding: 30px 0;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
}

@media (max-width: 1536px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (max-width: 360px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .case-study-hero {
        height: 80vh;
        min-height: 100vh;
    }
    
    .case-study-hero-background {
        height: 100vh;
        min-height: 100vh;
    }
}


/* ========================================
   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;
}
/* ========================================
   SMALL IMAGE SECTION
   ======================================== */

.small-image-section {
    padding: 80px 0;
    background: var(--white);
}

.small-image-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.small-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.small-banner-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .small-image-section {
        padding: 60px 0;
    }
    
    .small-image-container {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .small-image-section {
        padding: 40px 0;
    }
    
    .small-banner-image {
        border-radius: 8px;
    }
}




/* ========================================
   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;
    }
}

