/* weblix jo - CayanJo Inspired Premium Tech Design System */

:root {
    /* Brand Color Palette - weblix jo */
    --color-bg-pure: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-bg-dark: #070c19;       /* Immersive deep navy tech background */
    --color-bg-dark-alt: #0d1527;   /* Slate/navy alternative for cards */
    
    --color-primary: #0062b8;        /* Strong Blue - Trust & Authority */
    --color-primary-dark: #004685;   
    --color-primary-light: #e6f0fa;  
    
    --color-accent: #ff6a00;         /* Vibrant Orange - Dynamic CTA */
    --color-accent-dark: #e04f00;    
    --color-accent-light: #fff0e6;   
    
    --color-text-dark: #1e293b;      
    --color-text-muted: #5e6f88;     
    --color-text-light: #ffffff;
    --color-text-light-muted: #a0aec0;
    
    --color-border: #e2e8f0;         
    --color-border-dark: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;
    
    /* System Spaces */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-header: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* Set by JS — mobile menu offset below floating header */
    --header-outer-height: 88px;

    /* Scrolled Header and dynamic link colors (Original White Glassmorphic values) */
    --color-header-scrolled-bg: rgba(255, 255, 255, 0.85);
    --color-header-scrolled-border: rgba(226, 232, 240, 0.8);
    --color-header-scrolled-shadow: rgba(0, 98, 184, 0.08);
    --color-nav-link-not-scrolled: #ffffff;
    --color-logo-text-not-scrolled: #ffffff;

    /* Mobile drawer overlay settings */
    --color-mobile-nav-bg: rgba(7, 12, 25, 0.98);
    --color-mobile-nav-link: #ffffff;
}

/* CSS Reset & General */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-pure);
}

body {
    background-color: var(--color-bg-pure);
    color: var(--color-text-dark);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Language specifics */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] button,
html[lang="ar"] option,
html[lang="ar"] ::placeholder {
    font-family: var(--font-ar) !important;
}

html[lang="ar"] body {
    text-align: right;
}

html[lang="en"],
html[lang="en"] body,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] button,
html[lang="en"] option,
html[lang="en"] ::placeholder {
    font-family: var(--font-en) !important;
}

html[lang="en"] body {
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.bg-soft {
    background-color: var(--color-bg-soft);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* Titles and Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    padding: 0.3rem 1rem;
    background-color: var(--color-accent-light);
    border-radius: 100px;
}

.bg-dark .section-subtitle {
    background-color: rgba(255, 106, 0, 0.1);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--color-text-dark);
}

.bg-dark .section-title {
    color: var(--color-text-light);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
}

.bg-dark .section-desc {
    color: var(--color-text-light-muted);
}

