/* Case Study Styles */

body {
font-family: 'Inter', sans-serif;
background-color: #f6f6f6;
color: #333;
min-height: 100%;
position: relative;
isolation: isolate;
overflow-x: hidden;
scroll-behavior: smooth;
}

/* Make all text black */
* {
    color: #000000 !important;
}

a {
    color: #000000 !important;
}

.text-primary {
    color: #000000 !important;
}

.dark * {
    color: #000000 !important;
}

.text-slate-900, .text-slate-500, .text-slate-400, .text-slate-300, .text-slate-200, .text-slate-600, .text-slate-700, .text-slate-100, .text-white {
    color: #000000 !important;
}

.prose-custom {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #000000 !important;
}

.dark .prose-custom {
    color: #000000 !important;
}

.full-bleed-image {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1024px) {
    .wide-image {
        width: 120%;
        margin-left: -10%;
    }
}

/* Header Styles */
.header { 
    padding: 24px 48px; 
}

.nav { 
    display: flex; 
    justify-content: space-between; 
}

.nav a { 
    margin-right: 24px; 
    font-size: 14px; 
    font-family: 'Figtree', sans-serif; 
}

.nav > div:last-child {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.nav > div:last-child img {
    width: 24px;
    height: 24px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(circle at 50% 30%, rgba(100, 100, 100, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 30% 70%, rgba(80, 80, 80, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(120, 120, 120, 0.04) 0%, transparent 35%),
        radial-gradient(circle at 20% 30%, rgba(90, 90, 90, 0.02) 0%, transparent 28%);
    filter: blur(35px);
    animation: floatAcross 30s ease-in-out infinite;
}

@keyframes floatAcross {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(30px) translateY(-20px); }
    50% { transform: translateX(-20px) translateY(30px); }
    75% { transform: translateX(40px) translateY(10px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav a {
        font-size: 12px;
    }
}

@media (max-width: 479px) {
    .header {
        padding: 12px 16px;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
        justify-content: center;
        text-align: center;
    }
    
    .nav > div:first-child {
        order: 1;
    }
    
    .nav > div:last-child {
        order: 2;
    }
    
    .nav a {
        font-size: 12px;
        margin: 0 8px;
    }
    
    .nav img {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Smooth Scrolling */
body {
    scroll-behavior: smooth;
}

/* ======================================================
   SIMPLE IMAGE CONTAINERS - EASY TO EDIT
====================================================== */

/* Base image class - makes all images full-width */
.case-image {
    width: 64vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 500px !important;
}

/* Image wrapper for full-width containers */
.case-image-wrapper {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 24px;
}

/* Box inside wrapper for styling */
.case-image-box {
    background: #f6f7f8;
    overflow: hidden;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Mobile responsive styles below 480px */
@media (max-width: 479px) {
    /* Fix paragraph scaling */
    .prose-custom {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }
    
    p {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    /* Specific fix for second paragraph */
    .text-4xl {
        font-size: 20px !important;
    }
    
    /* Fix image stretching - edge-to-edge while maintaining aspect ratio */
    .case-image {
        width: 100vw !important;
        height: auto !important;
        min-height: 250px !important;
        object-fit: cover !important;
    }
    
    .case-image[data-alt*="hero"] {
        min-height: 300px !important;
    }
    
    .case-image[data-alt*="television"] {
        min-height: 250px !important;
        aspect-ratio: 16/9 !important;
    }
    
    .case-image[data-alt*="dashboard"] {
        min-height: 200px !important;
    }
    
    /* Adjust image cards for mobile */
    .case-image-card .case-image {
        width: 100% !important;
        margin-left: 0 !important;
        transform: none !important;
        height: 150px !important;
        min-height: 150px !important;
        object-fit: cover !important;
    }
    
    /* Adjust wrapper and box for mobile */
    .case-image-wrapper {
        margin-bottom: 16px;
    }
    
    .case-image-box {
        padding: 12px;
    }
    
    .case-image-grid {
        gap: 16px;
        margin: 16px 0;
    }
    
    .case-image-card {
        padding: 16px;
    }
    
    /* Specific image styles */
    .case-image-hero {
        background-image: url('images/cover-image-heroCS.png') !important;
    }
    
    .case-image-tv {
        background-image: url('images/tv-collage.png') !important;
    }
    
    .case-image-car {
        height: 440px !important;
    }
    
    .case-image-watch {
        width: 1200px !important;
        max-width: max-content !important;
    }
}
