/* ==========================================================================
   Wadi Al Batin Trading Group - Design System & Custom Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --color-accent: #CDB06D;       /* Sand Gold */
    --color-accent-hover: #bda05d;
    --color-accent-light: rgba(205, 176, 109, 0.1);
    --gradient-gold-metallic: linear-gradient(45deg, #CDB06D 0%, #E2D2B0 50%, #bda05d 100%);
    --border-radius-premium: 20px; /* Rounded corners (18-24px) */
    --border-color-thin: #E8E4DB;  /* Thin borders */

    /* Fonts */
    --font-arabic: 'Readex Pro', 'Cairo', sans-serif;
    --font-english: 'Outfit', 'Syne', sans-serif;

    /* Spacing Scale (Fluid) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;
    
    /* Global Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-luxury: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-page: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Theme Switcher & Brand Micro-sites variables */
body {
    /* Default Group Theme (Editorial Warm Ivory & Sage Green) */
    --color-bg: #F4F1EA;             /* Warm Ivory */
    --color-surface-bg: #C7D0BE;     /* Soft Sage */
    --color-text: #2F3A34;           /* Deep Charcoal */
    --color-text-muted: rgba(47, 58, 52, 0.7);
    --color-border: #E8E4DB;         /* Thin border */
    --color-header-bg: rgba(149, 164, 141, 0.75); /* Muted Sage Green transparent */
    --color-header-scrolled: rgba(149, 164, 141, 0.95); /* Muted Sage Green complete */
    --color-card-grey: #C7D0BE;      /* Soft Sage */
    --color-hero-bg: #95A48D;       /* Muted Sage Green */
}

body.light-theme {
    /* Alternate Group Theme (Obsidian Dark Charcoal Mode) */
    --color-bg: #1E2521;             /* Deep Charcoal Dark */
    --color-surface-bg: #2F3A34;     /* Deep Charcoal */
    --color-text: #F4F1EA;           /* Warm Ivory */
    --color-text-muted: rgba(244, 241, 234, 0.65);
    --color-border: rgba(244, 241, 234, 0.08);
    --color-header-bg: rgba(47, 58, 52, 0.75);
    --color-header-scrolled: rgba(47, 58, 52, 0.95);
    --color-card-grey: #39463F;      /* Dark Sage for cards */
    --color-hero-bg: #1E2521;       /* Deep Charcoal */
}

/* CLOMIX Micro-site theme: Blue and Red accents (CLO Blue, MIX Red Split) */
body.clomix-theme-active {
    --color-bg: #FFFFFF;             /* Pure White */
    --color-surface-bg: #FFFFFF;     /* Pure White */
    --color-text: #1A2B49;           /* Dark Navy */
    --color-text-muted: #5E6B82;     /* Slate Gray */
    --color-border: #E6EDF7;         /* Light Gray border */
    --color-header-bg: rgba(255, 255, 255, 0.75); /* Ice White transparent */
    --color-header-scrolled: rgba(255, 255, 255, 0.95);
    --color-card-grey: #F7FAFF;      /* Ice White for cards / secondary bg */
    --color-accent: #1d4ed8;         /* CLO Blue */
    --color-accent-hover: #e63946;   /* MIX Red */
    --color-accent-light: #eff6ff;   /* Soft Blue surface */
    --color-clomix-navy: #183B8C;    /* Deep Navy */
    --shadow-accent: rgba(29, 78, 216, 0.15);
}

body.clomix-theme-active.light-theme {
    --color-bg: #0f172a;             /* Slate 900 */
    --color-surface-bg: #1e293b;     /* Slate 800 */
    --color-text: #f8fafc;           /* Slate 50 */
    --color-text-muted: #94a3b8;     /* Slate 400 */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-header-bg: rgba(15, 23, 42, 0.75);
    --color-header-scrolled: rgba(15, 23, 42, 0.95);
    --color-card-grey: #1e293b;
    --color-accent-light: rgba(29, 78, 216, 0.15);
}

/* TITAN Micro-site theme: Premium Metallic Gold and Black */
body.titan-theme-active {
    --color-bg: #0b0c10;
    --color-surface-bg: #11141c;
    --color-text: #ffffff;
    --color-text-muted: #a0aabf;
    --color-border: rgba(212, 175, 55, 0.25);
    --color-header-bg: rgba(11, 12, 16, 0.7);
    --color-header-scrolled: rgba(11, 12, 16, 0.95);
    --color-card-grey: #171b26;
    --color-accent: #d4af37;       /* Premium Gold */
    --color-accent-hover: #fcf6ba;
    --color-accent-light: rgba(212, 175, 55, 0.1);
    --gradient-gold-metallic: linear-gradient(45deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
    --shadow-accent: rgba(212, 175, 55, 0.2);
}

body.titan-theme-active:not(.light-theme) {
    --color-bg: #f8fafc;
    --color-surface-bg: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: rgba(212, 175, 55, 0.2);
    --color-header-bg: rgba(248, 250, 252, 0.7);
    --color-header-scrolled: rgba(248, 250, 252, 0.95);
    --color-card-grey: #f1f5f9;
}

/* TAK FIL Micro-site theme: Technical matte black with Emerald Green */
body.takfil-theme-active {
    --color-bg: #08090d;
    --color-surface-bg: #10131a;
    --color-text: #e2e4e9;
    --color-text-muted: #7e8799;
    --color-border: rgba(16, 185, 129, 0.15);
    --color-header-bg: rgba(8, 9, 13, 0.7);
    --color-header-scrolled: rgba(8, 9, 13, 0.95);
    --color-card-grey: #171c26;
    --color-accent: #10b981;       /* Emerald Green */
    --color-accent-hover: #059669;
    --color-accent-light: rgba(16, 185, 129, 0.08);
    --shadow-accent: rgba(16, 185, 129, 0.2);
}

body.takfil-theme-active:not(.light-theme) {
    --color-bg: #f4fcf7;
    --color-surface-bg: #ffffff;
    --color-text: #064e3b;
    --color-text-muted: #374151;
    --color-border: rgba(16, 185, 129, 0.12);
    --color-header-bg: rgba(244, 252, 247, 0.7);
    --color-header-scrolled: rgba(244, 252, 247, 0.95);
    --color-card-grey: #ecfdf5;
}

/* Wadi Al Batin Est theme: Sand bronze and rust engine orange (Warm light leaning) */
body.est-theme-active {
    --color-bg: #fbf7f4;
    --color-surface-bg: #ffffff;
    --color-text: #2f2520;
    --color-text-muted: #756860;
    --color-border: rgba(231, 111, 81, 0.12);
    --color-header-bg: rgba(251, 247, 244, 0.7);
    --color-header-scrolled: rgba(251, 247, 244, 0.95);
    --color-card-grey: #f7eee7;
    --shadow-accent: rgba(231, 111, 81, 0.15);
}

body.est-theme-active.light-theme {
    --color-bg: #1c1917;
    --color-surface-bg: #292524;
    --color-text: #fbf7f4;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-border: rgba(231, 111, 81, 0.2);
    --color-header-bg: rgba(41, 37, 36, 0.7);
    --color-header-scrolled: rgba(41, 37, 36, 0.95);
    --color-card-grey: #292524;
}

/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-arabic);
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    letter-spacing: -0.01em;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.loading {
    overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-arabic);
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Layout Classes */
.container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 64rem; }
.text-center { text-align: center; }
.align-center { align-items: center; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.text-dark { color: var(--color-text) !important; }
.text-dark-secondary { color: var(--color-text-muted) !important; }
.accent-text { color: var(--color-accent); }

/* Dividers */
.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}

/* ==========================================================================
   2. UI Components (Buttons, Indicators)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.1rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius-premium);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover svg {
    transform: translateX(-4px); /* Move left in RTL */
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #07090e;
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: inherit;
    border: 1px solid var(--color-border);
}
.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-accent);
    gap: 0.5rem;
}
.btn-text svg {
    transition: var(--transition-fast);
}
.btn-text:hover svg {
    transform: translateX(-5px); /* Move left in RTL */
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Indicators */
.section-indicator {
    display: inline-block;
    font-family: var(--font-english);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-right: 2.5rem;
}
.section-indicator::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 1.75rem;
    height: 1px;
    background-color: currentColor;
}

