/* ═══════════════════════════════════════════════════════
   THEBAKER — Enhanced Cyber Portfolio CSS
   Author: Enhanced | RTL Arabic Portfolio
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-color: #060910;
    --bg-dark: #030508;
    --card-bg: linear-gradient(135deg, #0f1520 0%, #141c2a 100%);
    --card-bg-solid: #0f1520;
    --secondary-color: #00ffaa;
    --accent-color: #5c67ff;
    --accent-purple: #ad51ff;
    --text-color: rgba(200, 220, 240, 0.75);
    --text-bright: rgba(220, 240, 255, 0.95);
    --white: #ffffff;
    --border-color: rgba(100, 180, 255, 0.08);
    --glow-green: rgba(0, 255, 170, 0.35);
    --glow-blue: rgba(0, 162, 255, 0.35);
    --glow-purple: rgba(92, 103, 255, 0.35);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

/* Grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.02) 1px, transparent 1px);
    background-size: 55px 55px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow */
body::after {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(ellipse, rgba(0, 255, 170, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

::selection { background: var(--secondary-color); color: var(--bg-color); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── BG ANIMATION ─── */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-symbol {
    position: absolute;
    color: rgba(92, 103, 255, 0.05);
    font-family: monospace;
    font-weight: bold;
    user-select: none;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.8; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.global-scan-line {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 255, 170, 0.015) 48%,
        rgba(0, 255, 170, 0.03) 50%,
        rgba(0, 255, 170, 0.015) 52%,
        transparent);
    transform: translateY(-100%);
    animation: globalScan 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes globalScan {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, #00ffaa 0%, #00c8ff 100%);
    color: #06090f;
    font-weight: 800;
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.25), 0 4px 20px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 45px rgba(0, 255, 170, 0.5), 0 8px 30px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-right: 12px;
    box-shadow: 0 0 15px rgba(0,255,170,0.08);
}

.btn-secondary:hover {
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.25);
    transform: translateY(-3px);
}

/* ─── NAVBAR ─── */
.navbar {
    background: rgba(4, 7, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 170, 0.06);
    transition: background 0.3s ease;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.25), rgba(92,103,255,0.25), transparent);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link { display: flex; align-items: center; z-index: 2; }

.nav-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 255, 170, 0.25));
    transition: filter 0.3s ease;
}

.nav-logo:hover { filter: drop-shadow(0 0 22px rgba(0, 255, 170, 0.5)); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-color);
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%; left: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 0 8px var(--secondary-color);
}

.nav-links a:hover::after { right: 8px; left: 8px; }

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(0, 255, 170, 0.05);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-color);
    transition: var(--transition);
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    z-index: 2;
}

.hamburger:hover {
    color: var(--secondary-color);
    border-color: rgba(0,255,170,0.25);
    background: rgba(0,255,170,0.04);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-content { flex: 1; min-width: 280px; max-width: 580px; }

.hero-content h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: slideIn 0.8s ease 0.2s forwards;
}

.hero-content h3::before {
    content: '';
    display: inline-block;
    width: 28px; height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 14px;
    line-height: 1.2;
    background: linear-gradient(135deg, #00ffaa 0%, #00c8ff 55%, #6872ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(0, 255, 170, 0.22));
    font-weight: 900;
    opacity: 0;
    animation: slideIn 0.8s ease 0.4s forwards;
}

.hero-content h2 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
    animation: slideIn 0.8s ease 0.6s forwards;
}

