/* ==========================================================================
   ركاز التقنية - Rekaz Tech | Premium Stylesheet
   ========================================================================== */

:root {
    /* Colors */
    --bg-primary: #060818;
    --bg-secondary: #0a0e2e;
    --bg-tertiary: #11163a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    --accent-cyan: #00d4ff;
    --accent-purple: #7b2cbf;
    --accent-pink: #f72585;
    --accent-blue: #4361ee;
    --accent-green: #06ffa5;

    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    --gradient-secondary: linear-gradient(135deg, #f72585 0%, #7b2cbf 100%);
    --gradient-text: linear-gradient(135deg, #00d4ff 0%, #b5179e 50%, #f72585 100%);

    /* Typography */
    --font-arabic: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    --font-display: 'Cairo', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px 0;

    /* Shadows */
    --shadow-glow: 0 0 80px rgba(0, 212, 255, 0.2);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-arabic);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

@media (max-width: 1024px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button, input, select, textarea {
    font-family: inherit;
    cursor: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* ==========================================================================
   Background Effects
   ========================================================================== */

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(247, 37, 133, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    z-index: 0;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.4), transparent 70%);
    top: 40%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.3), transparent 70%);
    bottom: -100px;
    right: 30%;
    animation-delay: -14s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7b2cbf 0%, #00d4ff 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 8, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 16px rgba(0, 212, 255, 0.35));
    transition: filter var(--transition);
}

.logo:hover .logo-mark {
    filter: drop-shadow(0 6px 20px rgba(0, 212, 255, 0.55));
}

.logo-icon {
    height: 42px;
    width: auto;
    display: block;
}

.logo-name {
    height: 28px;
    width: auto;
    display: block;
    /* Invert dark navy text → white for dark background */
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity var(--transition);
}

.logo:hover .logo-name {
    opacity: 1;
}

.navbar.scrolled .logo-icon { height: 38px; }
.navbar.scrolled .logo-name { height: 26px; }

@media (max-width: 580px) {
    .logo-icon { height: 36px; }
    .logo-name { height: 22px; }
}

/* Footer logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo-img {
    height: 110px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity var(--transition);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

@media (max-width: 640px) {
    .footer-logo-img { height: 90px; }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 999px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 22px;
    margin-inline-start: 10px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.nav-cta:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background: rgba(10, 14, 46, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 30px 40px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform var(--transition);
        border-right: 1px solid var(--border);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 16px;
        text-align: right;
    }

    .nav-cta {
        margin-right: 0;
        margin-top: 10px;
        text-align: center;
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 600px;
}

.stat {
    flex: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

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

/* Hero Visual */

.hero-visual {
    position: relative;
    height: 540px;
}

.visual-card {
    position: absolute;
    background: rgba(17, 22, 58, 0.7);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-card);
}

.visual-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

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

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:nth-child(3) { background: #28c840; }

.card-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    direction: ltr;
}

.card-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.9;
    direction: ltr;
    text-align: left;
}

.code-line {
    color: var(--text-secondary);
}

.code-indent {
    padding-right: 24px;
    padding-left: 24px;
}