.section-indicator.accent {
    color: var(--color-accent);
}

/* ==========================================================================
   3. Page Layout & Structural Rhythm
   ========================================================================== */
.section-block {
    padding: var(--space-xl) 0;
    position: relative;
}

.bg-white {
    background-color: var(--color-surface-bg);
    color: var(--color-text);
}

.bg-grey {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.bg-dark {
    background-color: #07090e;
    color: #ffffff;
}

.bg-accent-light {
    background-color: var(--color-accent-light);
    color: #121620;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: inherit;
}

.section-desc {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 50rem;
}

.section-header {
    margin-bottom: var(--space-lg);
}
.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   4. Main Header Navigation (Sticky Glassmorphism)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background-color: var(--color-header-scrolled);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
    transition: var(--transition-smooth);
}
.main-header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-group {
    font-family: var(--font-english);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--color-accent);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2.5rem);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-text);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Burger Button */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}
.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

/* ==========================================================================
   5. Floating Capsule Navigation Drawer (Matches user's screenshot layout - Centered modal)
   ========================================================================== */
.capsule-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95); /* Absolute center popup modal */
    width: clamp(340px, 45vw, 420px);
    max-height: 85vh;
    background-color: var(--color-bg); /* Capsule rounded shape backdrop */
    border-radius: 40px; /* Capsule rounded shape */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: var(--color-text);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.capsule-nav-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Top Pill Control Bar */
.capsule-top-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-text);
    color: var(--color-bg);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 0.6rem;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 2rem;
    font-family: var(--font-english);
}

.capsule-close-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-english);
}

.close-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.capsule-theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.capsule-theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.capsule-scroll-progress {
    background-color: var(--color-accent);
    color: #2F3A34;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    min-width: 45px;
    text-align: center;
}

/* Sections links */
.capsule-menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.capsule-menu-section {
    display: flex;
    flex-direction: column;
}

.capsule-section-label {
    font-size: 0.75rem;
    color: #8e8e93;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-family: var(--font-english);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.capsule-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.capsule-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000000;
    transition: var(--transition-fast);
}
.capsule-link:hover {
    opacity: 0.7;
    padding-right: 5px;
}

.capsule-menu-list.sub-list .capsule-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.capsule-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0.5rem 0;
}

/* Frosted mask for drawer */
.capsule-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Frosted glassmorphism blur */
    -webkit-backdrop-filter: blur(8px);
    z-index: 195;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.capsule-mask.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   6. Interactive View Routing
   ========================================================================== */
/* Page Wipe Transition overlay */
.page-curtain {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curtain-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-page);
}

.curtain-logo {
    font-family: var(--font-english);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0;
    z-index: 10;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Wipe Animation Triggers */
.page-curtain.wipe-in .curtain-panel {
    transform: scaleX(1);
    transform-origin: right;
}
.page-curtain.wipe-in .curtain-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.page-curtain.wipe-out .curtain-panel {
    transform: scaleX(0);
    transform-origin: left;
}
.page-curtain.wipe-out .curtain-logo {
    opacity: 0;
    transform: translateY(-20px);
}

/* ==========================================================================
   7. Home View Specific Styles (Hero & Grid Layouts)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-hero-bg);
    padding-top: 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}
body.light-theme .grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

@keyframes slow-ambient {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.08);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.glow-sphere {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(90, 115, 142, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    animation: slow-ambient 25s infinite ease-in-out;
    pointer-events: none;
    will-change: transform;
}

.hero-content {
    width: 100%;
    max-width: 52rem;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 44rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-footer-bar {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
    background-color: rgba(255, 255, 255, 0.5);
}
body.light-theme .hero-footer-bar {
    background-color: rgba(244, 245, 247, 0.5);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-english);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Editorial Block & Cards (Home Overview) */
.pr-lg { padding-right: clamp(1rem, 3vw, 4rem); }
.pl-lg { padding-left: clamp(1rem, 3vw, 4rem); }

.editorial-image-card {
    height: 480px;
    background-color: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    position: relative;
    background-image: linear-gradient(135deg, var(--color-surface-bg) 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.editorial-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

.card-caption {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-right: 1px solid var(--color-accent);
    padding-right: 1rem;
}

/* Why us List */
.why-us-list {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
}

.why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.why-info h4 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.why-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.editorial-stat-card {
    height: 380px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.stat-large {
    font-family: var(--font-english);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-right: 2px solid var(--color-accent);
    padding-right: 1rem;
}

/* ==========================================================================
   8. About View (Narrative & Corporate Identity)
   ========================================================================== */
.page-hero-header {
    background-color: var(--color-bg);
    padding: var(--space-xxl) 0 var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
}

.pb-sm { padding-bottom: var(--space-md) !important; }

.editorial-summary-title h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.5;
    border-right: 3px solid var(--color-accent);
    padding-right: 1.5rem;
}

.editorial-summary-desc p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.corporate-value-card {
    background-color: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    padding: 3rem;
    transition: var(--transition-smooth);
}
.corporate-value-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.value-icon {
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.corporate-value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.corporate-value-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Growth Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: var(--space-lg) auto 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    position: relative;
    padding: 2rem 3rem;
}

.timeline-item.left {
    align-self: flex-start;
    justify-content: flex-start;
    margin-right: 50%;
}

.timeline-item.right {
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 2.8rem;
    left: 0;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 3px solid var(--color-surface-bg);
    z-index: 2;
}
.timeline-item.left .timeline-dot {
    left: auto;
    right: 0;
    transform: translateX(50%);
}

.timeline-content {
    background-color: var(--color-card-grey);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   9. Sticky Card Stacking Brands Scroll Showcase (Matches user's screenshot layout!)
   ========================================================================== */
.brands-stack-container {
    position: relative;
    width: 100%;
}

.brand-stack-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem clamp(1.5rem, 5vw, 4rem);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.brand-slide-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Huge numeric indicator in the top right (Matches 01 thin text from image) */
.brand-slide-num {
    position: absolute;
    top: 8%;
    right: 8%;
    font-family: var(--font-english);
    font-size: clamp(6rem, 16vw, 18rem);
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    letter-spacing: -0.05em;
}

.brand-slide-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    width: 100%;
    max-width: 1200px;
    z-index: 5;
    text-align: right;
    align-items: center;
    margin-bottom: 3rem;
}

.slide-left-col-COL h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    
}

.slide-left-col-TIT h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #000000;
}

.slide-left-col-TAK h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    
}
.slide-left-col-MO h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #ffffff;
}



.slide-left-col-samp{
    color: #07090e;
}

.slide-left-col p {
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 34rem;
}

.slide-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.05rem;
    
}

.slide-bullets-list li {
    opacity: 0.9;
    position: relative;
    padding-right: 0;
}

/* Center aligned CTA capsule button (Matches Get Started in screenshot center) */
.brand-center-cta {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #0b0b0d;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.85rem 2.6rem;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-arabic);
}
.brand-center-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background-color: var(--color-accent);
    color: #000000;
}

/* ==========================================================================
   10. Brand Custom Subpages & Catalog
   ========================================================================== */
.brand-custom-page {
    background-color: var(--color-surface-bg);
    color: var(--color-text);
    padding-top: 90px;
}

.brand-page-hero {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 8rem 0 6rem;
    position: relative;
}

.back-to-brands {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}
.back-to-brands svg {
    transform: rotate(180deg); /* points left in RTL */
}

.brand-hero-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

.brand-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    max-width: 50rem;
}

.border-round {
    border: 1px solid var(--color-border);
}

.styled-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.styled-list li {
    font-size: 0.95rem;
    position: relative;
    padding-right: 1.5rem;
}
.styled-list li::before {
    content: '✔';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-accent);
}

/* Category cards */
.product-category-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}
.product-category-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-surface-bg);
    border-color: var(--color-accent);
}

.cat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.product-category-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Product Showcase Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem; /* Larger gap for airy layout */
    margin-top: var(--space-md);
    margin-bottom: 6rem; /* Space to handle staggered card shifts */
}

.product-item-card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Staggering offsets like Moss & Stone */
.product-grid > .product-item-card:nth-child(3n+1) {
    transform: translateY(40px);
}
.product-grid > .product-item-card:nth-child(3n+2) {
    transform: translateY(0);
}
.product-grid > .product-item-card:nth-child(3n+3) {
    transform: translateY(60px);
}

