/* ==========================================================================
   LOGIX EDITORIAL PORTFOLIO EXPERIENCE
   Liquid Glass Aesthetics · Alternating Asymmetric Storytelling · Cinema Motion
   ========================================================================== */

:root {
    --port-navy-deep: #070D1E;
    --port-navy-dark: #0F172A;
    --port-navy-surface: #1E293B;
    --port-blue: #1E40AF;
    --port-blue-light: #2563EB;
    --port-cyan: #38BDF8;
    --port-cyan-glow: rgba(56, 189, 248, 0.25);
    --port-glass-bg: rgba(255, 255, 255, 0.75);
    --port-glass-border: rgba(255, 255, 255, 0.85);
    --port-glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Section 1: Liquid Glass Filter Navigation
   ========================================================================== */
.liquid-filter-container {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.liquid-filter-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    box-shadow: 0 12px 35px -8px rgba(30, 64, 175, 0.08), 
                0 4px 12px rgba(15, 23, 42, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}

.liquid-filter-nav::-webkit-scrollbar {
    display: none;
}

.liquid-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.liquid-filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.06);
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    transition: all 0.3s ease;
}

.liquid-filter-btn:hover {
    color: var(--port-blue-light);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(56, 189, 248, 0.3);
}

.liquid-filter-btn:hover .filter-count {
    background: rgba(37, 99, 235, 0.12);
    color: var(--port-blue-light);
}

.liquid-filter-btn.active {
    background: var(--port-navy-deep);
    color: #FFFFFF;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 24px rgba(7, 13, 30, 0.35), 
                0 0 16px rgba(56, 189, 248, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.liquid-filter-btn.active .filter-count {
    background: rgba(56, 189, 248, 0.22);
    color: #38BDF8;
}

/* ==========================================================================
   Section 2: Editorial Showcase Main Layout
   ========================================================================== */
.editorial-showcase-container {
    padding: 2.5rem 0 6rem;
    position: relative;
    z-index: 2;
}

.editorial-project-list {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

/* ==========================================================================
   Section 3: Browser Mockup Frame (Unified across all blocks)
   ========================================================================== */
.editorial-browser-frame {
    border-radius: 24px;
    background: #FFFFFF;
    border: 1.5px solid rgba(30, 64, 175, 0.12);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08),
                0 2px 8px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    transform-style: preserve-3d;
}

.editorial-browser-frame:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 24px 60px -12px rgba(30, 64, 175, 0.18),
                0 0 25px rgba(56, 189, 248, 0.12);
}

.eb-bar {
    height: 44px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    gap: 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
}

.eb-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.eb-dot.red { background: #FF5F56; }
.eb-dot.yellow { background: #FFBD2E; }
.eb-dot.green { background: #27C93F; }

.eb-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 0.22rem 0.85rem;
    border-radius: 8px;
    direction: ltr;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.eb-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.eb-status.live {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.eb-status.star {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18) 0%, rgba(202, 138, 4, 0.28) 100%);
    color: #B45309;
    border: 1px solid rgba(250, 204, 21, 0.45);
}

.eb-status.usa {
    background: rgba(56, 189, 248, 0.15);
    color: #0369A1;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.eb-status.brand {
    background: rgba(2, 132, 199, 0.1);
    color: #0284C7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.eb-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   Section 4: FEATURED HERO PROJECT (Flagship Work)
   ========================================================================== */
.editorial-featured-hero {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1.5px solid rgba(30, 64, 175, 0.16);
    box-shadow: 0 20px 60px -15px rgba(30, 64, 175, 0.12),
                0 4px 16px rgba(15, 23, 42, 0.04);
    padding: clamp(2rem, 3.5vw, 3rem);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.editorial-featured-hero:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 30px 80px -15px rgba(30, 64, 175, 0.22),
                0 0 35px rgba(56, 189, 248, 0.15);
}

.hero-ambient-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(30, 64, 175, 0.08) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.featured-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Featured Visual Container */
.featured-hero-visual-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 20, 50, 0.16);
}

.featured-hero-visual {
    height: clamp(260px, 32vw, 380px);
    background: linear-gradient(135deg, #071526 0%, #0F2A4A 50%, #081B33 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.featured-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.2) 0%, transparent 65%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}

.featured-logo-pod {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.featured-logo-pod img {
    height: 90px;
    width: auto;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 10px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-featured-hero:hover .featured-logo-pod img {
    transform: scale(1.06) translateY(-4px);
}

.featured-visual-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.featured-visual-sub {
    font-size: 0.86rem;
    color: #38BDF8;
    font-weight: 600;
}

/* Floating Glass Badges */
.floating-glass-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(7, 15, 32, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    color: #F8FAFC;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.floating-glass-badge-left {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(234, 179, 8, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    color: #FEF08A;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 3;
}

/* Featured Content */
.featured-hero-content {
    display: flex;
    flex-direction: column;
}

.featured-category-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.featured-hero-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.featured-hero-desc {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.editorial-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.editorial-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.editorial-tag:hover {
    background: #E2E8F0;
    color: var(--port-blue-light);
}

.editorial-action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-editorial-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--port-blue) 0%, var(--port-blue-light) 100%);
    color: #FFFFFF !important;
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
    color: #FFFFFF !important;
}

.btn-editorial-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.45rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1E293B;
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1.5px solid #CBD5E1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.btn-editorial-glass:hover {
    background: #FFFFFF;
    border-color: var(--port-blue-light);
    color: var(--port-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.1);
}

/* ==========================================================================
   Section 5: ALTERNATING EDITORIAL PROJECT BLOCKS
   ========================================================================== */
.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    position: relative;
}

/* Alternating Reverse: In RTL, Default is Col 1 (Right) & Col 2 (Left).
   Reverse swaps order so the visual alternates naturally! */
.editorial-block.row-reverse {
    direction: ltr; /* Flips placement horizontally */
}
.editorial-block.row-reverse > * {
    direction: rtl; /* Restores Arabic text alignment inside */
}

/* Visual Mockup Surface & Heights */
.editorial-visual-box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.1);
}

