@import url('https://use.typekit.net/mqu3bsc.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #101010;
    --surface-color: #1a1a1a;
    --orange: #df4418;
    --white: #ffffff;
    --gray-text: #888888;
    --header-bg: #121212;
    --font-primary: "neulis-sans", "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    background-color: var(--bg-color);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--orange);
    color: var(--white);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

/* ── WHITE FRAME ── */
.site-frame {
    position: fixed;
    background: var(--white);
    z-index: 9999;
    pointer-events: none;
}
.frame-top { top: 0; left: 0; width: 100%; height: 13px; }
.frame-bottom { bottom: 0; left: 0; width: 100%; height: 13px; }
.frame-left { top: 0; left: 0; width: 13px; height: 100%; }
.frame-right { top: 0; right: 0; width: 13px; height: 100%; }

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

.logo-wrapper {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 100px;
    height: 66px;
    background: var(--white);
    border-radius: 0 0 28px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
.logo-wrapper:before {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    top: 1px;
    right: 0;
    transform: translateX(100%);
    background: transparent;
    border-top-left-radius: 28px;
    box-shadow: -6px -6px 0 5px var(--white);
    pointer-events: none;
}
.logo-wrapper:after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    background: transparent;
    border-top-left-radius: 28px;
    box-shadow: -6px -6px 0 5px var(--white);
    pointer-events: none;
}

.logo-wrapper img {
    width: 64px;
    padding: 0 5px 5px 0;
    display: block;
}

.menu-wrapper {
    position: fixed;
    top: 12px;
    right: 12px;
    height: 66px;
    background: var(--white);
    border-radius: 0 0 0 28px;
    padding: 10px 24px 10px 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
}
.menu-wrapper:before {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    top: 1px;
    left: 0;
    transform: translateX(-100%);
    background: transparent;
    border-top-right-radius: 28px;
    box-shadow: 6px -6px 0 5px var(--white);
    pointer-events: none;
}
.menu-wrapper:after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
    background: transparent;
    border-top-right-radius: 28px;
    box-shadow: 6px -6px 0 5px var(--white);
    pointer-events: none;
}

.menu-title {
    color: var(--white);
    background: var(--orange);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    overflow: hidden;
}

.menu-child {
    color: #101010;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    display: block;
    max-width: 0;
    margin: 0;
    padding: 0;
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), margin 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-child:hover {
    color: var(--orange);
}

.menu-wrapper:hover .menu-title {
    font-size: 0;
    padding: 6px 6px;
    margin-right: 8px;
}

.menu-wrapper:hover .menu-child {
    max-width: 150px;
    opacity: 1;
    margin: 0 10px;
}

.menu-burger {
    margin-left: 12px;
    margin-bottom: 4px;
}
.menu-burger-line {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.menu-burger-line:before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 8px;
    background: #101010;
    margin-bottom: 4px;
}
.menu-burger-line:after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 8px;
    background: #101010;
}

/* ── FULLSCREEN MENU ── */
.menu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.menu-mobile.active {
    opacity: 1;
    pointer-events: auto;
}
.menu-mobile-close {
    position: absolute;
    top: 40px;
    right: 40px;
}
.menu-mobile-close-btn {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
}
.menu-mobile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.mobile-menu-child {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, color 0.3s ease;
}
.menu-mobile.active .mobile-menu-child {
    transform: translateY(0);
    opacity: 1;
}
.menu-mobile.active .mobile-menu-child:nth-child(2) { transition-delay: 0.1s; }
.menu-mobile.active .mobile-menu-child:nth-child(3) { transition-delay: 0.2s; }
.menu-mobile.active .mobile-menu-child:nth-child(4) { transition-delay: 0.3s; }
.menu-mobile.active .mobile-menu-child:nth-child(5) { transition-delay: 0.4s; }

.mobile-menu-child:hover {
    color: var(--orange);
}

/* ── PREMIUM BUTTON ── */
.btn-premium {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background: var(--white);
    color: var(--bg-color);
    border-color: var(--white);
}

/* ── PORTFOLIO GRID LAYOUT ── */
.portfolio-hero {
    padding: 180px 8vw 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--white);
}

.portfolio-hero h1 span.orange {
    color: var(--orange);
}