.hero-content p {
    margin-bottom: 35px;
    max-width: 480px;
    color: rgba(200, 220, 240, 0.55);
    font-size: 1.02rem;
    line-height: 1.85;
    opacity: 0;
    animation: slideIn 0.8s ease 0.8s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(25px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    animation: slideIn 0.8s ease 1s forwards;
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeScale 1s ease 0.5s forwards;
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.img-placeholder-wrapper {
    position: relative;
    width: 320px; height: 320px;
}

.img-placeholder-wrapper::before,
.img-placeholder-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 15s linear infinite;
}

.img-placeholder-wrapper::before {
    width: 380px; height: 380px;
    border: 1px dashed rgba(92, 103, 255, 0.1);
}

.img-placeholder-wrapper::after {
    width: 430px; height: 430px;
    border: 1px solid rgba(0, 255, 170, 0.05);
    animation-direction: reverse;
    animation-duration: 22s;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.img-placeholder {
    width: 320px; height: 320px;
    background: linear-gradient(135deg, #0c1420 0%, #121c30 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--secondary-color);
    border: 2px solid rgba(0,255,170,0.12);
    box-shadow:
        0 0 0 8px rgba(0,255,170,0.025),
        0 0 60px rgba(0, 255, 170, 0.1),
        inset 0 0 60px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.img-placeholder:hover {
    border-color: rgba(0, 255, 170, 0.35);
    box-shadow:
        0 0 0 12px rgba(0,255,170,0.04),
        0 0 80px rgba(0, 255, 170, 0.22),
        inset 0 0 60px rgba(0,0,0,0.4);
}

.img-placeholder .glowing-elements { position: absolute; inset: 0; pointer-events: none; }

.img-placeholder .glow-1,
.img-placeholder .glow-2,
.img-placeholder .glow-3 {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-placeholder .glow-1 { top: -30px; left: -30px; background: radial-gradient(circle, var(--glow-green), transparent); }
.img-placeholder .glow-2 { top: 50%; right: -40px; transform: translateY(-50%); background: radial-gradient(circle, var(--glow-blue), transparent); }
.img-placeholder .glow-3 { bottom: -30px; left: 25%; background: radial-gradient(circle, var(--glow-purple), transparent); }

.img-placeholder:hover .glow-1,
.img-placeholder:hover .glow-2,
.img-placeholder:hover .glow-3 { opacity: 1; }

.img-placeholder-wrapper .corner-elements span {
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid rgba(92, 103, 255, 0.22);
    transition: all 0.35s ease;
}

.img-placeholder-wrapper .corner-elements span:nth-child(1) { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.img-placeholder-wrapper .corner-elements span:nth-child(2) { top: -5px; right: -5px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.img-placeholder-wrapper .corner-elements span:nth-child(3) { bottom: -5px; left: -5px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.img-placeholder-wrapper .corner-elements span:nth-child(4) { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.img-placeholder-wrapper:hover .corner-elements span {
    border-color: rgba(0, 255, 170, 0.65);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.35);
    width: 28px; height: 28px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

/* ─── SECTIONS ─── */
.section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.bg-light {
    background: linear-gradient(180deg, rgba(12,18,32,0.7) 0%, rgba(8,12,22,0.85) 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* ─── SECTION TITLE ─── */
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    margin-bottom: 55px;
    position: relative;
    padding-bottom: 22px;
    background: linear-gradient(135deg, #00ffaa 0%, #00c8ff 60%, #7c8fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 3px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 20px rgba(0,255,170,0.5);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(92,103,255,0.5);
}

/* ─── ABOUT ─── */
.about-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(12,18,32,0.95) 0%, rgba(16,24,42,0.95) 100%);
    padding: 50px 45px;
    border-radius: 24px;
    border: 1px solid rgba(0,255,170,0.06);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: var(--transition);
}

.about-content:hover {
    border-color: rgba(0,255,170,0.14);
    box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 50px rgba(0,255,170,0.04);
    transform: translateY(-4px);
}

.about-text p {
    color: rgba(200, 220, 240, 0.62);
    line-height: 1.9;
    font-size: 1.04rem;
    position: relative;
    z-index: 1;
}

.skills {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.skill-tag {
    background: rgba(0,255,170,0.03);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 170, 0.18);
    transition: var(--transition);
    cursor: default;
    letter-spacing: 0.5px;
}

.skill-tag:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
    transform: translateY(-3px) scale(1.04);
    background: rgba(0,255,170,0.06);
}

/* ═══════════════════════════════════════════════════════
   PARTNERS — DUAL MARQUEE · CREATIVE REDESIGN
   ═══════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.partners-slider {
    position: relative;
    padding: 10px 0 0;
    overflow: hidden;
}

/* ── حواف تلاشي يمين ويسار ── */
.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 160px;
    z-index: 4;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right,
        var(--bg-color) 0%, rgba(6,9,16,0.92) 35%, transparent 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left,
        var(--bg-color) 0%, rgba(6,9,16,0.92) 35%, transparent 100%);
}

/* ── الصف المشترك ── */
.partners-row {
    display: flex;
    width: max-content;
    padding: 14px 0;
}

/* ── الصف الأول: يتحرك لليسار ── */
.row-ltr {
    animation: marqueeToLeft 30s linear infinite;
}

/* ── الصف الثاني: يتحرك لليمين ── */
.row-rtl {
    animation: marqueeToRight 36s linear infinite;
}

/* ── إيقاف عند hover على الـ slider كله ── */
.partners-slider:hover .partners-row {
    animation-play-state: paused;
}

/* ── Keyframes ── */
@keyframes marqueeToLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes marqueeToRight {
    0%   { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

/* ── خط فاصل متوهج بين الصفّين ── */
.row-rtl {
    position: relative;
}

.row-rtl::before {
    content: '';
    position: absolute;
    top: 0; left: 4%; right: 4%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 170, 0.12) 25%,
        rgba(92, 103, 255, 0.18) 50%,
        rgba(0, 255, 170, 0.12) 75%,
        transparent
    );
}

/* ══════════════════════════════════════
   بطاقة اللوجو الفردية
   ══════════════════════════════════════ */
.partner-logo {
    position: relative;
    flex-shrink: 0;
    width: 195px;
    height: 115px;
    margin: 0 12px;
    padding: 20px 22px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        rgba(20, 30, 52, 0.88) 0%,
        rgba(13, 19, 37, 0.94) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* خط shimmer يمر على البطاقة */
.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: shimmerPass 4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.5s);
}

@keyframes shimmerPass {
    0%   { left: -80%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 180%; opacity: 0; }
}

/* توهج داخلي عند hover */
.partner-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 80% 55% at 50% 0%,
        rgba(0, 255, 170, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.06);
    border-color: rgba(0, 255, 170, 0.28);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 255, 170, 0.1),
        0 0 35px rgba(0, 255, 170, 0.08),
        inset 0 1px 0 rgba(0, 255, 170, 0.1);
}

.partner-logo:hover::after { opacity: 1; }

/* ── اللوجو ── */
.partner-logo img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.5) contrast(1.1);
    opacity: 0.4;
    transition:
        filter 0.5s ease,
        opacity 0.5s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1.1)
            drop-shadow(0 0 10px rgba(0, 255, 170, 0.25));
    opacity: 1;
    transform: scale(1.1);
}

