/* ==========================================================================
   MOHAMED ISMAIL - PERSONAL BRAND WEBSITE STYLESHEET
   ========================================================================== */

/* Import Premium Fonts (including Cairo for Arabic typography) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-heading: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light Theme (Default) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border-color: #E2E8F0;
  
  --primary-brand: #002D62; /* Navy Brand Logo color */
  --primary-brand-rgb: 0, 45, 98;
  --accent-gold: #B45309; /* Amber/Gold */
  --accent-gold-rgb: 180, 83, 9;
  --accent-teal: #0D9488; /* Teal Conversion color */
  --accent-teal-rgb: 13, 148, 136;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 45, 98, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.7);
  --glow-color-1: rgba(0, 45, 98, 0.04);
  --glow-color-2: rgba(13, 148, 136, 0.04);
  --input-bg: #FFFFFF;
}

/* Dark Theme overrides */
.dark {
  --bg-primary: #05070F;
  --bg-secondary: #0A0F1D;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --border-color: #1E293B;
  
  --primary-brand: #3B82F6; /* Brighter blue for dark mode visibility */
  --primary-brand-rgb: 59, 130, 246;
  --accent-gold: #F59E0B;
  --accent-gold-rgb: 245, 158, 11;
  --accent-teal: #14B8A6;
  --accent-teal-rgb: 20, 184, 166;
  
  --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.05);
  --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(10, 15, 29, 0.85);
  --glass-border: rgba(30, 41, 59, 0.7);
  --glow-color-1: rgba(59, 130, 246, 0.08);
  --glow-color-2: rgba(20, 184, 166, 0.08);
  --input-bg: #0F172A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Global overflow prevention */
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden; /* Prevent horizontal scrollbars and layout shifts */
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: var(--primary-brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-teal-rgb), 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-scrolled {
  box-shadow: var(--nav-shadow);
}

.navbar {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: height var(--transition-normal);
}

.header-scrolled .navbar {
  height: 75px; /* Slightly compress when scrolled */
}

.logo-text-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--primary-brand);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.logo-text-link:hover {
  color: var(--accent-teal);
}

.dark .logo-text-link {
  color: #FFFFFF;
}

.logo-text-arabic {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-brand);
  margin-left: 0.75rem;
  direction: rtl;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-brand);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Nav Actions & Theme Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}
.theme-toggle .moon-icon {
  display: block;
}
.dark .theme-toggle .sun-icon {
  display: block;
}
.dark .theme-toggle .moon-icon {
  display: none;
}

