/* ============================================================
   cybhack.css – Comic Cyberpunk Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=IBM+Plex+Sans+Arabic:wght@400;600;700&family=Bangers&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #00E676;
  --secondary: #00C853;
  --mint: #7CFFB2;
  --dark: #0B1F14;
  --dark-card: #0F2A1A;
  --light-bg: #F6FFF9;
  --accent: #FFD600;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --border: #00E676;
  --shadow: 4px 4px 0px #0A0A0A;
  --shadow-hover: 6px 6px 0px #00E676;
  --radius: 10px;
  --border-w: 3px;

  --font-ar: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-en-head: 'Bangers', cursive;
  --font-en-body: 'Inter', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background-color: var(--light-bg);
  color: var(--dark);
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--dark);
  color: var(--mint);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.2;
}

.headline-en {
  font-family: var(--font-en-head);
  letter-spacing: 1px;
}

/* ── Halftone Background ───────────────────────────────────── */
.halftone-bg {
  position: relative;
}

.halftone-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 230, 118, .18) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.halftone-bg>* {
  position: relative;
  z-index: 1;
}

/* ── Halftone Dark ─────────────────────────────────────────── */
.halftone-dark {
  background-color: var(--dark);
  position: relative;
}

.halftone-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 230, 118, .12) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

.halftone-dark>* {
  position: relative;
  z-index: 1;
}

/* ── Comic Card ────────────────────────────────────────────── */
.comic-card {
  background: var(--white);
  border: var(--border-w) solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.comic-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: var(--shadow-hover);
}

.comic-card.dark {
  background: var(--dark-card);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 4px 4px 0px var(--primary);
}

.comic-card.dark:hover {
  box-shadow: 6px 6px 0px var(--mint);
}

/* Wiggle on hover */
@keyframes wiggle {

  0%,
  100% {
    rotate: 0deg;
  }

  25% {
    rotate: -1.5deg;
  }

  75% {
    rotate: 1.5deg;
  }
}

.comic-card:hover {
  animation: wiggle .3s ease;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  border: var(--border-w) solid var(--black);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 3px 3px 0 var(--black);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-primary {
  background: var(--primary);
  color: var(--black);
}

.btn-dark {
  background: var(--dark);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 3px 3px 0 var(--primary);
}

.btn-dark:hover {
  box-shadow: 5px 5px 0 var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 3px 3px 0 var(--primary);
}

/* CTA bubble button */
.btn-bubble {
  background: var(--primary);
  color: var(--black);
  border: var(--border-w) solid var(--black);
  border-radius: 999px;
  padding: .6rem 1.4rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--black);
  position: relative;
}

.btn-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-right: var(--border-w) solid var(--black);
  border-bottom: var(--border-w) solid var(--black);
  transform: rotate(45deg);
}

/* ── Speech Bubble ─────────────────────────────────────────── */
.speech-bubble {
  background: var(--white);
  border: var(--border-w) solid var(--black);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: 24px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-right: var(--border-w) solid var(--black);
  border-bottom: var(--border-w) solid var(--black);
  transform: rotate(45deg);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark, #0A0A0A);
  border-bottom: 3px solid var(--black, #0A0A0A);
  box-shadow: 0 4px 0 var(--primary);
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all .3s;
}

.navbar.scrolled {
  padding: .5rem 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.navbar-logo .logo-stamp {
  font-family: var(--font-en-head);
  font-size: 1.7rem;
  color: var(--primary);
  letter-spacing: 2px;
  border: 3px solid var(--primary);
  padding: .05rem .55rem;
  border-radius: 6px;
  line-height: 1.1;
  box-shadow: 3px 3px 0 var(--accent, #FFD600);
  transform: rotate(-2deg);
  display: inline-block;
  transition: all .25s;
}

.navbar-logo .logo-stamp:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 4px 4px 0 var(--accent, #FFD600);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: nowrap;
}

.navbar-nav li {
  list-style: none;
}

.navbar-nav a {
  color: var(--mint);
  font-weight: 700;
  font-size: .88rem;
  transition: all .2s;
  position: relative;
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: var(--black);
  background: var(--primary);
  border-color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
  transform: translateY(-1px);
}

.navbar-nav a::after {
  display: none;
}

/* ── Mega Menu ─────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--dark, #0A0A0A);
  border: 3px solid var(--black, #0A0A0A);
  box-shadow: 4px 4px 0 var(--primary);
  border-radius: 8px;
  width: 500px;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: 1050;
  display: grid;
  gap: 1rem;
}

.navbar-nav li {
  position: relative;
  /* Setup scope for absolute positioned mega menu */
}

/* Add an invisible bridging area to prevent mouse leave gap */
.navbar-nav li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  /* Bridge gap to mega menu */
  background: transparent;
  z-index: 1040;
}

.navbar-nav li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* Adjust to center properly */
  pointer-events: auto;
}

