/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* SYS For Marketing Logo Palette */
    --bg-main: #031428;
    --bg-darker: #061b34;
    --surface-card: #08203c;
    --surface-card-hover: #0d2b4e;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8aa4bf;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(8, 32, 60, 0.85);
    --glass-bg-hover: rgba(13, 43, 78, 0.95);
    --glass-border: rgba(128, 218, 251, 0.16);
    --glass-border-hover: rgba(128, 218, 251, 0.38);
    --glass-shadow: 0 8px 32px 0 rgba(0, 8, 20, 0.45);
    --backdrop-blur: blur(12px);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #80dafb, #0ea5e9);
    --gradient-secondary: linear-gradient(135deg, #bae6fd, #38bdf8);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-orange: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-text: linear-gradient(90deg, #ffffff, #80dafb, #38bdf8);
    --gradient-dark: linear-gradient(180deg, rgba(6, 27, 52, 0.9) 0%, rgba(3, 20, 40, 0.98) 100%);
    
    /* Colors */
    --clr-purple: #80dafb;
    --clr-blue: #38bdf8;
    --clr-cyan: #bae6fd;
    --clr-green: #10b981;
    --clr-orange: #f59e0b;
    --clr-red: #ef4444;
    
    /* Layout */
    --max-width: 1280px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

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

body {
    background-color: var(--bg-main) !important;
    background-image: none !important;
    background-size: 40px 40px !important;
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   AMBIENT GLOWS & PATTERNS
   ========================================================================== */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.14;
    mix-blend-mode: screen;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.bg-glow-1 {
    top: 5vh;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: var(--clr-purple);
}

.bg-glow-2 {
    top: 45vh;
    right: -10vw;
    width: 45vw;
    height: 45vw;
    background: var(--clr-cyan);
    animation-delay: -3s;
}

.bg-glow-3 {
    bottom: 5vh;
    left: 10vw;
    width: 40vw;
    height: 40vw;
    background: var(--clr-green);
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0% { transform: translateY(0) scale(1); opacity: 0.12; }
    100% { transform: translateY(30px) scale(1.15); opacity: 0.18; }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2380dafb' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M40 4 L76 40 L40 76 L4 40 Z'/%3E%3Cpath d='M40 18 L62 40 L40 62 L18 40 Z'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23d4af37' fill-opacity='0.08' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   REUSABLE UTILITIES & CLASSES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-green { color: var(--clr-green) !important; }
.text-blue { color: var(--clr-blue) !important; }
.text-purple { color: var(--clr-purple) !important; }
.text-orange { color: var(--clr-orange) !important; }
.text-muted { color: var(--text-muted); }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glass Card Styling */
.glass-card {
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-top: 4px solid var(--clr-purple) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 8, 20, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s ease !important;
}

.glass-card:hover {
    border-color: var(--glass-border-hover) !important;
    background: var(--surface-card-hover) !important;
    transform: translateY(-4px);
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--clr-green);
    box-shadow: 0 0 10px var(--clr-green);
    animation: pulseIndicator 1.8s infinite;
}

@keyframes pulseIndicator {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #031428;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(128, 218, 251, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(128, 218, 251, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Section Structure */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(3, 20, 40, 0.94) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    max-width: 110px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(128, 218, 251, 0.18));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover .brand-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 3px 12px rgba(128, 218, 251, 0.35));
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(128, 218, 251, 0.14));
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.15rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: #031428 !important;
    border-radius: 8px;
    font-weight: 700;
}

.btn-contact.btn-start-now {
    color: #ffffff !important;
}

.btn-contact::after { display: none; }

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(128, 218, 251, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
.hero-section {
    padding-top: 9rem;
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-subtitle strong {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-tags span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tag-icon {
    width: 16px;
    height: 16px;
    fill: var(--clr-purple);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero Console Panel */
@keyframes floatConsole {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); box-shadow: 0 15px 35px rgba(0, 8, 20, 0.35), 0 0 40px rgba(128, 218, 251, 0.12); }
    50% { transform: translateY(-12px) rotateX(2deg) rotateY(-1deg); box-shadow: 0 25px 45px rgba(0, 8, 20, 0.45), 0 0 55px rgba(128, 218, 251, 0.25); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); box-shadow: 0 15px 35px rgba(0, 8, 20, 0.35), 0 0 40px rgba(128, 218, 251, 0.12); }
}

@keyframes pulseSuccess {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes glowingText {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.0); }
    50% { text-shadow: 0 0 15px currentColor; }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0.0); }
}