.product-visual-box {
    aspect-ratio: 3 / 4;
    height: auto !important;
    background-color: #f4f0ea !important; /* Beige/cream matching screenshot */
    border: none !important;
    border-bottom: none !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.clomix-prod-bg { background-color: var(--color-accent-light); }
body.light-theme .clomix-prod-bg { background-color: var(--color-accent-light); }

.prod-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: #111111;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.85rem;
    z-index: 2;
}

.prod-placeholder-icon {
    font-size: 5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-item-card:hover .prod-placeholder-icon {
    transform: scale(1.12) !important; /* Pure smooth zoom, no rotation! */
}

.product-info {
    padding: 1.5rem 0 0 0 !important; /* No padding on sides, aligns with image borders */
    background-color: transparent !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    padding-left: 45px !important; /* Prevent text from overlapping the arrow button on the left */
}

.prod-cat {
    font-size: 0.75rem;
    color: var(--color-accent-hover);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.clomix-page .prod-cat { color: var(--color-accent); }
.titan-page .prod-cat { color: var(--color-accent); }
.takfil-page .prod-cat { color: var(--color-accent); }
.est-page .prod-cat { color: var(--color-accent); }

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #111111;
}

.prod-short-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.prod-specs-list {
    list-style: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: none !important; /* Remove borders inside cards */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prod-specs-list li {
    font-size: 0.8rem;
    color: var(--color-text);
    position: relative;
    padding-right: 1.2rem;
}
.prod-specs-list li::before {
    content: '▪';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-accent);
}

/* Minimalist arrow button ↗ at bottom left of active card info */
.product-info::after {
    content: "↗";
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-english);
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    transition: all 0.3s ease;
}

.product-item-card:hover .product-info::after {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
    transform: scale(1.05);
}

/* TITAN Specifics */
.brand-visual-editorial {
    padding-left: clamp(1rem, 3vw, 4rem);
}

.titan-editorial-block {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 4rem;
    border-right: 4px solid var(--color-accent);
}

.titan-editorial-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.titan-editorial-block p {
    color: var(--color-text-muted);
}

/* Wadi Al Batin Est specifics */
.est-editorial-block {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 4rem;
    border-right: 4px solid #e76f51;
}

.est-editorial-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.est-editorial-block p {
    color: var(--color-text-muted);
}

.service-icon-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 3rem;
}

.srv-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-icon-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-icon-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Premium Flow Sparrow Style Card Layouts
   ========================================================================== */
.corporate-value-card {
    background-color: var(--color-card-grey);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    border-radius: 20px !important;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

body.dark-theme .corporate-value-card {
    background-color: #10141f;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.corporate-value-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--color-accent, #5a738e) !important;
    box-shadow: 0 20px 40px rgba(90, 115, 142, 0.08);
}

body.dark-theme .corporate-value-card:hover {
    box-shadow: 0 20px 40px rgba(90, 115, 142, 0.12);
}

.value-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-light, rgba(90, 115, 142, 0.08));
    color: var(--color-accent, #5a738e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.corporate-value-card:hover .value-icon {
    background-color: var(--color-accent, #5a738e);
    color: #ffffff;
    transform: scale(1.05) rotate(4deg);
}

.corporate-value-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text, #0f172a);
    margin-bottom: 1rem;
}

.corporate-value-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted, #475569);
    margin: 0;
}

.corporate-value-card ul {
    list-style: none;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.corporate-value-card ul li {
    font-size: 0.95rem;
    color: var(--color-text-muted, #475569);
    position: relative;
    padding-right: 1.25rem;
    text-align: right;
}

.corporate-value-card ul li::before {
    content: "▪";
    position: absolute;
    right: 0;
    color: var(--color-accent, #5a738e);
    font-weight: 800;
}

/* Timeline Content Cards in Flow Sparrow Style */
.timeline-content {
    background-color: var(--color-card-grey) !important;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08)) !important;
    border-radius: 20px !important;
    padding: 2rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015) !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform, box-shadow;
}

body.dark-theme .timeline-content {
    background-color: #10141f !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.timeline-content:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--color-accent, #5a738e) !important;
    box-shadow: 0 20px 40px rgba(90, 115, 142, 0.08) !important;
}

/* ==========================================================================
   11. Contact Page (Dynamic Form & Details)
   ========================================================================== */
/* Executive RTL Contact Details & Form Formatting */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
    direction: rtl !important;
}

.detail-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-surface-bg, #ffffff);
    border: 1px solid var(--color-border, rgba(29, 78, 216, 0.15));
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    direction: rtl !important;
    text-align: right !important;
}

.detail-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent, #1d4ed8);
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.08);
}

.detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-accent-light, rgba(29, 78, 216, 0.08));
    color: var(--color-accent, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.detail-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right !important;
    gap: 4px;
    flex: 1;
    direction: rtl !important;
}

.detail-text h5 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-text, #0f172a);
    margin: 0;
    text-align: right !important;
}

.detail-text p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted, #475569);
    margin: 0;
    line-height: 1.5;
    text-align: right !important;
    direction: rtl !important;
}