/* Floating sticky header — smooth GPU-accelerated transition on scroll */
.site-header {
    --header-outer-height: 88px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 1.25rem;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .header-container {
    pointer-events: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    padding: 0.55rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    contain: layout style;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When header is scrolled, it floats and becomes a premium glassmorphic pill shape */
.site-header.scrolled {
    padding-top: 0.65rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header.scrolled .header-container {
    background: var(--color-header-scrolled-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-header-scrolled-border);
    border-radius: 100px;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 10px 30px var(--color-header-scrolled-shadow);
}

/* Top of page: fully transparent shell, white nav text only */
.site-header:not(.scrolled) .lang-toggle {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Light theme text when bar is visible enough */
.site-header.scrolled .nav-link {
    color: var(--color-text-dark);
    transition: color 0.25s ease;
}

.site-header:not(.scrolled) .nav-link {
    transition: color 0.25s ease;
}

/* Active link styling */
.nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 700;
    position: relative;
}

.site-header:not(.scrolled) .nav-link.active {
    color: #38bdf8 !important;
}

.site-header.scrolled .nav-link.active {
    color: var(--color-primary) !important;
}

.site-header.scrolled .lang-toggle {
    color: var(--color-text-dark);
    border-color: var(--color-border);
    background-color: rgba(0, 98, 184, 0.04);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled .lang-toggle:hover {
    background-color: rgba(255, 106, 0, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.site-header.scrolled .logo-text-blue {
    fill: var(--color-primary) !important;
}

.logo-text-blue {
    fill: #ffffff;
    transition: fill 0.25s ease;
}

@media (min-width: 992px) {
    .site-header.scrolled {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header .header-container,
    .logo-link,
    .nav-link,
    .lang-toggle {
        transition: none !important;
    }
}

.logo-link:focus-visible {
    outline: 2px solid var(--color-accent);
    border-radius: 4px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .logo-link {
    transform: scale(0.88);
}


.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-link:hover {
    transform: scale(calc(1 - var(--header-p) * 0.12 + 0.03));
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-nav-link-not-scrolled);
    padding: 0.5rem 1rem;
    position: relative;
    outline: none;
    transition: color 0.25s ease;
}

.nav-link.active {
    color: var(--color-accent);
}

.site-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.site-header.scrolled .nav-link.active::after {
    width: calc(100% - 1.8rem);
    background-color: var(--color-primary);
}

.nav-link:hover, .nav-link:focus-visible {
    color: var(--color-accent);
}

/* Navigation indicators like CayanJo */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 100px;
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link:focus-visible::after {
    width: calc(100% - 2rem);
}

/* Hide mobile header actions on desktop by default */
.header-actions-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Buttons System - Fully Rounded pill-shaped like CayanJo */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 100px; /* Pill-shaped like CayanJo */
    transition: all var(--transition-fast);
    outline: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.2);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: #ffffff;
    color: var(--color-bg-dark);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* Language Switch Style */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-toggle:hover, .lang-toggle:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.site-header.scrolled .mobile-menu-toggle span {
    background-color: var(--color-text-dark);
}

.lang-toggle-mobile {
    display: none !important;
}

.header-controls-mobile {
    display: none !important;
}




/* Immersive Dark Navy Tech Hero Banner (Exact CayanJo visual model) */
.hero-section {
    position: relative;
    background-color: var(--color-bg-dark);
    padding-top: 180px;
    padding-bottom: 160px; /* Reduced space for bottom SVG wave */
    color: var(--color-text-light);
    overflow: hidden;
}

/* Tech Grid Pattern overlay inside dark background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 0),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 0);
    background-size: 24px 24px, 48px 48px, 48px 48px;
    opacity: 0.8;
    pointer-events: none;
}

/* Glowing circuit gradients behind text */
.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 98, 184, 0.18) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-accent {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, transparent 70%);
    bottom: 100px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
}

/* Floating Particle Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    direction: ltr !important; /* Force standard left-to-right coordinate system for consistent translation in RTL */
}

.particle {
    position: absolute;
    left: -100px !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    direction: ltr !important;
    color: rgba(255, 106, 0, 0.20); /* Elegant, soft orange watermark outline */
    animation: weblixFloatLogo 16s infinite linear; /* Smooth, continuous constant speed */
    will-change: transform, opacity; /* Instruct GPU to render on its own compositor layer for buttery smooth 60fps */
}

.particle-blue {
    color: rgba(0, 98, 184, 0.25); /* Elegant, soft blue watermark outline */
}

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

/* Centered/Grid Layout Content */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr; /* Centered focus alignment like CayanJo main banner */
    text-align: center;
    justify-items: center;
}

.hero-content {
    max-width: 950px;
    z-index: 10;
}

/* Highlighter visual effect for Title */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

/* Elegant Tech SEO Eyebrow Badge */
.hero-badge-seo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 1.25rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.hero-badge-seo:hover {
    border-color: rgba(255, 106, 0, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.1);
}

/* Pulsing Active Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary); /* Website Signature Blue */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(0, 98, 184, 0.7);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 98, 184, 0.6);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 98, 184, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 98, 184, 0);
    }
}

