/* ===================================================================
   ENG. MOHAMED MAHER - Official Portfolio Stylesheet
   Design: Cyber-Dark Luxury / Futuristic Tech Glassmorphism
   Colors:
   - Primary BG: #080c14 / #0b1120
   - Card Surface: rgba(17, 24, 39, 0.75)
   - Electric Blue Accent: #0ea5e9 / #38bdf8
   - Emerald Tech: #10b981 / #34d399
   - Purple Neon: #8b5cf6 / #a855f7
   - WhatsApp Green: #25D366
   =================================================================== */

:root {
  --bg-deep: #060911;
  --bg-main: #0b1120;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(56, 189, 248, 0.35);
  --accent-cyan: #38bdf8;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --whatsapp: #25D366;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-code: 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.18);
  --shadow-gold: 0 0 35px rgba(245, 158, 11, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  text-align: right;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section Header */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

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

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.55);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.brand-titles h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.brand-titles span {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

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

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

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--accent-cyan);
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-bio {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 35px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: var(--transition);
}

.hero-social-btn:hover {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Hero Visual / Avatar Card */
.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-halo {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(139, 92, 246, 0.4) 100%);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-halo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0b1120;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

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

.floating-badge.badge-top {
  top: 10px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge.badge-bottom {
  bottom: 10px;
  left: -20px;
  animation-delay: 2s;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.badge-icon.blue {
  background: rgba(14, 165, 233, 0.2);
  color: var(--accent-cyan);
}

.badge-icon.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.badge-text h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

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

/* ===================================================================
   METRICS BAR
   =================================================================== */
.metrics-strip {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.metrics-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-glow);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  border-left: 1px solid var(--border-glass);
}

.metric-item:last-child {
  border-left: none;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.metric-info h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.metric-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===================================================================
   ABOUT ME SECTION
   =================================================================== */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 50px;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-experience-badge h4 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}

.about-experience-badge p {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 700;
}

.about-content h3 {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.35;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 35px;
}

.about-feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-item i {
  color: var(--accent-cyan);
  font-size: 1.25rem;
  margin-top: 4px;
}

.about-feature-item h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}

.about-feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===================================================================
   FEATURED PROJECTS SECTION
   =================================================================== */
.projects-section {
  padding: 100px 0;
  background: rgba(11, 17, 32, 0.4);
}

.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.project-media-wrap {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #060911;
}

.project-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-media-wrap img {
  transform: scale(1.06);
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.project-badge.ai {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
}

.project-badge.medical {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.project-link-btn:hover {
  color: #ffffff;
  gap: 12px;
}

.project-confidential-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===================================================================
   SKILLS & TECH STACK SECTION
   =================================================================== */
.skills-section {
  padding: 100px 0;
}

.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.cat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.cat-icon-box.code {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
}

.cat-icon-box.server {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.cat-icon-box.network {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.skill-cat-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.skill-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), #3b82f6);
}

.skill-bar-fill.purple {
  background: linear-gradient(90deg, var(--accent-purple), #ec4899);
}

.skill-bar-fill.green {
  background: linear-gradient(90deg, var(--accent-emerald), #14b8a6);
}

/* ===================================================================
   TIMELINE & EXPERIENCE SECTION
   =================================================================== */
.experience-section {
  padding: 100px 0;
  background: rgba(11, 17, 32, 0.4);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
}

.timeline-item {
  position: relative;
  padding-right: 55px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  right: 12px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-glow);
  transform: translateX(-6px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.timeline-date {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   SERVICES SECTION
   =================================================================== */
.services-section {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.service-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-box:hover .service-icon {
  background: var(--accent-cyan);
  color: #060911;
  transform: scale(1.08);
}

.service-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   CONTACT SECTION
   =================================================================== */
.contact-section {
  padding: 100px 0;
  background: rgba(11, 17, 32, 0.5);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-panel h3 {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}

.contact-info-panel p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.channel-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(-6px);
  background: var(--bg-card-hover);
}

.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.channel-icon.wa {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
}

.channel-icon.phone {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
}

.channel-icon.mail {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.channel-icon.social {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.channel-details h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.channel-details p, .channel-details a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  direction: ltr;
  text-align: right;
  display: inline-block;
}

.channel-details a:hover {
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-form-panel h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(6, 9, 17, 0.9);
}

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

.btn-contact-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: #03060c;
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 25px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET, LAPTOP, DESKTOP)
   =================================================================== */

/* --- Laptop & Medium Desktops (1025px - 1200px) --- */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-grid {
    gap: 35px;
  }
}

/* --- Tablets & Small Laptops (769px - 1080px) --- */
@media (max-width: 1080px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    width: 300px;
    height: calc(100vh - 75px);
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 16px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
  }

  /* RTL Drawer */
  html[dir="rtl"] .nav-menu {
    right: 0;
    left: auto;
    border-left: 1px solid var(--border-glass);
    border-right: none;
    transform: translateX(100%);
  }
  html[dir="rtl"] .nav-menu.active {
    transform: translateX(0);
  }

  /* LTR Drawer */
  html[dir="ltr"] .nav-menu {
    left: 0;
    right: auto;
    border-right: 1px solid var(--border-glass);
    border-left: none;
    transform: translateX(-100%);
  }
  html[dir="ltr"] .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .metrics-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

  .skills-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* --- Mobile Landscape & Large Phones (577px - 768px) --- */
@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }

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

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .avatar-halo {
    width: 270px;
    height: 270px;
  }

  .avatar-img {
    width: 245px;
    height: 245px;
  }

  .floating-badge {
    position: static;
    display: inline-flex;
    margin: 12px 6px 0 6px;
  }

  .hero-visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 8px 4px 14px 4px;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-categories-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metrics-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .metric-item {
    border-left: none;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
  }

  html[dir="ltr"] .metrics-box .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

  .metric-item:last-child {
    border-bottom: none;
  }

  .microlink-spotlight {
    padding: 25px 20px;
  }

  .microlink-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Mobile Portrait & Compact Phones (Under 576px) --- */
@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-bio {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .brand-titles h3 {
    font-size: 1rem;
  }

  .brand-titles span {
    font-size: 0.72rem;
  }

  .logo-badge {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .lang-toggle-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  .avatar-halo {
    width: 230px;
    height: 230px;
  }

  .avatar-img {
    width: 210px;
    height: 210px;
  }

  .client-media-wrap {
    height: 190px;
  }

  .project-media-wrap {
    height: 190px;
  }

  .client-body {
    padding: 16px;
  }

  .project-body {
    padding: 18px 16px;
  }

  .contact-form-panel {
    padding: 24px 18px;
  }

  .contact-info-panel {
    padding: 24px 18px;
  }

  .footer {
    padding: 40px 0 25px 0;
  }
}

/* ===================================================================
   MICRO LINK & ENTERPRISE CLIENTS SECTION STYLES
   =================================================================== */
.clients-section {
  padding: 90px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.4) 0%, rgba(6, 9, 17, 0.95) 100%);
}

.microlink-spotlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.15) 50%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 35px;
  margin-bottom: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.microlink-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.microlink-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 991px) {
  .microlink-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.microlink-banner-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.microlink-banner-img:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan);
}

.microlink-info h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.microlink-tagline {
  font-family: var(--font-code);
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.microlink-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.microlink-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.microlink-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.microlink-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.microlink-badge.cyan {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.client-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.client-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15);
}

.client-media-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #020617;
}

.client-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.client-card:hover .client-media-wrap img {
  transform: scale(1.08);
}

.client-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.client-category-tag.hospital {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.client-category-tag.hotel {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
}

.client-category-tag.retail {
  background: rgba(14, 165, 233, 0.85);
  color: #fff;
}

.client-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.client-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.client-location {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.client-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 15px;
  flex-grow: 1;
}

.client-scope {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.client-scope strong {
  color: #fbbf24;
  display: block;
  margin-bottom: 4px;
}

/* ===================================================================
   BILINGUAL (ARABIC / ENGLISH) & UI ENHANCEMENTS
   =================================================================== */

/* Language Visibility */
html[lang="ar"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-ar {
  display: none !important;
}

/* Language Toggle Button in Navbar */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.lang-toggle-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.lang-toggle-btn i {
  font-size: 1rem;
}

/* ===================================================================
   LTR STYLES (When Language is English)
   =================================================================== */
html[dir="ltr"] body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: left;
}

html[dir="ltr"] .brand-titles {
  text-align: left;
}

html[dir="ltr"] .hero-content {
  text-align: left;
}

html[dir="ltr"] .about-content {
  text-align: left;
}

html[dir="ltr"] .about-experience-badge {
  left: auto;
  right: 25px;
}

html[dir="ltr"] .floating-badge.badge-top {
  right: auto;
  left: -25px;
}

html[dir="ltr"] .floating-badge.badge-bottom {
  left: auto;
  right: -25px;
}

html[dir="ltr"] .metrics-box .metric-item {
  border-left: none;
  border-right: 1px solid var(--border-glass);
}

html[dir="ltr"] .metrics-box .metric-item:last-child {
  border-right: none;
}

html[dir="ltr"] .timeline {
  border-right: none;
  border-left: 2px solid rgba(56, 189, 248, 0.3);
  margin-right: 0;
  margin-left: 30px;
}

html[dir="ltr"] .timeline-dot {
  right: auto;
  left: -39px;
}

html[dir="ltr"] .timeline-header {
  flex-direction: row-reverse;
}

html[dir="ltr"] .client-category-tag {
  right: auto;
  left: 12px;
}

html[dir="ltr"] .project-badge {
  right: auto;
  left: 15px;
}

html[dir="ltr"] .project-link-btn i {
  transform: rotate(180deg);
}

html[dir="ltr"] .contact-info-panel {
  text-align: left;
}

html[dir="ltr"] .contact-form-panel {
  text-align: left;
}

html[dir="ltr"] .form-group label {
  text-align: left;
}

html[dir="ltr"] .hero-actions {
  justify-content: flex-start;
}

html[dir="ltr"] .hero-socials {
  justify-content: flex-start;
}

html[dir="ltr"] .about-features-grid .about-feature-item {
  text-align: left;
}

html[dir="ltr"] .skill-cat-header {
  text-align: left;
}

html[dir="ltr"] .service-box {
  text-align: left;
}

html[dir="ltr"] .channel-details {
  text-align: left;
}

html[dir="ltr"] .footer-content {
  text-align: center;
}

/* Button & Card Hover Refinements */
.btn {
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.filter-btn {
  font-family: inherit;
  font-weight: 700;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
