/* ==========================================================================
   Swift Care Design System & Stylesheet
   Liquid Glass Theme • Fluid Refraction • Glassmorphism • RTL Support
   ========================================================================== */

:root {
    /* Liquid Theme Color Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-glow: rgba(37, 99, 235, 0.4);
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-light: #22d3ee;
    --accent-glow: rgba(6, 182, 212, 0.4);

    --liquid-violet: #8b5cf6;
    --liquid-violet-glow: rgba(139, 92, 246, 0.35);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.4);

    /* Liquid Glass Foundations */
    --bg-dark: #070a14;
    --bg-liquid-base: #060913;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-card-hover: rgba(20, 30, 55, 0.72);
    
    /* Liquid Glass Specular Borders & Highlights */
    --card-border: rgba(255, 255, 255, 0.13);
    --card-border-hover: rgba(96, 165, 250, 0.45);
    --liquid-specular: rgba(255, 255, 255, 0.22);
    --liquid-glass-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.55), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25);
    --liquid-glass-hover: 0 20px 50px -10px rgba(6, 182, 212, 0.25), 0 0 30px rgba(37, 99, 235, 0.2), inset 0 1px 2px 0 rgba(255, 255, 255, 0.35);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    --input-bg: rgba(13, 20, 36, 0.6);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-border-focus: #38bdf8;

    /* Typography & Radius Tokens */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-arabic: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Resets & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support Base */
[dir="rtl"] {
    font-family: var(--font-arabic);
    text-align: right;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

/* --------------------------------------------------------------------------
   Liquid Ambient Glass & Morphed Fluid Blobs
   -------------------------------------------------------------------------- */
.bg-glow-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    filter: blur(95px);
    opacity: 0.52;
    mix-blend-mode: screen;
    animation: liquidMorph 18s ease-in-out infinite alternate, floatOrb 24s ease-in-out infinite alternate;
}

.orb-1 {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle at 35% 35%, #2563eb, #3b82f6 45%, transparent 70%);
    top: -120px;
    left: -120px;
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
}

.orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 65% 65%, #06b6d4, #0284c7 45%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 41% 59% 47% 53% / 33% 45% 55% 67%;
    animation-delay: -7s;
}

.orb-3 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle at 50% 50%, #7c3aed, #4f46e5 50%, transparent 70%);
    top: 38%;
    left: 55%;
    border-radius: 65% 35% 55% 45% / 45% 60% 40% 55%;
    animation-delay: -11s;
}

@keyframes liquidMorph {
    0% {
        border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
    }
    33% {
        border-radius: 68% 32% 64% 36% / 30% 41% 59% 70%;
    }
    66% {
        border-radius: 38% 62% 31% 69% / 65% 35% 65% 35%;
    }
    100% {
        border-radius: 49% 51% 56% 44% / 45% 55% 45% 55%;
    }
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(60px, 45px) scale(1.1) rotate(60deg); }
    100% { transform: translate(-50px, 70px) scale(0.95) rotate(-40deg); }
}

/* Subtle Caustic Glass Grid */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
    background-size: 38px 38px, 100% 100%;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

/* Typography Helpers with Liquid Gradients & Fluid Shimmer */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #93c5fd 40%, #3b82f6 70%, #93c5fd 90%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
    animation: liquidTextFlow 8s linear infinite;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 40%, #06b6d4 70%, #22d3ee 90%, #a5f3fc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(6, 182, 212, 0.25);
    animation: liquidTextFlow 8s linear infinite;
}

@keyframes liquidTextFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Liquid Glass Header & Sticky Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    width: 100%;
    padding: 0 1.5rem;
    pointer-events: none; /* Allows user to interact through the top-margin gutter */
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
    pointer-events: auto;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.65rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: rgba(9, 15, 29, 0.72);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(37, 99, 235, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Liquid Specular Top Rim Highlight */
.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), rgba(56, 189, 248, 0.7), rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
    border-radius: inherit;
}

/* Header Dynamic Scrolled Mode */
.site-header.scrolled {
    top: 10px;
}

.site-header.scrolled .header-container {
    padding: 0.5rem 1.25rem;
    background: rgba(6, 10, 22, 0.88);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.2), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.4);
}

/* Brand Identity & Glowing Logo */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform var(--transition-fast);
}

.brand-link:hover {
    transform: scale(1.02);
}