@keyframes slideInUpFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typeWriter {
    from { width: 0; }
    to { width: 100%; }
}

.hero-stats-panel {
    border-radius: 16px;
    overflow: hidden;
    animation: floatConsole 5s ease-in-out infinite;
    border: 1px solid rgba(128, 218, 251, 0.25) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 45px rgba(0, 8, 20, 0.55), 0 0 30px rgba(128, 218, 251, 0.12) !important;
    background: linear-gradient(145deg, rgba(8, 32, 60, 0.95) 0%, rgba(3, 20, 40, 0.98) 100%) !important;
    position: relative;
    z-index: 10;
}

.hero-stats-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: glassShine 6s infinite;
}

@keyframes glassShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.panel-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.panel-dot.red { background-color: #ff5f56; }
.panel-dot.yellow { background-color: #ffbd2e; }
.panel-dot.green { background-color: #27c93f; }

.panel-title {
    margin-left: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.panel-body {
    background: transparent !important;
    padding: 1.5rem !important;
    color: #e2e8f0;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: auto;
}

.console-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.console-tag {
    color: #80dafb;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #80dafb;
    animation: typeWriter 1.5s steps(20, end) forwards, blinkCursor 0.8s step-end infinite;
    max-width: fit-content;
}

@keyframes blinkCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: #80dafb; }
}

.console-val {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    animation: slideInUpFade 0.4s ease-out forwards 1.6s, pulseSuccess 2s infinite 2s;
}

.console-stat-row {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.c-stat {
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.console-stat-row:nth-child(2) .c-stat:nth-child(1) { animation: slideInUpFade 0.5s ease-out forwards 1.8s; }
.console-stat-row:nth-child(2) .c-stat:nth-child(2) { animation: slideInUpFade 0.5s ease-out forwards 2.0s; }
.console-stat-row:nth-child(4) .c-stat:nth-child(1) { animation: slideInUpFade 0.5s ease-out forwards 2.2s; }
.console-stat-row:nth-child(4) .c-stat:nth-child(2) { animation: slideInUpFade 0.5s ease-out forwards 2.4s; }

.c-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.c-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: glowingText 3s infinite 2.5s;
}

.text-green { color: #34d399; }
.text-blue { color: #60a5fa; }
.text-purple { color: #c084fc; }
.text-orange { color: #fbbf24; }

.console-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1rem 0;
}

.console-line.text-muted {
    opacity: 0;
    animation: slideInUpFade 0.5s ease-out forwards 2.8s;
}
.console-line.text-muted span {
    color: rgba(255,255,255,0.4);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
}

/* ==========================================================================
   SECTION 2: STATS DASHBOARD
   ========================================================================== */
.stats-section { background: transparent !important; border:none; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.stat-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px -10px rgba(0, 8, 20, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
    transition: all 0.4s ease;
    z-index: 2;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -10px rgba(128, 218, 251, 0.2), 0 0 0 1px rgba(128, 218, 251, 0.25) !important;
}

.stat-card:hover::before {
    height: 6px;
    opacity: 1;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.3); }
.icon-blue { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); box-shadow: 0 8px 16px -4px rgba(56, 189, 248, 0.35); }
.icon-purple { background: linear-gradient(135deg, #80dafb 0%, #0ea5e9 100%); box-shadow: 0 8px 16px -4px rgba(128, 218, 251, 0.35); }
.icon-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.3); }

.stat-number {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-left: 0.15rem;
}

.stat-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 3: CORE EXPERTISE
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.expertise-card {
    padding: 2.5rem 2rem;
}

.exp-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-gradient-blue { background: var(--gradient-secondary); }
.bg-gradient-green { background: var(--gradient-success); }
.bg-gradient-purple { background: var(--gradient-primary); }
.bg-gradient-orange { background: var(--gradient-orange); }

.expertise-card h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.expertise-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 4: PORTFOLIO GALLERY
   ========================================================================== */
.portfolio-section {
    background-color: var(--bg-darker);
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: #031428;
    box-shadow: 0 4px 12px rgba(128, 218, 251, 0.3);
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.portfolio-item {
    cursor: pointer;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.portfolio-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-meta {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-badge {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-purple);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.portfolio-item[data-cat="google"] .item-badge { color: var(--clr-blue); }
.portfolio-item[data-cat="snapchat-tiktok"] .item-badge { color: var(--clr-cyan); }
.portfolio-item[data-cat="stores"] .item-badge { color: var(--clr-orange); }
.portfolio-item[data-cat="organic-analytics"] .item-badge { color: var(--clr-green); }

.item-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-metrics {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--clr-green);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-top: auto;
    font-weight: 600;
    text-align: center;
}

/* ==========================================================================
   SECTION 5: PDF VIEWER
   ========================================================================== */
.pdf-viewer-container {
    overflow: hidden;
}

.pdf-viewer-header {
    background: rgba(6, 27, 52, 0.95);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pdf-icon {
    width: 20px;
    height: 20px;
    fill: var(--clr-red);
}

.pdf-filename {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.pdf-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.pdf-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-border-hover);
}

.pdf-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.pdf-page-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.pdf-slide-display {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 480px;
}

.slide-image-wrapper {
    background: #041830;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.slide-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.slide-meta-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-meta-panel h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.slide-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(128, 218, 251, 0.14);
    color: var(--clr-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(128, 218, 251, 0.3);
}

.slide-meta-panel p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.slide-takeaway-box {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--clr-green);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.slide-takeaway-box strong {
    display: block;
    color: var(--clr-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.slide-takeaway-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Thumbnails list */
.pdf-thumbnails {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(3, 4, 7, 0.5);
    border-top: 1px solid var(--glass-border);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.pdf-thumb {
    width: 80px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition-fast);
    background: black;
}

.pdf-thumb:hover {
    opacity: 0.8;
}

.pdf-thumb.active {
    border-color: var(--clr-purple);
    opacity: 1;
}

.pdf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   SECTION 6: CASE STUDY TABBED DEEP DIVES
   ========================================================================== */
.case-studies-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.cs-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cs-nav-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cs-nav-btn:hover {
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
}

.cs-nav-btn.active {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    border-color: var(--clr-purple);
    box-shadow: 0 0 12px rgba(128, 218, 251, 0.28);
}

.cs-content-box {
    padding: 3.5rem;
    border-radius: 16px;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.cs-main h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cs-section {
    margin-bottom: 2rem;
}

.cs-section h4 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-purple);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.cs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cs-metric-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.cs-metric-num {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--clr-green);
    line-height: 1.2;
}

.cs-metric-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION 7: CONTACT
   ========================================================================== */
.contact-section {
    background-color: var(--bg-main);
    border-top: 1px solid var(--glass-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(128, 218, 251, 0.14);
    border: 1px solid rgba(128, 218, 251, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-purple);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item p a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item p a:hover {
    color: var(--clr-purple);
}

/* Form Styling */
.contact-card-form {
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-top: 4px solid var(--clr-purple) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 8, 20, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s ease !important;
}

.contact-card-form h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(3, 20, 40, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-purple);
    box-shadow: 0 0 10px rgba(128, 218, 251, 0.28);
}

.form-group select option {
    background-color: var(--bg-darker);
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

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

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 210;
}

.lightbox-close:hover {
    color: var(--clr-red);
}

.lightbox-zoom-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    z-index: 206;
}

.lightbox-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-darker);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 205;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

.lightbox-media-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.lightbox-media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.lightbox-sidebar {
    background: rgba(6, 27, 52, 0.95);
    border-left: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

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

.lightbox-badge {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--clr-purple);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.lightbox-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.lightbox-metrics {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: var(--clr-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-block;
    font-weight: 600;
}

.sidebar-body {
    background-color: var(--bg-main) !important;
    background-image: none !important;
    background-size: 40px 40px !important;
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    position: relative;
    min-height: 100vh;
}

.lightbox-desc {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 1rem;
}

.takeaway-card {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--clr-green);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
}

.takeaway-card strong {
    display: block;
    color: var(--clr-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.lightbox-takeaway {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .pdf-slide-display {
        grid-template-columns: 1fr;
    }
    
    .slide-image-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 2.5rem;
    }
    
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .lightbox-content {
        grid-template-columns: 1fr;
        height: 90vh;
    }
    
    .lightbox-media-container {
        height: 50%;
        padding: 1.5rem;
    }
    
    .lightbox-sidebar {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        padding: 2rem;
        height: 50%;
        justify-content: flex-start;
    }
    
    .lightbox-nav {
        top: 25%;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding-top: 7rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .brand-logo-img {
        height: 28px;
    }

    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background: rgba(3, 20, 40, 0.98);
        backdrop-filter: var(--backdrop-blur);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .cs-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cs-content-box {
        padding: 1.5rem;
    }
    
    .contact-card-form {
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-top: 4px solid var(--clr-purple) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 8, 20, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s ease !important;
}
}


/* ==========================================================================
   CONVERTX-INSPIRED HIGH-TICKET SECTIONS
   ========================================================================== */

/* Brand Logos Bar */
.brand-bar-section { background: transparent !important; border:none; }

.brand-bar-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0.5rem 1.5rem;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: opacity(0.85); /* Removed grayscale to show real colors */
    user-select: none;
    cursor: default;
    background: transparent;
    border: none;
    box-shadow: none;
}

.brand-logo-card:hover {
    filter: opacity(1);
    transform: scale(1.08);
}

/* Specific Typographic Logos */
.brand-fitneeds {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-style: italic;
    color: #fb923c;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.brand-fitneeds::after {
    content: '.';
    color: #80dafb;
}

.brand-kesraa {
    font-family: 'Times New Roman', serif;
    font-weight: 400;
    color: #fbbf24;
    text-transform: capitalize;
    letter-spacing: 2px;
}

.brand-dolt {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.brand-anetos {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.brand-steelixe {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    color: #80dafb;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.brand-noyah {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    color: #a3e635;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* Why Hazem Section */
.why-section { background: transparent !important; }

.why-intro-subtitle {
    margin-bottom: 3rem;
}

.why-intro-subtitle h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-green);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px -10px rgba(0, 8, 20, 0.5) !important;
    padding: 2.5rem 2rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
    transition: all 0.4s ease;
    z-index: 2;
}

.why-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -10px rgba(128, 218, 251, 0.2), 0 0 0 1px rgba(128, 218, 251, 0.25) !important;
}

.why-card:hover::before {
    height: 6px;
    opacity: 1;
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(128, 218, 251, 0.1);
    color: var(--clr-purple);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.why-card:hover .why-icon {
    transform: scale(1.1) translateY(-5px);
    background: rgba(128, 218, 251, 0.18);
    box-shadow: 0 10px 25px -5px rgba(128, 218, 251, 0.25);
}

.why-card h4 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.why-card:hover h4 {
    color: var(--clr-purple);
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 8-Pillar Convert Method Section */
.growth-method-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.method-card {
    background: var(--surface-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px -10px rgba(0, 8, 20, 0.5) !important;
    padding: 2.5rem 2rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
    transition: all 0.4s ease;
    z-index: 2;
}

.method-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -10px rgba(128, 218, 251, 0.2), 0 0 0 1px rgba(128, 218, 251, 0.25) !important;
}

.method-card:hover::before {
    height: 6px;
    opacity: 1;
}

.method-num {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(128, 218, 251, 0.06);
    position: absolute;
    bottom: -15px;
    right: -10px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.method-card:hover .method-num {
    color: rgba(128, 218, 251, 0.14);
    transform: scale(1.05) translate(-5px, -5px);
}

.method-card h4 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.method-card:hover h4 {
    color: var(--clr-purple);
}

.method-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
    border-top: 1px solid var(--glass-border);
}

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

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

.how-column {
    padding: 3rem 2.5rem;
}

.how-badge-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-green);
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 2px solid var(--clr-green);
    padding-bottom: 0.5rem;
}

.how-main-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.how-sub-point {
    margin-bottom: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.25rem;
    transition: var(--transition-fast);
}

.how-sub-point:hover {
    border-left-color: var(--clr-purple);
}

.how-sub-point h5 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.how-sub-point p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Multi-Step Onboarding Form */
.getting-started-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.multi-step-form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.form-progress {
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--gradient-success);
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.step-dot.active {
    border-color: var(--clr-green);
    background: var(--clr-green);
    color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.step-dot.completed {
    border-color: var(--clr-green);
    background: var(--clr-green);
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInForm 0.4s ease-out;
}

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

.step-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(3, 20, 40, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-purple);
    background: rgba(8, 32, 60, 0.95);
    box-shadow: 0 0 8px rgba(128, 218, 251, 0.28);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--clr-red);
}

.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}

.form-success-message {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeInForm 0.5s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--clr-green);
    color: var(--clr-green);
    font-size: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.form-success-message h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-success-message p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center; 
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 550px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(128, 218, 251, 0.25);
    background: linear-gradient(145deg, rgba(8, 32, 60, 0.98) 0%, rgba(3, 20, 40, 0.99) 100%);
    box-shadow: 0 25px 50px rgba(0, 8, 20, 0.65);
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.modal-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ffffff, #80dafb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Modal Form Styles */
#hireMeForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#hireMeForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

#hireMeForm label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #80dafb;
    letter-spacing: 0.3px;
}

#hireMeForm input, 
#hireMeForm select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #031428;
    border: 1px solid rgba(128, 218, 251, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#hireMeForm input:focus, 
#hireMeForm select:focus {
    outline: none;
    border-color: #80dafb;
    background: #061b34;
    box-shadow: 0 0 0 3px rgba(128, 218, 251, 0.18);
}

#hireMeForm option {
    background: #08203c;
    color: #ffffff;
}

#hireMeForm .btn-block {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #80dafb 0%, #0ea5e9 100%);
    border: none;
    font-weight: 700;
    color: #031428;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#hireMeForm .btn-block:hover {
    opacity: 0.9;
}

/* Responsive Modal Fixes */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-start; /* Important for long modals on mobile */
    }
    .modal-content {
        padding: 2rem 1.25rem;
        margin: 1rem auto;
        max-height: none; /* Let the overlay handle the scrolling on mobile */
    }
    .modal-title {
        font-size: 1.5rem;
    }
    #hireMeForm input, 
    #hireMeForm select {
        padding: 0.75rem;
        font-size: 16px; /* Prevents iOS Safari zoom */
    }
}
@media (max-height: 700px) {
    .modal-overlay {
        align-items: flex-start;
    }
    .modal-content {
        margin: 1rem auto;
        max-height: none;
    }
}

.modal-success-message {
    text-align: center;
    padding: 2rem 0;
    animation: fadeInForm 0.4s ease-out;
}

.modal-success-message h3 {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-success-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   ENHANCED RESPONSIVE DESIGN FOR PORTFOLIO & GRIDS (ALL SCREENS)
   ========================================================================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid, .method-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .why-grid, .method-grid, .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .brand-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .portfolio-thumbnail {
        height: 220px;
    }
    .portfolio-meta {
        padding: 1.25rem;
    }
    .hero-stats-panel {
        margin-top: 2rem;
        transform: scale(0.95);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-thumbnail {
        height: 180px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* --- AGGRESSIVE MOBILE FIXES --- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        background-color: var(--bg-main) !important;
        background-image: none !important;
        background-size: 40px 40px !important;
        color: var(--text-primary);
        font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        line-height: 1.6;
        position: relative;
        min-height: 100vh;
    }
    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word;
    }
    .hero-stats-panel {
        width: 100% !important;
        transform: scale(1) !important;
        margin: 20px 0 !important;
    }
    .console-line {
        flex-direction: column !important;
        gap: 8px !important;
        word-break: break-word !important;
    }
    .console-stat-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .hero-tags span {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    .method-card, .why-card, .stat-card, .how-column {
        padding: 1.5rem !important;
    }
    .method-num {
        font-size: 4rem !important;
        bottom: -5px !important;
        right: 0 !important;
    }
    .stat-number {
        font-size: 2.5rem !important;
    }
    .why-icon, .stat-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 1rem !important;
    }
    .modal-content {
        width: 95% !important;
        padding: 20px !important;
        margin: 10px !important;
    }
    .nav-container {
        padding: 10px 15px !important;
    }
    .logo {
        font-size: 1.1rem !important;
    }
    .c-value {
        font-size: 1.2rem !important;
    }
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    .portfolio-thumbnail {
        height: auto !important;
        aspect-ratio: 16/9;
    }
    .portfolio-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    .brand-logo-img {
        height: 28px !important;
        width: auto !important;
    }
    .footer-logo-img {
        height: 38px !important;
        width: auto !important;
    }
}
@media (max-width: 480px) {
    .brand-logos-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.ambient-glow { display: none !important; }


/* ---- MIRO STICKY NOTES ---- */
.miro-sticky {
    position: absolute;
    width: 180px; padding: 15px;
    box-shadow: 2px 6px 15px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 0.85rem; font-weight: 700; color: #1e293b;
    z-index: 20; animation: floatNote 6s infinite ease-in-out;
    border-bottom-right-radius: 20px 4px; text-align: left; line-height: 1.5;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px); background-size: 100% 20px;
}
.miro-sticky::before {
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg);
    width: 50px; height: 16px; background: rgba(255,255,255,0.6); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sticky-y { background-color: #fef08a; }
.sticky-b { background-color: #bae6fd; }
.sticky-p { background-color: #fbcfe8; }
.sticky-g { background-color: #bbf7d0; }

@keyframes floatNote {
    0% { transform: translateY(0px) rotate(calc(var(--r) * 1deg)); }
    50% { transform: translateY(-8px) rotate(calc(var(--r) * 1deg)); }
    100% { transform: translateY(0px) rotate(calc(var(--r) * 1deg)); }
}

/* ---- MIRO CURSORS ---- */
.miro-cursor {
    position: absolute; z-index: 100; pointer-events: none;
    display: flex; align-items: flex-start; gap: 5px;
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.2));
}
.miro-cursor svg { width: 24px; height: 24px; }
.miro-cursor-tag {
    font-size: 0.75rem; font-weight: bold; padding: 4px 10px; border-radius: 100px; color: white; white-space: nowrap;
}
.miro-cursor-1 { animation: fly1 20s infinite ease-in-out; }
.miro-cursor-1 svg { fill: #80dafb; }
.miro-cursor-1 .miro-cursor-tag { background: #80dafb; color: #031428; }

.miro-cursor-2 { animation: fly2 25s infinite ease-in-out; }
.miro-cursor-2 svg { fill: #3b82f6; }
.miro-cursor-2 .miro-cursor-tag { background: #3b82f6; }

@keyframes fly1 {
    0% { top: 10%; left: 80%; }
    25% { top: 60%; left: 30%; }
    50% { top: 20%; left: 10%; }
    75% { top: 80%; left: 70%; }
    100% { top: 10%; left: 80%; }
}
@keyframes fly2 {
    0% { top: 70%; left: 10%; }
    30% { top: 20%; left: 60%; }
    60% { top: 60%; left: 40%; }
    100% { top: 70%; left: 10%; }
}

@media (max-width: 768px) {
    
    .miro-sticky { 
        position: relative !important;
        display: block !important;
        margin: 10px auto !important;
        width: 90% !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        transform: none !important;
        animation: none !important;
        font-size: 0.85rem !important;
        box-sizing: border-box;
    }
    .miro-cursor { display: none !important; }

}

/* Miro Full Layout Enhancements */
.miro-board-card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 8, 20, 0.45), inset 0 0 0 1px rgba(128, 218, 251, 0.16);
    position: relative;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: floatBoard 8s infinite alternate ease-in-out;
}
@keyframes floatBoard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}
.miro-board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.miro-board-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}
.miro-board-wrapper {
    padding: 20px;
}
@media (max-width: 768px) {
    .miro-board-card {
        padding: 25px 15px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    .miro-board-card::before { border-radius: 12px 12px 0 0; }
    .miro-board-wrapper { padding: 10px; }
}

/* --- MOTION GRAPHICS PORTFOLIO EFFECTS --- */

.portfolio-grid {
    perspective: 1000px;
}

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    border-radius: 16px !important;
    overflow: hidden;
    background: var(--surface-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 12px 32px rgba(0, 8, 20, 0.45) !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform-style: preserve-3d;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02) rotateX(2deg) rotateY(2deg) !important;
    box-shadow: 0 20px 40px rgba(128, 218, 251, 0.25), 0 0 40px rgba(128, 218, 251, 0.1) !important;
    border: 1px solid rgba(128, 218, 251, 0.5) !important;
}

.motion-thumb {
    position: relative;
    overflow: hidden;
}

.motion-thumb img {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.portfolio-item:hover .motion-thumb img {
    transform: scale(1.1);
}

.motion-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(3, 20, 40, 0.92), rgba(128, 218, 251, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

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

.motion-icon {
    font-size: 3rem;
    color: white;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.portfolio-item:hover .motion-icon {
    transform: scale(1);
    opacity: 1;
}

.portfolio-meta {
    padding: 20px !important;
    background: var(--surface-card) !important;
    border-top: 1px solid var(--glass-border);
}

.item-title {
    color: var(--text-primary) !important;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1.15rem !important;
    margin-top: 10px !important;
    letter-spacing: 0.5px;
}

.motion-badge {
    background: rgba(128, 218, 251, 0.16) !important;
    color: #80dafb !important;
    border: 1px solid rgba(128, 218, 251, 0.4) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.7rem !important;
}

.motion-metrics {
    color: #10b981 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 1rem !important;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 12px;
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

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

/* --- INJECTED MOTION GRAPHICS CSS --- */
.motion-graphic-container {
    margin: 25px 0;
    padding: 20px;
    background: #041830;
    border-radius: 12px;
    border: 1px solid rgba(128, 218, 251, 0.18);
    box-shadow: inset 0 0 24px rgba(0, 8, 20, 0.35), 0 10px 30px rgba(128, 218, 251, 0.08);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Chart Animations */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-out forwards infinite alternate;
}
.chart-area {
    opacity: 0;
    animation: fadeArea 3s ease-out forwards infinite alternate;
}
.chart-dot {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
}
.dot-1 { animation: popDot 3s ease-out forwards infinite alternate 0.5s; transform-origin: 100px 130px; }
.dot-2 { animation: popDot 3s ease-out forwards infinite alternate 1.0s; transform-origin: 200px 90px; }
.dot-3 { animation: popDot 3s ease-out forwards infinite alternate 1.5s; transform-origin: 300px 50px; }
.dot-4 { animation: popDot 3s ease-out forwards infinite alternate 2.0s; transform-origin: 400px 20px; }
.chart-text {
    opacity: 0;
    animation: fadeArea 3s ease-out forwards infinite alternate 2.5s;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 1000; }
    50%, 100% { stroke-dashoffset: 0; }
}
@keyframes fadeArea {
    0%, 30% { opacity: 0; }
    50%, 100% { opacity: 1; }
}
@keyframes popDot {
    0%, 30% { opacity: 0; transform: scale(0); }
    40%, 100% { opacity: 1; transform: scale(1); }
}

/* Funnel Animations */
.funnel-layer {
    opacity: 0;
    transform: translateY(-20px);
}
.layer-1 { animation: dropFunnel 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite; }
.layer-2 { animation: dropFunnel 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite 0.5s; }
.layer-3 { animation: dropFunnel 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite 1s; }

.funnel-coin {
    opacity: 0;
}
.coin-1 { animation: dropCoin 4s ease-in forwards infinite 1.5s; }
.coin-2 { animation: dropCoin 4s ease-in forwards infinite 1.7s; }
.coin-3 { animation: dropCoin 4s ease-in forwards infinite 1.9s; }

@keyframes dropFunnel {
    0% { opacity: 0; transform: translateY(-20px); }
    15%, 80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}
@keyframes dropCoin {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 1; transform: translateY(50px); }
    30%, 80% { opacity: 1; transform: translateY(200px); }
    100% { opacity: 0; transform: translateY(220px); }
}

.motion-chart, .motion-funnel {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Footer Social Links */
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: white; transition: all 0.3s ease; background: #1e293b; }
.social-icon:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.social-icon.snapchat:hover { background: #FFFC00; color: #000; box-shadow: 0 5px 15px rgba(255, 252, 0, 0.4); }
.social-icon.tiktok:hover { background: #000000; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); }
.social-icon.whatsapp:hover { background: #25D366; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }
.social-icon.x:hover { background: #14171A; box-shadow: 0 5px 15px rgba(20, 23, 26, 0.4); }
.social-icon.reddit:hover { background: #FF4500; box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4); }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); box-shadow: 0 5px 15px rgba(214, 36, 159, 0.4); }
.social-icon.facebook:hover { background: #1877F2; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
html, body { overflow-x: hidden !important; }

/* Saudi Business Center (SBC) Verification Badge */
.sbc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.75rem;
    padding: 10px 18px 10px 12px;
    background: rgba(8, 32, 60, 0.85);
    border: 1px solid rgba(128, 218, 251, 0.28);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 8, 20, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.sbc-trust-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 218, 251, 0.55);
}

.sbc-logo-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sbc-logo-box img {
    height: 40px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.sbc-trust-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.sbc-ar {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    direction: rtl;
}

.sbc-en {
    font-size: 0.78rem;
    font-weight: 500;
    color: #80dafb;
    letter-spacing: 0.02em;
}

.footer-sbc-wrap {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 1.25rem;
}

.sbc-footer-badge {
    margin-top: 0;
}

@media (max-width: 768px) {
    .sbc-trust-badge {
        width: 100%;
        justify-content: center;
    }
    .sbc-logo-box img {
        height: 34px !important;
    }
}

/* ==========================================================================
   SAUDI LUXURY THEME, RTL REFINEMENTS & SALLA / ZID SHOWCASE
   ========================================================================== */
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .why-card h4,
[dir="rtl"] .method-card h4,
[dir="rtl"] .stat-title,
[dir="rtl"] .cs-main h3,
[dir="rtl"] .slide-meta-panel h3,
[dir="rtl"] .modal-title,
[dir="rtl"] .step-title {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 0 !important;
}

[dir="rtl"] .sbc-trust-badge {
    padding: 10px 14px 10px 18px;
}

[dir="rtl"] .sbc-trust-text {
    text-align: right;
}

[dir="rtl"] .hero-stats-panel {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .slide-takeaway-box {
    border-left: none;
    border-right: 4px solid var(--clr-green);
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .slide-image-wrapper {
    border-right: none;
    border-left: 1px solid var(--glass-border);
}

[dir="rtl"] .lightbox-sidebar {
    border-left: none;
    border-right: 1px solid var(--glass-border);
}

[dir="rtl"] .cs-section {
    border-left: none;
    border-right: 3px solid rgba(128, 218, 251, 0.25);
    padding-left: 0;
    padding-right: 1.25rem;
}

[dir="rtl"] .method-num {
    right: auto;
    left: 14px;
}

[dir="rtl"] .method-card:hover .method-num {
    transform: scale(1.05) translate(5px, -5px);
}

[dir="rtl"] #hireMeForm .form-group {
    text-align: right;
}

[dir="rtl"] .pdf-pagination svg {
    transform: scaleX(-1);
}

[dir="rtl"] .lightbox-nav.prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .lightbox-nav.next {
    left: 20px;
    right: auto;
}

/* Saudi Salla & Zid Flagship Section */
.salla-zid-section {
    background: linear-gradient(180deg, rgba(6, 27, 52, 0.65) 0%, rgba(3, 20, 40, 0.95) 100%);
    border-top: 1px solid rgba(128, 218, 251, 0.14);
    border-bottom: 1px solid rgba(128, 218, 251, 0.14);
    position: relative;
}

.saudi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

@media (max-width: 900px) {
    .platforms-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.platform-card {
    background: linear-gradient(155deg, rgba(10, 38, 70, 0.95) 0%, rgba(4, 22, 44, 0.98) 100%) !important;
    border: 1px solid rgba(128, 218, 251, 0.2) !important;
    border-radius: 20px !important;
    padding: 2.25rem !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 18px 42px rgba(0, 8, 20, 0.5) !important;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: rgba(128, 218, 251, 0.48) !important;
    box-shadow: 0 24px 50px rgba(0, 8, 20, 0.65), 0 0 32px rgba(128, 218, 251, 0.14) !important;
}

.platform-card.salla-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #00c4a7, #80dafb);
}

.platform-card.zid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #8b5cf6, #80dafb);
}

.platform-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.platform-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.salla-mark {
    background: linear-gradient(135deg, #00c4a7, #0ea5e9);
    color: #031428;
    box-shadow: 0 6px 18px rgba(0, 196, 167, 0.3);
}

.zid-mark {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.platform-brand-pill h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.platform-brand-pill span {
    font-size: 0.85rem;
    color: #80dafb;
    font-weight: 600;
}

.platform-partner-tag {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(128, 218, 251, 0.12);
    color: #80dafb;
    border: 1px solid rgba(128, 218, 251, 0.3);
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.platform-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.platform-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.94rem;
}

.platform-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.platform-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.p-metric-box {
    background: rgba(3, 20, 40, 0.75);
    border: 1px solid rgba(128, 218, 251, 0.16);
    border-radius: 12px;
    padding: 0.8rem 0.6rem;
    text-align: center;
}

.p-metric-val {
    display: block;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #80dafb;
    direction: ltr;
}

.p-metric-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.platform-proof-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    background: rgba(128, 218, 251, 0.12);
    border: 1px solid rgba(128, 218, 251, 0.32);
    color: #80dafb;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.platform-proof-btn:hover {
    background: linear-gradient(135deg, #80dafb, #0ea5e9);
    color: #031428;
    border-color: transparent;
}

/* Saudi Ecosystem Strip */
.saudi-ecosystem-box {
    background: rgba(8, 32, 60, 0.75);
    border: 1px solid rgba(128, 218, 251, 0.18);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
}

.ecosystem-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #80dafb;
    margin-bottom: 1rem;
}

.ecosystem-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.eco-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(3, 20, 40, 0.85);
    border: 1px solid rgba(128, 218, 251, 0.18);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.eco-pill:hover {
    border-color: #80dafb;
    transform: translateY(-2px);
}

.eco-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #80dafb;
}

@media (max-width: 600px) {
    .platform-metrics-row {
        grid-template-columns: 1fr;
    }
    .platform-card {
        padding: 1.5rem !important;
    }
}