/* ══════════════════════════════════════
   إحصائيات شركاء النجاح
   ══════════════════════════════════════ */
.partners-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.partners-stats::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 180px; height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(0,255,170,0.45), transparent);
}

.partners-stat {
    flex: 1;
    text-align: center;
    padding: 0 28px;
    position: relative;
}

.partners-stat + .partners-stat::before {
    content: '';
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: rgba(255,255,255,0.05);
}

.partners-stat .stat-num {
    display: block;
    font-size: 2.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffaa, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(0,255,170,0.3));
    line-height: 1;
    margin-bottom: 7px;
}

.partners-stat .stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(200,220,240,0.38);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .partners-slider::before,
    .partners-slider::after { width: 70px; }

    .partner-logo {
        width: 150px; height: 90px;
        margin: 0 9px;
        padding: 16px 18px;
        border-radius: 14px;
    }

    .partner-logo img { max-height: 48px; }
    .partner-logo:hover { transform: translateY(-6px) scale(1.03); }

    .partners-stat { padding: 0 14px; }
    .partners-stat .stat-num { font-size: 1.8rem; }
    .partners-stat .stat-label { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .partners-slider::before,
    .partners-slider::after { width: 45px; }

    .partner-logo {
        width: 125px; height: 78px;
        margin: 0 7px;
        padding: 13px 14px;
        border-radius: 12px;
    }

    .partner-logo img { max-height: 40px; }

    /* نخفي الصف الثاني على الشاشات الصغيرة جداً */
    .row-rtl { display: none; }

    .partners-stats { flex-wrap: wrap; gap: 18px; margin-top: 30px; }
    .partners-stat  { flex: 0 0 45%; }
    .partners-stat + .partners-stat::before { display: none; }
}