.header-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 14px var(--accent-glow));
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.logo-ambient-glow {
    position: absolute;
    inset: -3px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.55), rgba(37, 99, 235, 0.35) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.7;
    animation: logoGlowPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes logoGlowPulse {
    0% {
        transform: scale(0.88);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.18);
        opacity: 0.9;
    }
}

.brand-link:hover .header-logo {
    transform: rotate(-4deg) scale(1.05);
    filter: drop-shadow(0 0 24px var(--primary-glow));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-subtext {
    font-size: 0.7rem;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}

[dir="rtl"] .brand-name,
[dir="rtl"] .brand-subtext {
    letter-spacing: normal;
}

/* Desktop Liquid Nav with Sliding Morphing Glass Bubble */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    position: relative;
    display: flex;
    list-style: none;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.32rem 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

/* Translucent Gliding Liquid Glass Hover Bubble */
.nav-hover-bubble {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.28);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), 
                width 0.28s cubic-bezier(0.22, 1, 0.36, 1), 
                height 0.2s ease,
                opacity 0.22s ease;
    will-change: transform, width, opacity;
}

.nav-hover-bubble::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    border-radius: inherit;
    pointer-events: none;
}

/* Fluid Gliding Liquid Glass Active Bubble */
.nav-pill-bubble {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.92));
    box-shadow: 0 4px 20px -2px var(--primary-glow), 0 0 24px rgba(6, 182, 212, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.28);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), 
                width 0.42s cubic-bezier(0.22, 1, 0.36, 1), 
                height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease;
    will-change: transform, width;
}

/* Specular Highlight Sheen on the Gliding Bubble */
.nav-pill-bubble::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.48rem 1.05rem;
    border-radius: var(--radius-full);
    transition: color 0.22s ease, text-shadow 0.22s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    background: transparent;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Static fallback before dynamic bubble initialization */
.nav-link.active {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.92));
    box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* When the gliding liquid bubble is active, clear individual static link backgrounds */
.nav-list.has-bubble .nav-link.active {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Liquid Language Switcher Button */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    color: var(--accent-light);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    outline: none;
}

.lang-switch-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(34, 211, 238, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.lang-switch-btn .lang-globe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switch-btn .lang-globe-icon svg {
    transition: transform 0.45s ease;
}

.lang-switch-btn:hover .lang-globe-icon svg {
    transform: rotate(25deg);
}

.lang-drawer-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-header-cta {
    font-size: 0.84rem;
    padding: 0.52rem 1.25rem;
    border-radius: var(--radius-full);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-header-cta .cta-arrow {
    transition: transform 0.25s ease;
}

.btn-header-cta:hover .cta-arrow {
    transform: translateX(4px);
}

[dir="rtl"] .btn-header-cta:hover .cta-arrow {
    transform: translateX(-4px) scaleX(-1);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.burger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Liquid Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-drawer.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 14, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.mobile-drawer-inner {
    position: relative;
    margin-left: auto;
    width: 84%;
    max-width: 360px;
    height: 100%;
    background: rgba(10, 16, 30, 0.85);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}

.mobile-drawer.open .mobile-drawer-inner {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.25);
    border-left: 3px solid var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   SPA View Routing Mechanics
   -------------------------------------------------------------------------- */
.main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-view {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInView 0.4s ease forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Liquid Glass Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Liquid Sheen Hover Reflection on Buttons */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.btn:hover::after {
    left: 140%;
}

/* Primary Liquid Button */
.btn-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.88));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px -4px rgba(37, 99, 235, 0.55), inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.7), inset 0 1px 2px 0 rgba(255, 255, 255, 0.6);
}

/* Secondary Liquid Glass Button */
.btn-secondary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.1));
    color: var(--accent-light);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 6px 20px -3px rgba(6, 182, 212, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(37, 99, 235, 0.2));
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(6, 182, 212, 0.45), inset 0 1px 2px 0 rgba(255, 255, 255, 0.4);
}

/* Outline Glass Button */
.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), inset 0 1px 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 0.95rem 1.9rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Liquid Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 12px #38bdf8;
    animation: pulseGlow 1.8s infinite;
}