/* Mega Menu Comic Cards */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mega-menu-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 0 !important;
  text-decoration: none !important;
  color: var(--black) !important;
  overflow: hidden;
  transition: all .2s !important;
  white-space: normal !important;
  /* Override navbar-nav a nowrap */
  box-shadow: 2px 2px 0 var(--black) !important;
  height: 100%;
}

.mega-menu-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 4px 4px 0 var(--primary) !important;
  background: var(--white) !important;
}

.mega-menu-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-bottom: 2px solid var(--black);
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 1.5rem;
}

.mega-menu-content {
  padding: .6rem;
}

.mega-menu-title {
  font-size: .85rem;
  font-weight: 800;
  margin: 0 0 .3rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--black);
}

.mega-menu-desc {
  font-size: .75rem;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* View All Link */
.mega-menu-all {
  display: block;
  text-align: center;
  padding: .5rem !important;
  background: rgba(0, 230, 118, .1);
  color: var(--primary) !important;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 4px;
  margin-top: .5rem;
  transition: all .2s !important;
  border: 2px dashed var(--primary) !important;
  box-shadow: none !important;
}

.mega-menu-all:hover {
  background: var(--primary) !important;
  color: var(--black) !important;
  border-style: solid !important;
  transform: translateY(0) !important;
  box-shadow: 2px 2px 0 var(--black) !important;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

/* CTA button in navbar — comic style */
.navbar-actions .btn-bubble {
  background: var(--primary) !important;
  border: 2.5px solid var(--black) !important;
  color: var(--black) !important;
  box-shadow: 3px 3px 0 var(--black) !important;
  border-radius: 6px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  transition: all .2s !important;
}

.navbar-actions .btn-bubble:hover {
  background: var(--accent, #FFD600) !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0 var(--black) !important;
}

.navbar-actions .btn-bubble::after {
  display: none !important;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 2.5px solid var(--primary);
  border-radius: 6px;
  padding: .4rem .5rem;
  cursor: pointer;
  color: var(--primary);
  width: 40px;
  height: 40px;
  transition: all .2s;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--primary);
}

.nav-toggle:hover {
  background: var(--primary);
  box-shadow: 3px 3px 0 var(--accent, #FFD600);
}

.nav-toggle:hover .burger-line {
  background: var(--black);
}

.burger-line {
  width: 18px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease, background .2s;
  display: block;
}

/* Hamburger → X animation */
.nav-toggle.is-active .burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-active .burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.is-active .burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile WhatsApp icon — hidden */
.nav-wa-btn {
  display: none;
}


/* ── Backdrop ────────────────────────────────────────────── */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1099;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}

.nav-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* ── Mobile Slide-in Drawer ──────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--dark);
  border-left: 3px solid var(--primary);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem .8rem;
  border-bottom: 2px solid rgba(0, 230, 118, .2);
}