/* ─── CARD COMPONENTS ─── */
.card-scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 255, 170, 0.03),
        rgba(92,103,255,0.03),
        transparent);
    transform: translateY(-100%);
    animation: scanMove 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanMove {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.card-corner-elements span {
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid rgba(92, 103, 255, 0.16);
    transition: all 0.35s ease;
    z-index: 2;
}

.card-corner-elements span:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card-corner-elements span:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.card-corner-elements span:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.card-corner-elements span:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.card-cyber-lines span {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.1), transparent);
    pointer-events: none;
    height: 1px;
    width: 100%;
}

.card-cyber-lines span:nth-child(1) {
    top: 30%; left: 0;
    transform: scaleX(0); transform-origin: left;
    animation: lineGrow 5s linear infinite;
}

.card-cyber-lines span:nth-child(2) {
    top: 70%; right: 0;
    transform: scaleX(0); transform-origin: right;
    animation: lineGrow 5s linear infinite 2.5s;
}

@keyframes lineGrow {
    0%   { transform: scaleX(0); opacity: 0; }
    50%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

.card-glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(125deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 55%,
        rgba(255,255,255,0) 100%);
}

/* ─── SERVICES ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(135deg, rgba(12,18,32,0.97) 0%, rgba(16,24,42,0.97) 100%);
    padding: 35px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.025);
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.035);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,170,0.05);
    border-color: rgba(0,255,170,0.1);
}

.service-card:hover .card-corner-elements span {
    border-color: rgba(0,255,170,0.65);
    box-shadow: 0 0 10px rgba(0,255,170,0.35);
    width: 18px; height: 18px;
}

.service-card:hover .card-glare { opacity: 1; }

.service-card i {
    font-size: 2.4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00ffaa, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(0,255,170,0.3));
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
    display: block;
}

.service-card:hover i { filter: drop-shadow(0 0 24px rgba(0,255,170,0.5)); }

.service-card h3 {
    margin-bottom: 12px;
    color: var(--text-bright);
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 700;
}

.service-card p {
    color: rgba(200, 220, 240, 0.5);
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── PORTFOLIO ─── */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 28px;
    border: 1px solid rgba(92, 103, 255, 0.25);
    background: rgba(92,103,255,0.04);
    color: rgba(200, 220, 240, 0.65);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0,255,170,0.12);
    background: rgba(0,255,170,0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.portfolio-item {
    background: linear-gradient(135deg, rgba(12,18,32,0.97), rgba(16,24,42,0.97));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.035);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.portfolio-item.hide { display: none; }

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0,255,170,0.1);
    box-shadow: 0 22px 55px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,170,0.05);
}