.red-pulse {
    background-color: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

[dir="rtl"] .section-tag {
    letter-spacing: normal;
}

.badge-tag {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.18);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Liquid Glass Cards Base & Components
   -------------------------------------------------------------------------- */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(15, 23, 42, 0.65) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--liquid-glass-shadow);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--liquid-glass-hover);
    transform: translateY(-4px);
}

/* Section Containers & Headers */
.section-container {
    margin: 4.5rem 0;
}

.section-header {
    margin-bottom: 2.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .section-title {
    letter-spacing: normal;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Page Headers for Internal Views */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
}

.page-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.85rem;
    line-height: 1.15;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .page-title {
    letter-spacing: normal;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   VIEW 1: HOME LIQUID GLASS COMPONENTS (With Rich Hero Animations)
   -------------------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

/* Staggered Entrance Animations */
.hero-content .status-badge {
    animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: heroFadeUp 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[dir="rtl"] .hero-title {
    letter-spacing: normal;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 580px;
    animation: heroFadeUp 0.9s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: heroFadeUp 0.9s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero Entrance Keyframes */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroFadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Hero Visual Container & Ambient Aura Glow */
.hero-visual {
    position: relative;
    animation: heroFadeRight 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    perspective: 1200px;
}

[dir="rtl"] .hero-visual {
    animation: heroFadeLeft 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-aura-glow {
    position: absolute;
    inset: -35px -20px;
    z-index: 0;
    background: radial-gradient(circle at 45% 45%, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.28) 45%, rgba(139, 92, 246, 0.2) 65%, transparent 75%);
    filter: blur(50px);
    opacity: 0.65;
    animation: auraSpin 16s ease-in-out infinite alternate;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes auraSpin {
    0% {
        transform: scale(0.95) rotate(0deg);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.75;
    }
    100% {
        transform: scale(0.98) rotate(360deg);
        opacity: 0.55;
    }
}

/* Floating Micro-Glass Badges Around Hero Visual */
.hero-floating-pill {
    position: absolute;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: rgba(13, 20, 36, 0.8);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.hero-floating-pill.pill-top {
    top: -20px;
    right: -24px;
    animation: floatPillTop 6s ease-in-out infinite alternate;
}

.hero-floating-pill.pill-bottom {
    bottom: -22px;
    left: -24px;
    animation: floatPillBottom 7.5s ease-in-out infinite alternate;
}

[dir="rtl"] .hero-floating-pill.pill-top {
    right: auto;
    left: -24px;
}

[dir="rtl"] .hero-floating-pill.pill-bottom {
    left: auto;
    right: -24px;
}

@keyframes floatPillTop {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }
    100% {
        transform: translateY(-14px) rotate(2deg);
        box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
}

@keyframes floatPillBottom {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }
    100% {
        transform: translateY(14px) rotate(-2deg);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
}

.pill-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pill-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid currentColor;
    animation: radarRing 2s ease-out infinite;
}

.pulse-cyan {
    background-color: var(--accent-light);
    color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-light);
}

.pulse-emerald {
    background-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

/* Hero Visual Command Card Floating & 3D Lighting */
.hero-preview-card {
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.82) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    animation: heroCardFloat 7s ease-in-out infinite alternate;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}

.hero-preview-card.tilt-active {
    animation: none; /* Disable keyframe float during interactive cursor 3D tilt */
    transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
}

.hero-preview-card.tilt-resetting {
    animation: none; /* Keep keyframe paused while smoothly returning to center */
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroCardFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        transform: translateY(-10px) rotate(0.6deg);
        box-shadow: 0 24px 55px -10px rgba(6, 182, 212, 0.25), 0 0 35px rgba(37, 99, 235, 0.2), inset 0 1px 2px 0 rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: translateY(6px) rotate(-0.5deg);
        box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
    }
}

/* Card Specular Interactive Lighting */
.card-specular-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.header-status-wrap {
    display: flex;
    align-items: center;
}

.preview-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.65rem;
    display: inline-block;
    flex-shrink: 0;
}

.preview-indicator.online {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.preview-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge-tag.live-badge {
    animation: liveBadgePulse 3s ease-in-out infinite;
}

@keyframes liveBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
    50% { box-shadow: 0 0 15px 3px rgba(16, 185, 129, 0.45); }
}

.preview-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.metric-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 0.65rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-item:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Real-Time Telemetry & Engineering Pulse Graph Box */
.preview-wave-box {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    background: rgba(8, 14, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wave-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.wave-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
}

[dir="rtl"] .wave-label {
    letter-spacing: normal;
}

.wave-live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--success);
    letter-spacing: 0.08em;
}

.green-pulse {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulseGlow 1.4s infinite;
}

.svg-wave-container {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(3, 7, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ecg-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ecg-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.ecg-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 520;
    animation: ecgPulseAnim 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8));
}