.drawer-close {
  background: none;
  border: 2px solid rgba(0, 230, 118, .4);
  color: var(--primary);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background: rgba(0, 230, 118, .1);
  border-color: var(--primary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.4rem;
  color: var(--mint);
  font-size: 1.05rem;
  font-weight: 600;
  border-right: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  position: relative;
}

.drawer-link:hover {
  background: rgba(0, 230, 118, .08);
  color: var(--primary);
  border-right-color: var(--primary);
}

.drawer-link.active {
  color: var(--primary);
  background: rgba(0, 230, 118, .1);
  border-right-color: var(--primary);
}

.drawer-footer {
  padding: 1.2rem;
  border-top: 2px solid rgba(0, 230, 118, .2);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.drawer-link svg {
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .2s;
  color: currentColor;
}

.drawer-link:hover svg,
.drawer-link.active svg {
  opacity: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 3px solid var(--primary);
  color: var(--mint);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-stamp {
  display: inline-block;
  font-family: var(--font-en-head);
  font-size: 2rem;
  color: var(--primary);
  border: 3px solid var(--primary);
  padding: 0 .5rem;
  border-radius: 6px;
  margin-bottom: .8rem;
  transform: rotate(-2deg);
}

.footer h4 {
  color: var(--primary);
  margin-bottom: .8rem;
  font-size: 1rem;
}

.footer ul li {
  margin-bottom: .4rem;
}

.footer ul li a {
  color: var(--mint);
  transition: color .2s;
  font-size: .9rem;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 230, 118, .2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(124, 255, 178, .6);
}

.social-links {
  display: flex;
  gap: .8rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background .2s, color .2s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ── Section Utilities ─────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-sm {
  padding: 3rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .4rem;
}

.section-subtitle {
  color: #5a7a65;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.neon-underline {
  display: inline-block;
  border-bottom: 4px solid var(--primary);
  padding-bottom: 2px;
}

/* ── Cards Grid ────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* ── Service Card ──────────────────────────────────────────── */
.service-card {
  padding: 1.8rem;
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--light-bg);
  border: 3px solid var(--black);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform .2s;
}

.service-card:hover .card-icon {
  transform: rotate(-8deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .9rem;
  color: #4a6a55;
  line-height: 1.6;
}

/* ── Stat Badge ────────────────────────────────────────────── */
.stat-badge {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-badge .stat-value {
  font-family: var(--font-en-head);
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 2px;
}

.stat-badge .stat-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: .3rem;
}

.stat-badge.dark .stat-label {
  color: var(--mint);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 2rem 3rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 230, 118, .1) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--primary);
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  color: rgba(124, 255, 178, .85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Floating animation for hero SVG */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hero-illustration svg,
.hero-illustration img {
  animation: float 3.5s ease-in-out infinite;
  max-width: 420px;
  width: 100%;
}

/* ── Comic Strip Workflow ───────────────────────────────────── */
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.workflow-panel {
  background: var(--white);
  border: var(--border-w) solid var(--black);
  padding: 2rem 1.2rem;
  position: relative;
  text-align: center;
  transition: transform .2s;
}

.workflow-panel:not(:last-child) {
  border-left: none;
}

.workflow-panel:hover {
  transform: translateY(-4px);
  z-index: 2;
}

.workflow-panel .step-num {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: 3px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .9rem;
}

.workflow-panel .step-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}

.workflow-panel h4 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.workflow-panel p {
  font-size: .85rem;
  color: #4a6a55;
}

/* ── Step Cards (كيف نشتغل) — Comic Style ─────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0 .75rem;
  align-items: stretch;
}

.step-card {
  background: var(--dark);
  border: var(--border-w) solid var(--black);
  box-shadow: 4px 4px 0 var(--primary);
  border-radius: 0;
  padding: 2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: transform .18s, box-shadow .18s;
  position: relative;
}

/* Halftone dots overlay on hover — same as .halftone-dark */
.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 230, 118, .1) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.step-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--primary);
}

.step-card:hover::after {
  opacity: 1;
}

.step-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  position: relative;
  z-index: 1;
}

/* Step number badge — bold neon circle */
.step-badge {
  font-family: var(--font-en-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--dark);
  background: var(--primary);
  border: 3px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon in a square comic box */
.step-icon-circle {
  width: 62px;
  height: 62px;
  border: 3px solid var(--primary);
  box-shadow: 3px 3px 0 var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(0, 230, 118, .06);
}

.step-card:hover .step-icon-circle {
  background: rgba(0, 230, 118, .15);
}

.step-card h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  border-bottom: 2px solid rgba(0, 230, 118, .25);
  padding-bottom: .4rem;
  width: 100%;
  text-align: center;
}

.step-card p {
  color: var(--mint);
  font-size: .86rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-tags span {
  font-size: .72rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--dark);
  border: 2px solid var(--black);
  box-shadow: 1px 1px 0 var(--black);
  padding: .15rem .55rem;
  letter-spacing: .3px;
}

/* Comic arrow between steps */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 5.5rem;
  padding: 0 .2rem;
}

/* Responsive step cards */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.wf-timeline {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.wf-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.8rem;
  align-items: start;
}

.wf-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: .2rem;
}

.wf-num {
  font-family: var(--font-en-head);
  font-size: .78rem;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: .35rem;
}

.wf-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 230, 118, .07);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(0, 230, 118, .1);
  transition: box-shadow .3s, transform .3s;
}