.portfolio-hero p {
    margin-top: 24px;
    font-size: 20px;
    color: var(--gray-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    padding: 0 8vw 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 40px;
}

/* Make every even item offset down to create a masonry look */
.portfolio-item:nth-child(even) {
    transform: translateY(120px);
}

.portfolio-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    group;
}

.portfolio-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-color);
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.portfolio-meta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
}

.portfolio-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.portfolio-item:hover .portfolio-title {
    color: var(--orange);
}

/* ── INTERNAL DETAIL PAGES ── */
.internal-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--surface-color);
}

.internal-hero img, .internal-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.internal-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 8vw;
    z-index: 2;
}

.internal-hero-meta {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 24px;
}

.internal-hero h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 500;
    line-height: 1;
    color: var(--white);
    letter-spacing: -1px;
}

.internal-content {
    padding: 120px 8vw;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.internal-content h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--white);
}

.internal-content p {
    font-size: 22px;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.internal-gallery {
    padding: 0 8vw 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.internal-gallery-item {
    width: 100%;
    background: var(--surface-color);
}

.internal-gallery-item video, .internal-gallery-item img {
    width: 100%;
    display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .portfolio-item:nth-child(even) {
        transform: translateY(0);
    }
    .portfolio-img-wrapper {
        aspect-ratio: 16 / 9;
    }
    .internal-content p {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .menu-child { display: none; }
}

main {
    position: relative;
}

/* ── PORTFOLIOS GRID ── */
.portfolios-inner {
    padding-top: 50px;
}
.portfolios-scrolling-title-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 80px;
    position: relative;
    padding: 20px 0;
}
.portfolios-scrolling-title-wrapper::before,
.portfolios-scrolling-title-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 144, 0, 0.4), #ff9000, rgba(255, 144, 0, 0.4), transparent);
    background-size: 200% 100%;
}
.portfolios-scrolling-title-wrapper::before {
    top: 0;
    animation: flowLine 6s linear infinite;
}
.portfolios-scrolling-title-wrapper::after {
    bottom: 0;
    animation: flowLine 6s linear infinite reverse;
}

@keyframes flowLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.portfolios-scrolling-title {
    font-size: 80px;
    font-weight: 500;
    text-transform: uppercase;
    animation: scrollText 20s linear infinite;
    display: flex;
    align-items: center;
    color: var(--white);
    margin: 0;
    padding-right: 20px;
}
.portfolios-scrolling-title span {
    background: linear-gradient(45deg, #ff9000, #cf1e00);
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 40px;
}
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.portfolios-container {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    padding: 0 20px;
    box-sizing: border-box;
    padding-bottom: 80px;
}
.portfolios-container-child {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
.portfolios-image {
    width: 100%;
}
.portfolios-btn {
    text-decoration: none;
    color: inherit;
    display: block;
}
.portfolios-image-inner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #212121;
    border-radius: 28px;
    overflow: hidden;
    transition: 0.5s;
    opacity: 0.85;
}
.portfolios-image-inner:hover {
    opacity: 1;
}
.portfolios-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.portfolios-title {
    padding: 25px 15px 0;
    text-align: center;
}
@media (min-width: 769px) {
    .portfolios-title {
        min-height: 70px;
    }
}
.portfolios-title h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.portfolios-image .portfolios-image-inner {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolios-container-child.active .portfolios-image .portfolios-image-inner {
    opacity: 0.85;
    transform: translateY(0px);
}
.portfolios-container-child.active .portfolios-image-inner:hover {
    opacity: 1;
}

.portfolios-title a {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}
.portfolios-container-child.active .portfolios-title a {
    opacity: 1;
    transform: translateY(0px);
}

/* ── PRELOADER & BACKGROUND VIDEO ── */
body {
    background-color: transparent; /* allow video to be visible */
}

.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-color); /* fallback background color */
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* starts hidden, will fade in via GSAP/JS */
}

.bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 16, 16, 0.2) 0%, rgba(16, 16, 16, 0.85) 100%);
    z-index: 1;
}

/* ── SEARCH & FILTER CONTROLS ── */
.portfolio-controls {
    max-width: 1220px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 10;
    position: relative;
}

.search-box {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 20px 12px 45px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--orange);
    box-shadow: 0 0 10px rgba(223, 68, 24, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-box input:focus + .search-icon {
    color: var(--orange);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 24px;
    color: var(--gray-text);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(223, 68, 24, 0.3);
}

/* ── RESPONSIVE MEDIA QUERIES FOR GRID ── */
@media (max-width: 768px) {
    .portfolios-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        width: 100%;
    }
    .filter-tabs {
        justify-content: flex-start;
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 10px;
    }
}