.detail-text p a {
    color: var(--color-accent, #1d4ed8);
    text-decoration: none;
    font-weight: 700;
}

/* Contact Form Clean Formatting */
.contact-form-wrapper {
    background-color: var(--color-surface-bg, #ffffff);
    border: 1px solid var(--color-border, rgba(29, 78, 216, 0.15));
    border-radius: 24px;
    padding: clamp(1.8rem, 4vw, 3rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    direction: rtl !important;
}

.editorial-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
    direction: rtl !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right !important;
    direction: rtl !important;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    text-align: right !important;
}

.editorial-form input,
.editorial-form select,
.editorial-form textarea {
    font-family: var(--font-arabic, sans-serif);
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    border: 1px solid var(--color-border, #e2e8f0);
    background-color: var(--color-surface-bg, #ffffff);
    color: var(--color-text, #0f172a);
    border-radius: 12px !important;
    transition: all 0.3s ease;
    text-align: right !important;
    direction: rtl !important;
    width: 100%;
    box-sizing: border-box;
}

.editorial-form input:focus,
.editorial-form select:focus,
.editorial-form textarea:focus {
    outline: none;
    border-color: var(--color-accent, #1d4ed8) !important;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1) !important;
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}
.form-feedback.success {
    color: green;
    display: block;
}
.form-feedback.error {
    color: red;
    display: block;
}

/* ==========================================================================
   12. Footer Styling
   ========================================================================== */
.main-footer {
    background-color: #07090e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: var(--space-lg) 0 var(--space-md);
}
body.light-theme .main-footer {
    background-color: #f4f5f7;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #121620;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-md);
}
body.light-theme .footer-top {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-english);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: block;
    color: inherit;
}

.footer-brief {
    font-size: 0.85rem;
    color: inherit;
    opacity: 0.7;
    max-width: 20rem;
}

.footer-grid h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-grid ul a {
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-grid ul a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-contact-col p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   13. Reveal Animation Utilities (Driven by JS Observer)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delay Utilities */
.delay-50 { transition-delay: 50ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 250ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-350 { transition-delay: 350ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }

/* ==========================================================================
   14. CLOMIX Circular Orbit Carousel & Floating Header (Matches image 2)
   ========================================================================== */
.clomix-floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-bottom-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.light-theme .clomix-floating-header {
    /* Background and border are controlled by scroll state dynamically */
}
body.dark-theme .clomix-floating-header {
    /* Background and border are controlled by scroll state dynamically */
}

.clomix-floating-header.scrolled {
    padding: 0.8rem clamp(1.5rem, 5vw, 4rem);
    background-color: var(--color-header-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.minimalist-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-block {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-family: var(--font-english);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.minimalist-logo .logo-text {
    font-family: var(--font-english);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text);
}
body.dark-theme .minimalist-logo .logo-text {
    color: var(--color-text);
}

/* Centered Floating Pill Navigation (Directly replicates image 2) */
.pill-nav-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-text);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    color: var(--color-bg);
    height: 48px;
    z-index: 105;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pill-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: var(--font-english);
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 1;
}

.pill-btn span {
    display: block;
    width: 14px;
    height: 1.5px;
    background-color: currentColor;
    position: relative;
}
.pill-btn span::before,
.pill-btn span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    left: 0;
}
.pill-btn span::before { top: -4px; }
.pill-btn span::after { top: 4px; }

.pill-btn .btn-lbl {
    font-family: var(--font-english);
    font-size: 0.85rem;
    color: inherit;
}

.pill-theme-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.pill-theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pill-scroll-progress {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-family: var(--font-english);
    min-width: 38px;
    text-align: center;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.portal-link-lbl {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.portal-link-lbl:hover {
    color: var(--color-accent);
}

.get-started-btn {
    background-color: #0b0b0d !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.85rem !important;
    border: none !important;
}
.get-started-btn:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent) !important;
}

/* Orbit Stage layout */
.clomix-orbit-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    background-color: var(--color-bg);
}

.orbit-stage-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.editorial-hero-title {
    width: 40%;
}

.editorial-hero-title h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.editorial-hero-title p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Centered Orbit circular orbit container */
.orbit-stage {
    position: relative;
    width: 580px;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}

.orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub Card */
.orbit-center {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 10;
    transition: var(--transition-smooth);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-brand {
    font-family: var(--font-english);
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}

#centerTitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

#centerDesc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    max-width: 170px;
}

.center-specs {
    font-family: var(--font-arabic);
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Squircle Orbit Nodes (Replicates squircle card shapes in image 2) */
.orbit-item {
    position: absolute;
    width: 110px;
    height: 110px;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.orbit-node {
    width: 100%;
    height: 100%;
    background-color: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%; /* Premium Squircle border-radius */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.node-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
    transition: var(--transition-smooth);
}

.node-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Node Hover scale up */
.orbit-item:hover .orbit-node {
    transform: scale(1.18);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px var(--shadow-accent);
}

.orbit-item:hover .node-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Active centered node highlight */
.orbit-item.active .orbit-node {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px var(--shadow-accent);
    background-color: var(--color-accent-light);
}
body.dark-theme .orbit-item.active .orbit-node {
    background-color: var(--color-accent-light);
}

/* Floating Tags Filter (Matches image 2 tags on the right) */
.floating-orbit-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    width: 15%;
}

.filter-lbl {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    background-color: var(--color-surface-bg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-lbl:hover,
.filter-lbl.active {
    color: #ffffff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
body.light-theme .filter-lbl:hover,
body.light-theme .filter-lbl.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Responsive Overrides for Orbit Hero */
@media (max-width: 1024px) {
    .orbit-stage-wrapper {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .editorial-hero-title {
        width: 100%;
    }
    .orbit-stage {
        margin-right: 0;
        width: 480px;
        height: 480px;
    }
    .orbit-center {
        width: 180px;
        height: 180px;
    }
    .orbit-item {
        width: 90px;
        height: 90px;
    }
    .floating-orbit-filters {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .clomix-floating-header {
        padding: 1rem 1.5rem;
    }
    .header-actions-group {
        display: none;
    }
    .orbit-stage {
        width: 320px;
        height: 320px;
    }
    .orbit-center {
        width: 140px;
        height: 140px;
        padding: 0.5rem;
    }
    #centerTitle {
        font-size: 0.95rem;
    }
    #centerDesc {
        font-size: 0.7rem;
        max-width: 120px;
    }
    .center-specs {
        font-size: 0.65rem;
    }
    .orbit-item {
        width: 70px;
        height: 70px;
    }
    .node-icon {
        font-size: 1.8rem;
    }
    .node-title {
        display: none;
    }
}

/* Responsive Stacking layouts */
@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
    }
    .header-actions .btn {
        display: none !important;
    }
    .burger-menu {
        display: flex !important;
    }
    .brand-slide-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    .slide-left-col p {
        margin: 0 auto;
    }
    .slide-bullets-list {
        align-items: center;
    }
    .brand-slide-num {
        top: 4%;
        right: 4%;
        font-size: 6rem;
    }
    .brand-center-cta {
        bottom: 5%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .product-grid > .product-item-card {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    /* Collapse all grids into 1 column on mobile */
    .grid-2col, .grid-3col, .grid-4col, .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Reduce large desktop paddings on mobile */
    .section-block {
        padding: 4rem 0 !important;
    }
    
    .page-hero-header {
        padding: 8rem 0 3rem !important;
    }
    
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    /* Align texts in visual sections to center */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Order elements for mobile flow */
    .order-mobile-1 {
        order: 1 !important;
    }
    .order-mobile-2 {
        order: 2 !important;
    }
    
    /* Timeline Responsive 1-Column Collapse (RTL optimized) */
    .timeline-line {
        right: 20px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.5rem 3.5rem 1.5rem 1rem !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
    
    .timeline-item.left, .timeline-item.right {
        align-self: flex-start !important;
    }
    
    .timeline-dot {
        right: 20px !important;
        left: auto !important;
        transform: translateX(50%) !important;
    }
    
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        right: 20px !important;
        left: auto !important;
        transform: translateX(50%) !important;
    }
    
    /* Visuals sizes overrides on mobile */
    .editorial-image-card, .editorial-stat-card {
        height: 300px !important;
        padding: 2rem !important;
    }
    
    .stat-large {
        font-size: 5rem !important;
    }
    
    .titan-editorial-block, .est-editorial-block {
        padding: 2rem !important;
        border-right-width: 4px !important;
        border-left-width: 0 !important;
    }
    
    .product-category-card {
        padding: 1.75rem !important;
    }
}

/* ==========================================================================
   14. Brand Specific Visual Overrides (Takfil, CLOMIX, TaiTten)
   ========================================================================== */

/* TaiTten (TITAN) - Metallic Gold Overrides */
body.titan-theme-active .btn-primary {
    background: var(--gradient-gold-metallic) !important;
    color: #0b0c10 !important;
    border: none !important;
    font-weight: 700;
}
body.titan-theme-active .brand-center-cta {
    background: var(--gradient-gold-metallic) !important;
    color: #0b0c10 !important;
}
body.titan-theme-active .logo-block {
    background: var(--gradient-gold-metallic) !important;
}
body.titan-theme-active .curtain-logo {
    background: var(--gradient-gold-metallic) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.titan-theme-active .section-indicator,
body.titan-theme-active .section-indicator::before {
    color: #d4af37 !important;
}
body.titan-theme-active .titan-editorial-block {
    border-right-color: #d4af37 !important;
}

/* CLOMIX - Royal Blue / Fresh Cyan Premium Overrides */
body.clomix-theme-active .btn-primary {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}
body.clomix-theme-active .btn-primary:hover {
    background-color: var(--color-accent-hover) !important;
    color: #1A2B49 !important;
}
body.clomix-theme-active .orbit-item.active .orbit-node {
    border-color: var(--color-accent) !important;
    box-shadow: 0 20px 40px var(--shadow-accent) !important;
}
body.clomix-theme-active .orbit-item:hover .orbit-node {
    border-color: var(--color-accent-hover) !important;
}
body.clomix-theme-active .filter-lbl:hover,
body.clomix-theme-active .filter-lbl.active {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #ffffff !important;
}
body.clomix-theme-active .btn-outline:hover {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #ffffff !important;
}

/* Takfil - Emerald Green Overrides */
body.takfil-theme-active .btn-primary {
    background-color: var(--color-accent) !important;
    color: #08090d !important;
    border: none !important;
    font-weight: 700;
}
body.takfil-theme-active .btn-primary:hover {
    background-color: var(--color-accent-hover) !important;
}
body.takfil-theme-active .logo-block {
    background-color: var(--color-accent) !important;
}
body.takfil-theme-active .curtain-logo {
    color: var(--color-accent) !important;
}
body.takfil-theme-active .section-indicator,
body.takfil-theme-active .section-indicator::before {
    color: var(--color-accent) !important;
}
body.takfil-theme-active .takfil-editorial-block {
    border-right-color: var(--color-accent) !important;
}

/* ==========================================================================
   15. CLOMIX Staggered Products Grid Section
   ========================================================================== */
.clomix-products-section {
    background-color: var(--color-bg, #ffffff);
    padding: clamp(4rem, 8vw, 7rem) 0;
    color: var(--color-text, #0f172a);
    font-family: var(--font-arabic);
}

.clomix-products-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.moss-showcase-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    position: relative;
    align-items: start;
}

/* Left Column */
.moss-showcase-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    justify-content: space-between;
}

.moss-showcase-brand {
    font-family: var(--font-arabic), sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.moss-showcase-title h2 {
    font-family: var(--font-arabic), sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.moss-showcase-title p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-family: var(--font-arabic), sans-serif;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Explore All Button matching CLOMIX Blue & Red Palette */
.moss-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-english);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 2px solid #1d4ed8;
    padding-bottom: 0.3rem;
    width: fit-content;
    transition: all 0.3s ease;
}
.moss-explore-btn:hover {
    color: #e63946;
    border-bottom-color: #e63946;
}

/* Bottom Left Controls */
.moss-showcase-controls {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.moss-ctrl-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.moss-ctrl-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 6px 16px var(--shadow-accent);
}

/* Right Column Stage */
.moss-showcase-stage {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Product Card Slot Mechanics */
.moss-showcase-stage .product-item-card {
    position: absolute;
    width: calc(33.33% - 1.6rem);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7) translateY(100px);
    z-index: 1;
    margin-bottom: 0 !important;
}

/* Staggered Slot States */
.moss-showcase-stage .product-item-card.slot-left {
    left: 0;
    opacity: 0.7;
    pointer-events: auto;
    transform: scale(0.9) translateY(40px) !important;
    z-index: 2;
}

.moss-showcase-stage .product-item-card.slot-center {
    left: 33.33%;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.05) translateY(-20px) !important;
    z-index: 5;
}

.moss-showcase-stage .product-item-card.slot-right {
    left: 66.66%;
    opacity: 0.7;
    pointer-events: auto;
    transform: scale(0.95) translateY(60px) !important;
    z-index: 3;
}

/* Bottom Right Active Detail Block */
.moss-showcase-detail-block {
    grid-column: 2 / 3;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.moss-showcase-detail-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.moss-detail-info {
    max-width: 500px;
}

.moss-detail-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-family: var(--font-arabic), sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.moss-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.moss-detail-meta h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    font-family: var(--font-arabic), sans-serif;
}

.moss-detail-meta .specs-pill {
    font-size: 0.8rem;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: var(--font-arabic), sans-serif;
}

/* Detail Arrow Button */
.moss-detail-action {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.moss-detail-action:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-accent);
}

/* Responsive layout overrides */
@media (max-width: 1024px) {
    .moss-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .moss-showcase-left {
        min-height: auto;
        gap: 1.5rem;
    }
    .moss-showcase-controls {
        margin-top: 1rem;
    }
    .moss-showcase-stage {
        height: 440px;
    }
    .moss-showcase-stage .product-item-card.slot-left {
        transform: scale(0.9) translateY(0) !important;
    }
    .moss-showcase-stage .product-item-card.slot-center {
        transform: scale(1) translateY(0) !important;
    }
    .moss-showcase-stage .product-item-card.slot-right {
        transform: scale(0.95) translateY(0) !important;
    }
    .moss-showcase-detail-block {
        grid-column: 1 / 2;
    }
}

@media (max-width: 768px) {
    .moss-showcase-stage {
        height: 380px;
    }
    .moss-showcase-stage .product-item-card {
        width: 100%;
        left: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: scale(0.9) translateY(40px) !important;
    }
    .moss-showcase-stage .product-item-card.slot-center {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: scale(1) translateY(0) !important;
    }
}

/* ==========================================================================
   16. Standalone Catalog Page Styles
   ========================================================================== */
.catalog-page-wrapper {
    background-color: var(--color-bg); /* Unified theme background */
    color: var(--color-text); /* Unified theme text color */
    min-height: 100vh;
    font-family: var(--font-arabic);
    padding-top: 8rem; /* Space for the floating header capsule */
}

.catalog-hero {
    text-align: center;
    padding: 4rem 2rem 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.catalog-hero span {
    font-family: var(--font-english);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-accent); /* CLOMIX Blue dynamic */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.catalog-hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text); /* Unified theme text */
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.catalog-hero p {
    font-size: 1.05rem;
    color: var(--color-text-muted); /* Unified theme text muted */
    line-height: 1.6;
}

/* Catalog Filter Bar (Exact Match to Screenshot) */
.catalog-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.catalog-filter-btn {
    font-family: var(--font-english);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text); /* Unified theme text */
    background-color: var(--color-surface-bg); /* Unified surface background */
    border: 1px solid var(--color-border); /* Unified border */
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.catalog-filter-btn:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent);
}

.catalog-filter-btn.active {
    background-color: var(--color-accent); /* Unified Accent */
    color: #ffffff; /* White text */
    border-color: var(--color-accent);
}

/* Product Card Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 8rem 2rem;
}

/* Framed Card Style (Exact Match to Screenshot layout but with theme bases) */
.catalog-product-card {
    background-color: var(--color-card-grey);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-premium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
    will-change: transform, box-shadow;
}

.catalog-product-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--color-accent) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Product Visual Box inside Framed Card */
.catalog-product-card .card-visual-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical 3:4 aspect ratio */
    overflow: hidden;
    background-color: var(--color-card-grey); /* Unified subtle background container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-card .card-visual-box img,
.catalog-product-card .card-visual-box .card-placeholder-icon {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 4rem;
}

/* Hover Zoom */
.catalog-product-card:hover .card-visual-box img,
.catalog-product-card:hover .card-placeholder-icon {
    transform: scale(1.05);
}

/* Card Brand/Category Badge */
.catalog-product-card .card-brand-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-english);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background-color: var(--color-accent); /* Unified Accent color */
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    z-index: 10;
}

/* Card Footer Info Bar (With description block support) */
.catalog-product-card .card-footer-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background-color: var(--color-surface-bg); /* Unified surface bg */
}

/* Row wrapper for title and specification */
.catalog-product-card .card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* RTL Layout Aligned: Name on Right, Spec/Volume/Price on Left */
.catalog-product-card .card-footer-info .card-name-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text); /* Unified theme text */
    margin: 0;
    line-height: 1.4;
    text-align: right;
    padding-left: 1rem;
}