.wf-step:hover .wf-icon {
  box-shadow: 0 0 0 10px rgba(0, 230, 118, .15), 0 0 24px rgba(0, 230, 118, .25);
  transform: scale(1.07);
}

.wf-connector {
  flex: 1;
  width: 2px;
  min-height: 55px;
  background: linear-gradient(to bottom, var(--primary), rgba(0, 230, 118, .1));
  margin-top: .4rem;
}

.wf-body {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(0, 230, 118, .18);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
  transition: border-color .3s, box-shadow .3s;
}

.wf-step:hover .wf-body {
  border-color: rgba(0, 230, 118, .45);
  box-shadow: 0 4px 24px rgba(0, 230, 118, .08);
}

.wf-body h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.wf-body p {
  color: rgba(124, 255, 178, .75);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: .8rem;
}

.wf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.wf-tags .tag {
  background: rgba(0, 230, 118, .1);
  color: var(--primary);
  border: 1px solid rgba(0, 230, 118, .25);
  box-shadow: none;
  font-size: .75rem;
}

@media (max-width: 600px) {
  .wf-step {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .wf-icon-wrap {
    flex-direction: row;
    align-items: center;
    gap: .7rem;
    padding-top: 0;
  }

  .wf-num {
    margin-bottom: 0;
  }

  .wf-connector {
    display: none;
  }

  .wf-icon {
    width: 48px;
    height: 48px;
  }

  .wf-body {
    margin-bottom: 1rem;
  }
}

/* ── Solutions Tabs ─────────────────────────────────────────── */
.tabs-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: .55rem 1.2rem;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 2px 2px 0 var(--black);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

/* ── Portfolio Card ─────────────────────────────────────────── */
.portfolio-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.portfolio-card .pf-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-card .pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 20, .85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  gap: .5rem;
  padding: 1rem;
  text-align: center;
}

.portfolio-card:hover .pf-overlay {
  opacity: 1;
}

.portfolio-card .pf-overlay h4 {
  color: var(--primary);
  font-size: 1.1rem;
}

.portfolio-card .pf-overlay p {
  color: var(--mint);
  font-size: .85rem;
}

.portfolio-card .pf-meta {
  padding: 1rem;
}

.pf-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--black);
  margin-bottom: .4rem;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .45rem 1rem;
  font-family: var(--font-ar);
  font-weight: 700;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--black);
  transition: all .2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--dark);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 2px 2px 0 var(--primary);
}

/* ── Testimonials Scattered Comic ──────────────────────────── */
.scattered-comic-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.scatter-item {
  width: 320px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.scatter-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
}

.comic-speech-bubble {
  position: relative;
  background: var(--white);
  border: 3px solid var(--black);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--black);
  margin-bottom: 1.5rem;
}

.comic-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 30px;
  border-width: 20px 20px 0 0;
  border-style: solid;
  border-color: var(--black) transparent transparent transparent;
}

.comic-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 33px;
  border-width: 15px 15px 0 0;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
  z-index: 2;
}

.scatter-author {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-right: .5rem;
}

.scatter-author strong {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--black);
  background: var(--primary);
  padding: .1rem .6rem;
  border: 2px solid var(--black);
  transform: rotate(-2deg);
  display: inline-block;
}

.scatter-stars {
  color: var(--black);
  font-size: 1.1rem;
  background: var(--accent);
  padding: .2rem .5rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  margin-bottom: .8rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .scattered-comic-grid {
    gap: 2rem;
  }

  .scatter-item {
    width: 100%;
    max-width: 400px;
    transform: rotate(0deg) !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  padding: 2rem 1.5rem;
  position: relative;
}

.pricing-card.is-popular {
  background: var(--dark);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
  transform: scale(1.03);
}

.pricing-card.is-popular:hover {
  box-shadow: 6px 6px 0 var(--mint);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: .2rem .9rem;
  font-size: .8rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--black);
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-en-head);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: .2rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: .2rem;
}

.pricing-tagline {
  font-size: .9rem;
  color: #4a6a55;
  margin-bottom: 1.5rem;
}

.pricing-card.is-popular .pricing-tagline {
  color: var(--mint);
}

.pricing-features {
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: .4rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, .1);
  font-size: .9rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--dark);
  color: var(--primary);
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--black);
  font-size: .9rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(0, 230, 118, .05);
}