/* ── PREMIUM CASE STUDY LAYOUTS & DETAIL PAGES ── */

/* Main Container */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 8vw 120px;
    position: relative;
    z-index: 1;
}

/* Back Button */
.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text) !important;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.detail-back-btn svg {
    transition: transform 0.3s ease;
}

.detail-back-btn:hover {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.detail-back-btn:hover svg {
    transform: translateX(-5px);
}

/* Hero Split Layout */
.detail-split-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
}

.detail-col-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-title-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--orange);
    text-transform: uppercase;
}

.detail-title-group h1 {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--white);
}

/* Metadata List */
.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.detail-meta-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: baseline;
}

.detail-meta-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.detail-meta-val {
    font-size: 15px;
    color: var(--white);
    line-height: 1.4;
}

/* Right Description Block */
.detail-col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-description {
    font-size: 18px;
    line-height: 1.65;
    color: #b0b0b0;
    font-weight: 400;
}

/* Cinematic Video Showcase */
.detail-hero-video {
    width: 100%;
    margin-bottom: 100px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
    position: relative;
    aspect-ratio: 16 / 9;
}

.detail-hero-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Static fallback image placeholder if video doesn't exist */
.detail-hero-card {
    width: 100%;
    margin-bottom: 100px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.detail-hero-card img {
    width: 100%;
    display: block;
}

/* Case Study Section Grid */
.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.case-study-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Asymmetric Headers & Indexes */
.case-study-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.case-study-index {
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--orange);
    font-family: var(--font-primary);
}

.case-study-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: capitalize;
}

/* Section Body & Texts */
.case-study-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-study-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-text);
    font-weight: 400;
}

/* Custom Grid of List Cards for Objectives */
.case-study-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}

.case-study-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 16px;
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(223, 68, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.case-study-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Next Project Bottom Panel */
.detail-next-project {
    display: block;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-next-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.detail-next-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.detail-next-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.3) 0%, rgba(16, 16, 16, 0.9) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.detail-next-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-next-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.detail-next-title {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.detail-next-project:hover .detail-next-bg img {
    transform: scale(1.05);
}

.detail-next-project:hover .detail-next-overlay {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.1) 0%, rgba(16, 16, 16, 0.95) 100%);
}

.detail-next-project:hover .detail-next-title {
    transform: translateX(10px);
}

/* ── RESPONSIVE MEDIA QUERIES FOR CASES ── */
@media (max-width: 1024px) {
    .detail-split-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .case-study-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 0;
    }
    .case-study-header {
        position: relative;
        top: 0;
    }
    .case-study-index {
        font-size: 36px;
    }
    .case-study-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 120px 20px 80px;
    }
    .detail-split-row {
        gap: 30px;
    }
    .detail-title-group h1 {
        font-size: 32px;
    }
    .detail-meta-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
    .detail-meta-val {
        font-size: 14px;
    }
    .detail-description {
        font-size: 16px;
    }
    .case-study-list {
        grid-template-columns: 1fr;
    }
    .case-study-list li {
        padding: 20px;
        font-size: 14px;
    }
    .detail-next-content {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }
    .detail-next-title {
        font-size: 24px;
    }
    .detail-hero-video, .detail-hero-card {
        margin-bottom: 60px;
        border-radius: 16px;
    }
}

/* Decorative Background Shapes */
.decor-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.decor-grid-dots {
    width: 120px;
    height: 120px;
    top: 15%;
    left: -40px;
}

.decor-circle {
    width: 350px;
    height: 350px;
    top: 45%;
    right: -120px;
}

.decor-plus-top {
    width: 24px;
    height: 24px;
    top: 80px;
    left: 8vw;
}

.decor-plus-middle {
    width: 24px;
    height: 24px;
    top: 60%;
    right: 8vw;
}

.decor-triangle {
    width: 200px;
    height: 200px;
    bottom: 12%;
    left: -50px;
    transform: rotate(15deg);
}

    @media (max-width: 1024px) {
        .decor-shape {
            opacity: 0.08;
        }
        .decor-circle {
            width: 200px;
            height: 200px;
            right: -50px;
        }
        .decor-triangle {
            width: 120px;
            height: 120px;
            left: -30px;
        }
    }
}