.catalog-product-card .card-footer-info .card-spec-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-accent); /* Unified Accent */
    white-space: nowrap;
}

/* Elegant Subtitle Description on the card */
.catalog-product-card .card-desc-text {
    font-size: 0.8rem;
    color: var(--color-text-muted); /* Unified theme text muted */
    margin: 0;
    line-height: 1.4;
    text-align: right;
}

/* Fade animation state for JS filtering */
.catalog-product-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 4rem;
    }
}

/* --- Clomix Circular Orbit Hero Section Styles (Restored Design) --- */
.clomix-orbit-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background-color: #ffffff; /* Mockup white background */
    color: #102e35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl; /* Right-to-left alignment */
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.clomix-orbit-hero .hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.clomix-orbit-hero .grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
}

.orbit-stage-wrapper {
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 0 5%;
    gap: 40px;
}

/* Editorial Title Left Side */
.editorial-hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 20px;
}

.editorial-hero-title h1 {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: #102e35;
    margin: 0;
}

.editorial-hero-title h1 .accent-text {
    display: block;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: 600;
    margin-top: 10px;
}

.editorial-hero-title p {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1.05rem;
    color: #5a6e72;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

/* Circular Stage Right Side (Desktop Optimized) */
.orbit-stage {
    position: relative;
    width: 620px;
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    animation: spin-circle 60s linear infinite;
    transform-origin: center center;
}

/* Central Hub Card (Desktop Enlarged & Ultra Clear) */
.orbit-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    background: #ffffff;
    border: 2px solid rgba(29, 78, 216, 0.14);
    border-radius: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(29, 78, 216, 0.05);
    text-align: center;
    padding: 25px 20px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orbit-center:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(29, 78, 216, 0.12);
    border-color: rgba(29, 78, 216, 0.3);
    transform: translate(-50%, -50%) scale(1.04);
}

