/* ===================================
   Cayvora Cybersecurity - Global Styles
   Dark Cyber-Aesthetic Theme
   =================================== */

/* Local Fonts */

/* poppins-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('/Fonts/fonts/poppins-v24-latin-300.woff2') format('woff2');
}

/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/Fonts/fonts/poppins-v24-latin-400.woff2') format('woff2');
}

/* poppins-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('/Fonts/fonts/poppins-v24-latin-500.woff2') format('woff2');
}

/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/Fonts/fonts/poppins-v24-latin-600.woff2') format('woff2');
}

/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('/Fonts/fonts/poppins-v24-latin-700.woff2') format('woff2');
}

/* noto-sans-arabic-300 - arabic */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 300;
  src: url('/Fonts/fonts/noto-sans-arabic-v33-arabic-300.woff2') format('woff2');
}

/* noto-sans-arabic-regular - arabic */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('/Fonts/fonts/noto-sans-arabic-v33-arabic-400.woff2') format('woff2');
}

/* noto-sans-arabic-500 - arabic */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  src: url('/Fonts/fonts/noto-sans-arabic-v33-arabic-500.woff2') format('woff2');
}

/* noto-sans-arabic-600 - arabic */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  src: url('/Fonts/fonts/noto-sans-arabic-v33-arabic-600.woff2') format('woff2');
}

/* noto-sans-arabic-700 - arabic */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  src: url('/Fonts/fonts/noto-sans-arabic-v33-arabic-700.woff2') format('woff2');
}


