/* ═══════════════════════════════════════════════
   ALmgrat Theme v3 — "ضوء المجرة" Bright Premium
   Light, airy, vivid gradients. Same selector
   inventory as v1/v2 — templates untouched.
═══════════════════════════════════════════════ */

:root {
    --primary:        #4F6EF0;
    --primary-light:  #6D87F5;
    --green:          #10B981;
    --green-light:    #34D399;
    --accent:         #8B5CF6;
    --cyan:           #0EA5E9;
    /* semantic: strongest text color (headings) */
    --dark:           #101935;
    --bg:             #FFFFFF;
    --bg-2:           #F6F8FE;
    --bg-3:           #EEF2FC;
    --bg-4:           #E3EAFB;
    --card-bg:        #FFFFFF;
    --border:         #E5EAF6;
    --border-hover:   #B9C6F2;
    --text:           #33405C;
    --text-muted:     #5F6B87;
    --text-dim:       #8A94AC;
    --white:          #FFFFFF;
    --gradient-1:     linear-gradient(135deg, #0EA5E9 0%, #4F6EF0 48%, #8B5CF6 100%);
    --gradient-green: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
    --shadow-sm:      0 1px 3px rgba(30,41,90,0.06), 0 1px 2px rgba(30,41,90,0.04);
    --shadow-md:      0 6px 22px rgba(79,110,240,0.10);
    --shadow-lg:      0 20px 50px rgba(52,74,155,0.14);
    --shadow-card:    0 2px 6px rgba(30,41,90,0.04), 0 12px 32px rgba(52,74,155,0.07);
    --glow-primary:   0 8px 26px rgba(79,110,240,0.28);
    --glow-green:     0 8px 26px rgba(16,185,129,0.25);
    --radius-sm:      10px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main:      'Cairo', 'Tajawal', sans-serif;
    --font-mono:      'Courier New', 'Fira Code', monospace;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

/* ── Subtle dotted paper background ─────── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: radial-gradient(rgba(79,110,240,0.055) 1px, transparent 1.2px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* ── Layout ─────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}
/* On screens wider than the container, fill the empty side gutters with a
   soft decorative wash so the page doesn't read as big dead margins —
   masked to the gutters only (never over the 1240px content column) and
   layered above each section's own background via .container's stacking
   context, so it shows through regardless of that section's bg color. */
@media (min-width: 1500px) {
    .container::before {
        content: '';
        position: fixed; inset: 0; z-index: -1;
        pointer-events: none;
        background-image:
            radial-gradient(ellipse 320px 420px at 4% 8%, rgba(79,110,240,0.07), transparent 70%),
            radial-gradient(ellipse 300px 380px at 96% 46%, rgba(139,92,246,0.06), transparent 70%),
            radial-gradient(ellipse 300px 380px at 3% 82%, rgba(14,165,233,0.055), transparent 70%),
            radial-gradient(rgba(79,110,240,0.05) 1px, transparent 1.2px);
        background-size: auto, auto, auto, 26px 26px;
        -webkit-mask-image: linear-gradient(90deg, black 0, black calc(50% - 620px), transparent calc(50% - 590px), transparent calc(50% + 590px), black calc(50% + 620px), black 100%);
        mask-image: linear-gradient(90deg, black 0, black calc(50% - 620px), transparent calc(50% - 590px), transparent calc(50% + 590px), black calc(50% + 620px), black 100%);
    }
}
.section-padding    { padding: 44px 0; }

/* ── Typography ─────────────────────────── */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.section-header { margin-bottom: 26px; }
.section-header.center { text-align: center; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    padding: 6px 16px;
    background: rgba(79,110,240,0.07);
    border: 1px solid rgba(79,110,240,0.18);
    border-radius: 50px;
    font-family: var(--font-mono);
}
.section-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}
.section-tag.green { color: #0B9E6E; background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.2); }
.section-tag.green::before { background: var(--green); }

.section-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}
.section-header.center .section-subtitle { margin: 0 auto; }

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.green-text { color: var(--green); }

/* ── Buttons ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #4F6EF0, #7C5CE8);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79,110,240,0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #3D5CE8, #6A47E0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79,110,240,0.45);
}
.btn-green {
    background: linear-gradient(135deg, #10B981, #0EA5E9);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16,185,129,0.3);
}
.btn-green:hover {
    background: linear-gradient(135deg, #0CA974, #0B94D4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16,185,129,0.4);
}
.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid rgba(79,110,240,0.45);
}
.btn-outline:hover {
    background: rgba(79,110,240,0.06);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: var(--bg-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--primary);
    border-color: var(--border-hover);
    background: var(--bg-3);
}
.btn-white {
    background: #fff;
    color: var(--dark);
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(30,41,90,0.12);
}
.btn-white:hover { background: #F3F6FF; color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,41,90,0.16); }
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 15px 36px; font-size: 15px; }

/* ── Scroll progress bar ────────────────── */
.scroll-progress {
    position: fixed; top: 0; right: 0; left: 0; height: 3px;
    z-index: 2000; pointer-events: none;
    background: var(--gradient-1);
    transform-origin: right;
    transform: scaleX(0);
}

/* Primary button shine sweep on hover */
.btn-primary, .btn-green { position: relative; overflow: hidden; }
.btn-primary::after, .btn-green::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 40%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: none;
}
.btn-primary:hover::after, .btn-green:hover::after {
    left: 130%;
    transition: left 0.6s ease;
}

/* ── Cards ──────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}
.card:hover::before { opacity: 1; }

/* ═══════════════════════════════════════
   HEADER — clean glass bar
═══════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(30,41,90,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 0;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 32px;
}
.logo-img {
    width: 46px; height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(79,110,240,0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.site-logo:hover .logo-img {
    transform: rotate(20deg) scale(1.08);
    filter: drop-shadow(0 4px 16px rgba(139,92,246,0.5));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name-ar {
    font-size: 17px; font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-name-en {
    font-size: 9px; font-weight: 600; color: var(--text-dim);
    letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-mono);
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu li a {
    display: flex; align-items: center; gap: 5px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 14.5px; font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current-page-ancestor a {
    color: var(--primary);
    background: rgba(79,110,240,0.08);
}

/* Mega-menu dropdowns (المنتجات / الخدمات) */
.menu-item.has-mega { position: relative; }
/* Bridges the visual gap between the tab and .mega-panel (top: calc(100% + 12px))
   so the pointer never leaves a hoverable area while moving down into the panel —
   without this, :hover drops mid-transit and the panel closes before it's reached. */