/* Beautiful dynamic brand title */
.hero-main-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* Beautiful dynamic orange highlight text */
.hero-title .highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 40%, #ff8c3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap; /* Prevents breaking weblix jo into two separate lines */
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 106, 0, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-desc {
    font-size: 1.15rem;
    color: #94a3b8; /* Elegant slate blue color */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    line-height: 1.85;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Trust Badges - Clean Flat Dark Overlay */
.hero-trust {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trust-title {
    font-size: 0.9rem;
    color: var(--color-text-light-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.trust-logos {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-logo-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-logo-item svg {
    color: var(--color-accent);
}

/* Animated Waving Shape Divider at the bottom of dark hero banner */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: #ffffff; /* Merges seamlessly into the next white section */
}

/* Smooth parallax wave animation */
.parallax-waves > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax-waves > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 11s;
}

.parallax-waves > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 15s;
}

.parallax-waves > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 18s;
}

.parallax-waves > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 25s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-DRIVEN INTERACTIVE TECH CORE — INDEX PAGE ONLY
   Concentric orbital rings that expand/rotate driven by scroll %
═══════════════════════════════════════════════════════════════ */

.hero-graphic-container {
    position: relative;
    /* Ensure the rings don't bleed outside the graphic container visually */
    isolation: isolate;
}

/* SVG code panel sits above orbital rings and can be 3D-tilted by mouse */
.hero-svg-wrapper {
    position: relative;
    z-index: 2;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-interactive-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
}

/* Concentric Orbital Rings */
.core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border-style: solid;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.05s linear;
    will-change: transform;
}

.core-ring-outer {
    width: 300px;
    height: 300px;
    border-width: 1px;
    border-color: rgba(0, 98, 184, 0.18);
    animation: ringSpinSlow 28s linear infinite;
    box-shadow: 0 0 30px rgba(0, 98, 184, 0.06) inset;
}

.core-ring-middle {
    width: 210px;
    height: 210px;
    border-width: 1px;
    border-color: rgba(255, 106, 0, 0.22);
    animation: ringSpinMid 18s linear infinite reverse;
}

.core-ring-inner {
    width: 130px;
    height: 130px;
    border-width: 1.5px;
    border-color: rgba(0, 98, 184, 0.30);
    animation: ringSpinFast 10s linear infinite;
    /* Dashed inner ring looks techy */
    border-style: dashed;
}

/* Orbital Nodes — tiny glowing dots orbiting the rings */
.core-node {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    will-change: transform;
}

.node-1 {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 98, 184, 0.7);
    /* Orbits on the outer ring */
    animation: orbitOuter 28s linear infinite;
    margin-top: -4px;
    margin-left: -4px;
}

.node-2 {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.7);
    /* Orbits on the outer ring, opposite phase */
    animation: orbitOuter 28s linear infinite;
    animation-delay: -14s;
    margin-top: -3px;
    margin-left: -3px;
}

.node-3 {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 98, 184, 0.6);
    /* Orbits on the middle ring */
    animation: orbitMid 18s linear infinite reverse;
    margin-top: -3px;
    margin-left: -3px;
}

.node-4 {
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
    /* Orbits on the middle ring, offset */
    animation: orbitMid 18s linear infinite reverse;
    animation-delay: -9s;
    margin-top: -2.5px;
    margin-left: -2.5px;
}