.portfolio-img {
    height: 200px;
    background: #050810;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img img { transform: scale(1.08); }

.portfolio-img.vertical { height: 380px; }

.portfolio-img::before {
    content: 'عرض المشروع';
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 12, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--secondary-color);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    letter-spacing: 3px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.portfolio-item:hover .portfolio-img::before { opacity: 1; }

.portfolio-info { padding: 18px 22px; }

.portfolio-info h3 {
    margin-bottom: 6px;
    font-size: 1.02rem;
    color: var(--text-bright);
    font-weight: 700;
}

.portfolio-info p { color: rgba(200,220,240,0.4); font-size: 0.85rem; }

/* ─── LIGHTBOX ─── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 8, 0.97);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(20px);
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content { max-width: 92vw; max-height: 92vh; position: relative; }

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border: 1px solid rgba(0,255,170,0.18);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0,255,170,0.1), 0 0 120px rgba(92,103,255,0.07);
}

.close-lightbox {
    position: absolute;
    top: -46px; right: 0;
    color: var(--secondary-color);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0,255,170,0.2);
    background: rgba(0,255,170,0.04);
}

.close-lightbox:hover {
    color: #fff;
    transform: rotate(90deg);
    background: rgba(0,255,170,0.1);
    border-color: rgba(0,255,170,0.4);
    box-shadow: 0 0 20px rgba(0,255,170,0.2);
}

/* ─── PRICING ─── */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
    gap: 15px;
}

.currency-label {
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 3px;
    font-size: 0.85rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px; height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.05);
    transition: .4s;
    border: 1px solid rgba(0,255,170,0.12);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background: linear-gradient(135deg, #00ffaa, #00c8ff);
    transition: .4s;
    box-shadow: 0 0 10px rgba(0,255,170,0.4);
}

input:checked + .slider { background: rgba(0,255,170,0.08); border-color: rgba(0,255,170,0.25); }
input:checked + .slider:before { transform: translateX(28px); }
.slider.round { border-radius: 28px; }
.slider.round:before { border-radius: 50%; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(12,18,32,0.97) 0%, rgba(16,24,42,0.97) 100%);
    padding: 35px 30px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.025);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 65px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,170,0.05);
    border-color: rgba(0,255,170,0.1);
}

.pricing-card:hover .card-corner-elements span {
    border-color: rgba(0,255,170,0.65);
    box-shadow: 0 0 10px rgba(0,255,170,0.35);
}

.pricing-card.recommended {
    border: 1px solid rgba(0, 255, 170, 0.25);
    box-shadow:
        0 0 0 1px rgba(0,255,170,0.07),
        0 0 50px rgba(0,255,170,0.1),
        0 10px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(0,255,170,0.06);
    background: linear-gradient(135deg, rgba(14,22,36,0.98) 0%, rgba(18,28,48,0.98) 100%);
}

.pricing-card.recommended:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 65px rgba(0,255,170,0.18), 0 28px 65px rgba(0,0,0,0.55);
}

.badge {
    position: absolute;
    top: 18px; right: -32px;
    background: linear-gradient(135deg, #00ffaa, #00c8ff);
    color: #06090f;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-weight: 900;
    font-size: 0.76rem;
    box-shadow: 0 4px 20px rgba(0,255,170,0.4);
    z-index: 3;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--text-bright);
    position: relative;
    z-index: 2;
    font-weight: 800;
}

.price { margin-bottom: 25px; position: relative; z-index: 2; }

.price .currency {
    font-size: 0.95rem;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
}

.price .amount {
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffaa, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0,255,170,0.28));
}

.features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.features li {
    margin-bottom: 13px;
    color: rgba(200,220,240,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.035);
    padding-bottom: 12px;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 18px;
    position: relative;
}

.features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 0.78rem;
}

.features li:last-child { border-bottom: none; }

.pricing-card .btn { width: 100%; position: relative; z-index: 2; }

/* ─── CONTACT ─── */
.contact-content { display: flex; flex-wrap: wrap; gap: 40px; }

.contact-info { flex: 1; min-width: 280px; }

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 1rem;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(12,18,32,0.95), rgba(16,24,42,0.95));
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.035);
    transition: var(--transition);
    gap: 14px;
}

.info-item:hover {
    border-color: rgba(0,255,170,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 25px rgba(0,255,170,0.04);
    transform: translateX(-4px);
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(0,255,170,0.4));
    flex-shrink: 0;
    margin-left: 0;
}