.menu-item.has-mega::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.mega-caret { font-size: 9px; opacity: 0.6; transition: transform 0.2s ease; margin-right: 1px; }
.menu-item.has-mega:hover .mega-caret { transform: rotate(180deg); }
.mega-panel {
    position: absolute; top: calc(100% + 12px); right: 50%; transform: translateX(50%);
    min-width: 260px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 10px;
    display: grid; gap: 3px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 300;
}
.menu-item.has-mega:hover .mega-panel,
.menu-item.has-mega:focus-within .mega-panel,
.menu-item.has-mega.open .mega-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(50%) translateY(0);
}
.mega-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    text-decoration: none; transition: var(--transition);
}
.mega-item:hover { background: var(--bg-2); }
.mega-item-icon {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.mega-item:hover .mega-item-icon { background: rgba(79,110,240,0.1); }
.mega-item-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.mega-item:hover .mega-item-name { color: var(--primary); }
.mega-all {
    margin-top: 4px; padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 700; color: var(--primary);
    text-align: center; background: var(--bg-2); text-decoration: none; transition: var(--transition);
}
.mega-all:hover { background: rgba(79,110,240,0.1); }

/* Header CTA only */
.header-actions {
    display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
}
.header-login-link { font-size: 13.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.header-login-link:hover { color: var(--primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(30,41,90,0.1); z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-menu { display: flex !important; flex-direction: column; gap: 4px; padding: 0; }
.mobile-menu .nav-menu li a { display: block; padding: 12px 16px; font-size: 15px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.mobile-menu .nav-menu li a:hover,
.mobile-menu .nav-menu li.current-menu-item a { background: var(--bg-2); color: var(--primary); }
.mobile-menu .header-actions { flex-direction: column; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 12px; }
.mobile-menu .header-actions .btn { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════
   HERO — bright aurora mesh stage
═══════════════════════════════════════ */
.hero {
    display: flex; align-items: center;
    padding: 72px 0 34px;
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 46% 55% at 86% 8%, rgba(79,110,240,0.10), transparent 62%),
        radial-gradient(ellipse 40% 48% at 8% 22%, rgba(14,165,233,0.09), transparent 62%),
        radial-gradient(ellipse 42% 46% at 24% 96%, rgba(139,92,246,0.09), transparent 62%),
        radial-gradient(ellipse 36% 40% at 72% 100%, rgba(236,72,153,0.05), transparent 62%),
        linear-gradient(180deg, #FDFEFF 0%, #F5F8FF 100%);
}

.hero-glow-left {
    position: absolute; top: -150px; right: -150px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(79,110,240,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: blobFloat 14s ease-in-out infinite;
}
.hero-glow-right {
    position: absolute; bottom: -100px; left: -100px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
    pointer-events: none;
    animation: blobFloat 18s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-24px, 18px) scale(1.06); }
    66%      { transform: translate(16px, -14px) scale(0.96); }
}

/* Floating decorative tags in hero background */
.hero-float-tag {
    position: absolute;
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    color: var(--primary);
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(79,110,240,0.2);
    padding: 6px 14px; border-radius: 50px;
    box-shadow: 0 6px 20px rgba(79,110,240,0.12);
    pointer-events: none;
    animation: tagFloat 7s ease-in-out infinite;
    backdrop-filter: blur(6px);
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.hero-title-accent {
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes codeReveal { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.hero-terminal .code-line,
.hero-terminal .code-blank { animation: codeReveal 0.4s ease both; }
.hero-terminal code > .code-line:nth-child(1),  .hero-terminal code > *:nth-child(1)  { animation-delay: 0.55s; }
.hero-terminal code > *:nth-child(2)  { animation-delay: 0.62s; }
.hero-terminal code > *:nth-child(3)  { animation-delay: 0.69s; }
.hero-terminal code > *:nth-child(4)  { animation-delay: 0.76s; }
.hero-terminal code > *:nth-child(5)  { animation-delay: 0.83s; }
.hero-terminal code > *:nth-child(6)  { animation-delay: 0.90s; }
.hero-terminal code > *:nth-child(7)  { animation-delay: 0.97s; }
.hero-terminal code > *:nth-child(8)  { animation-delay: 1.04s; }
.hero-terminal code > *:nth-child(9)  { animation-delay: 1.11s; }
.hero-terminal code > *:nth-child(10) { animation-delay: 1.18s; }
.hero-terminal code > *:nth-child(11) { animation-delay: 1.25s; }
.hero-terminal code > *:nth-child(12) { animation-delay: 1.32s; }
.hero-terminal code > *:nth-child(13) { animation-delay: 1.39s; }
.hero-terminal code > *:nth-child(14) { animation-delay: 1.46s; }
.hero-terminal code > *:nth-child(15) { animation-delay: 1.53s; }

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 32px 0;
}

/* ── Hero slider mechanics + richer motion ── */
.hero-slider { position: relative; min-height: 560px; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide > .hero-layout { width: 100%; }

@keyframes heroTextIn {
    from { opacity: 0; transform: translateX(34px); filter: blur(6px); }
    to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes heroPanelIn {
    from { opacity: 0; transform: translateY(26px) perspective(900px) rotateY(-7deg) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) perspective(900px) rotateY(0) scale(1); }
}
.hero-slide.entering .hero-text     { animation: heroTextIn 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.hero-slide.entering .hero-terminal { animation: heroPanelIn 0.75s cubic-bezier(0.22,1,0.36,1) 0.12s both; }

/* Per-slide accent personality (title gradient + badge tint) */
.hero-slide[data-slide="0"] .hero-title-accent { background-image: linear-gradient(135deg, #0EA5E9, #4F6EF0, #8B5CF6); }
.hero-slide[data-slide="1"] .hero-title-accent { background-image: linear-gradient(135deg, #8B5CF6, #C026D3, #EC4899); }
.hero-slide[data-slide="2"] .hero-title-accent { background-image: linear-gradient(135deg, #0D9488, #10B981, #84CC16); }
.hero-slide[data-slide="3"] .hero-title-accent { background-image: linear-gradient(135deg, #F59E0B, #F97316, #EF4444); }
.hero-slide[data-slide="1"] .hero-badge { color: #9333EA; border-color: rgba(147,51,234,0.25); background: rgba(147,51,234,0.06); }
.hero-slide[data-slide="2"] .hero-badge { color: #0D9488; border-color: rgba(13,148,136,0.25); background: rgba(13,148,136,0.06); }
.hero-slide[data-slide="3"] .hero-badge { color: #EA580C; border-color: rgba(234,88,12,0.25); background: rgba(234,88,12,0.06); }

/* Dots → animated progress pills (fill = 6.5s autoplay interval) */
.hero-dots {
    position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
    width: 12px; height: 6px; border-radius: 6px;
    background: #D7DFF5; border: none; cursor: pointer;
    padding: 0; transition: var(--transition);
    position: relative; overflow: hidden;
}
.hero-dot:hover { background: var(--border-hover); }
.hero-dot.active { width: 46px; background: #D7DFF5; }
.hero-dot.active::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 6px;
    background: var(--gradient-1);
    transform-origin: right;
    animation: dotProgress 6.5s linear both;
}
@keyframes dotProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.hero-slider:hover .hero-dot.active::after { animation-play-state: paused; }

/* ── Slide 2: AI chat mockup (dark panel) ── */
.chat-msg { padding: 11px 15px; border-radius: 12px; font-size: 13px; line-height: 1.65; margin-bottom: 12px; max-width: 88%; direction: rtl; text-align: right; }
.chat-msg.chat-user { background: rgba(255,255,255,0.07); color: #e2e8f0; margin-right: 0; margin-left: auto; border-bottom-left-radius: 4px; }
.chat-msg.chat-ai { background: linear-gradient(135deg, rgba(79,110,240,0.2), rgba(139,92,246,0.2)); border: 1px solid rgba(139,92,246,0.3); color: #e2e8f0; border-bottom-right-radius: 4px; }
.chat-ai-label { display: block; font-size: 10px; color: #a5b4fc; margin-bottom: 5px; font-weight: 700; }
.chat-typing { display: flex; gap: 5px; padding: 10px 15px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #64748b; animation: pulse 1.4s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Slide 3: kanban delivery mockup ── */
.kanban-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #cbd5e1; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); direction: rtl; text-align: right; }
.kanban-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; background: rgba(255,255,255,0.06); color: #64748b; }
.kanban-check.done { background: rgba(52,211,153,0.15); color: #34D399; }
.kanban-check.active { background: rgba(96,165,250,0.15); color: #60A5FA; }
.kanban-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.kanban-progress span { display: block; height: 100%; background: linear-gradient(90deg, #60A5FA, #34D399); }

/* ── Slide 4: growth dashboard mockup ── */
.dash-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #cbd5e1; margin-bottom: 16px; direction: rtl; text-align: right; }
.dash-value { font-family: var(--font-mono); font-weight: 700; }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 18px; }
.dash-chart span { flex: 1; background: linear-gradient(180deg, #8B5CF6, #4F6EF0); border-radius: 4px 4px 0 0; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    padding: 7px 16px;
    border: 1px solid rgba(79,110,240,0.22);
    border-radius: 50px;
    background: rgba(79,110,240,0.06);
    animation: fadeInDown 0.5s ease;
}
.hero-badge .badge-live { color: var(--green); font-size: 16px; line-height: 1; }

.hero-title {
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease 0.1s both;
}
.hero-title .hero-title-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
    font-size: 17px; color: var(--text-muted);
    line-height: 1.8; margin-bottom: 36px; max-width: 440px;
    animation: fadeInUp 0.5s ease 0.15s both;
}

.hero-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.hero-stats {
    display: flex; align-items: center; gap: 36px;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(79,110,240,0.14);
    animation: fadeInUp 0.5s ease 0.3s both;
}
.stat-number {
    font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Terminal — glossy dark panel (contrast jewel) ── */
.hero-terminal {
    background: #0F172A;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(30,41,90,0.28), 0 0 0 1px rgba(255,255,255,0.04);
    animation: fadeInUp 0.5s ease 0.2s both;
    position: relative;
}
.hero-terminal::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}
.terminal-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red    { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green  { background: #28C840; }
.terminal-title { flex: 1; text-align: center; font-size: 11px; color: #64748B; font-family: var(--font-mono); }

.terminal-body { padding: 16px 20px; }
.code-line { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: nowrap; direction: ltr; text-align: left; }
.code-comment  { color: #64748B; }
.code-keyword  { color: #A78BFA; }
.code-var      { color: #60A5FA; }
.code-string   { color: #34D399; }
.code-prop     { color: #38BDF8; }
.code-num      { color: #FBBF24; }
.code-fn       { color: #E879F9; }
.code-blank    { display: block; height: 10px; }

.terminal-output { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.output-line { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: #64748B; margin-bottom: 4px; direction: ltr; text-align: left; }
.output-line .output-icon { font-size: 10px; }
.output-line.ok .output-icon   { color: #34D399; }
.output-line.ok .output-text   { color: #34D399; }
.output-line.info .output-text { color: #60A5FA; }
.output-cursor { display: inline-block; width: 7px; height: 13px; background: #34D399; margin-right: 4px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ═══════════════════════════════════════
   SERVICES — orbit cards
═══════════════════════════════════════ */
.service-orbit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-orbit-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 32px 24px; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-card); transition: var(--transition);
}
.service-orbit-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-orbit-visual { position: relative; width: 108px; height: 108px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-orbit-ring { position: absolute; border-radius: 50%; border: 1.5px dashed currentColor; opacity: 0.3; }
.service-orbit-ring.r1 { inset: 0; animation: spin 24s linear infinite; }
.service-orbit-ring.r2 { inset: 16px; opacity: 0.5; }
.service-orbit-icon {
    position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
    box-shadow: 0 12px 28px rgba(30,41,90,0.22);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.service-orbit-card:hover .service-orbit-icon { transform: scale(1.1) rotate(-4deg); }

.orbit-blue   { color: var(--primary); }
.orbit-blue   .service-orbit-icon { background: linear-gradient(135deg, #4F6EF0, #3B54D4); }
.orbit-purple { color: var(--accent); }
.orbit-purple .service-orbit-icon { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.orbit-green  { color: #0B9E6E; }
.orbit-green  .service-orbit-icon { background: linear-gradient(135deg, #10B981, #059669); }
.orbit-amber  { color: #B45309; }
.orbit-amber  .service-orbit-icon { background: linear-gradient(135deg, #F59E0B, #D97706); }
.orbit-teal   { color: #0F766E; }
.orbit-teal   .service-orbit-icon { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.orbit-pink   { color: #DB2777; }
.orbit-pink   .service-orbit-icon { background: linear-gradient(135deg, #EC4899, #DB2777); }

.service-signal { font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-bottom: 10px; opacity: 0.85; direction: rtl; }
.service-orbit-title { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.service-orbit-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }

.service-orbit-features {
    width: 100%; max-height: 62px; overflow: hidden; transition: max-height 0.4s ease;
    display: flex; flex-direction: column; gap: 5px; text-align: right; margin-bottom: 6px;
}
.service-orbit-card:hover .service-orbit-features,
.service-orbit-card:focus-within .service-orbit-features { max-height: 260px; }
.service-orbit-feature { font-size: 12.5px; color: var(--text-muted); }
.service-orbit-more { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; }
.service-orbit-card:hover .service-orbit-more { display: none; }

.service-orbit-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); margin-top: auto; padding-top: 6px; }
.service-row-arrow { transition: var(--transition); }
.service-orbit-card:hover .service-row-arrow { transform: translateX(-5px); }

@media (max-width: 900px) {
    .service-orbit-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .service-orbit-grid { grid-template-columns: 1fr; }
}

/* Tech strip */
.tech-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.tech-strip-inner {
    display: flex; gap: 40px; align-items: center;
    animation: marquee-rtl 25s linear infinite;
    white-space: nowrap;
}
.tech-strip-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    font-family: var(--font-mono); letter-spacing: 0.5px; flex-shrink: 0;
}
.tech-strip-item::before { content: '✦'; color: var(--accent); }
@keyframes marquee-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* ═══════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════ */
.products-section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 36px;
}
.products-section-path { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.products-grid,
.products-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.product-card {
    display: flex; flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-thumb { height: 200px; overflow: hidden; position: relative; background: var(--bg-3); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}

/* Homepage products bento — tall featured + 2x2 grid (perfect fill with 5) */
.products-grid.home-products-bento { grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; gap: 20px; }
.home-products-bento .product-card-featured { grid-column: 1; grid-row: 1 / 3; }
.home-products-bento .product-card-featured .product-thumb { height: 100%; min-height: 280px; max-height: 380px; }
.home-products-bento .product-card-featured .product-title { font-size: 20px; }
.home-products-bento .product-card:not(.product-card-featured) .product-thumb { height: 150px; }
.home-products-bento .product-card:not(.product-card-featured) .product-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-products-bento .product-card:not(.product-card-featured) ul { display: none; }
.product-featured-tag {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 50px;
    box-shadow: 0 4px 14px rgba(217,119,6,0.4);
}
@media (max-width: 1100px) {
    .products-grid.home-products-bento { grid-template-columns: 1fr 1fr; }
    .home-products-bento .product-card-featured { grid-row: auto; grid-column: 1 / -1; }
    .home-products-bento .product-card-featured .product-thumb { height: 220px; min-height: 0; }
}
@media (max-width: 700px) {
    .products-grid.home-products-bento { grid-template-columns: 1fr; }
    .home-products-bento .product-card-featured { grid-column: 1; grid-row: auto; }
    .home-products-bento .product-card-featured .product-thumb { height: 200px; min-height: 0; }
}

/* Archive product card sub-elements */
.product-card-thumb { height: 200px; overflow: hidden; position: relative; background: var(--bg-3); }
.product-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-thumb img { transform: scale(1.04); }
.product-card-body { padding: 20px; flex: 1; }
.product-card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.product-status {
    position: absolute; top: 12px; right: 12px;
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; font-family: var(--font-mono);
    letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 50px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(16,185,129,0.35);
    color: #0B9E6E;
    backdrop-filter: blur(6px);
}
.product-status::before { content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.product-title  { font-size: 16px; font-weight: 700; color: var(--dark); }
.product-version {
    font-size: 11px; font-family: var(--font-mono); color: #0369A1;
    padding: 2px 8px; background: rgba(14,165,233,0.08); border-radius: 4px;
    flex-shrink: 0; margin-right: 8px; border: 1px solid rgba(14,165,233,0.2);
}
.product-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; flex: 1; }
.product-footer {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.product-link {
    font-size: 12px; font-family: var(--font-mono);
    color: var(--text-dim); transition: var(--transition);
    display: flex; align-items: center; gap: 4px;
}
.product-link:hover { color: var(--primary); }
.product-link::before { content: '()'; margin-left: 3px; color: var(--text-dim); }

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.projects-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }

.projects-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.why-card-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}
.why-card-blue   .why-card-icon { background: rgba(79,110,240,0.1);  border: 1px solid rgba(79,110,240,0.2); }
.why-card-purple .why-card-icon { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); }
.why-card-green  .why-card-icon { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.2); }
.why-card-blue::before   { background: var(--primary) !important; }
.why-card-purple::before { background: var(--accent) !important; }
.why-card-green::before  { background: var(--green) !important; }

/* Stats band (homepage) */
.stats-band {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 48px 40px;
    background: linear-gradient(135deg, #EFF4FF 0%, #F7F3FF 60%, #EFFAFF 100%);
    border-radius: var(--radius-xl); border: 1px solid var(--border);
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}
.stats-band-item { flex: 1; min-width: 120px; text-align: center; }
.stats-band-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.stats-band-icon-blue   { background: rgba(79,110,240,0.12); }
.stats-band-icon-purple { background: rgba(139,92,246,0.12); }
.stats-band-icon-green  { background: rgba(16,185,129,0.12); }
.stats-band-num {
    font-size: 40px; font-weight: 900; line-height: 1;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stats-band-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.stats-band-dots { width: 1px; height: 60px; background-image: linear-gradient(var(--border-hover) 50%, transparent 0%); background-size: 1px 8px; background-repeat: repeat-y; flex-shrink: 0; }
@media (max-width: 700px) {
    .stats-band-dots { display: none; }
    .stats-band-item { min-width: 40%; }
}

.project-card {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--card-bg); border: 1px solid var(--border);
    transition: var(--transition); box-shadow: var(--shadow-card);
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Darkening wash on hover (visual only — the click target is .project-card-link, always active) */
.project-overlay { position:absolute;inset:0;background:rgba(16,25,53,0.35);opacity:0;transition:opacity 0.3s;pointer-events:none; }
.project-card:hover .project-overlay { opacity:1; }
.project-thumb { height: 220px; overflow: hidden; position: relative; background: var(--bg-3); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }

/* Stretched link covering the whole thumbnail — no hover-to-reveal required, works on touch */
.project-card-link { position: absolute; inset: 0; z-index: 1; }
.project-view-icon {
    position: absolute; bottom: 14px; left: 14px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.95); color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(2,6,23,0.3);
    transition: var(--transition);
}
.project-card:hover .project-view-icon { background: var(--primary); color: #fff; transform: scale(1.08); }
.project-visit-icon {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(6,10,24,0.55); color: #fff; backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none; transition: var(--transition);
}
.project-visit-icon:hover { background: var(--primary); color: #fff; transform: scale(1.08); }

.project-body { padding: 22px; }
.project-title  { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.project-tags   { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag    { font-size: 11px; padding: 3px 10px; border-radius: 50px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); }

/* Artistic project showcase */
.project-art-hero { position:relative;overflow:hidden;padding:130px 0 92px;background:linear-gradient(180deg,#f8faff 0%,#fff 72%); }
.project-art-glow { position:absolute;border-radius:50%;filter:blur(12px);pointer-events:none;opacity:.65; }
.project-art-glow-one { width:520px;height:520px;top:-280px;right:-150px;background:radial-gradient(circle,rgba(79,110,240,.2),transparent 68%); }
.project-art-glow-two { width:420px;height:420px;bottom:0;left:-220px;background:radial-gradient(circle,rgba(139,92,246,.16),transparent 68%); }
.project-art-heading { max-width:850px;margin:38px auto 52px;text-align:center;position:relative;z-index:1; }
.project-art-eyebrow { display:inline-flex;align-items:center;gap:9px;margin-bottom:16px;color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.7px; }
.project-art-eyebrow span { width:26px;height:2px;background:var(--gradient-1);border-radius:4px; }
.project-art-heading h1 { margin:0;font-size:clamp(38px,6vw,72px);line-height:1.12;font-weight:900;letter-spacing:-2px;color:var(--dark); }
.project-art-heading p { max-width:720px;margin:22px auto 0;color:var(--text-muted);font-size:17px;line-height:1.9; }
.project-showcase { position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start;direction:rtl; }
.project-visual-panel { min-width:0;padding:10px;background:rgba(255,255,255,.72);border:1px solid rgba(148,163,216,.22);border-radius:30px;box-shadow:0 28px 80px rgba(30,45,90,.13);backdrop-filter:blur(16px); }
.project-featured-image,.project-thumbnail { position:relative;display:block;overflow:hidden;background:var(--bg-3);isolation:isolate; }
.project-featured-image { aspect-ratio:16/9;border-radius:20px; }
.project-featured-image img,.project-thumbnail img { width:100%;height:100%;display:block;object-fit:cover;transition:transform .65s cubic-bezier(.16,1,.3,1),filter .4s ease; }
.project-featured-image::after,.project-thumbnail::after { content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,rgba(6,10,24,.58));opacity:.65;transition:opacity .3s;z-index:1; }
.project-thumbnail:hover img { transform:scale(1.045);filter:saturate(1.08); }
.project-thumbnail:hover::after { opacity:.9; }
.project-image-label { position:absolute;z-index:2;right:18px;bottom:17px;padding:7px 11px;border-radius:9px;background:rgba(8,13,31,.55);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:10px;font-weight:800;backdrop-filter:blur(8px); }
.project-thumbnail-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px; }
.project-thumbnail { width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:15px;cursor:pointer;font:inherit;text-align:inherit; }
.project-shot-index,.project-shot-open { position:absolute;z-index:2;color:#fff;bottom:15px; }
.project-shot-index { right:17px;font:700 11px/1 var(--font-mono);letter-spacing:1px; }
.project-shot-open { left:15px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(8px);transition:transform .3s,background .3s; }
.project-thumbnail:hover .project-shot-open { transform:scale(1.08);background:var(--primary); }
.project-thumbnail .project-shot-open { width:28px;height:28px;left:10px;bottom:10px;font-size:12px; }
.project-thumbnail .project-shot-index { right:12px;bottom:13px; }
.project-visual-empty { min-height:540px;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:linear-gradient(135deg,#111936,#25346e);color:#fff;text-align:center; }
.project-visual-empty span { font-size:54px;color:#a7b7ff; }
.project-visual-empty strong { max-width:540px;font-size:clamp(28px,5vw,54px);line-height:1.25; }
.project-about-content { margin:10px 0 0;padding:30px 28px 24px;border-radius:18px;background:#fff;color:var(--text);font-size:15px;line-height:2; }
.project-about-content .section-tag { margin-bottom:15px; }
.project-about-content h2,.project-about-content h3 { margin:22px 0 10px;color:var(--dark); }
.project-about-content p:first-of-type { margin-top:0; }
.project-about-content p:last-child { margin-bottom:0; }
.project-side-column { position:sticky;top:92px;display:grid;gap:14px; }
.project-brief-card { position:relative;overflow:hidden;padding:28px;border-radius:26px;background:linear-gradient(155deg,#111936 0%,#0a1025 62%,#151c3d 100%);color:#fff;box-shadow:0 28px 70px rgba(8,15,38,.25); }
.project-brief-card::before { content:"";position:absolute;width:210px;height:210px;left:-110px;top:-90px;border-radius:50%;background:radial-gradient(circle,rgba(117,140,255,.35),transparent 70%); }
.project-brief-mark { display:flex;align-items:center;justify-content:space-between;margin-bottom:42px;position:relative; }
.project-brief-mark span { width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#607cf5,#a855f7);font:800 12px/1 var(--font-mono);box-shadow:0 10px 25px rgba(96,124,245,.32); }
.project-brief-mark i { width:9px;height:9px;border-radius:50%;background:#5ee6b3;box-shadow:0 0 0 7px rgba(94,230,179,.1); }
.project-brief-label { color:#8290b8;font-size:10px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:10px; }
.project-brief-card h2 { margin:0;color:#fff;font-size:25px;line-height:1.4; }
.project-brief-summary { margin:12px 0 24px;color:#aeb8d5;font-size:13px;line-height:1.8; }
.project-brief-facts { border-top:1px solid rgba(255,255,255,.09); }
.project-brief-fact { display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.09); }
.project-brief-icon { width:31px;height:31px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);color:#aab8ff;font-size:13px; }
.project-brief-fact div { display:grid;gap:3px; }
.project-brief-fact small { color:#7180a8;font-size:9.5px;font-weight:700; }
.project-brief-fact strong { color:#e9edfa;font-size:12.5px;font-weight:700; }
.project-brief-cta { display:flex;align-items:center;justify-content:space-between;margin-top:24px;padding:14px 16px;border-radius:13px;background:#fff;color:#101936;font-size:13px;font-weight:800;transition:transform .25s,box-shadow .25s; }
.project-brief-cta b { width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--primary);color:#fff; }
.project-brief-cta:hover { transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.22); }
.project-side-card { padding:20px;border:1px solid rgba(148,163,216,.25);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 16px 38px rgba(30,45,90,.08); }
.project-side-card h3 { margin:0 0 13px;color:var(--dark);font-size:15px;line-height:1.5; }
.project-side-card p { margin:0 0 15px;color:var(--text-muted);font-size:12px;line-height:1.8; }
.project-side-card .project-tags { gap:7px; }
.project-side-card .project-tag { background:#f2f5ff;border-color:#dfe5fb;color:#45517a;font-size:10px; }
.project-side-cta { display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:12px;background:var(--gradient-1);color:#fff;font-size:12px;font-weight:800;transition:transform .25s,box-shadow .25s; }
.project-side-cta b { font-size:16px; }
.project-side-cta:hover { transform:translateY(-2px);box-shadow:0 10px 24px rgba(79,110,240,.25); }
.project-lightbox { width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:10px;border:0;border-radius:20px;background:#0a1020;box-shadow:0 30px 100px rgba(0,0,0,.55);overflow:visible; }
.project-lightbox::backdrop { background:rgba(4,7,16,.86);backdrop-filter:blur(8px); }
.project-lightbox img { display:block;width:100%;max-height:calc(100vh - 52px);object-fit:contain;border-radius:13px; }
.project-lightbox-close { position:absolute;z-index:2;top:-13px;left:-13px;width:38px;height:38px;padding:0;border:2px solid rgba(255,255,255,.45);border-radius:50%;background:#fff;color:#111936;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.28); }
.project-story-section { padding:94px 0 110px;background:#fff; }
.project-story-intro { display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:36px; }
.project-story-intro span { color:var(--primary);font-size:11px;font-weight:800; }
.project-story-intro h2 { margin:5px 0 0;color:var(--dark);font-size:clamp(30px,4vw,48px); }
.project-story-intro>p { max-width:430px;margin:0;color:var(--text-muted);line-height:1.8;font-size:14px; }
.project-story-grid { display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px; }
.project-story-card { position:relative;overflow:hidden;display:grid;grid-template-columns:48px 1fr;gap:20px;padding:30px;border:1px solid var(--border);border-radius:24px;background:var(--card-bg);box-shadow:var(--shadow-card); }
.project-story-card.is-challenge { grid-column:span 5; }
.project-story-card.is-solution { grid-column:span 7;background:linear-gradient(135deg,#f5f7ff,#fff); }
.project-story-card.is-results { grid-column:span 12;background:linear-gradient(115deg,#0e1835,#172654);border:0;color:#fff; }
.project-story-number { width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--gradient-1);color:#fff;font:800 11px/1 var(--font-mono); }
.project-story-card small { color:var(--primary);font-size:10px;font-weight:800; }
.project-story-card h3 { margin:6px 0 12px;color:var(--dark);font-size:21px; }
.project-story-card p { margin:0;color:var(--text-muted);font-size:14px;line-height:2; }
.project-story-card.is-results small { color:#8fa7ff; }
.project-story-card.is-results h3 { color:#fff; }
.project-story-card.is-results p { color:#c3cce4; }
.project-next-cta { padding:0 0 96px;background:#fff; }
.project-next-cta .container { display:flex;align-items:center;justify-content:space-between;gap:30px;padding-top:38px;border-top:1px solid var(--border); }
.project-next-cta span { color:var(--primary);font-size:11px;font-weight:800; }
.project-next-cta h2 { max-width:680px;margin:7px 0 0;color:var(--dark);font-size:clamp(24px,3.5vw,40px);line-height:1.4; }

/* ── Homepage projects mosaic ── */
.projects-mosaic {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px; grid-auto-flow: dense;
    gap: 20px;
}
.mosaic-tile {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius-lg); text-decoration: none;
    box-shadow: var(--shadow-card); transition: var(--transition);
    border: 1px solid var(--border);
}
.mosaic-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-hover); }
.mosaic-featured { grid-column: span 2; grid-row: span 2; }
/* with an odd tile count (featured + 4n+1) stretch the last tile to fill the row */
.projects-mosaic .mosaic-tile:nth-child(odd):last-child:not(.mosaic-featured) { grid-column: span 2; }

.mosaic-tile-bg { position: absolute; inset: 0; background: var(--bg-3); }
.mosaic-tile-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-tile:hover .mosaic-tile-bg img { transform: scale(1.06); }
.mosaic-tile-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.mosaic-featured .mosaic-tile-placeholder { font-size: 80px; }

.mosaic-tile-overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 18px; gap: 6px;
    background: linear-gradient(0deg, rgba(16,25,53,0.85) 0%, rgba(16,25,53,0.14) 55%, transparent 80%);
}
.mosaic-tile-cat { font-size: 10px; font-weight: 700; color: #93C5FD; font-family: var(--font-mono); }
.mosaic-tile-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.mosaic-featured .mosaic-tile-title { font-size: 22px; }
.mosaic-featured .mosaic-tile-overlay { padding: 28px; }
.mosaic-tile-overlay .project-tags { margin-top: 6px; }
.mosaic-tile-overlay .project-tag { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #e8edf8; }

@media (max-width: 900px) {
    .projects-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .mosaic-featured { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 600px) {
    .projects-mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .mosaic-featured { grid-column: span 1; grid-row: span 1; height: 260px; }
}

/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════ */
.page-hero {
    padding: 104px 0 24px;
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 46% 70% at 84% 0%, rgba(79,110,240,0.09), transparent 62%),
        radial-gradient(ellipse 36% 55% at 6% 100%, rgba(139,92,246,0.07), transparent 62%),
        linear-gradient(180deg, #FCFDFF 0%, #F6F9FF 100%);
}
.page-hero + section.section-padding { padding-top: 26px; }
@media (max-width: 768px) {
    .page-hero { padding-top: 100px; }
}
.page-hero::before {
    content: '';
    position: absolute; top: -200px; right: -100px;
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(14,165,233,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-title    { font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; margin-bottom: 12px; color: var(--dark); }
.page-hero-subtitle { font-size: 16px; color: var(--text-muted); max-width: 500px; line-height: 1.8; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--primary); font-weight: 600; }

/* ═══════════════════════════════════════
   SINGLE LAYOUT
═══════════════════════════════════════ */
.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; padding: 48px 0 72px; }
.single-layout-tickets { grid-template-columns: 1fr 300px; }
.single-content-body { color: var(--text); line-height: 1.9; font-size: 15px; }
.single-content-body h2 { font-size: 24px; margin: 36px 0 14px; color: var(--dark); }
.single-content-body h3 { font-size: 19px; margin: 28px 0 10px; color: var(--dark); }
.single-content-body p  { margin-bottom: 18px; color: var(--text-muted); }
.single-content-body ul,.single-content-body ol { padding-right: 20px; margin-bottom: 18px; }
.single-content-body li { margin-bottom: 8px; color: var(--text-muted); }
.single-content-body img { border-radius: var(--radius-md); margin: 24px 0; border: 1px solid var(--border); }
.single-content-body blockquote {
    border-right: 3px solid var(--primary); padding: 14px 20px; margin: 20px 0;
    background: rgba(79,110,240,0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted); font-style: italic;
}

.single-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.sidebar-card-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual {
    position: relative;
    background:
        radial-gradient(ellipse 70% 70% at 30% 20%, rgba(79,110,240,0.1), transparent 65%),
        linear-gradient(135deg, var(--bg-2), var(--bg-4));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden; min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
}

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.value-item {
    padding: 18px; background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    display: flex; gap: 12px; align-items: flex-start; transition: var(--transition);
}
.value-item:hover { border-color: var(--border-hover); background: var(--bg-3); }
.value-icon  { font-size: 24px; flex-shrink: 0; }
.value-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.value-text  { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-card { padding: 32px 20px; }
.stat-card .stat-number { font-size: 44px; font-weight: 900; line-height: 1; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-card .stat-label  { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { padding: 28px 20px; text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; border: 2px solid rgba(79,110,240,0.3); background: var(--bg-3); box-shadow: 0 6px 18px rgba(79,110,240,0.15); }
.team-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.team-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.team-role { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 3px; }

.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-badge {
    font-size: 12px; padding: 7px 16px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 50px; color: var(--text-muted);
    font-family: var(--font-mono); transition: var(--transition);
}
.tech-badge:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,110,240,0.06); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; padding-bottom: 100px; }
.contact-info-items { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.contact-info-item:hover { border-color: var(--border-hover); transform: translateX(-3px); box-shadow: var(--shadow-md); }
.contact-info-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: rgba(79,110,240,0.08); border: 1px solid rgba(79,110,240,0.14);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-info-label { font-size: 11px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-info-value { font-size: 14px; color: var(--dark); font-weight: 600; }

.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-label .required { color: #EF4444; margin-right: 2px; }
.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-2); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); color: var(--dark); font-family: var(--font-main);
    font-size: 14px; transition: var(--transition); outline: none; direction: rtl;
}
.form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(79,110,240,0.12); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-message { display: none; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.form-message.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #0B9E6E; display: block; }
.form-message.error   { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.25);  color: #DC2626; display: block; }

/* ═══════════════════════════════════════
   CTA SECTION — gradient jewel box
═══════════════════════════════════════ */
.cta-section { padding: 48px 0 64px; }
.cta-box {
    background:
        radial-gradient(ellipse 70% 120% at 50% -20%, rgba(255,255,255,0.14), transparent 60%),
        linear-gradient(135deg, #4256D8 0%, #6D4AE0 55%, #8B5CF6 100%);
    border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-xl);
    padding: 52px 42px; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 30px 70px rgba(79,110,240,0.35);
}
.cta-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #34D399, #22D3EE, #A78BFA);
}
.cta-box::after {
    content: '';
    position: absolute; top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: rotate(20deg);
    animation: ctaShine 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ctaShine {
    0%, 85%, 100% { left: -60%; }
    45%           { left: 130%; }
}
.cta-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-subtitle { font-size: 16px; color: rgba(255,255,255,0.82); max-width: 440px; margin: 0 auto 36px; line-height: 1.8; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-primary { background: #fff; color: #4C3FD6; box-shadow: 0 8px 26px rgba(0,0,0,0.18); }
.cta-box .btn-primary:hover { background: #F1EEFF; color: #4C3FD6; }
.cta-box .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.cta-box .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; box-shadow: none; }
.cta-box .btn-green { background: rgba(255,255,255,0.16); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); box-shadow: none; }
.cta-box .btn-green:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ═══════════════════════════════════════
   FOOTER — deep navy anchor
═══════════════════════════════════════ */
.site-footer { background: #0D142E; border-top: 3px solid transparent; border-image: linear-gradient(90deg, #0EA5E9, #4F6EF0, #8B5CF6) 1; padding: 48px 0 0; position: relative; z-index: 1; }

/* ── Newsletter strip ── */
.newsletter-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(79,110,240,0.16), rgba(139,92,246,0.14));
    border: 1px solid rgba(124,140,255,0.25);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 8px;
}
.newsletter-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.newsletter-sub { font-size: 12.5px; color: #A3ACC4; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
    width: 240px; padding: 11px 16px;
    background: rgba(255,255,255,0.06); border: 1.5px solid rgba(148,163,216,0.25);
    border-radius: 50px; color: #fff; font-family: var(--font-main); font-size: 13.5px;
    outline: none; transition: var(--transition);
}
.newsletter-form input::placeholder { color: #7280A0; }
.newsletter-form input:focus { border-color: var(--primary-light); background: rgba(255,255,255,0.1); }
.newsletter-form button {
    padding: 11px 26px; border-radius: 50px; flex-shrink: 0;
    background: linear-gradient(135deg, #4F6EF0, #7C5CE8); color: #fff;
    font-family: var(--font-main); font-size: 13.5px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(79,110,240,0.35); transition: var(--transition);
}
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(79,110,240,0.45); }
.newsletter-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.newsletter-msg { font-size: 12.5px; font-weight: 600; margin: 10px 2px 24px; min-height: 1px; }
.newsletter-msg.success { color: #6EE7B7; }
.newsletter-msg.error { color: #FCA5A5; }
@media (max-width: 640px) {
    .newsletter-strip { flex-direction: column; align-items: stretch; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand-desc { color: #8A94AC; font-size: 13px; line-height: 1.8; margin: 14px 0 22px; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(148,163,216,0.18);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    color: #8A94AC; font-size: 14px; transition: var(--transition); text-decoration: none;
}
.social-btn:hover { border-color: var(--primary-light); color: #fff; background: rgba(79,110,240,0.2); transform: translateY(-1px); }
.footer-logo-name-ar { font-size: 17px; font-weight: 800; background: linear-gradient(135deg, #38BDF8, #818CF8, #C4B5FD); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-logo-name-en { font-size: 9px; font-weight: 600; color: #5B6478; letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-mono); }

.footer-col-title { font-size: 11px; font-weight: 700; color: #C8D0E8; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #A3ACC4; transition: var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(148,163,216,0.12); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copyright { font-size: 12px; color: #8A94AC; }
.footer-links-bottom { display: flex; gap: 20px; }
.footer-links-bottom a { font-size: 12px; color: #8A94AC; }
.footer-links-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse      { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }

.animate-up { opacity:0; transform:translateY(24px) scale(0.97); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.animate-up.in-view  { opacity:1; transform:translateY(0) scale(1); }
.d1{transition-delay:.05s} .d2{transition-delay:.10s} .d3{transition-delay:.15s}
.d4{transition-delay:.20s} .d5{transition-delay:.25s} .d6{transition-delay:.30s}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.mono { font-family: var(--font-mono); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.badge-green  { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.22); color: #0B9E6E; }
.badge-blue   { background: rgba(79,110,240,0.08); border: 1px solid rgba(79,110,240,0.22); color: var(--primary); }
.badge-purple { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.22); color: #7C3AED; }
.badge-amber  { background: rgba(217,119,6,0.08);  border: 1px solid rgba(217,119,6,0.22);  color: #B45309; }
.badge-red    { background: rgba(220,38,38,0.07);  border: 1px solid rgba(220,38,38,0.22);   color: #DC2626; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); background: var(--bg-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; white-space: nowrap; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }
.no-results { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.no-results-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.4; }
.loading-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   CLIENT ACCOUNT + TICKETS
═══════════════════════════════════════ */
.account-menu { position: relative; }
.account-menu::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
}
.account-menu-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 50px; transition: var(--transition);
}
.account-menu-trigger:hover { border-color: var(--border-hover); background: var(--bg-3); }
.account-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--gradient-1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.account-name { font-size: 13px; font-weight: 600; color: var(--text); }
.account-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 170px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px;
    z-index: 200; animation: fadeInDown 0.2s ease;
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.account-menu.open .account-dropdown { display: block; }
.account-dropdown a {
    display: block; padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
}
.account-dropdown a:hover { background: var(--bg-2); color: var(--primary); }

.sidebar-card { transition: var(--transition); }
.sidebar-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }

@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.msg-bubble {
    max-width: 78%; margin-bottom: 16px; padding: 12px 16px;
    border-radius: var(--radius-md); animation: bubbleIn 0.3s ease both;
}
.msg-bubble.client { background: var(--bg-2); border: 1px solid var(--border); margin-left: auto; border-bottom-left-radius: 4px; }
.msg-bubble.staff  { background: linear-gradient(135deg, #EFF4FF, #F5F1FF); border: 1px solid rgba(79,110,240,0.18); margin-right: auto; border-bottom-right-radius: 4px; }
.msg-bubble-meta { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.msg-bubble-body { font-size: 14px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

.section-glow {
    position: absolute; top: -120px; left: -100px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(139,92,246,0.09) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none; z-index: 0;
    animation: blobFloat 16s ease-in-out infinite;
}
.section-glow.blue   { background: radial-gradient(circle, rgba(79,110,240,0.09) 0%, transparent 70%); }
.section-glow.green  { background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%); }
.section-glow.right  { left: auto; right: -100px; }
.section-glow.bottom { top: auto; bottom: -120px; }

/* Cursor-following glow (desktop only) */
.cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 440px; height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,110,240,0.07) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    will-change: transform;
}

/* Subtle 3D tilt applied via inline transform from JS — just declare the base transition */
.card, .product-card, .service-card, .project-card {
    transition: transform 0.15s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-layout   { grid-template-columns: 1fr; }
    .hero-terminal { display: none; }
    .hero-subtitle { max-width: 100%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid,
    .products-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-row     { grid-template-columns: repeat(2, 1fr); }
    .team-grid     { grid-template-columns: repeat(2, 1fr); }
    .about-split   { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .single-layout,
    .single-layout-tickets { grid-template-columns: 1fr; }
    .single-sidebar{ position: static; }
    .project-showcase { grid-template-columns:1fr; }
    .project-side-column { position:static; }
    .project-brief-card { position:static;display:grid;grid-template-columns:1fr 1fr;gap:0 24px; }
    .project-brief-mark,.project-brief-label,.project-brief-card h2,.project-brief-summary,.project-brief-cta { grid-column:1 / -1; }
}
@media (max-width: 768px) {
    .section-padding { padding: 32px 0; }
    .services-grid        { grid-template-columns: 1fr; }
    .products-grid,
    .products-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-archive-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .hero-stats      { gap: 20px; flex-wrap: wrap; }
    .stat-divider    { display: none; }
    .nav-menu        { display: none; }
    .hamburger       { display: flex; }
    .footer-grid     { grid-template-columns: 1fr; }
    .footer-bottom   { flex-direction: column; text-align: center; }
    .form-row        { grid-template-columns: 1fr; }
    .project-art-hero { padding:105px 0 64px; }
    .project-art-heading { margin:30px auto 36px; }
    .project-art-heading h1 { letter-spacing:-1px; }
    .project-thumbnail-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .project-story-intro,.project-next-cta .container { align-items:flex-start;flex-direction:column; }
    .project-story-card.is-challenge,.project-story-card.is-solution,.project-story-card.is-results { grid-column:span 12; }
    .values-grid     { grid-template-columns: 1fr; }
    .cta-box         { padding: 48px 24px; }
    .products-section-header,.projects-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .project-visual-panel { padding:7px;border-radius:22px; }
    .project-thumbnail-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }
    .project-featured-image { border-radius:16px; }
    .project-thumbnail { border-radius:12px; }
    .project-about-content { padding:24px 19px 19px; }
    .project-brief-card { display:block;padding:23px; }
    .project-story-card { grid-template-columns:1fr;padding:23px; }
    .project-story-section { padding:64px 0 80px; }
    .team-grid     { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .stats-row     { grid-template-columns: 1fr 1fr; }
    .products-grid,
    .products-archive-grid { grid-template-columns: 1fr; }
    .projects-archive-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   BLOG / ARTICLES
═══════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-img { height: 200px; overflow: hidden; position: relative; background: var(--bg-3); flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
    font-size: 48px;
}

.blog-card-cat {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.94); color: var(--primary);
    border: 1px solid rgba(79,110,240,0.25);
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 50px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 12px;
}
.blog-card-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card-title {
    font-size: 17px; font-weight: 700; color: var(--dark);
    line-height: 1.45; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a { color: inherit; text-decoration: none; transition: var(--transition); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 13px; color: var(--text-muted); line-height: 1.7;
    flex: 1; margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-footer {
    padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.blog-read-more {
    font-size: 13px; font-weight: 600; color: var(--primary);
    display: flex; align-items: center; gap: 5px;
    text-decoration: none; transition: var(--transition);
}
.blog-read-more:hover { gap: 8px; color: var(--accent); }

/* Featured post (first card - full width) */
.blog-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}
.blog-card-featured .blog-card-img { height: 100%; min-height: 280px; }
.blog-card-featured .blog-card-body { padding: 36px; justify-content: center; }
.blog-card-featured .blog-card-title { font-size: 24px; -webkit-line-clamp: 3; }
.blog-card-featured .blog-card-excerpt { -webkit-line-clamp: 4; }

/* Single post */
.single-post-hero { padding: 110px 0 0; }
.single-post-header { max-width: 780px; margin: 0 auto; text-align: center; }
.single-post-cats { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.single-post-cat { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(79,110,240,.07); border: 1px solid rgba(79,110,240,.2); padding: 4px 14px; border-radius: 20px; letter-spacing: .5px; }
.single-post-title { font-size: clamp(26px,4vw,42px); font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 20px; }
.single-post-meta { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.single-post-meta span { display: flex; align-items: center; gap: 5px; }
.single-post-thumb { margin: 48px 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: 480px; }
.single-post-thumb img { width: 100%; object-fit: cover; }
.single-post-content { max-width: 720px; margin: 0 auto; }
.single-post-content p { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 24px; }
.single-post-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; color: var(--dark); }
.single-post-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--dark); }
.single-post-content ul, .single-post-content ol { padding-right: 24px; margin-bottom: 20px; }
.single-post-content li { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 6px; }
.single-post-content blockquote { border-right: 4px solid var(--primary); padding: 16px 20px; background: var(--bg-2); margin: 28px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--text-muted); }
.single-post-content img { border-radius: var(--radius-md); margin: 24px 0; border: 1px solid var(--border); }
.single-post-content code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-3); padding: 2px 7px; border-radius: 4px; color: #7C3AED; }
.single-post-content pre { background: #0F172A; border: 1px solid #1E293B; color: #e2e8f0; padding: 24px; border-radius: var(--radius-md); overflow-x: auto; margin: 24px 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }

/* Content tables (incl. legacy WP inline-styled ones) */
.single-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.single-post-content table th,
.single-post-content table td { border: 1px solid var(--border) !important; padding: 10px 14px; color: var(--text); }
.single-post-content table tr[style],
.single-post-content table th[style] { background: var(--bg-2) !important; }
.single-post-content table thead th { background: var(--bg-2) !important; color: var(--dark); font-weight: 700; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tag { font-size: 12px; color: var(--text-muted); background: var(--bg-2); border: 1px solid var(--border); padding: 4px 14px; border-radius: 20px; }
.post-tag:hover { color: var(--primary); border-color: var(--primary); }

/* Category filter bar */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-filter-btn { font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--border); color: var(--text-muted); background: #fff; cursor: pointer; transition: var(--transition); text-decoration: none; }
.cat-filter-btn:hover, .cat-filter-btn.active { background: linear-gradient(135deg, #4F6EF0, #7C5CE8); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(79,110,240,0.3); }

/* Related posts */
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Responsive blog */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card-featured { grid-template-columns: 1fr; }
    .blog-card-featured .blog-card-img { height: 240px; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-featured { grid-column: auto; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .single-post-header { text-align: right; }
    .single-post-cats, .single-post-meta { justify-content: flex-start; }
}

/* ═══════════════════════════════════════
   FIXED-PRICE PACKAGE CARDS (/packages/ + service pricing sections)
═══════════════════════════════════════ */
.pkgcard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; max-width: 960px; margin: 0 auto; }
.pkgcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px 24px 26px; text-align: center; overflow: hidden;
    transition: var(--transition);
}
.pkgcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--border); transition: var(--transition); }
.pkgcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.pkgcard.featured { border-color: var(--primary); box-shadow: 0 14px 36px rgba(79,110,240,0.16); }
.pkgcard.featured::before { background: var(--gradient-1); height: 5px; }
.pkgcard-ribbon {
    position: absolute; top: 16px; left: -36px; transform: rotate(-45deg);
    background: var(--gradient-1); color: #fff; font-size: 10.5px; font-weight: 800;
    padding: 5px 42px; box-shadow: 0 2px 10px rgba(30,41,90,0.2); letter-spacing: 0.3px;
}
.pkgcard-name { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.pkgcard-price { font-size: 34px; font-weight: 900; color: var(--primary); margin-bottom: 2px; }
.pkgcard-price small { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.pkgcard-features { list-style: none; text-align: right; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pkgcard-features li { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.pkgcard-features li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.pkgcard-cta { margin-top: auto; }

/* ═══════════════════════════════════════
   PRODUCT SCREENSHOT GALLERY (pshots)
═══════════════════════════════════════ */
.pshots {
    display: flex; gap: 18px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 6px 14px; margin-bottom: 28px;
    scrollbar-width: thin;
}
.pshots figure { flex: 0 0 min(72%, 560px); scroll-snap-align: center; margin: 0; }
.pshots img {
    width: 100%; border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.pshots figure:hover img { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pshots figcaption { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 10px; font-weight: 600; }
.pshots-hint { text-align: center; font-size: 11.5px; color: var(--text-dim); margin: -18px 0 36px; }

/* Bespoke product mockups (AtEventX badge / Family tree) */
.pmock { display: flex; justify-content: center; margin-bottom: 40px; }
.pmock-inner { position: relative; }

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #C9D3EE; border-radius: 10px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
html { scrollbar-color: #C9D3EE var(--bg-2); scrollbar-width: thin; }

/* ═══════════════════════════════════════
   ACCESSIBILITY: reduced motion
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .hero-glow-left, .hero-glow-right, .section-glow, .hero-float-tag,
    .hero-title-accent, .hero-terminal .code-line, .hero-terminal .code-blank,
    .cta-box::after, .hero-dot.active::after {
        animation: none !important;
    }
    .animate-up { transition: opacity 0.3s ease !important; transform: none !important; }
    .card, .product-card, .service-card, .project-card { transition: border-color 0.25s ease, box-shadow 0.25s ease !important; }
    .cursor-glow { display: none !important; }
}