/* Ring spin keyframes */
@keyframes ringSpinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringSpinMid {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringSpinFast {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Node orbit keyframes — circular path from center at each ring radius */
@keyframes orbitOuter {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes orbitMid {
    from { transform: rotate(0deg) translateX(105px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(105px) rotate(-360deg); }
}

/* Scroll-driven: JS will update CSS vars --scroll-progress 0-1 on .tech-interactive-core */
/* The rings scale up + accelerate as user scrolls deeper into the hero section */
.tech-interactive-core.is-scrolling .core-ring-outer {
    border-color: rgba(0, 98, 184, calc(0.18 + var(--scroll-boost, 0) * 0.30));
}
.tech-interactive-core.is-scrolling .core-ring-middle {
    border-color: rgba(255, 106, 0, calc(0.22 + var(--scroll-boost, 0) * 0.30));
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED SECTION TITLE MORPH EFFECT
   The section header transforms as it enters the viewport
═══════════════════════════════════════════════════════════════ */

/* Glowing service section number badge */
.service-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-number-badge {
    transform: scale(1.15) rotate(-5deg);
}

/* ═══════════════════════════════════════════════════════════════
   CODE TAG ASSEMBLY  —  < / > drops physically to form </>
   Sits between hero and services as a premium visual separator.
   Each piece starts above the frame and drops with spring bounce
   physics when the section scrolls into view.
═══════════════════════════════════════════════════════════════ */

#code-tag-assembly {
    display: flex;
    justify-content: center;
    align-items: flex-end;          /* anchor to bottom so drop lands cleanly */
    gap: 0.05em;
    padding: 56px 0 48px;
    background: var(--color-bg-pure);
    overflow: hidden;               /* clips the pieces while they fly in from above */
    position: relative;
    /* subtle ambient glow behind the tag */
    background-image: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 106, 0, 0.04) 0%, transparent 70%);
}

/* Each < / > character */
.tag-piece {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);           /* #ff6a00 brand orange */
    display: inline-block;
    will-change: transform, opacity;
    /* Default: each piece hangs high above the layout, invisible */
    transform: translateY(-220px);
    opacity: 0;
    /* Transition used only when re-hiding (shouldn't happen, but safety) */
    transition: none;
    /* Text shadow for a subtle premium glow around each character */
    text-shadow:
        0 0 40px rgba(255, 106, 0, 0.25),
        0 4px 20px rgba(255, 106, 0, 0.15);
}

/* Individually adjust x-spacing so they read as one symbol */
#tag-lt    { letter-spacing: -0.02em; }
#tag-slash { letter-spacing: -0.01em; }
#tag-gt    { letter-spacing: 0; }

/* When .is-dropped is added, the piece falls with a spring bounce */
.tag-piece.is-dropped {
    animation: tagPhysicsDrop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* The physical drop — accelerates in, overshoots, settles */
@keyframes tagPhysicsDrop {
    0%   {
        transform: translateY(-220px) scaleY(0.9);
        opacity: 0;
    }
    55%  {
        opacity: 1;
    }
    65%  {
        /* Overshoot — squash slightly as it hits the floor */
        transform: translateY(12px) scaleY(0.93) scaleX(1.04);
        opacity: 1;
    }
    80%  {
        transform: translateY(-6px) scaleY(1.03) scaleX(0.98);
    }
    91%  {
        transform: translateY(3px) scaleY(0.98);
    }
    100% {
        transform: translateY(0) scaleY(1) scaleX(1);
        opacity: 1;
    }
}

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

.service-card {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 106, 0, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 2;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.service-card-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.service-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: var(--spacing-md);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2;
}

.service-card-arrow svg {
    transition: transform var(--transition-fast);
}

html[lang="ar"] .service-card-arrow svg {
    transform: rotate(180deg);
}

/* Service Card Hover State (Turns deep charcoal and glows orange) */
.service-card:hover {
    transform: translateY(-12px);
    background-color: var(--color-bg-dark-alt);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 60px rgba(7, 12, 25, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon-wrap {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.25);
}

.service-card:hover .service-card-title {
    color: #ffffff;
}

.service-card:hover .service-card-desc {
    color: #cbd5e1;
}

.service-card:hover .service-card-arrow {
    color: var(--color-accent);
}

.service-card:hover .service-card-arrow svg {
    transform: translateX(-6px);
}

html[lang="en"] .service-card:hover .service-card-arrow svg {
    transform: translateX(6px);
}

/* Interactive CTA Section (Gradient panel with hotspots) */
.cta-section {
    padding: var(--spacing-lg) 0;
}

.cta-container {
    background: radial-gradient(circle at top right, rgba(255, 106, 0, 0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 98, 184, 0.15) 0%, transparent 50%),
                #070c19; /* Sleek dark theme matching footer card */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem 3.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(7, 12, 25, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.cta-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-actions .btn-white {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8c3a 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-actions .btn-white svg {
    stroke: #ffffff;
}

.cta-actions .btn-white:hover {
    background: linear-gradient(135deg, #ff8c3a 0%, var(--color-accent) 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 106, 0, 0.4);
    transform: translateY(-3px);
}

.cta-actions .btn-outline {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-actions .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* WhatsApp Premium Action Button Style */
.btn-whatsapp {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-whatsapp svg {
    fill: #ffffff !important;
    stroke: none !important;
    transition: transform 0.3s ease !important;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4) !important;
    transform: translateY(-3px) !important;
}

.btn-whatsapp:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* Detail Features Section (About / Dual Columns + Floating Browser frame) */
#about {
    background: radial-gradient(circle at 10% 20%, rgba(0, 98, 184, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 106, 0, 0.02) 0%, transparent 45%),
                var(--color-bg-soft);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

/* Elegant B2B Credential Stats Counter Grid */
.about-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 98, 184, 0.06);
    padding: 1.25rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 98, 184, 0.02);
}

.about-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 1.85rem;
    font-weight: 850;
    color: var(--color-primary);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-border);
}