.check-yes {
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.1rem;
}

.check-no {
  color: #ccc;
}

.check-partial {
  color: var(--accent);
  font-weight: 700;
}

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-card .blog-cover {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.blog-card .blog-body {
  padding: 1.2rem;
}

.blog-card .blog-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  background: var(--primary);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: .15rem .6rem;
  margin-bottom: .6rem;
  box-shadow: 2px 2px 0 var(--black);
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
  line-height: 1.4;
}

.blog-card .blog-meta {
  font-size: .8rem;
  color: #4a6a55;
  display: flex;
  gap: 1rem;
}

/* ── Contact Form ───────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-weight: 700;
  font-size: .9rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 3px solid var(--black);
  border-radius: 8px;
  font-family: var(--font-ar);
  font-size: .95rem;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 3px 3px 0 var(--black);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 3px 3px 0 var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border: 3px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: translate(-2px, -3px) scale(1.05);
  box-shadow: 5px 5px 0 var(--black);
}

/* ── Hero CTA section ───────────────────────────────────────── */
.cta-section {
  background: var(--primary);
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .1) 1px, transparent 1px);
  background-size: 16px 16px;
}

.cta-section>* {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
}

/* ── Page Header Banner ─────────────────────────────────────── */
.page-header {
  background: var(--dark);
  padding: 11rem 2rem 3rem;
  text-align: center;
  border-bottom: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 230, 118, .1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.page-header>* {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-header p {
  color: var(--mint);
  margin-top: .5rem;
  font-size: 1rem;
}

/* ── Alert / Success ────────────────────────────────────────── */
.alert {
  padding: 1rem 1.3rem;
  border: 3px solid var(--black);
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--black);
}

.alert-success {
  background: var(--primary);
  color: var(--dark);
}

.alert-error {
  background: #ff4757;
  color: var(--white);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: #4a6a55;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: #aaa;
}

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--mint);
  box-shadow: 2px 2px 0 var(--black);
  margin: .2rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE — 3-tier breakpoint system
   ══════════════════════════════════════════ */