@keyframes ecgPulseAnim {
    0% {
        stroke-dashoffset: 520;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.wave-scan-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
    animation: scanBeamAnim 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes scanBeamAnim {
    0% {
        left: -12%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: 112%;
        opacity: 0;
    }
}

[dir="rtl"] .wave-scan-beam {
    animation-name: scanBeamAnimRtl;
}

@keyframes scanBeamAnimRtl {
    0% {
        right: -12%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        right: 112%;
        opacity: 0;
    }
}
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.metric-item .metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 14px var(--accent-glow);
}

.metric-item .metric-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[dir="rtl"] .metric-item .metric-label {
    letter-spacing: normal;
}

.preview-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.activity-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.activity-chip:hover {
    transform: translateX(4px);
    border-color: rgba(96, 165, 250, 0.4);
}

[dir="rtl"] .activity-chip:hover {
    transform: translateX(-4px);
}

.activity-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: liquidChipSweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidChipSweep {
    0%, 25% { left: -120%; }
    75%, 100% { left: 220%; }
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.chip-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.6;
    animation: radarRing 2s ease-out infinite;
}

@keyframes radarRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.chip-dot.blue { background-color: var(--primary-light); color: var(--primary-light); box-shadow: 0 0 10px var(--primary); }
.chip-dot.cyan { background-color: var(--accent-light); color: var(--accent-light); box-shadow: 0 0 10px var(--accent); }
.chip-dot.green { background-color: var(--success); color: var(--success); box-shadow: 0 0 10px var(--success); }

/* Liquid Glass Metrics Bar */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin: 3.5rem 0;
    box-shadow: var(--liquid-glass-shadow);
}

.metric-block {
    text-align: center;
    position: relative;
}

.metric-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.metric-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Two Core Pillars Grid */
.dual-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.65) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    position: relative;
    box-shadow: var(--liquid-glass-shadow);
}

.pillar-software:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.pillar-devices:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 20px 50px -10px rgba(6, 182, 212, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.pillar-icon-box {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.05));
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cyan-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.05));
    color: var(--accent-light);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.pillar-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

[dir="rtl"] .pillar-badge {
    letter-spacing: normal;
}

.cyan-badge {
    color: var(--accent-light);
}

.pillar-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .pillar-title {
    letter-spacing: normal;
}

.pillar-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.pillar-bullets {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar-bullets li {
    font-size: 0.95rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pillar-bullets li span {
    color: var(--accent-light);
    font-weight: 800;
}

.pillar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-light);
    transition: gap var(--transition-fast);
}

.cyan-link {
    color: var(--accent-light);
}

.pillar-link:hover {
    gap: 0.85rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    transition: all var(--transition-smooth);
    box-shadow: var(--liquid-glass-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(20, 30, 55, 0.7) 100%);
    box-shadow: var(--liquid-glass-hover);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.65) 100%);
    backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.35rem;
    position: relative;
    box-shadow: var(--liquid-glass-shadow);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--accent-light);
}

/* Liquid Glass CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28) 0%, rgba(6, 182, 212, 0.18) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: var(--radius-lg);
    padding: 3.75rem 2rem;
    text-align: center;
    margin: 4.5rem 0 2rem;
    box-shadow: 0 16px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.cta-inner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.cta-inner p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   VIEW 2: SOFTWARE ENGINEERING COMPONENTS
   -------------------------------------------------------------------------- */
.filter-controls-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.filter-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    color: #ffffff;
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.software-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 4.5rem;
}

.solution-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    box-shadow: var(--liquid-glass-shadow);
}

.solution-card.hidden {
    display: none;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: var(--liquid-glass-hover);
}

.solution-icon {
    font-size: 2.3rem;
    margin-bottom: 1.25rem;
}

.solution-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    margin-bottom: 0.45rem;
}