.about-features-list {
    margin-top: var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: #ffffff;
    border: 1px solid rgba(0, 98, 184, 0.06);
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.about-feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 98, 184, 0.18);
    background-color: var(--color-bg-soft);
    box-shadow: 0 12px 30px rgba(0, 98, 184, 0.04);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.about-feature-item:hover .about-feature-icon {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(255, 106, 0, 0.25);
    transform: scale(1.05);
}

.about-feature-text strong {
    color: var(--color-text-dark);
    display: block;
    margin-bottom: 2px;
    font-size: 1.1rem;
    font-weight: 700;
}

.about-feature-text span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing Multi-colored backdrop aura behind the mockup */
.about-glow-background {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 98, 184, 0.15) 0%, rgba(255, 106, 0, 0.04) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(35px);
    border-radius: 50%;
}

/* Premium Browser frame visual mockups */
.browser-mockup {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 100%;
    animation: floatMockup 6s ease-in-out infinite;
}

/* Floating interactive micro-badge cards */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(7, 12, 25, 0.08), 
                0 5px 15px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    z-index: 10;
    transition: all var(--transition-fast);
}

.floating-badge:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(7, 12, 25, 0.12);
    border-color: rgba(255, 106, 0, 0.3);
}

.badge-top-right {
    top: 8%;
    right: -25px;
    animation: floatBadge1 5s ease-in-out infinite;
}

.badge-bottom-left {
    bottom: 8%;
    left: -25px;
    animation: floatBadge2 6s ease-in-out infinite;
}

/* RTL Specific placement logic for badges */
html[lang="ar"] .badge-top-right {
    right: auto;
    left: -25px;
}

html[lang="ar"] .badge-bottom-left {
    left: auto;
    right: -25px;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(255, 106, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.25;
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Ambient glow behind browser mockup (Legacy fallback selector bypass) */
.about-graphic::before {
    display: none;
}

@keyframes floatMockup {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatBadge1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(8px) rotate(-1deg);
    }
}

/* Self-contained responsiveness blocks for new about elements */
@media (max-width: 1024px) {
    .floating-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 1.5rem;
    }
    .stat-divider {
        width: 80%;
        height: 1px;
    }
}