.orbit-center .center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.orbit-center .center-brand {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.orbit-center h4 {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1.22rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.orbit-center p {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.92rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    max-height: none;
    overflow: visible;
    word-break: break-word;
    text-align: center;
}

.orbit-center .center-specs {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.82rem;
    color: #1d4ed8;
    background-color: rgba(29, 78, 216, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.06);
}

/* Orbit Node Items (Diamond Rounded Squares) */
.orbit-item {
    position: absolute;
    width: 96px;
    height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    animation: spin-counter 60s linear infinite;
    transform-origin: center center;
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Pause animations when hovering anywhere inside the stage */
.orbit-stage:hover .orbit-container,
.orbit-stage:hover .orbit-container .orbit-item {
    animation-play-state: paused;
}

/* Spin Animations */
@keyframes spin-circle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-counter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.orbit-node {
    width: 84px;
    height: 84px;
    transform: rotate(45deg); /* Diamond shape */
    border-radius: 22px;
    border: 3px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.orbit-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(-45deg) scale(1.45); /* Rotate back image to stay upright */
    transition: transform 0.4s ease;
}

.orbit-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    background-color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.orbit-item:hover .orbit-node {
    transform: rotate(45deg) scale(1.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(29, 78, 216, 0.2);
}

.orbit-item:hover .orbit-node img {
    transform: rotate(-45deg) scale(1.55);
}

.orbit-item:hover .orbit-label {
    opacity: 1;
    bottom: -32px;
}

.orbit-item.active .orbit-node {
    border-color: #1d4ed8;
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.18);
    transform: rotate(45deg) scale(1.12);
}

.orbit-item.active .orbit-node img {
    transform: rotate(-45deg) scale(1.55);
}

.orbit-item.active .orbit-label {
    opacity: 1;
    bottom: -32px;
    color: #1d4ed8;
    font-weight: 700;
}

/* Tablet Responsive adjustments */
@media (max-width: 1024px) {
    .clomix-orbit-hero {
        height: auto;
        padding: 120px 20px 60px 20px;
    }
    .orbit-stage-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .editorial-hero-title {
        align-items: center;
        text-align: center;
    }
    .editorial-hero-title p {
        max-width: 100%;
    }
    .orbit-stage {
        width: 480px;
        height: 480px;
    }
}

/* Mobile Responsiveness for Central Card & Orbit Stage (Optimized Mobile Focus) */
@media (max-width: 600px) {
    .clomix-orbit-hero {
        min-height: auto;
        padding: 90px 5px 40px 5px;
    }
    .orbit-stage-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    .editorial-hero-title {
        align-items: center;
        text-align: center;
    }
    .editorial-hero-title h1 {
        font-size: 1.7rem;
    }
    .editorial-hero-title p {
        font-size: 0.88rem;
        max-width: 320px;
    }
    .orbit-stage {
        width: 340px !important;
        height: 340px !important;
        max-width: 98vw !important;
    }
    /* Mobile Center Card: 100% Text Containment & High Legibility */
    .orbit-center {
        width: 175px !important;
        height: 175px !important;
        border-radius: 32px !important;
        padding: 14px 10px !important;
        border: 2px solid rgba(29, 78, 216, 0.15) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .orbit-center .center-content {
        height: 100% !important;
        justify-content: center !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .orbit-center .center-brand {
        font-size: 0.85rem !important;
        font-weight: 900 !important;
    }
    .orbit-center h4 {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }
    .orbit-center p {
        font-size: 0.72rem !important;
        font-weight: 500 !important;
        color: #475569 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .orbit-center .center-specs {
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        color: #1d4ed8 !important;
        background: rgba(29, 78, 216, 0.08) !important;
        padding: 3px 6px !important;
        border-radius: 12px !important;
        margin-top: 2px !important;
        max-width: 95% !important;
        text-align: center !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }
    .orbit-item {
        width: 54px !important;
        height: 54px !important;
    }
    .orbit-node {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        border-width: 2px !important;
    }
    .orbit-label {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }
}

/* --- Floating Header Pill Controls (Fixed Mobile Overflow) --- */
.pill-nav-control {
    display: inline-flex;
    align-items: center;
    background-color: #0d1f23;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 12px;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.burger-menu.pill-btn {
    width: auto !important;
    height: 28px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 4px !important;
}

.pill-btn span:not(.btn-lbl) {
    display: block;
    width: 14px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

.burger-icon-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.pill-btn .btn-lbl {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    line-height: 1 !important;
}

.pill-theme-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
}

.pill-scroll-progress {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

/* --- Product Image Lightbox Modal Styles --- */
.clomix-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 46, 53, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    direction: rtl;
}

.clomix-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.clomix-modal-card {
    background-color: #ffffff;
    border-radius: 28px;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clomix-modal-backdrop.active .clomix-modal-card {
    transform: scale(1);
}

.clomix-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #102e35;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.clomix-modal-close:hover {
    background-color: rgba(230, 57, 70, 0.1);
    color: #e63946;
    transform: rotate(90deg);
}

.clomix-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
}

.clomix-modal-image-wrapper {
    background-color: #f8fafc;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    border-left: 1px solid rgba(0,0,0,0.05);
}

.clomix-modal-image-wrapper img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.clomix-modal-card:hover .clomix-modal-image-wrapper img {
    transform: scale(1.05);
}

.clomix-modal-details {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 12px;
}

.clomix-modal-brand {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.clomix-modal-details h3 {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #102e35;
    margin: 0;
    line-height: 1.3;
}

.clomix-modal-details p {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.clomix-modal-specs {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.85rem;
    color: #1d4ed8;
    background-color: rgba(29, 78, 216, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.clomix-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 25px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.clomix-modal-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2deg);
}

/* Modal Responsive for Mobile & Tablet */
@media (max-width: 650px) {
    .clomix-modal-body {
        grid-template-columns: 1fr;
    }
    .clomix-modal-image-wrapper {
        border-left: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        min-height: 220px;
        padding: 20px;
    }
    .clomix-modal-image-wrapper img {
        max-height: 200px;
    }
    .clomix-modal-details {
        padding: 20px;
        align-items: center;
        text-align: center;
    }
}

/* Ensure Catalog Product Images Fill 100% of Image Box */
.card-visual-box,
.product-visual-box,
.clomix-prod-bg {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: transparent !important;
    display: block !important;
}

.card-visual-box img,
.product-visual-box img,
.clomix-prod-bg img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= Brands Continuous Infinite Marquee (RTL Slider - Harmonized Theme) ================= */
.brands-marquee-section {
    background-color: var(--color-bg, #f8fafc);
    padding: 60px 0 50px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brands-marquee-heading {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    margin-bottom: 35px;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
}

.brands-marquee-heading::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1d4ed8);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.marquee-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* Gradient fade masks on left and right edges */
.marquee-slider-container::before,
.marquee-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    transition: background 0.3s ease;
}

.marquee-slider-container::before {
    right: 0;
    background: linear-gradient(to left, var(--color-bg, #f8fafc), transparent);
}

.marquee-slider-container::after {
    left: 0;
    background: linear-gradient(to right, var(--color-bg, #f8fafc), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeRTL 22s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Marquee Cards Layout */
.marquee-card-wrapper {
    flex-shrink: 0;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-ticker-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-ticker-card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.08));
}

/* Brand 1: CLOMIX */
.bt-logo.clomix-brand {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
}

.clomix-blue { color: #1d4ed8; }
.clomix-red { color: #dc2626; }
.clomix-brand sup { font-size: 0.9rem; color: #dc2626; margin-right: 2px; }

.bt-sub.clomix-sub {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.25em;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-line {
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background-color: #1d4ed8;
}

/* Brand 2: TAITEN */
.bt-logo.taiten-brand {
    font-family: var(--font-english, 'Outfit', sans-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.08em;
    line-height: 1;
}

.bt-sub.taiten-sub {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 0.6rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.18em;
    margin-top: 6px;
}

/* Brand 3: TAK FIL */
.bt-logo.takfil-brand {
    font-family: var(--font-english, 'Syne', sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    font-style: italic;
}

.tak-text { color: #10b981; margin-left: 6px; }
.fil-text { color: #059669; }

.bt-sub.takfil-sub {
    font-family: var(--font-english, 'Inter', sans-serif);
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--color-text, #1e293b);
    letter-spacing: 0.15em;
    margin-top: 6px;
}

/* Brand 4: Wadi Al Batin Factory */
.bt-logo.batin-factory-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batin-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-color: rgba(29, 78, 216, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.batin-text-col {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.15;
}

.batin-main {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-text, #0f172a);
}

.batin-sub {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.15em;
    margin-top: 2px;
}

/* Vertical Divider between brands */
.marquee-card-divider {
    flex-shrink: 0;
    width: 1px;
    height: 50px;
    background-color: var(--color-border, rgba(0, 0, 0, 0.1));
}

/* Continuous Infinite Scroll Keyframe Right to Left */
@keyframes marqueeRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(33.333%);
    }
}

/* Dark Mode Harmonized Adaptations */
body.dark-mode .brands-marquee-section {
    background-color: #0b132b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .brands-marquee-heading {
    color: #f1f5f9 !important;
}

body.dark-mode .marquee-slider-container::before {
    background: linear-gradient(to left, #0b132b, transparent) !important;
}

body.dark-mode .marquee-slider-container::after {
    background: linear-gradient(to right, #0b132b, transparent) !important;
}

body.dark-mode .batin-main {
    color: #ffffff !important;
}

body.dark-mode .batin-icon-box {
    background-color: rgba(212, 175, 55, 0.15) !important;
}

body.dark-mode .batin-icon-box svg {
    stroke: #d4af37 !important;
}

body.dark-mode .bt-sub.takfil-sub {
    color: #cbd5e1 !important;
}

body.dark-mode .marquee-card-divider {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Premium Sticky Stacking Brand Showcase Layout */
#brandsView {
    background-color: #111111 !important;
    padding: 0 !important;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
}

.brands-portfolio-list {
    position: relative;
    width: 100%;
    background-color: #111111 !important;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.brand-portfolio-item {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    background-color: #111111 !important;
    display: grid;
    grid-template-columns: 35% 65%; /* Split Layout: 35% Left / 65% Right */
    align-items: center;
    box-sizing: border-box;
    padding: 0 clamp(2rem, 5vw, 6rem) !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    direction: ltr !important; /* Forces Left panel / Right panel order */
    
    /* Hardware Acceleration */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Left Panel: Dark Information Panel (35%) */
.brand-portfolio-info-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
    direction: rtl !important; /* Arabic right-to-left formatting */
    padding-right: clamp(1rem, 3vw, 4rem);
    z-index: 10;
    box-sizing: border-box;
}

.portfolio-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.portfolio-brand-number {
    font-family: var(--font-english);
    font-size: 1.15rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.portfolio-progress-bar {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.portfolio-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    background-color: #ffffff;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-portfolio-item.active .portfolio-progress-fill {
    width: 100%;
}

/* Brand Identity and Typography */
.portfolio-brand-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.portfolio-brand-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-family: var(--font-english);
}

.portfolio-brand-name {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.portfolio-brand-description {
    font-size: 1.12rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 95%;
}

/* Luxury Discover Button (CTA Button - Discover Brand →) */
.portfolio-discover-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    background: transparent;
}

.portfolio-discover-btn .discover-arrow {
    font-family: var(--font-english);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.1rem;
}

.portfolio-discover-btn:hover {
    border-bottom-color: #ffffff;
}

.portfolio-discover-btn:hover .discover-arrow {
    transform: translateX(-8px); /* Slides left in RTL */
}

/* Right Panel: Visual Mockup / Huge Image (65%) */
.brand-portfolio-visual-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
    z-index: 5;
}

/* Massive Premium Mockup Frame */
.portfolio-huge-image-wrapper {
    width: 100%;
    max-width: 92%;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
    position: relative;
    
    /* Hardware accelerated scale and slide animations */
    opacity: 0;
    transform: scale(0.96) translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.brand-portfolio-item.active .portfolio-huge-image-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.portfolio-huge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.brand-portfolio-item:hover .portfolio-huge-image {
    transform: scale(1.04);
}

/* Staggered text delays for info panel elements when slide is active */
.brand-portfolio-info-panel > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.brand-portfolio-item.active .brand-portfolio-info-panel > * {
    opacity: 1;
    transform: translateY(0);
}

.brand-portfolio-item.active .brand-portfolio-info-panel .portfolio-panel-header { transition-delay: 0.1s; }
.brand-portfolio-item.active .brand-portfolio-info-panel .portfolio-brand-identity { transition-delay: 0.25s; }
.brand-portfolio-item.active .brand-portfolio-info-panel .portfolio-brand-description { transition-delay: 0.4s; }
.brand-portfolio-item.active .brand-portfolio-info-panel .portfolio-discover-btn { transition-delay: 0.55s; }

/* Responsive Easing Rules */
@media (max-width: 1024px) {
    .brand-portfolio-item {
        grid-template-columns: 40% 60%;
        padding: 0 3rem !important;
    }
}

@media (max-width: 768px) {
    .brand-portfolio-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100vh;
        min-height: 100vh;
        padding: 3rem 1.5rem !important;
        gap: 2rem;
        justify-content: center;
        direction: rtl !important; /* Back to normal stack order on mobile */
    }
    
    .brand-portfolio-info-panel {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }
    
    .portfolio-panel-header {
        margin-bottom: 1.5rem;
        align-items: center;
    }
    
    .portfolio-brand-identity {
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .portfolio-brand-logo {
        font-size: 2.2rem;
    }
    
    .portfolio-brand-description {
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .brand-portfolio-visual-panel {
        padding: 0;
    }
    
    .portfolio-huge-image-wrapper {
        max-width: 100%;
        aspect-ratio: 16 / 11;
    }
    
    .portfolio-discover-btn:hover .discover-arrow {
        transform: translateX(-4px);
    }
}

/* Redesigned CLOMIX Vision Section (Unified Corporate Blue Palette) */
.clomix-vision-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background-color: var(--color-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.clomix-vision-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.clomix-vision-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background-color: #1d4ed8;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(29, 78, 216, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

.clomix-vision-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-text, #0f172a);
    margin-bottom: 1.5rem;
}

.gradient-text-blue-red {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clomix-vision-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted, #475569);
    margin-bottom: 1.2rem;
}

.clomix-trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.trust-stat-card {
    background: #ffffff;
    border: 1px solid rgba(29, 78, 216, 0.15);
    padding: 1rem 0.8rem;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.03);
}

.trust-stat-card:hover {
    transform: translateY(-3px);
    border-color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}

.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1d4ed8;
}

.stat-lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted, #64748b);
    margin-top: 2px;
}

.clomix-trust-feature-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border: 1px solid rgba(29, 78, 216, 0.15);
    border-radius: 24px;
    padding: clamp(1.8rem, 4vw, 2.8rem);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clomix-trust-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 50px rgba(29, 78, 216, 0.12);
}

.feature-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.8rem;
}

.feature-list-items {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon-box {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.feature-text h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #475569;
}

body.dark-mode .clomix-vision-section {
    background-color: #0b0f19;
}

body.dark-mode .clomix-vision-title {
    color: #ffffff;
}

body.dark-mode .clomix-vision-paragraph {
    color: #94a3b8;
}

body.dark-mode .clomix-trust-feature-card {
    background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card-title,
body.dark-mode .feature-text h4 {
    color: #ffffff;
}

body.dark-mode .feature-text p {
    color: #94a3b8;
}

body.dark-mode .trust-stat-card {
    background: #1e293b;
    border-color: #334155;
}

/* Dark Mode Overrides for Contact Section */
body.dark-mode .detail-card {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .detail-icon {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

body.dark-mode .detail-text h5 {
    color: #ffffff !important;
}

body.dark-mode .detail-text p {
    color: #94a3b8 !important;
}

body.dark-mode .detail-text p a {
    color: #60a5fa !important;
}

body.dark-mode .contact-form-wrapper {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .contact-form-wrapper h3,
body.dark-mode .editorial-form label {
    color: #ffffff !important;
}

body.dark-mode .editorial-form input,
body.dark-mode .editorial-form select,
body.dark-mode .editorial-form textarea {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}

body.dark-mode .editorial-form input::placeholder,
body.dark-mode .editorial-form textarea::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .clomix-products-section {
    background-color: #0b0f19;
    color: #ffffff;
}

body.dark-mode .moss-showcase-title h2 {
    color: #ffffff;
}

body.dark-mode .moss-showcase-title p {
    color: #94a3b8;
}

@media (max-width: 992px) {
    .clomix-vision-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   Mobile Footer Optimization ("تعديل وإعادة ترتيب أحدث ختام/آخر كلام على الجوال")
   ========================================================================== */
@media (max-width: 768px) {
    .main-footer {
        padding-top: 3.5rem !important;
        padding-bottom: 2rem !important;
    }

    .footer-top {
        padding-bottom: 2.5rem !important;
        margin-bottom: 1.8rem !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.2rem !important;
        text-align: right !important;
        direction: rtl !important;
    }

    .footer-brand-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.8rem;
    }

    .footer-logo {
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        margin-bottom: 0.8rem !important;
        letter-spacing: 0.03em !important;
    }

    .footer-brief {
        max-width: 100% !important;
        font-size: 0.95rem !important;
        line-height: 1.75 !important;
        opacity: 0.88 !important;
    }

    .footer-grid h4 {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        margin-bottom: 1rem !important;
    }

    .footer-grid ul {
        gap: 0.85rem !important;
    }

    .footer-grid ul a {
        font-size: 0.95rem !important;
        opacity: 0.85 !important;
        display: inline-block;
        padding: 2px 0;
    }

    .footer-contact-col p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        opacity: 0.85 !important;
        margin-bottom: 0.7rem !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .footer-bottom {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
        gap: 1.2rem !important;
        text-align: center !important;
        padding-top: 1.2rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .footer-bottom p {
        font-size: 0.88rem !important;
        opacity: 0.85 !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }

    .footer-socials {
        display: flex !important;
        justify-content: center !important;
        gap: 2rem !important;
    }

    .footer-socials a {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        opacity: 0.9 !important;
    }
}

/* ==========================================================================
   Mobile Brand Slide Text Layout Optimization ("تنسيق مصنع وادي الباطن على الجوال")
   ========================================================================== */
@media (max-width: 768px) {
    .brand-stack-slide {
        padding: 4.5rem 1.25rem 3.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        min-height: 100vh !important;
    }

    .brand-slide-content-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: right !important;
        direction: rtl !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .slide-left-col {
        width: 100% !important;
    }

    .slide-left-col h2 {
        font-size: 1.55rem !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        margin-bottom: 0.8rem !important;
    }

    .slide-left-col p {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
        opacity: 0.9 !important;
        margin-bottom: 0.5rem !important;
    }

    .slide-right-col {
        width: 100% !important;
    }

    .slide-bullets-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: flex-start !important;
        text-align: right !important;
        direction: rtl !important;
        padding-right: 0 !important;
    }

    .slide-bullets-list li {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        opacity: 0.92 !important;
        text-align: right !important;
    }

    .brand-slide-num {
        font-size: 4rem !important;
        font-weight: 900 !important;
        top: 2rem !important;
        right: 1.5rem !important;
        opacity: 0.18 !important;
        position: absolute !important;
    }

    .brand-center-cta {
        display: block !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 1rem auto 0 !important;
        padding: 14px 20px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        text-align: center !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }
}

/* Giant Edge-to-Edge Full-Width CLOMIX Typography Watermark */
.clomix-giant-hero-bg-text {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    text-align: center;
    font-family: var(--font-english, 'Outfit', 'Inter', sans-serif);
    font-size: clamp(6.5rem, 23vw, 25rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 0.8;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.clomix-giant-hero-bg-text .clo-part {
    color: rgba(29, 78, 216, 0.08);
}

.clomix-giant-hero-bg-text .mix-part {
    color: rgba(230, 57, 70, 0.07);
}

body.dark-mode .clomix-giant-hero-bg-text .clo-part {
    color: rgba(59, 130, 246, 0.12);
}

body.dark-mode .clomix-giant-hero-bg-text .mix-part {
    color: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .clomix-giant-hero-bg-text {
        top: 48%;
        font-size: clamp(4.5rem, 26vw, 9rem);
        letter-spacing: -0.01em;
    }
}

/* Full Uncropped Official Brand Banner Display Across Desktop & Mobile */
.full-brand-banner-section {
    width: 100%;
    max-width: 1400px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.full-brand-banner-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border, rgba(29, 78, 216, 0.15));
    background: #0f172a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Executive 2-Column Split Layout for CLOMIX Slide 01 */
.slide-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    z-index: 5;
}

.slide-media-col {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    width: 100%;
}

.clomix-brand-showcase-card {
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clomix-brand-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(29, 78, 216, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
}

.clomix-brand-showcase-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .brand-stack-slide[data-brand="clomix"] .brand-slide-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .clomix-brand-showcase-card {
        max-width: 100% !important;
        border-radius: 16px !important;
    }
    .clomix-brand-showcase-img {
        max-height: 280px !important;
    }
}




/* macOS Folder Retro Typography Footer Styles */
.folder-footer-container {
    background-color: #f5f5f7 !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 20px !important;
    margin: 4rem clamp(1rem, 5vw, 6rem) !important;
    padding: 4rem clamp(2rem, 5vw, 6rem) 3rem clamp(2rem, 5vw, 6rem) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    color: #1d1d1f !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

body.dark-mode .folder-footer-container {
    background-color: #1c1c1e !important;
    border-color: #2c2c2e !important;
    color: #f5f5f7 !important;
}

.folder-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.8fr;
    gap: 3rem;
    margin-bottom: 5rem;
    direction: rtl !important;
    text-align: right;
}

.folder-footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

body.dark-mode .folder-footer-col h4 {
    color: #ffffff;
}

.folder-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.folder-footer-col ul a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.folder-footer-col ul a:hover {
    color: #5ac8fa;
}

.folder-footer-col p {
    color: #86868b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.folder-footer-col.disclaimer p {
    font-size: 0.9rem;
    color: #86868b;
    line-height: 1.8;
}

.folder-footer-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid #e5e5ea;
    padding-top: 3.5rem;
    margin-bottom: 2rem;
    direction: ltr !important;
    width: 100%;
}

body.dark-mode .folder-footer-bottom-row {
    border-top-color: #2c2c2e;
}

.folder-footer-trash-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-footer-trash-icon {
    width: 32px;
    height: 32px;
    fill: #a2a2a7;
    transition: fill 0.3s ease;
}

.folder-footer-trash-wrapper:hover .folder-footer-trash-icon {
    fill: #ff453a;
}

.folder-footer-single-folder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-footer-macos-folder {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.folder-footer-single-folder:hover .folder-footer-macos-folder {
    transform: scale(1.08);
}

.folder-wordart-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.folder-wordart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15em;
    font-family: var(--font-english, 'Outfit', 'Inter', sans-serif);
    font-size: clamp(2.2rem, 7vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    user-select: none;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
}

.wordart-letter {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                text-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.4s ease;
    animation: wordart-float 3.5s infinite ease-in-out;
    will-change: transform, text-shadow;
}

.wordart-letter:hover {
    transform: translateY(-12px) scale(1.15);
    text-shadow: 0 10px 25px rgba(29, 78, 216, 0.25);
    color: var(--color-accent-hover, #4CCBFF) !important;
}

@keyframes wordart-float {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    }
    50% {
        transform: translateY(-6px);
        text-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 1024px) {
    .folder-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .folder-footer-container {
        margin: 2rem 1rem !important;
        padding: 2.5rem 1.5rem !important;
    }
    
    .folder-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: right !important;
    }
    
    .folder-footer-bottom-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        padding-top: 2rem !important;
    }
    
    .folder-wordart {
        font-size: clamp(1.8rem, 9vw, 3rem);
        gap: 0.1em;
        letter-spacing: 0.02em;
    }
    
    .wordart-letter:hover {
        transform: translateY(-6px) scale(1.1);
    }
}

/* ==========================================================================
   prefers-reduced-motion Media Query (Respect user accessibility preferences)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .glow-sphere {
        animation: none !important;
    }
}

/* Ensure showcase details elements are highly legible inside dark sections */
.bg-dark .moss-detail-desc {
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: var(--font-arabic), sans-serif !important;
}

.bg-dark .moss-detail-meta h3 {
    color: #ffffff !important;
    font-family: var(--font-arabic), sans-serif !important;
}

.bg-dark .moss-detail-meta .specs-pill {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-accent) !important;
    font-family: var(--font-arabic), sans-serif !important;
}