.info-item p { color: rgba(200,220,240,0.6); }

.social-links { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, rgba(12,18,32,0.95), rgba(16,24,42,0.95));
    border-radius: 50%;
    transition: var(--transition);
    color: rgba(200,220,240,0.45);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 1.1rem;
    position: relative;
}

.social-links a:hover {
    border-color: rgba(0,255,170,0.3);
    color: var(--secondary-color);
    box-shadow: 0 0 25px rgba(0,255,170,0.18);
    transform: translateY(-4px);
    background: rgba(0,255,170,0.05);
}

.contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(12,18,32,0.95), rgba(16,24,42,0.95));
    color: rgba(220,240,255,0.82);
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(200,220,240,0.22); }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(0,255,170,0.22);
    box-shadow: 0 0 25px rgba(0,255,170,0.07);
    background: linear-gradient(135deg, rgba(13,20,36,1), rgba(17,26,46,1));
}

/* ─── FOOTER ─── */
footer {
    background: var(--bg-dark);
    color: rgba(200,220,240,0.28);
    text-align: center;
    padding: 24px 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.025);
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.22), rgba(92,103,255,0.22), transparent);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.recommended { transform: none; }
}

@media (max-width: 768px) {
    /* NAV MOBILE */
    .nav-links {
        position: fixed;
        top: 70px; right: 0;
        width: 100%;
        min-height: calc(100svh - 70px);
        background: rgba(4, 6, 10, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 8px;
        display: none;
        border-top: 1px solid rgba(0,255,170,0.06);
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: 10px;
        border: 1px solid transparent;
        transition: var(--transition);
    }

    .nav-links a:hover { border-color: rgba(0,255,170,0.12); background: rgba(0,255,170,0.04); }
    .nav-links a::after { display: none; }

    .hamburger { display: flex; align-items: center; justify-content: center; }

    /* HERO MOBILE */
    .hero {
        min-height: 100svh;
        height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 38px;
        padding-top: 20px;
    }

    .hero-content { max-width: 100%; }
    .hero-content h3 { justify-content: center; font-size: 0.85rem; }
    .hero-content p { margin: 0 auto 30px; }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-secondary { margin-right: 0; }

    .hero-image { width: 100%; }

    .img-placeholder-wrapper { width: 260px; height: 260px; margin: 0 auto; }
    .img-placeholder { width: 260px; height: 260px; font-size: 3.8rem; }
    .img-placeholder-wrapper::before { width: 310px; height: 310px; }
    .img-placeholder-wrapper::after  { width: 356px; height: 356px; }

    /* SECTIONS */
    .section { padding: 60px 0; }

    .section-title {
        font-size: 1.45rem;
        margin-bottom: 38px;
        letter-spacing: 1.5px;
    }

    /* ABOUT */
    .about-content { padding: 30px 20px; }
    .about-content:hover { transform: none; }

    /* SERVICES */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .service-card { padding: 24px 16px; }

    /* PORTFOLIO */
    .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-img { height: 195px; }
    .portfolio-img.vertical { height: 300px; }

    /* PRICING */
    .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
    .pricing-card.recommended { transform: none; }

    /* CONTACT */
    .contact-content { gap: 28px; }
    .contact-info, .contact-form { min-width: unset; width: 100%; }
    .info-item:hover { transform: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .services-grid { grid-template-columns: 1fr; gap: 14px; }

    .portfolio-filter { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 0.82rem; }

    .pricing-card { padding: 26px 18px; }

    .badge {
        top: 14px; right: -36px;
        padding: 4px 46px;
        font-size: 0.7rem;
    }

    .img-placeholder-wrapper { width: 220px; height: 220px; }
    .img-placeholder { width: 220px; height: 220px; font-size: 3.2rem; }
    .img-placeholder-wrapper::before { width: 266px; height: 266px; }
    .img-placeholder-wrapper::after  { width: 306px; height: 306px; }
}

/* ─── ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}