.browser-bar {
    height: 36px;
    background-color: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.browser-url {
    height: 22px;
    width: 220px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-family: monospace;
}

.browser-body {
    padding: 2.5rem var(--spacing-md);
    background-color: #0c1222;
}

/* Dotted Steps Workflow section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    position: relative;
}

/* Connecting dotted lines for Steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    border-top: 2px dotted var(--color-border);
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-normal);
}

.step-card:hover .step-number {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 25px rgba(255, 106, 0, 0.25);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}

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

/* Tech Corporate Footer Section - Screenshot styled */
.site-footer {
    background-color: var(--color-bg-soft);
    padding: 2rem 0 0.75rem 0;
}

.site-footer > .container {
    max-width: 98%;
    width: 98%;
    padding: 0;
}

.footer-card {
    background-color: #070c19; /* Immersive dark tech card */
    border-radius: 20px;
    padding: 3rem 2.5rem 1.5rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.footer-card::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr 2.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links + .footer-title {
    margin-top: 1.75rem;
}

.footer-link a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Subscribe Section Styling */
.subscribe-col {
    display: flex;
    flex-direction: column;
}

.subscribe-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subscribe-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.subscribe-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.subscribe-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.subscribe-input-wrap {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.subscribe-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.subscribe-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #475569; /* Soft tech-grey default color */
    pointer-events: none;
    transition: all var(--transition-fast);
}

/* Accessible RTL Positioning (Arabic) */
html[lang="ar"] .subscribe-input-icon {
    right: 16px;
}
html[lang="ar"] .subscribe-input {
    padding-right: 2.85rem !important;
    padding-left: 1.25rem !important;
}

/* Accessible LTR Positioning (English) */
html[lang="en"] .subscribe-input-icon {
    left: 16px;
}
html[lang="en"] .subscribe-input {
    padding-left: 2.85rem !important;
    padding-right: 1.25rem !important;
}

.subscribe-input {
    flex: 1;
    width: 100%;
    background-color: rgba(4, 7, 16, 0.6); /* Premium semi-translucent navy-black */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; /* Smooth rounded curved edges */
    padding: 0.95rem 1.25rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.subscribe-input:hover {
    border-color: rgba(255, 106, 0, 0.35);
    background-color: rgba(4, 7, 16, 0.85);
}

.subscribe-input::placeholder {
    color: #8a9bb4; /* Sleek, highly readable placeholder text */
    opacity: 0.65;
}

.subscribe-input-container:focus-within .subscribe-input-icon {
    color: var(--color-accent); /* Glow icon orange on focus */
    transform: translateY(-50%) scale(1.1); /* Interactive micro-scale with centering */
}

.subscribe-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.4);
    background-color: #040710;
}

.subscribe-btn {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%); /* Gorgeous premium orange gradient */
    color: #ffffff;
    border: none;
    border-radius: 12px; /* Match input curved edges perfectly */
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.2);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, #d85900 100%);
    box-shadow: 0 6px 22px rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

.subscribe-btn:hover svg {
    animation: bell-ring 0.6s ease-in-out;
}

.subscribe-btn:active {
    transform: translateY(0);
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(15deg); }
    40%, 80% { transform: rotate(-15deg); }
}

/* Footer Bottom Dotted Divider & Info Row */
.footer-divider {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin: 0 0 1.25rem 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    background-color: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
    text-decoration: none;
}

.footer-lang-selector:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-social-text-links {
    display: flex;
    gap: 2rem;
}

.footer-social-text-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-social-text-link:hover {
    color: #ffffff;
}

.footer-copyright-inside {
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    font-family: var(--font-ar);
    direction: rtl;
}

html[lang="en"] .footer-copyright-inside {
    font-family: var(--font-en);
    direction: ltr;
}

/* Waving keyframe animation details - Exquisite Left-to-Right viewport drift with a elegant spin */
@keyframes weblixFloatLogo {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.85; /* Fade in smoothly as it enters the left edge of the page */
    }
    90% {
        opacity: 0.85; /* Keep fully visible as it flows across the screen */
    }
    100% {
        transform: translateX(calc(100vw + 200px)) rotate(360deg); /* Purely horizontal left-to-right drift, mathematically robust for all viewport sizes */
        opacity: 0; /* Fade out completely as it leaves the right edge of the page */
    }
}