/* ── Tablet (≤1024px) ──────────────────── */
@media (max-width: 1024px) {

  .container,
  .container-sm {
    padding: 0 1.5rem;
  }

  .navbar {
    padding: .7rem 1.5rem;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .navbar-nav a {
    font-size: .88rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-panel:not(:last-child) {
    border-left: var(--border-w) solid var(--black);
  }

  .workflow-panel:nth-child(1),
  .workflow-panel:nth-child(2) {
    border-bottom: none;
  }

  .pricing-card.is-popular {
    transform: none;
  }
}

/* ── Tablet (≤1160px) ──────────────────── */
@media (max-width: 1160px) {

  /* Navbar — mobile */
  .navbar {
    padding: .6rem 1rem;
    gap: .5rem;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .navbar.scrolled {
    padding: .5rem 1rem;
  }

  .navbar-logo .logo-stamp {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    padding: .05rem .4rem;
    box-shadow: 2px 2px 0 var(--accent, #FFD600);
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Hide desktop nav list and CTA bubble */
  .navbar-nav {
    display: none !important;
  }

  .navbar-actions {
    display: none;
  }
}

/* ── Mobile (≤768px) ───────────────────── */
@media (max-width: 768px) {

  .container,
  .container-sm {
    padding: 0 1rem;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .section-sm {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }



  /* Hero */
  .hero {
    flex-direction: column !important;
    text-align: center;
    padding: 9rem 1rem 3rem;
    min-height: auto;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100% !important;
    order: 2;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Workflow */
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    border-left: var(--border-w) solid var(--black) !important;
  }

  .workflow-panel:not(:last-child) {
    border-bottom: none;
  }

  /* Tabs & filters */
  .tab-btn {
    font-size: .8rem;
    padding: .5rem .9rem;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    font-size: .8rem;
    padding: .4rem .75rem;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .responsive-col {
    grid-template-columns: 1fr !important;
  }

  .resp-col {
    grid-template-columns: 1fr !important;
  }

  /* Pricing */
  .pricing-card.is-popular {
    transform: none;
  }

  /* CTA */
  .cta-section {
    padding: 3rem 1rem;
  }

  .cta-section .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Page header */
  .page-header {
    padding: 10rem 1rem 2rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .footer-grid>.footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .8rem;
  }

  .social-links {
    justify-content: center;
  }

  /* Premium Social Circles */
  .social-circle-premium {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
  }

  .social-circle-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
  }

  .social-circle-premium:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
  }

  .social-circle-premium:hover::before {
    transform: translateX(100%);
  }

  /* Misc */

  /* Misc */
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: .55rem .6rem;
    font-size: .8rem;
  }
}

/* ── Small Phones (≤480px) ─────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 8.5rem .75rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  .hero-subtitle {
    font-size: .92rem;
  }

  .hero-actions .btn {
    font-size: .88rem !important;
    padding: .65rem 1rem !important;
  }

  .btn {
    font-size: .88rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .stat-badge .stat-value {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 1.3rem;
  }

  .workflow-panel {
    padding: 1.5rem 1rem;
  }

  .pricing-price {
    font-size: 1.7rem;
  }

  .pricing-card {
    padding: 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .page-header {
    padding: 8.5rem .75rem 1.8rem;
  }

  .page-header h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .navbar-logo .logo-stamp {
    font-size: 1.4rem;
  }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes bounceIn {
  0% {
    transform: scale(.7);
    opacity: 0;
  }

  60% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.animate-bounce-in {
  animation: bounceIn .5s ease forwards;
}

@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp .6s ease forwards;
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s, transform .6s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-dark {
  color: var(--dark);
}

.text-white {
  color: var(--white);
}

.text-mint {
  color: var(--mint);
}

.bg-dark {
  background: var(--dark);
}

.bg-light {
  background: var(--light-bg);
}

.bg-primary {
  background: var(--primary);
}

.mb-1 {
  margin-bottom: .5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.gap-1 {
  gap: .5rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

/* ── Anti-Copy Protection for Highlights (Global) ────────────────── */
.unselectable-highlight,
.rich-text-container mark,
.rich-text-container span[style*="background-color"],
.rich-text-container span[style*="background"] {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  cursor: default !important;
  pointer-events: none !important;
  /* Prevents selection via mouse drag */
  border-radius: 3px;
  -webkit-touch-callout: none !important;
  /* iOS safari */
}

/* Ensure marks from TinyMCE/RichText are styled even when unselectable */
.rich-text-container mark {
  background-color: var(--accent) !important;
  color: var(--black) !important;
}

/*  AI Translation Protection  */
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}

body {
  top: 0 !important;
}

body,
p,
span,
li,
a,
label,
input,
textarea,
button {
  font-family: var(--font-ar) !important;
}

h1,
h2,
h3,
h4,
.logo-stamp {
  font-family: var(--font-ar) !important;
}

.headline-en {
  font-family: var(--font-en-head) !important;
}

#translateBtn {
  transition: all 0.3s ease;
}

#translateBtn:hover {
  background: var(--primary) !important;
  color: var(--black) !important;
  transform: scale(1.05) rotate(-2deg);
}

/* ── Announcement Bar Refined ────────────────────────────── */
.announcement-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.announcement-bar {
  position: relative;
  width: 100%;
  padding: 0.4rem 0;
  text-align: center;
  border-bottom: 3px solid var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  pointer-events: none;
  opacity: 0.3;
}

.announcement-marquee {
  display: flex;
  white-space: nowrap;
  gap: 4rem;
  animation: marquee 25s linear infinite;
  padding-left: 100%;
}

.announcement-marquee:hover {
  animation-play-state: paused;
}

.announcement-marquee span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

[dir="rtl"] .announcement-marquee {
  animation: marqueeRTL 25s linear infinite;
  padding-right: 100%;
  padding-left: 0;
}

@keyframes marqueeRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}


/* Offset for fixed elements */
body.has-announcement {
  padding-top: 36px;
}

@media (max-width: 768px) {
  .announcement-bar {
    height: 34px;
  }

  .announcement-marquee span {
    font-size: 0.95rem;
  }

  body.has-announcement {
    padding-top: 34px;
  }
}


body.has-announcement .navbar {
  top: 36px;
}

@media (max-width: 768px) {
  body.has-announcement .navbar {
    top: 34px;
  }
}

/* -- Portfolio Premium Cards ------------------------------- */
.portfolio-card-premium {
  position: relative;
  background: var(--dark-card);
  border: 3px solid var(--black);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 6px 6px 0 var(--black);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card-premium:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--black);
  border-color: var(--primary);
}

.pf-img-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #05140b;
  border-bottom: 3px solid var(--black);
}

