/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(to bottom left, #000000 0%, #30353d 100%);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom left, #000000 0%, #31363e 100%);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: block;
}

.logo img {
    min-width: 350px;
    height: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #dbe120;
}

/* Main Content */
main {
    margin-top: 100px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide video {
    /* Ensure video fills the container properly */
    min-width: 100%;
    min-height: 100%;
}

/* Hero poster montage */
.poster-montage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(219, 225, 32, 0.12), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 120, 80, 0.12), transparent 45%),
        #111;
    z-index: 1;
    transition: opacity 0.9s ease;
    perspective: 1400px;
    perspective-origin: 50% 42%;
}

.poster-montage.is-hidden {
    opacity: 0;
}

.poster-montage .poster-card {
    position: absolute;
    width: calc(clamp(100px, 12vw, 210px) * var(--poster-scale, 1));
    aspect-ratio: 2 / 3;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate3d(-50%, -50%, 0);
    transform-style: preserve-3d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    animation: posterFlyThru var(--duration, 22s) linear var(--delay, 0s) infinite;
}

.poster-montage .poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

/* One steady linear approach (far → full size), then linear fade only; invisible reset */
@keyframes posterFlyThru {
    0% {
        transform: translate3d(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px)), var(--z-far, -95px)) scale(var(--fly-min, 0.9));
        opacity: 0;
    }
    4% {
        transform: translate3d(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px)), var(--z-far, -95px)) scale(var(--fly-min, 0.9));
        opacity: var(--opacity-base, 0.88);
    }
    87% {
        transform: translate3d(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px)), var(--z-past, 72px)) scale(var(--fly-past, 1.1));
        opacity: var(--opacity-base, 0.88);
    }
    94% {
        transform: translate3d(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px)), var(--z-past, 72px)) scale(var(--fly-past, 1.1));
        opacity: 0;
    }
    94.01%,
    100% {
        transform: translate3d(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px)), var(--z-far, -95px)) scale(var(--fly-min, 0.9));
        opacity: 0;
    }
}

/* Slider Gradient */
.slider-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #dbe120;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    min-width: 1030px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 1rem;
    margin-right: 2%;
    margin-left: 2%;
    line-height: 1.25;
    text-transform: uppercase;
}

.hero-line {
    display: inline-block;
}

.hero-line-one {
    color: #dbe120;
    font-weight: 200;
}

.hero-line-two {
    color: #ffffff;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 1092px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 0;
    background-color: #202020;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #dbe120;
    background-color: transparent;
    color: #dbe120;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #dbe120;
    color: #202020;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay-text {
    color: #202020;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #dbe120;
    padding: 0 5px;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: #2a2a2a;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-align: left;
}

.about-content h3 {
    font-size: 2em;
    margin-bottom: 4rem;
    text-align: left;
    font-weight: normal;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    line-height: 1.8;
}



.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-item {
    text-align: left;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #dbe120;
    font-weight: 600;
}

.about-item p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0;
}

/* AI Labs Section */
.ai-labs {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    text-align: center;
}

.ai-labs-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.ai-labs-content p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3 {
    font-size: 2em;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.footer-section p {
    font-size: 2em;
    margin-bottom: 1.5rem;
    color: #ccc;
    text-align: center;
}

.footer-section a {
    color: #dce050;
    text-decoration: none;
}

/* Contact Button */
.contact-btn {
    display: inline-block;
    background-color: #dbe120;
    color: #202020 !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #dbe120;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-btn:hover {
    background-color: transparent;
    color: #dbe120 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 225, 32, 0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-image {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.lightbox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lightbox Carousel (for slider version) */
.lightbox-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.lightbox-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lightbox-carousel-slide.active {
    opacity: 1;
    position: relative;
}

.lightbox-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lightbox-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.lightbox-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev-btn {
    left: 1rem;
}

.lightbox-next-btn {
    right: 1rem;
}

.lightbox-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.lightbox-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-carousel-dot.active {
    background: #dbe120;
    transform: scale(1.2);
}

.lightbox-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-info {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.lightbox-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.lightbox-details p {
    margin-bottom: 1rem;
    color: #333;
}

.lightbox-details strong {
    color: #dbe120;
}

/* Case Study Button */
.case-study-btn {
    background-color: #dbe120;
    color: #202020;
    border: 2px solid #dbe120;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.case-study-btn:hover {
    background-color: transparent;
    color: #dbe120;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 225, 32, 0.3);
}

/* Case Study Lightbox */
.case-study-lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.case-study-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    min-height: 100vh;
    color: #333;
}

.case-study-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.case-study-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.case-study-back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    font-family: 'Poppins', sans-serif;
}

.case-study-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateX(-5px);
}

.case-study-scrollable {
    padding-top: 4rem;
}

/* Case Study Header */
.case-study-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #dbe120;
}

.case-study-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #202020;
    font-weight: 600;
}

.case-study-client {
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
}

/* Case Study Hero Section */
.case-study-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.case-study-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #202020;
    font-weight: 600;
}

.case-study-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 300;
}

/* Case Study Text Boxes */
.case-study-text-box {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-left: 4px solid #dbe120;
    border-radius: 5px;
}

.case-study-text-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #202020;
    font-weight: 600;
}

.case-study-text-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Case Study Image Boxes */
.case-study-image-box {
    margin-bottom: 3rem;
    text-align: center;
}

.case-study-image-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.case-study-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Side-by-side Images */
.case-study-images-side-by-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-study-image-item {
    text-align: center;
}

.case-study-image-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Before & After Section */
.case-study-before-after {
    margin-bottom: 4rem;
}

.case-study-before-after h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #202020;
    font-weight: 600;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.before-after-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.before-after-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #202020;
    font-weight: 600;
}

.before-after-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.before-after-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #222222;
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav a {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .logo img {
        min-width: 300px;
    }
    
    .hero {
        height: 70vh;
    }

    .poster-montage .poster-card {
        width: calc(clamp(82px, 19vw, 150px) * var(--poster-scale, 1));
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .lightbox-content {
        flex-direction: column;
        width: 95%;
        height: 95%;
    }
    
    .lightbox-info {
        padding: 2rem;
    }
    
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-item h3 {
        font-size: 1.3rem;
    }
    
    .ai-labs-content h2 {
        font-size: 2rem;
    }
    
    .ai-labs-content p {
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Case Study Responsive */
    .case-study-content {
        padding: 1rem;
    }
    
    .case-study-header h1 {
        font-size: 2rem;
    }
    
    .case-study-client {
        font-size: 1.2rem;
    }
    
    .case-study-hero h2 {
        font-size: 2rem;
    }
    
    .case-study-subtitle {
        font-size: 1.1rem;
    }
    
    .case-study-text-box {
        padding: 1.5rem;
    }
    
    .case-study-text-box h3 {
        font-size: 1.5rem;
    }
    
    .case-study-text-box p {
        font-size: 1rem;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-study-images-side-by-side {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-study-close {
        top: 1rem;
        right: 1rem;
    }
    
    .case-study-back-btn {
        top: 1rem;
        left: 1rem;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .poster-montage .poster-card {
        animation: none;
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: var(--opacity-base, 0.85);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}