/* CSS Animations for mobile menu triggers */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    /* Prevent header layout overflow on medium screens */
    .nav-list {
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding-top: 150px;
        padding-bottom: 130px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-col:last-child {
        grid-column: span 3;
    }
    
    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1010; /* Keeps toggle always above full-screen drawer */
    }
    
    .mobile-menu-toggle.active span {
        background-color: #ffffff !important; /* Force hamburger to remain visible on dark menu overlay */
    }

    .header-controls-mobile {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    
    .lang-toggle-mobile {
        display: inline-flex !important;
        padding: 0.35rem 0.75rem !important; /* slightly more compact padding on mobile header */
        font-size: 0.85rem !important;
    }
    
    .site-header {
        padding-top: 0.65rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        display: block;
        background: transparent;
        border-bottom: none;
    }

    .site-header .header-container {
        border-radius: 0;
        padding: 0.5rem 1.2rem;
    }

    .site-header.scrolled .header-container {
        border-radius: 100px;
    }
    
    /* Full-Screen Glassmorphic Mobile Drawer Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(7, 12, 25, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 7.5rem var(--spacing-md) var(--spacing-xl) var(--spacing-md);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
        z-index: 1000;
        overflow-y: auto;
    }

    /* RTL Slide In from left (since hamburger is on left side) */
    html[lang="ar"] .main-nav {
        left: 0;
        transform: translateX(-100%);
    }

    /* LTR Slide In from right (since hamburger is on right side) */
    html[lang="en"] .main-nav {
        right: 0;
        transform: translateX(100%);
    }
    
    .main-nav.active {
        transform: translateX(0) !important;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    /* Force mobile menu links to stay perfectly white and legible on the dark menu background */
    .nav-link {
        font-size: 1.4rem;
        font-weight: 700;
        color: #ffffff !important;
        letter-spacing: 0.5px;
        transition: color 0.25s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-accent) !important;
    }

    
    .header-actions {
        display: none; 
    }
    
    .main-nav .header-actions-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
        margin-top: var(--spacing-xl);
        align-items: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .wave-divider svg {
        height: 70px;
    }
    
    .cta-container {
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-col {
        grid-column: span 1 !important;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .subscribe-input-wrap {
        flex-direction: column;
        width: 100%;
    }
    
    .subscribe-btn {
        width: 100%;
    }

    .site-footer {
        background-color: #070c19; /* Seamless dark theme */
        padding: 0;
    }

    .site-footer > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .footer-card {
        border-radius: 0 !important;
        width: 100% !important;
        padding: 3rem 1.25rem 2rem 1.25rem;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 110px;
    }
    
    .hero-title {
        gap: 0.85rem;
    }
    
    .hero-badge-seo {
        font-size: 0.8rem;
        padding: 0.35rem 0.95rem;
    }
    
    .hero-main-title {
        font-size: 1.85rem;
        line-height: 1.35; /* Perfect spacing to prevent character overlapping on mobiles */
    }
    
    .hero-title .highlight {
        display: inline-block;
        white-space: nowrap; /* Ensures weblix jo always stays together as a unit */
    }
    
    .hero-title .highlight::after {
        bottom: 2px; /* Repositions the highlights bar on mobile dimensions */
        height: 4px;
    }
    
    .hero-desc {
        font-size: 1.05rem;
    }
    
    .cta-title {
        font-size: 1.7rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON — Scroll-Triggered Tag Assembly
   Three orange pieces  < / >  drop one-by-one into bottom-right,
   then the label "WhatsApp" (green) slides open to form </WhatsApp>
   ═══════════════════════════════════════════════════════════════ */

#wa-float-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    pointer-events: none;          /* enabled only after animation completes */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-btn-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    /* Always fully visible - the pieces themselves handle their own visibility via JS */
    opacity: 1;
    transform: none;
}

/* ── Individual tag pieces with diagonal cinematic flight ── */
.wa-piece {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ff6a00;
    line-height: 1;
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
    text-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
    will-change: transform, opacity;
    transition: color 0.3s ease; /* transition only color on base */
}

/* Re-apply smooth transitions only once assembled and opened for hover/active effects */
#wa-float-btn.wa-opened .wa-piece {
    transition: transform 0.4s cubic-bezier(0.25, 1.4, 0.42, 1),
                color 0.3s ease,
                text-shadow 0.3s ease;
}

/* ── WhatsApp label ── */
.wa-label {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #25D366;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    margin: 0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
    transition: max-width 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
                opacity    0.55s ease                         0.18s,
                margin     0.75s ease                         0.1s;
}

#wa-float-btn.wa-opened .wa-label {
    max-width: 120px;
    opacity: 1;
    margin: 0 6px;
}

/* ── Opened = interactive ── */
#wa-float-btn.wa-opened {
    pointer-events: auto;
}