.editorial-visual-inner {
    height: clamp(240px, 28vw, 340px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

/* Specific Brand Theme Visuals */
.vis-erp {
    background: linear-gradient(135deg, #0A1931 0%, #111D36 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.vis-lumina {
    background: linear-gradient(135deg, #091E3A 0%, #071526 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.vis-rozana {
    background: linear-gradient(135deg, #1A1713 0%, #0D1627 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.vis-gold {
    background: linear-gradient(135deg, #241D0D 0%, #0F172A 100%);
    border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.vis-noubani {
    background: linear-gradient(135deg, #0F1F38 0%, #0B132B 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

/* Content block */
.editorial-content-box {
    display: flex;
    flex-direction: column;
}

.editorial-block-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284C7;
    margin-bottom: 0.65rem;
}

.editorial-block-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.4;
    margin-bottom: 0.9rem;
}

.editorial-block-desc {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Section 6: WIDE CINEMA PANORAMIC BLOCK (Noubani Decoration)
   ========================================================================== */
.editorial-block-cinema {
    border-radius: 26px;
    background: #FFFFFF;
    border: 1.5px solid rgba(30, 64, 175, 0.14);
    box-shadow: 0 15px 45px -10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.editorial-block-cinema:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px -15px rgba(30, 64, 175, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.cinema-panoramic-visual {
    height: clamp(200px, 24vw, 290px);
    background: linear-gradient(135deg, #0B1728 0%, #152A47 50%, #0D1D33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
}

.cinema-panoramic-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, 40px 40px;
}

.cinema-brand-pod {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.cinema-brand-pod img {
    height: 78px;
    width: auto;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 10px 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease;
}

.editorial-block-cinema:hover .cinema-brand-pod img {
    transform: scale(1.05);
}

.cinema-brand-pod .cinema-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}

.cinema-body-content {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    align-items: center;
    background: #FFFFFF;
}

/* ==========================================================================
   Section 7: SPLIT TWIN EXHIBITION (Mood Kids & Abu Al Wafa)
   ========================================================================== */
.editorial-twin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
}

.twin-case-card {
    border-radius: 24px;
    background: #FFFFFF;
    border: 1.5px solid rgba(30, 64, 175, 0.12);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.twin-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 45px rgba(30, 64, 175, 0.14);
}

.twin-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.twin-visual.vis-mk {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    border-bottom: 1px solid #E2E8F0;
}

.twin-visual.vis-abu {
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
    border-bottom: 1px solid #E2E8F0;
}

.twin-case-logo {
    max-height: 80px;
    max-width: 170px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.twin-case-card:hover .twin-case-logo {
    transform: scale(1.08);
}

.twin-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.twin-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.twin-desc {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ==========================================================================
   Section 8: LIQUID GLASS PROJECT DETAIL MODAL
   ========================================================================== */
.liquid-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 13, 30, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.liquid-modal-panel {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 
                0 0 40px rgba(37, 99, 235, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-modal-backdrop.is-open .liquid-modal-panel {
    transform: scale(1) translateY(0);
}

.liquid-modal-close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    outline: none;
}

.liquid-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
    transform: rotate(90deg);
}

.modal-header-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    border-radius: 26px 26px 0 0;
}

.modal-inner-content {
    padding: 2.2rem;
}

.modal-badge-category {
    display: inline-block;
    color: #38BDF8;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.25rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.modal-project-title {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.modal-project-desc {
    font-family: 'Alexandria', 'Cairo', system-ui, sans-serif;
    font-size: 1rem;
    color: #CBD5E1;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.modal-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.modal-tag-chip {
    font-size: 0.78rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
}

.modal-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

/* ==========================================================================
   Section 9: Responsive Precision Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .featured-hero-grid {
        grid-template-columns: 1fr;
    }
    .editorial-block {
        grid-template-columns: 1fr;
    }
    .editorial-block.row-reverse {
        direction: rtl;
    }
    .cinema-body-content {
        grid-template-columns: 1fr;
    }
    .editorial-twin-grid {
        grid-template-columns: 1fr;
    }
    .editorial-project-list {
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .editorial-showcase-container {
        padding: 1.5rem 0 3.5rem;
    }
    .liquid-filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .liquid-filter-container::-webkit-scrollbar {
        display: none;
    }
    .liquid-filter-nav {
        padding: 0.35rem 0.45rem;
    }
    .liquid-filter-btn {
        padding: 0.45rem 0.95rem;
        font-size: 0.78rem;
    }
    .editorial-featured-hero {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .featured-hero-visual {
        height: 220px;
    }
    .featured-logo-pod img {
        height: 64px;
    }
    .editorial-visual-inner {
        height: 210px;
    }
    .modal-inner-content {
        padding: 1.5rem;
    }
    .modal-project-title {
        font-size: 1.35rem;
    }
    .floating-glass-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .editorial-featured-hero {
        padding: 1.15rem 1rem;
        border-radius: 16px;
    }
    .featured-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .btn-editorial-primary, .btn-editorial-glass {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.86rem;
    }
    .editorial-action-bar {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .cinema-metrics-bar {
        flex-direction: column;
        gap: 0.65rem;
        align-items: flex-start;
    }
    .cinema-metric-item {
        width: 100%;
    }
    .editorial-modal-content {
        width: calc(100vw - 20px);
        max-height: 88vh;
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
    .editorial-tags {
        gap: 0.4rem;
    }
    .editorial-tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
    }
}

@media (max-width: 360px) {
    .editorial-featured-hero {
        padding: 0.95rem 0.8rem;
    }
    .featured-hero-title {
        font-size: 1.25rem;
    }
    .featured-hero-visual {
        height: 180px;
    }
    .editorial-visual-inner {
        height: 175px;
    }
}

/* ==========================================================================
   PORTFOLIO EDITORIAL - DARK MODE ENHANCEMENTS (Modern Web Guidance)
   ========================================================================== */
:root[data-theme="dark"] .editorial-intro-title,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-intro-title {
    color: #F8FAFC;
}

:root[data-theme="dark"] .editorial-intro-desc,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-intro-desc {
    color: #94A3B8;
}

:root[data-theme="dark"] .liquid-filter-pill,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .liquid-filter-pill {
    background: rgba(14, 23, 47, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .liquid-filter-btn,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .liquid-filter-btn {
    color: #CBD5E1;
}

:root[data-theme="dark"] .liquid-filter-btn:hover,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .liquid-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
}

:root[data-theme="dark"] .liquid-filter-btn.active,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .liquid-filter-btn.active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #38BDF8;
}

:root[data-theme="dark"] .editorial-featured-hero,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-featured-hero {
    background: linear-gradient(145deg, #0B132B 0%, #0E172F 100%);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .featured-hero-title,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .featured-hero-title {
    color: #F8FAFC;
}

:root[data-theme="dark"] .featured-hero-desc,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .featured-hero-desc {
    color: #94A3B8;
}

:root[data-theme="dark"] .editorial-block-cinema,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-block-cinema {
    background: #0E172F;
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .editorial-block-title,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-block-title {
    color: #F8FAFC;
}

:root[data-theme="dark"] .editorial-block-desc,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-block-desc {
    color: #94A3B8;
}

:root[data-theme="dark"] .editorial-twin-card,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-twin-card {
    background: #0E172F;
    border-color: rgba(56, 189, 248, 0.16);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .twin-title,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .twin-title {
    color: #F8FAFC;
}

:root[data-theme="dark"] .twin-desc,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .twin-desc {
    color: #94A3B8;
}

:root[data-theme="dark"] .editorial-tag,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .editorial-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
}

:root[data-theme="dark"] .cinema-body-content,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .cinema-body-content {
    background: #0E172F;
}

:root[data-theme="dark"] .eb-browser-bar,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .eb-browser-bar {
    background: #111C38;
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .eb-url-pill,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .eb-url-pill {
    background: #070D1E;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

:root[data-theme="dark"] .featured-logo-pod,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .featured-logo-pod,
:root[data-theme="dark"] .cinema-brand-pod,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .cinema-brand-pod {
    background: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-intro-title {
        color: #F8FAFC;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-intro-desc {
        color: #94A3B8;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .liquid-filter-pill {
        background: rgba(14, 23, 47, 0.85);
        border-color: rgba(255, 255, 255, 0.12);
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .liquid-filter-btn {
        color: #CBD5E1;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-featured-hero {
        background: linear-gradient(145deg, #0B132B 0%, #0E172F 100%);
        border-color: rgba(56, 189, 248, 0.22);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .featured-hero-title {
        color: #F8FAFC;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .featured-hero-desc {
        color: #94A3B8;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-block-cinema {
        background: #0E172F;
        border-color: rgba(56, 189, 248, 0.18);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-block-title {
        color: #F8FAFC;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-block-desc {
        color: #94A3B8;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-twin-card {
        background: #0E172F;
        border-color: rgba(56, 189, 248, 0.16);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .twin-title {
        color: #F8FAFC;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .twin-desc {
        color: #94A3B8;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .editorial-tag {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #CBD5E1;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .cinema-body-content {
        background: #0E172F;
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .eb-browser-bar {
        background: #111C38;
        border-color: rgba(255, 255, 255, 0.08);
    }
    :root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .eb-url-pill {
        background: #070D1E;
        border-color: rgba(255, 255, 255, 0.1);
        color: #94A3B8;
    }
}