.code-purple { color: #c084fc; }
.code-cyan { color: #67e8f9; }
.code-orange { color: #fb923c; }
.code-green { color: #6ee7b7; }
.code-yellow { color: #fde047; }
.code-string { color: #f9a8d4; }
.code-comment { color: #6b7280; font-style: italic; }

.cursor-blink {
    color: var(--accent-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.visual-float {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    z-index: 3;
    animation: float-card 6s ease-in-out infinite;
}

.visual-float-1 {
    top: 8%;
    right: -10px;
    animation-delay: -1s;
}

.visual-float-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: -3s;
}

.visual-float-3 {
    top: 35%;
    left: -30px;
    animation-delay: -5s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
}

.float-text {
    line-height: 1.3;
}

.float-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.float-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan));
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

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

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

    .hero-stats {
        margin: 0 auto;
        gap: 20px;
        padding: 20px;
    }

    .hero-visual {
        height: 400px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 580px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .visual-float {
        display: none;
    }
}

/* ==========================================================================
   Marquee Section
   ========================================================================== */

.marquee-section {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.marquee-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.marquee-track span:hover {
    color: var(--accent-cyan);
}

.marquee-track .dot {
    color: var(--accent-cyan);
    font-size: 28px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section Common
   ========================================================================== */

section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tag-line {
    width: 30px;
    height: 1px;
    background: var(--accent-cyan);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

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

.service-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    transition: var(--transition);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-icon-1 { background: linear-gradient(135deg, #00d4ff, #0077be); }
.service-icon-2 { background: linear-gradient(135deg, #7b2cbf, #4361ee); }
.service-icon-3 { background: linear-gradient(135deg, #f72585, #b5179e); }
.service-icon-4 { background: linear-gradient(135deg, #06ffa5, #00b4d8); }
.service-icon-5 { background: linear-gradient(135deg, #ffbe0b, #fb5607); }
.service-icon-6 { background: linear-gradient(135deg, #8338ec, #3a86ff); }

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(-5deg);
}

.service-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-description {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.service-features li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.service-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.service-arrow svg {
    transform: scaleX(-1);
}

.service-card:hover .service-arrow {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateX(-4px);
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.portfolio-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(123, 44, 191, 0.05));
    border: 1px solid var(--border);
    border-radius: 32px;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.portfolio-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid rgba(6, 255, 165, 0.3);
    border-radius: 999px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 24px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.featured-domain {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    direction: ltr;
    text-align: start;
}

[dir="rtl"] .featured-domain { text-align: right; }
[dir="ltr"] .featured-domain { text-align: left; }

.featured-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* Browser Mockup */

.browser-mockup {
    background: #0f1227;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform var(--transition);
}

.browser-mockup:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #1a1f3a;
    border-bottom: 1px solid var(--border);
}

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

.browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    padding: 6px 14px;
    background: #060818;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.browser-url svg {
    color: var(--accent-green);
}

.browser-content {
    padding: 28px;
    background: linear-gradient(135deg, #0f1227 0%, #1a1f3a 100%);
    min-height: 320px;
    direction: rtl;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mockup-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mockup-nav {
    display: flex;
    gap: 16px;
}

.mockup-nav span {
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mockup-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    align-items: center;
}

.mockup-hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 4px;
}

.mockup-line-1 { width: 90%; height: 18px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); }
.mockup-line-2 { width: 75%; }
.mockup-line-3 { width: 60%; height: 8px; }

.mockup-btn {
    width: 100px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 999px;
    margin-top: 8px;
}

.mockup-hero-img {
    height: 130px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mockup-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.4), transparent 60%);
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mockup-card {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.mockup-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.7;
}

.mockup-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 8px;
    width: 60%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

@media (max-width: 968px) {
    .portfolio-featured {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px;
    }

    .featured-title { font-size: 32px; }

    .browser-mockup {
        transform: none;
    }
}

/* Portfolio Grid */

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

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
}

.portfolio-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.portfolio-image-1 {
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3)),
        radial-gradient(circle at 30% 30%, rgba(247, 37, 133, 0.3), transparent 50%);
}

.portfolio-image-2 {
    background:
        linear-gradient(135deg, rgba(6, 255, 165, 0.3), rgba(0, 119, 190, 0.3)),
        radial-gradient(circle at 70% 70%, rgba(247, 37, 133, 0.3), transparent 50%);
}

.portfolio-image-3 {
    background:
        linear-gradient(135deg, rgba(255, 190, 11, 0.3), rgba(251, 86, 7, 0.3)),
        radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.3), transparent 50%);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 24, 0.6) 100%);
    transition: var(--transition);
}

.portfolio-icon {
    color: white;
    opacity: 0.9;
}

.portfolio-category {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-line {
    position: absolute;
    inset-inline-start: 50px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    background-image: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .process-number {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

.process-content {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.process-step:hover .process-content {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.process-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 640px) {
    .process-line { inset-inline-start: 30px; }
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 22px;
        border-radius: 16px;
    }
    .process-step { gap: 20px; }
    .process-content { padding: 20px; }
    .process-content h3 { font-size: 18px; }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: start;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.value {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.value h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.value p {
    font-size: 13.5px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.about-visual {
    position: relative;
    height: 540px;
}

.about-card-stack {
    position: relative;
    height: 100%;
}

.about-stat-card {
    position: absolute;
    padding: 32px;
    background: rgba(17, 22, 58, 0.7);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-card);
    width: 90%;
    transition: var(--transition);
}

.about-stat-card:nth-child(1) {
    top: 0;
    inset-inline-start: 0;
    z-index: 3;
}

.about-stat-card.stat-card-2 {
    top: 32%;
    inset-inline-start: 8%;
    z-index: 2;
}

.about-stat-card.stat-card-3 {
    top: 64%;
    inset-inline-start: 0;
    z-index: 1;
}

.about-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    z-index: 10;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-header span {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.about-stat-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content .section-title { text-align: center; }

    .about-visual { height: 600px; }
}

@media (max-width: 640px) {
    .about-values { grid-template-columns: 1fr; }
    .about-stat-card { width: 100%; padding: 24px; }
    .about-visual { height: auto; }
    .about-card-stack { display: flex; flex-direction: column; gap: 20px; }
    .about-stat-card { position: relative; top: auto !important; inset-inline-start: auto !important; }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 60px 0 120px;
}

.cta-card {
    position: relative;
    padding: 80px 60px;
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 44, 191, 0.08));
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 37, 133, 0.3), transparent 50%);
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-card { padding: 50px 30px; }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(-4px);
}

.contact-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.contact-item-value {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14.5px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 16px;
    padding-left: 44px;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid rgba(6, 255, 165, 0.3);
    border-radius: 12px;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
}

.form-success.show {
    display: flex;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 28px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-about {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-cyan);
    padding-inline-start: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-contact svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

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

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7b2cbf, #00d4ff);
}

/* ==========================================================================
   Language Toggle
   ========================================================================== */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: none;
    transition: var(--transition);
    margin-inline-start: 8px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.lang-toggle svg {
    opacity: 0.75;
}

.lang-toggle .lang-text {
    line-height: 1;
}

@media (max-width: 968px) {
    .lang-toggle {
        margin-inline-start: 0;
        margin-top: 10px;
        justify-content: center;
        padding: 12px 16px;
        width: 100%;
    }
}

/* ==========================================================================
   LTR Direction Overrides
   ========================================================================== */

/* Use Inter as primary font for English; keep Cairo/Space Grotesk for headlines */
[dir="ltr"] body {
    font-family: 'Inter', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="ltr"] .hero-title,
[dir="ltr"] .section-title,
[dir="ltr"] .featured-title,
[dir="ltr"] .service-title,
[dir="ltr"] .process-content h3,
[dir="ltr"] .cta-title,
[dir="ltr"] .stat-card-header span,
[dir="ltr"] .contact-info h3,
[dir="ltr"] .footer-col h4,
[dir="ltr"] .value h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -1.5px;
}

[dir="ltr"] .stat-number,
[dir="ltr"] .process-number,
[dir="ltr"] .featured-domain {
    font-family: 'Space Grotesk', sans-serif;
}

/* Slightly looser line-height for English (Latin script reads better with more room) */
[dir="ltr"] .hero-description,
[dir="ltr"] .section-subtitle,
[dir="ltr"] .about-text,
[dir="ltr"] .service-description,
[dir="ltr"] .featured-description,
[dir="ltr"] .cta-description {
    line-height: 1.7;
}

/* Button arrows: in RTL, flip so they point left (forward in RTL) */
[dir="rtl"] .btn-arrow {
    transform: scaleX(-1);
}

/* Hover translations - direction-aware */
[dir="ltr"] .contact-item:hover {
    transform: translateX(4px);
}

[dir="ltr"] .service-card:hover .service-arrow {
    transform: translateX(4px);
}

/* Service card arrow icon: in LTR, flip so visual chevron points "outward right" */
[dir="ltr"] .service-arrow svg {
    transform: scaleX(-1);
}

/* Form select dropdown arrow positioning for LTR */
[dir="ltr"] .form-group select {
    background-position: right 18px center;
    padding-inline-start: 18px;
    padding-inline-end: 44px;
}

/* Nav-menu spacing tweak: in LTR the gap before CTA needs the same treatment */
[dir="ltr"] .nav-menu {
    /* gap auto-handled by flexbox; no additional override needed */
}

/* Mobile menu slides in from inline-end side (right in LTR, right in RTL since menu is positioned at right:0) */
/* No change needed - menu always slides from right for visual consistency */

/* ==========================================================================
   Legal Pages (Privacy / Terms)
   ========================================================================== */

.legal-page {
    padding: 180px 0 120px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.legal-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 36px;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.legal-back:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.legal-back svg {
    flex-shrink: 0;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-section {
    display: flex;
    gap: 32px;
    padding: 36px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.legal-section:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.legal-number {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    min-width: 56px;
}

.legal-body {
    flex: 1;
    min-width: 0;
}

.legal-body h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.legal-body p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 14px;
}

.legal-body p:last-child {
    margin-bottom: 0;
}

.legal-body ul {
    margin: 14px 0;
}

.legal-body ul li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 10px;
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.legal-body ul li:last-child {
    margin-bottom: 0;
}

.legal-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.legal-body a:hover {
    color: white;
}

@media (max-width: 768px) {
    .legal-page { padding: 130px 0 80px; }
    .legal-header { margin-bottom: 50px; }
    .legal-section {
        flex-direction: column;
        gap: 16px;
        padding: 28px;
    }
    .legal-number {
        font-size: 26px;
        min-width: auto;
    }
    .legal-body h2 { font-size: 19px; }
}

[dir="ltr"] .legal-title,
[dir="ltr"] .legal-body h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

[dir="ltr"] .legal-number {
    font-family: 'Space Grotesk', sans-serif;
}