/* Physics-based hover expansion of the code brackets */
#wa-float-btn.wa-opened:hover {
    transform: translateY(-5px);
}

#wa-float-btn.wa-opened:hover .wa-piece {
    color: #ff8533;
    text-shadow: 0 4px 12px rgba(255, 133, 51, 0.6);
}

#wa-float-btn.wa-opened:hover #wa-lt {
    transform: translateX(-6px) scale(1.1);
}

#wa-float-btn.wa-opened:hover #wa-gt {
    transform: translateX(6px) scale(1.1);
}

#wa-float-btn.wa-opened:hover #wa-slash {
    transform: translateX(-2px) scale(1.1) rotate(-10deg);
}

#wa-float-btn.wa-opened:hover .wa-label {
    color: #33ff77;
    text-shadow: 0 4px 16px rgba(51, 255, 119, 0.7);
    letter-spacing: 0.07em;
}

#wa-float-btn.wa-opened:active {
    transform: translateY(-2px) scale(0.95);
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
    #wa-float-btn {
        bottom: 16px;
        right: 16px;
    }
    .wa-piece {
        font-size: 1.3rem;
    }
    .wa-label {
        font-size: 0.8rem;
    }
    .wa-btn-inner {
        gap: 1px;
        padding: 6px 8px;
    }
}
@media (max-width: 360px) {
    #wa-float-btn {
        bottom: 12px;
        right: 12px;
    }
    .wa-piece {
        font-size: 1.1rem;
    }
    .wa-label {
        font-size: 0.75rem;
    }
    .wa-btn-inner {
        gap: 0.5px;
        padding: 4px 6px;
    }
}

/* ── English Mirroring for Floating WhatsApp (Left-aligned) ── */
html[lang="en"] #wa-float-btn {
    right: auto !important;
    left: 32px !important;
}

@media (max-width: 480px) {
    html[lang="en"] #wa-float-btn {
        right: auto !important;
        left: 16px !important;
    }
}

@media (max-width: 360px) {
    html[lang="en"] #wa-float-btn {
        right: auto !important;
        left: 12px !important;
    }
}

/* ── Premium Glassmorphic Toast Notification System ── */
#toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: auto;
    max-width: 360px;
}

html[lang="en"] #toast-container {
    right: auto;
    left: 32px;
}

.toast-item {
    background: #070c19;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: toastSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
    transition: all 0.3s ease;
}

/* Success gets a nice blue border (website primary color) */
.toast-item.toast-success {
    border-left: 4px solid var(--color-primary, #0062b8);
}
html[dir="rtl"] .toast-item.toast-success {
    border-left: none;
    border-right: 4px solid var(--color-primary, #0062b8);
}

/* Error gets a nice orange/red border (website accent color) */
.toast-item.toast-error {
    border-left: 4px solid var(--color-accent, #ff6a00);
}
html[dir="rtl"] .toast-item.toast-error {
    border-left: none;
    border-right: 4px solid var(--color-accent, #ff6a00);
}

@keyframes toastSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-item.toast-closing {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.toast-item.toast-success .toast-icon {
    background: rgba(0, 98, 184, 0.15);
    border: 1px solid rgba(0, 98, 184, 0.25);
}

.toast-item.toast-error .toast-icon {
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.25);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #ffffff;
    line-height: 1.2;
}

.toast-message {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    color: #ffffff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--color-primary, #0062b8);
    transform-origin: left;
    animation: toastProgress 4s linear forwards;
}

.toast-item.toast-success .toast-progress {
    background: var(--color-primary, #0062b8);
}

.toast-item.toast-error .toast-progress {
    background: var(--color-accent, #ff6a00);
}

@keyframes toastProgress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
    #toast-container {
        bottom: 24px;
        right: 16px;
        left: 16px;
        transform: none;
        width: calc(100% - 32px);
        max-width: none;
    }
    
    html[lang="en"] #toast-container {
        right: 16px;
        left: 16px;
    }
    
    .toast-item {
        padding: 10px 14px;
        border-radius: 8px;
    }
}