/* CSS Variables for Theme Colors */
:root {
  --bg-primary: #080c10;
  --bg-secondary: #0d1117;
  --bg-card: #161b22;
  --accent-primary: #00f5a0;
  --accent-secondary: #00d4aa;
  --accent-red: #ff4444;
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --shadow-glow: 0 0 20px rgba(0, 245, 160, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --whatsapp-green: #25d366;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] body,
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
}

[dir="rtl"] .features-list li {
  border-left: none;
  border-right: 3px solid var(--accent-primary);
}

[dir="rtl"] .features-list li:hover {
  transform: translateX(-10px);
}

[dir="rtl"] .features-list li::before {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .step-card {
  flex-direction: row-reverse;
}

/* RTL nav-links: keep normal flex direction so lang-switcher stays at far right */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   Sticky Top Banner (Dismissible)
   =================================== */
.top-banner {
  background: linear-gradient(90deg, var(--accent-red), #cc0000);
  color: #fff;
  text-align: center;
  padding: 10px 40px 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.top-banner a {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.top-banner a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.top-banner .banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.top-banner .banner-close:hover {
  opacity: 1;
}

.top-banner.hidden {
  display: none;
}

/* ===================================
   Animated Ticker Bar
   =================================== */
.ticker-bar {
  background: linear-gradient(90deg, #1a0000, #330000, #1a0000);
  border-bottom: 1px solid rgba(255, 68, 68, 0.3);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1099;
}

.ticker-content {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
  padding: 10px 0;
  direction: ltr;
  /* Always LTR so scroll animation works in all languages */
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ticker-item .ticker-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
  background-color: rgba(8, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.5);
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.8);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switcher button {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 245, 160, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* ===================================
   Stats Bar
   =================================== */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===================================
   Trust Badges
   =================================== */
.trust-badges {
  padding: 40px 20px;
  background: var(--bg-primary);
}

.badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.badge-item:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.1);
}

.badge-icon {
  font-size: 1.2rem;
}

/* ===================================
   Sections
   =================================== */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Service Cards
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-primary);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 3rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.service-card .btn {
  align-self: center;
}

/* ===================================
   Testimonials
   =================================== */
.testimonials {
  background: var(--bg-secondary);
  padding: 80px 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 4rem;
  color: var(--accent-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #ffd700;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 1.1rem;
}

.author-info h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===================================
   About Page Styles
   =================================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.about-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.features-list {
  list-style: none;
  margin-top: 2rem;
}

.features-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.features-list li:hover {
  background: var(--bg-card);
  transform: translateX(10px);
}

.features-list li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ===================================
   Contact Form
   =================================== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-card a {
  color: var(--accent-primary);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent-primary);
}

/* Step Cards with Large Numbers */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step-number {
  font-size: 60px;
  font-weight: 700;
  color: var(--accent-primary);
  min-width: 80px;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
}

.step-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===================================
   How It Works Page
   =================================== */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s;
}

.process-step:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card);
}

.process-step-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.process-step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.process-step h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.nda-section,
.tools-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.nda-section h2,
.tools-section h2 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.nda-section p,
.tools-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tool-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.tool-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===================================
   Blog Styles
   =================================== */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-search {
  display: flex;
  gap: 0;
  max-width: 350px;
  width: 100%;
}

.blog-search input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px 0 0 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.blog-search button {
  padding: 10px 20px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.blog-search button:hover {
  background: var(--accent-secondary);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.category-btn:hover,
.category-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-primary);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-category-badge {
  background: rgba(0, 245, 160, 0.1);
  color: var(--accent-primary);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-card h3 a:hover {
  color: var(--accent-primary);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card .btn {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Blog Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.9;
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.article-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.article-cta {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.article-cta h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===================================
   Floating WhatsApp Button
   =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: whatsapp-pulse 2s ease infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.cookie-banner a {
  color: var(--accent-primary);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 8px 24px;
  font-size: 0.85rem;
}

/* ===================================
   404 Page
   =================================== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: none;
}

/* ===================================
   Featured Blog on Homepage
   =================================== */
.featured-blog {
  padding: 80px 20px;
}

.featured-blog .blog-grid {
  margin-top: 2rem;
}

/* ===================================
   Footer
   =================================== */
/* ===================================
   Related Articles Section
   =================================== */
.related-articles-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.related-articles-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.related-articles-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.related-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.related-card:hover h3 {
  color: var(--accent-primary);
}

.related-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===================================
   Modern Footer
   =================================== */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-col .logo {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-primary);
}

html[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

html[dir="rtl"] .footer-col ul a:hover {
  transform: translateX(-5px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--accent-primary);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 245, 160, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 1.5rem;
  }
}


/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Counter Animation */
.stat-number[data-target] {
  transition: all 0.3s;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: rgba(8, 12, 16, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  [dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
  }

  [dir="rtl"] .nav-links.active {
    right: 0;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item::after {
    display: none;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .top-banner {
    font-size: 0.8rem;
    padding: 8px 35px 8px 10px;
    flex-direction: column;
    gap: 6px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 5rem;
  }

  /* Hide Arabic option on mobile/phone versions */
  .lang-switcher button[data-lang="ar"] {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .badges-grid {
    gap: 0.75rem;
  }

  .badge-item {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* ===================================
   RTL Global Styles (Arabic)
   =================================== */
html[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] .hero-content,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .section-title,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .footer-col,
html[dir="rtl"] .process-step-content,
html[dir="rtl"] .article-content,
html[dir="rtl"] .article-cta,
html[dir="rtl"] .blog-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .testimonial-text,
html[dir="rtl"] .contact-card {
  text-align: right;
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .logo {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
}

html[dir="rtl"] .btn {
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

/* Fix flex direction or specific margins where LTR was assumed */
html[dir="rtl"] .nav-links {
  text-align: right;
  flex-direction: row;
}

html[dir="rtl"] .hero .btn,
html[dir="rtl"] .contact-card .btn {
  margin-right: 0;
  margin-left: 15px;
}

html[dir="rtl"] .menu-toggle {
  margin-left: 0;
  margin-right: 20px;
}

html[dir="rtl"] blockquote,
html[dir="rtl"] .quote-style {
  border-left: none;
  border-right: 3px solid var(--accent-primary);
  padding-left: 0;
  padding-right: 1.5rem;
}

/* Forms */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .contact-form textarea {
  text-align: right;
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
}

/* Icons spacing */
html[dir="rtl"] i[class*="icon-"],
html[dir="rtl"] span[class*="icon-"] {
  margin-right: 0;
  margin-left: 10px;
}