.pf-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card-premium:hover .pf-main-img {
  transform: scale(1.1);
}

.pf-fallback-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.8;
}

.pf-overlay-secure {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
  z-index: 2;
}

.pf-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--black);
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  padding: 0.2rem 0.8rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  transform: rotate(3deg);
  z-index: 3;
  box-shadow: 2px 2px 0 var(--black);
}

.pf-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pf-title {
  font-family: 'Bangers', cursive;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.pf-excerpt {
  font-size: 0.9rem;
  color: var(--mint);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-footer {
  margin-top: auto;
}

.btn-pf-story {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--black);
  background: var(--primary);
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--black);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 3px 3px 0 var(--black);
}

.btn-pf-story:hover {
  background: var(--accent, #FFD600);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--black);
  color: var(--black);
}

.pf-arrow-icon {
  font-style: normal;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.btn-pf-story:hover .pf-arrow-icon {
  transform: translateX(4px);
}

/* -- AI Chatbot Premium Redesign ----------------------------- */
.chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  pointer-events: none;
  width: 56px;
  height: 56px;
}

[dir='rtl'] .chatbot-wrapper {
  right: auto;
  left: 24px;
}

.chatbot-fab {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #00c853);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: all;
  z-index: 2002;
}

[dir='rtl'] .chatbot-fab {
  right: auto;
  left: 0;
}

.chatbot-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--black);
  font-family: 'Bangers', cursive;
  font-size: 0.65rem;
  padding: 2px 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chatbot-panel {
  width: 380px;
  height: 520px;
  background: #0d0d0d;
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 230, 118, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  z-index: 2001;
}

[dir='rtl'] .chatbot-panel {
  transform-origin: bottom left;
  right: auto;
  left: 0;
}

.chatbot-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.03));
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 230, 118, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.chatbot-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.chatbot-close:hover {
  color: var(--primary);
}

.chatbot-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0a0a0a;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.25);
  border-radius: 10px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border: none;
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
  box-shadow: none;
  animation: msgSlide 0.3s ease;
}

@keyframes msgSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-msg {
  align-self: flex-start;
  background: rgba(0, 230, 118, 0.07);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 2px 14px 14px 14px;
  border-left: 3px solid var(--primary);
}

.user-msg {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 14px 2px 14px 14px;
  border-right: 3px solid rgba(255, 255, 255, 0.15);
}

.typing {
  font-style: italic;
  opacity: 0.5;
}

.chatbot-input-area {
  padding: 14px 16px;
  background: rgba(13, 13, 13, 0.95);
  border-top: 1px solid rgba(0, 230, 118, 0.1);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.08);
}

.chatbot-input-area input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.chatbot-input-area button {
  background: linear-gradient(135deg, var(--primary), #00c853);
  border: none;
  color: var(--black);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.25);
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-input-area button:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
}

/* Force icon colors inside chatbot buttons */
.chatbot-input-area button svg,
.chatbot-input-area button svg * {
  color: var(--black) !important;
  stroke: var(--black) !important;
}

.chatbot-action-btn svg,
.chatbot-action-btn svg * {
  color: currentColor !important;
  stroke: currentColor !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chatbot-action-btn:hover {
  background: rgba(0, 230, 118, 0.1);
  color: var(--primary);
  border-color: rgba(0, 230, 118, 0.25);
}

/* Mobile Chatbot */
@media (max-width: 768px) {
  .chatbot-wrapper {
    bottom: 16px;
    right: 16px;
  }

  [dir='rtl'] .chatbot-wrapper {
    right: auto;
    left: 16px;
  }

  .chatbot-panel {
    width: calc(100vw - 32px);
    height: 70vh;
    max-height: 560px;
    bottom: 68px;
    right: 0;
    border-radius: 16px;
  }

  [dir='rtl'] .chatbot-panel {
    right: auto;
    left: 0;
  }

  .chatbot-messages {
    padding: 12px;
  }

  .msg {
    max-width: 90%;
    font-size: 0.85rem;
  }
}




/* Visibility Utilities */
.desk-only {
  display: block;
}

.mob-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desk-only {
    display: none !important;
  }

  .mob-only {
    display: block !important;
  }
}


/* Visibility Utilities */
.desk-only {
  display: block;
}

.mob-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desk-only {
    display: none !important;
  }

  .mob-only {
    display: block !important;
  }
}