/* Multi-Video Showcase Grid */
.project-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.project-video-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-video-card:hover {
    border-color: rgba(223, 68, 24, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-video-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    margin: 0 4px 4px;
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .project-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-video-card {
        padding: 12px;
        border-radius: 16px;
    }
}

/* Image Gallery Grid for Poster Showcase */
.project-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.project-image-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-image-card:hover {
    border-color: rgba(223, 68, 24, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .project-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-image-card {
        padding: 12px;
        border-radius: 16px;
    }
}

/* Premium Poster Carousel */
.poster-carousel-section {
    position: relative;
    width: 100%;
    margin: 40px 0 60px 0;
    overflow: visible;
}

.poster-carousel {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.poster-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.poster-carousel-track {
    display: flex;
    gap: 30px;
    padding: 20px 4px 40px 4px;
}

.poster-card {
    flex: 0 0 auto;
    width: 320px;
    aspect-ratio: 1080/1350;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.poster-card:hover {
    border-color: rgba(223, 68, 24, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(223, 68, 24, 0.1);
}

.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Navigation Buttons */
.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 60px);
    left: -30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 16, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(223, 68, 24, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Custom Scrollbar Track */
.carousel-scrollbar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.carousel-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

@media (max-width: 1200px) {
    .carousel-navigation {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        left: 0;
        justify-content: flex-end;
        gap: 15px;
        margin-bottom: 15px;
        margin-top: -30px;
    }
    .carousel-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .poster-carousel-track {
        gap: 16px;
        padding-bottom: 20px;
    }
    .poster-card {
        width: 260px;
        aspect-ratio: 1080/1350;
        padding: 8px;
        border-radius: 16px;
    }
    .poster-card img {
        border-radius: 10px;
    }
}

/* YouTube Showcase Grid (3 columns) */
.project-video-grid.youtube-showcase {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 40px auto 0;
}

.project-video-grid.youtube-showcase .project-video-wrapper {
    aspect-ratio: 16 / 9;
}

.project-video-grid.youtube-showcase .project-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 992px) {
    .project-video-grid.youtube-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-video-grid.youtube-showcase {
        grid-template-columns: 1fr;
    }
}

/* Showcase Carousel for Aashika Gowda */
.showcase-carousel-section {
    position: relative;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
    overflow: visible;
}

.showcase-carousel {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.showcase-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.showcase-carousel-track {
    display: flex;
    gap: 30px;
    padding: 20px 4px 40px 4px;
}

.showcase-card {
    flex: 0 0 auto;
    width: 640px;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.showcase-card:hover {
    border-color: rgba(223, 68, 24, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(223, 68, 24, 0.1);
}

.showcase-card img,
.showcase-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    display: block;
}

.showcase-card img.align-top {
    object-position: center 35%;
}

@media (max-width: 768px) {
    .showcase-card {
        width: 320px;
        aspect-ratio: 16 / 9;
        padding: 8px;
        border-radius: 16px;
    }
    .showcase-card img,
    .showcase-card iframe {
        border-radius: 10px;
    }
    .showcase-carousel-track {
        gap: 16px;
        padding-bottom: 20px;
    }
}



/* ── GRID CONTROLS ── */
.grid-controls {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px;
}
.grid-layout-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}
.grid-layout-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}
.grid-layout-btn.active {
    color: var(--orange);
    background: rgba(255, 144, 0, 0.1);
    border: 1px solid rgba(255, 144, 0, 0.2);
}

.portfolios-container.cols-1 {
    grid-template-columns: repeat(1, 1fr) !important;
    max-width: 800px;
    margin: 0 auto;
}
.portfolios-container.cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 1220px;
}
.portfolios-container.cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1450px;
    gap: 40px 30px;
}
.portfolios-container.cols-3 .portfolios-title h3 {
    font-size: 20px;
}
.portfolios-container.cols-3 .portfolios-title {
    min-height: 55px;
}

@media (max-width: 768px) {
    .grid-controls {
        display: none !important;
    }
    .portfolios-container {
        grid-template-columns: 1fr !important;
    }
}

/* Fix for mobile menu items when menu-child class is present */
.menu-mobile .mobile-menu-child {
    max-width: none !important;
    overflow: visible !important;
    display: block !important;
}