[dir="rtl"] .solution-tag {
    letter-spacing: normal;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.solution-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.tech-chip {
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

/* SDLC Timeline */
.sdlc-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.sdlc-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    position: relative;
    transition: all var(--transition-fast);
    box-shadow: var(--liquid-glass-shadow);
}

.sdlc-step:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.sdlc-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(96, 165, 250, 0.45);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.sdlc-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.sdlc-step p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Featured Case Study */
.case-study-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(37, 99, 235, 0.45);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin: 4rem 0 2rem;
    box-shadow: var(--liquid-glass-shadow);
    text-align: center;
}

.case-study-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .case-study-badge {
    letter-spacing: normal;
}

.case-study-banner h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.case-study-banner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.case-study-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.25rem;
}

.case-study-stats div {
    font-size: 1rem;
    color: var(--text-muted);
}

.case-study-stats div strong {
    display: block;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   VIEW 3: MEDICAL DEVICES SERVICES LIQUID COMPONENTS
   -------------------------------------------------------------------------- */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4.5rem;
}

.service-detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    box-shadow: var(--liquid-glass-shadow);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 20px 45px -10px rgba(6, 182, 212, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.service-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.05));
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.service-detail-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-detail-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-checklist {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.service-checklist li {
    font-size: 0.86rem;
    color: #cbd5e1;
    position: relative;
    padding-left: 1.25rem;
}

.service-checklist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Modalities Grid */
.modality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.modality-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition-fast);
    box-shadow: var(--liquid-glass-shadow);
}

.modality-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--liquid-glass-hover);
}

.modality-icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}

.modality-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modality-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Liquid SLA Table */
.sla-table-container {
    overflow-x: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.7) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--liquid-glass-shadow);
}

.sla-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 680px;
}

.sla-table th, .sla-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.95rem;
}

.sla-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sla-table td {
    color: var(--text-muted);
}

.sla-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.sla-table .highlight-column {
    background: rgba(37, 99, 235, 0.12);
    border-left: 1px solid rgba(37, 99, 235, 0.3);
    border-right: 1px solid rgba(37, 99, 235, 0.3);
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   VIEW 4: ABOUT LIQUID COMPONENTS
   -------------------------------------------------------------------------- */
.narrative-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4.5rem;
}

.narrative-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.75rem 0 1.25rem;
    letter-spacing: -0.02em;
}

[dir="rtl"] .narrative-text h2 {
    letter-spacing: normal;
}

.narrative-text p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.narrative-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.highlight-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 0.4rem;
}

.highlight-item p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

.narrative-stats-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
    backdrop-filter: blur(28px);
}

.narrative-stats-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent-light);
    min-width: 80px;
    text-shadow: 0 0 14px var(--accent-glow);
}

.stat-info {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: all var(--transition-fast);
    box-shadow: var(--liquid-glass-shadow);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: var(--liquid-glass-hover);
}

.value-index {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    line-height: 1;
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Certifications Showcase */
.certifications-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 4.5rem 0 2rem;
    box-shadow: var(--liquid-glass-shadow);
}

.certs-badge-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cert-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem 1.6rem;
    text-align: center;
    transition: all var(--transition-fast);
    min-width: 200px;
    backdrop-filter: blur(14px);
}

.cert-pill:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.cert-code {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.cert-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   VIEW 5: CONTACT US LIQUID GLASS COMPONENTS
   -------------------------------------------------------------------------- */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    margin-bottom: 4.5rem;
}

/* Urgent Dispatch Card */
.urgent-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 35px var(--danger-glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.urgent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.urgent-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.urgent-card p {
    font-size: 0.92rem;
    color: #fca5a5;
    margin-bottom: 1.25rem;
}

.urgent-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 0.85rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
}

.urgent-phone-link:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.urgent-sub {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Standard Contacts Deck */
.contact-cards-deck {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all var(--transition-fast);
    box-shadow: var(--liquid-glass-shadow);
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--liquid-glass-hover);
}

.contact-card-icon {
    font-size: 1.75rem;
}

.contact-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.94rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Liquid Form Styles */
.form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.7) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--liquid-glass-shadow);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-row.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group label .required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-input:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 24px -4px rgba(37, 99, 235, 0.3);
    background: rgba(15, 23, 42, 0.85);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: #090d16;
    color: #ffffff;
}

/* Liquid FAQ Accordion */
.faq-accordion {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--liquid-glass-shadow);
}