/* Hamburger Menu button */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.5rem 2.5rem 2.5rem;
    gap: 1.75rem;
    transition: right var(--transition-normal);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-actions {
    margin-top: 1rem;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-actions .theme-toggle {
    order: -1;
  }
  
  .nav-actions .btn {
    width: 100%;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden; /* Prevent background glows from causing horizontal overflow */
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color-2) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero section text alignment tweaks */

.hero-title-name {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
}

/* Hero Portrait Side */
.hero-image-container {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  aspect-ratio: 4/5;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-container:hover .hero-image-wrapper img {
  transform: scale(1.04);
}

/* Floating Badges on Portrait */
.floating-badge {
  position: absolute;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--card-shadow);
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

.badge-1 {
  bottom: 12%;
  left: -12%;
  animation-delay: 0s;
}

.badge-2 {
  top: 15%;
  right: -12%;
  animation-delay: 3s;
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(var(--accent-teal-rgb), 0.1);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-1 .floating-badge-icon {
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  color: var(--accent-gold);
}

.badge-text-primary {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.badge-text-secondary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

/* Decorative Geometric Elements */
.hero-deco-grid {
  position: absolute;
  top: -20px;
  left: -20px;
  color: var(--border-color);
  z-index: -1;
  opacity: 0.6;
}

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

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 2rem auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image-container {
    max-width: 290px; /* Narrowed to prevent floating badges from overflowing mobile screens */
    margin-top: 1.5rem;
  }
  
  .badge-1 {
    left: -20px; /* Predictable pixel offset instead of percentages */
  }
  
  .badge-2 {
    right: -20px; /* Predictable pixel offset instead of percentages */
  }
}

@media (max-width: 480px) {
  .hero-title-name {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 0.85rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .badge-1 {
    left: -10px;
    padding: 0.65rem 1rem;
  }
  
  .badge-2 {
    right: -10px;
    padding: 0.65rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   Statistics Section
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 0;
  margin-top: -3.5rem;
  z-index: 10;
  position: relative;
}

.stats-card-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-item {
  text-align: center;
  position: relative;
}

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

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-section {
    margin-top: 0;
    padding-top: 3.5rem;
  }
  
  .stats-card-wrapper {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .stat-number {
    font-size: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   About Me Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about-graphics {
  position: relative;
}

.about-image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  aspect-ratio: 1/1;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-circle {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(180, 83, 9, 0.4);
  z-index: 5;
  border: 4px solid var(--bg-secondary);
}

.about-experience-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.about-experience-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.about-lead-intro {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.about-paragraph {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.about-bullets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-bullet-icon {
  color: var(--accent-teal);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.about-bullet-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-graphics {
    max-width: 290px; /* Narrowed to prevent experience circle from overflowing mobile screens */
    margin: 0 auto;
  }
  
  .about-experience-circle {
    right: -10px !important;
    bottom: -10px !important;
    width: 100px !important;
    height: 100px !important;
  }
}

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

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 0.85rem;
  background-color: rgba(var(--primary-brand-rgb), 0.08);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow);
  border-color: rgba(var(--primary-brand-rgb), 0.3);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary-brand);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* Custom coloring for TikTok/Google/Social icons */
.service-card:nth-child(2) .service-icon-box {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000000;
}
.dark .service-card:nth-child(2) .service-icon-box {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.service-card:nth-child(2):hover .service-icon-box {
  background-color: #000000;
  color: #FFFFFF;
}
.dark .service-card:nth-child(2):hover .service-icon-box {
  background-color: #FFFFFF;
  color: #000000;
}

.service-card:nth-child(3) .service-icon-box {
  background-color: rgba(219, 68, 85, 0.08);
  color: #DB4437;
}
.service-card:nth-child(3):hover .service-icon-box {
  background-color: #DB4437;
  color: #FFFFFF;
}

.service-card:nth-child(4) .service-icon-box {
  background-color: rgba(var(--accent-gold-rgb), 0.08);
  color: var(--accent-gold);
}
.service-card:nth-child(4):hover .service-icon-box {
  background-color: var(--accent-gold);
  color: #FFFFFF;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

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

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

/* --------------------------------------------------------------------------
   Brands & Clients Section (Marquee)
   -------------------------------------------------------------------------- */
.marquee-container {
  padding: 3rem 0;
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 25s linear infinite;
  gap: 5rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-item svg {
  height: 36px;
  fill: var(--text-secondary);
  opacity: 0.65;
  transition: opacity var(--transition-fast), fill var(--transition-fast);
}

.marquee-item:hover svg {
  opacity: 1;
  fill: var(--primary-brand);
}

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

/* --------------------------------------------------------------------------
   Results & Case Studies Section
   -------------------------------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.case-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 45, 98, 0.12);
  border-color: rgba(var(--accent-teal-rgb), 0.3);
}

/* CSS Dashboards for Case Studies */
.case-dashboard {
  background-color: #0F172A; /* Dark theme mockup container */
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  height: 220px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Internal Mockup Elements */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-weight: 600;
}

.dash-body {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
  align-items: flex-end;
}

.dash-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 40%;
}

.dash-metric {
  display: flex;
  flex-direction: column;
}

.dash-metric-label {
  font-size: 0.65rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-metric-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #F8FAFC;
}

.dash-metric-value.green {
  color: #10B981;
}

.dash-chart-panel {
  width: 60%;
  height: 100px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 0.25rem;
  border-left: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
  padding-left: 0.75rem;
}

/* Mini Bar Chart Columns */
.chart-bar-col {
  width: 14%;
  background: linear-gradient(to top, #0284C7, #38BDF8);
  border-radius: 0.15rem 0.15rem 0 0;
  height: var(--bar-h, 20%);
  position: relative;
  transition: height var(--transition-slow);
}

.chart-bar-col::after {
  content: var(--label, '');
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: #475569;
}

.chart-bar-col.accent {
  background: linear-gradient(to top, #0D9488, #14B8A6);
}

/* Line Chart Mockup using SVG */
.dash-svg-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dash-svg-path {
  fill: none;
  stroke: #10B981;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s forwards ease-in-out;
}

.dash-svg-area {
  fill: url(#chart-gradient);
  opacity: 0.15;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Card Content Details */
.case-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.case-metrics-footer {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.case-footer-stat {
  display: flex;
  flex-direction: column;
}

.case-footer-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-teal);
  font-family: var(--font-heading);
}

.case-footer-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .case-dashboard {
    height: 200px;
  }
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-card-info {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(var(--primary-brand-rgb), 0.06);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text .lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
}

.contact-method-text .val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  direction: ltr;
  display: inline-block;
}

.contact-method-text .val:hover {
  color: var(--accent-teal);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: var(--card-shadow);
}

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

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

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 3px rgba(var(--primary-brand-rgb), 0.15);
}

.tel-input-group {
  display: flex;
  gap: 0.75rem;
}

.select-country {
  flex: 0 0 160px;
  min-width: 140px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 1.1rem;
  padding-left: 2rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.dark .select-country {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.input-phone {
  flex-grow: 1;
  direction: ltr;
  text-align: left;
}

@media (max-width: 480px) {
  .tel-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .select-country {
    flex: 1 1 100%;
    width: 100%;
  }
}

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

.contact-form-wrapper .btn {
  width: 100%;
  padding: 1rem;
}

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

@media (max-width: 576px) {
  .contact-card-info {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem 0; /* Reduced padding to make footer smaller */
  position: relative;
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr; /* Changed to 2-column layout */
  gap: 3.5rem;
  text-align: right;
  margin-bottom: 2rem; /* Reduced margin */
}

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

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: -0.02em;
}

.dark .footer-logo-text {
  color: #FFFFFF;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 440px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-teal);
}

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

.footer-nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-right var(--transition-fast);
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--primary-brand);
  padding-right: 6px;
}

.dark .footer-nav-link:hover {
  color: #FFFFFF;
}

.footer-contact-info {
  margin-bottom: 1.5rem;
}

.footer-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

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

.footer-bottom-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 2rem;
}

.footer-copyright-bar-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem; /* Small font size as requested */
  color: var(--text-secondary);
  text-align: center;
}

.footer-copyright-text,
.footer-credit-text {
  margin: 0;
  line-height: 1.4;
}

.footer-credit-text a {
  font-weight: 600;
  color: var(--primary-brand);
  transition: color var(--transition-fast);
}

.footer-credit-text a:hover {
  color: var(--accent-teal);
}

.dark .footer-credit-text a {
  color: var(--accent-teal);
}

.dark .footer-credit-text a:hover {
  color: #FFFFFF;
}

/* Mobile responsive footer layout overrides */
@media (max-width: 991px) {
  .footer-grid-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3.5rem 0 2rem 0;
  }
  
  .navbar {
    height: 80px !important;
  }
  .header-scrolled .navbar {
    height: 70px !important;
  }
  .logo-text-link {
    font-size: 1.35rem !important;
  }
  
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-col-title::after {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-description {
    margin: 0 auto;
  }
  .footer-nav-link:hover {
    padding-right: 0;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-phone-link {
    justify-content: center;
  }
}

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   RTL Elements overrides (Arabic Text headings)
   ========================================================================== */
[dir="rtl"] {
  font-family: var(--font-heading);
}

.rtl-heading {
  direction: rtl;
  text-align: right;
  font-family: var(--font-heading);
}

/* Mobile responsive scroll reveal overrides to prevent horizontal overflow */
@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(15px) translateX(0) !important;
  }
}

/* Back to Top Floating Arrow Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Positioned on the right side of the screen */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-brand);
  color: #FFFFFF;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  box-shadow: var(--card-shadow);
  z-index: 99;
}

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

.back-to-top:hover {
  background-color: var(--accent-teal);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--accent-teal-rgb), 0.3);
}

.dark .back-to-top {
  background-color: var(--bg-secondary);
  color: #FFFFFF;
  border-color: var(--border-color);
}

.dark .back-to-top:hover {
  background-color: var(--accent-teal);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