.faq-item.active {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 1.4rem 1.75rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-light);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 1.75rem 1.4rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Toast Notification & Scroll-to-Top
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 300;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.25);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.toast-content .toast-title {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}

.toast-content .toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    margin-left: auto;
}

[dir="rtl"] .toast-close {
    margin-left: 0;
    margin-right: auto;
}

/* Floating Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

/* Spinner Animation */
.spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Global Footer (Liquid Glass Style)
   -------------------------------------------------------------------------- */
.site-footer {
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 4.5rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.emergency-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

.footer-phone a {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-email a {
    color: var(--accent-light);
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-hours {
    font-size: 0.82rem;
    color: var(--text-subtle);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--text-subtle);
}

.footer-bottom-links {
    display: flex;
    gap: 0.85rem;
}

.footer-bottom-links a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RTL (Arabic) Layout Rules
   -------------------------------------------------------------------------- */
[dir="rtl"] .preview-indicator {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .metric-block:not(:last-child)::after {
    right: auto;
    left: -0.75rem;
}

[dir="rtl"] .service-checklist li {
    padding-left: 0;
    padding-right: 1.25rem;
}

[dir="rtl"] .service-checklist li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .value-index {
    right: auto;
    left: 1.5rem;
}

[dir="rtl"] .sla-table {
    text-align: right;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .scroll-top-btn {
    left: auto;
    right: 2rem;
}

[dir="rtl"] .toast {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .mobile-drawer-inner {
    margin-left: 0;
    margin-right: auto;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
}

[dir="rtl"] .mobile-drawer.open .mobile-drawer-inner {
    transform: translateX(0);
}

[dir="rtl"] .mobile-nav-link:hover,
[dir="rtl"] .mobile-nav-link.active {
    border-left: none;
    border-right: 3px solid var(--accent);
}

[dir="rtl"] .btn svg:not(.spin-icon),
[dir="rtl"] .pillar-link svg {
    transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Comprehensive Responsive Breakpoints (Desktop, Laptop, Tablet, Mobile)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (1025px - 1200px) */
@media (max-width: 1200px) {
    .brand-subtext {
        display: none;
    }

    .header-container {
        gap: 0.75rem;
        padding: 0.55rem 1.15rem;
    }

    .desktop-nav .nav-link {
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-header-cta {
        padding: 0.45rem 0.95rem;
        font-size: 0.8rem;
    }

    .sdlc-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet Landscape / iPad Pro & Standard Tablets (769px - 1024px) */
@media (max-width: 1024px) {
    .site-header {
        top: 10px;
        padding: 0 1.25rem;
    }

    .header-container {
        padding: 0.55rem 1.15rem;
    }

    /* Switch to sleek mobile navigation drawer on tablet and below */
    .desktop-nav,
    .btn-header-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    [dir="rtl"] .hero-description {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 580px;
        margin: 0 auto;
    }

    .hero-floating-pill.pill-top {
        top: -14px;
        right: 0;
    }

    .hero-floating-pill.pill-bottom {
        bottom: -14px;
        left: 0;
    }

    [dir="rtl"] .hero-floating-pill.pill-top {
        right: auto;
        left: 0;
    }

    [dir="rtl"] .hero-floating-pill.pill-bottom {
        left: auto;
        right: 0;
    }

    .metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .metric-block:nth-child(2)::after {
        display: none;
    }

    .dual-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .pillar-card {
        padding: 2.25rem 1.85rem;
    }

    .software-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .modality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .narrative-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tablet Portrait & Large Phablets (541px - 768px) */
@media (max-width: 768px) {
    .site-header {
        top: 8px;
        padding: 0 0.85rem;
    }

    .header-container {
        padding: 0.48rem 0.95rem;
    }

    .main-content {
        padding: 1.75rem 1rem 3.5rem;
    }

    .hero-floating-pill {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 5.5vw, 2.75rem);
    }

    .sdlc-timeline {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .software-solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .services-overview-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modality-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .pillar-card {
        padding: 1.85rem 1.35rem;
    }

    .service-detail-card {
        padding: 1.75rem 1.35rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-row.dual {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .narrative-highlights {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .case-study-banner {
        padding: 2.25rem 1.5rem;
        margin: 2.5rem 0 1.5rem;
    }

    .case-study-banner h3 {
        font-size: 1.55rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Standard Mobile Phones (381px - 540px) */
@media (max-width: 540px) {
    .site-header {
        top: 6px;
        padding: 0 0.5rem;
    }

    .header-container {
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .header-logo-wrap,
    .header-logo {
        width: 32px;
        height: 32px;
    }

    .lang-switch-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .page-title {
        font-size: clamp(1.85rem, 6.5vw, 2.25rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 5.5vw, 1.95rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-preview-card {
        border-radius: var(--radius-md);
        padding: 1.15rem 0.9rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .preview-metric-row {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .metric-item {
        padding: 0.6rem 0.35rem;
    }

    .metric-value {
        font-size: 1.05rem;
    }

    .metric-label {
        font-size: 0.68rem;
    }

    .preview-wave-box {
        padding: 0.65rem 0.85rem;
    }

    .wave-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .metrics-bar {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 1rem;
    }

    .metric-block::after {
        display: none !important;
    }

    .metric-number {
        font-size: 2.2rem;
    }

    .filter-pills {
        border-radius: var(--radius-md);
        justify-content: center;
        width: 100%;
        gap: 0.4rem;
        padding: 0.35rem;
    }

    .filter-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .pillar-card {
        padding: 1.5rem 1.1rem;
        border-radius: var(--radius-md);
    }

    .pillar-icon-box {
        width: 52px;
        height: 52px;
        margin-bottom: 1.15rem;
    }

    .pillar-title {
        font-size: 1.4rem;
    }

    .service-detail-card {
        padding: 1.4rem 1.1rem;
        border-radius: var(--radius-md);
    }

    .modality-card {
        padding: 1.35rem 1.1rem;
    }

    .form-container {
        padding: 1.5rem 1.15rem;
        border-radius: var(--radius-md);
    }

    .urgent-card {
        padding: 1.35rem 1.1rem;
    }

    .urgent-phone-link {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        text-align: center;
    }

    .contact-card {
        padding: 1.15rem 1rem;
    }

    .contact-card-icon {
        font-size: 1.4rem;
    }

    .cta-banner-box {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .cta-banner-box h2 {
        font-size: 1.75rem;
    }

    .btn-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .sla-table th,
    .sla-table td {
        padding: 0.85rem 1rem;
        font-size: 0.86rem;
    }

    .sla-table-container {
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        -webkit-overflow-scrolling: touch;
    }

    .narrative-stats-card {
        padding: 1.5rem 1.15rem;
    }

    .stat-row {
        gap: 0.85rem;
    }

    .stat-num {
        font-size: 1.5rem;
        min-width: 65px;
    }

    .site-footer {
        padding: 3rem 1rem 1.75rem;
    }

    .scroll-top-btn {
        bottom: 1rem;
        left: 1rem;
        width: 42px;
        height: 42px;
    }

    [dir="rtl"] .scroll-top-btn {
        left: auto;
        right: 1rem;
    }

    .toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }
}

/* Ultra-Narrow Mobile Devices (<= 380px) */
@media (max-width: 380px) {
    .main-content {
        padding: 1.25rem 0.5rem 2.5rem;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .lang-switch-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .preview-metric-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .status-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }

    .filter-pill {
        width: 100%;
        text-align: center;
    }

    .pillar-card,
    .form-container,
    .case-study-banner {
        padding: 1.25rem 0.85rem;
    }
}

/* Touch Device Interactions (No Hover State Jumps) */
@media (hover: none) {
    .hero-preview-card {
        transform: none !important;
    }

    .pillar-card:hover,
    .service-detail-card:hover,
    .modality-card:hover,
    .contact-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Scroll-Driven Animations & Reveal Effects
   ========================================================================== */

/* Base Scroll Reveal Classes - Increased Duration & Graceful Easing */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[dir="rtl"] .reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[dir="rtl"] .reveal-right {
    transform: translateX(-40px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92) translateY(28px);
    transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Revealed Active State */
.reveal.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-scale.is-revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays for Grid Children - Proportionally Extended */
.stagger-1 { transition-delay: 0.10s; }
.stagger-2 { transition-delay: 0.20s; }
.stagger-3 { transition-delay: 0.30s; }
.stagger-4 { transition-delay: 0.40s; }
.stagger-5 { transition-delay: 0.50s; }
.stagger-6 { transition-delay: 0.60s; }

/* Accessibility fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
