.contact-bar {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999; /* ← مهم */
}


















/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* GLOBAL */
body {
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
}

.fade {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: black;
  color: #3b82f6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 22px;
  letter-spacing: 2px;
}

/* CURSOR */
.cursor {
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 1000;
}

/* NOISE */
.noise {
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* LANGUAGE SWITCH */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
}

.lang-switch button {
  background: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  margin-left: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}




.hero {
  position: relative;
  z-index: 2;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 80px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  margin-top: 20px;
  opacity: 0.75;
  line-height: 1.6;
}

/* GLITCH */
.glitch {
  font-size: 64px;
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
}

.glitch::before {
  color: #3b82f6;
  animation: glitch 2s infinite;
}

.glitch::after {
  color: #ffffff;
  opacity: 0.4;
  animation: glitch 1.5s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* HERO IMAGE */
.hero-image img {
  width: 320px;
  border-radius: 14px;
  filter: contrast(1.1) brightness(1.05);
  box-shadow: 0 0 40px rgba(59,130,246,0.6);
  transition: transform 0.15s ease-out;
  position: relative;
  z-index: 3;
  will-change: transform;
}

/* BUTTONS */
.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 32px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.primary {
  background: #3b82f6;
  color: black;
}

.primary:hover {
  background: white;
}

.outline {
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.outline:hover {
  background: #3b82f6;
  color: black;
}

/* SECTIONS */
.philosophy {
  padding: 150px 20px;
  text-align: center;
  font-size: 24px;
}

.en {
  margin-top: 20px;
  opacity: 0.6;
}

.links {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-bottom: 120px;
}

.links a {
  color: #3b82f6;
  text-decoration: none;
  border: 1px solid #3b82f6;
  padding: 12px 30px;
  transition: 0.3s;
}

.links a:hover {
  background: #3b82f6;
  color: black;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PAGES */
.page-title {
  text-align: center;
  margin: 80px 0;
  font-size: 48px;
}

.cards,
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 30px;
  padding: 0 80px;
}

.card,
.project {
  background: #111;
  padding: 40px;
  text-align: center;
  transition: 0.3s;
}

.card:hover,
.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(59,130,246,0.6);
}

.cv {
  max-width: 600px;
  margin: auto;
  font-size: 20px;
  line-height: 1.7;
}

.contact-box {
  max-width: 500px;
  margin: auto;
  text-align: center;
  font-size: 20px;
}

.contact-item {
  margin-top: 20px;
}

.contact-item a {
  color: #3b82f6;
  text-decoration: none;
}

.back {
  display: block;
  text-align: center;
  margin: 80px 0;
  color: #3b82f6;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .glitch {
    font-size: 42px;
  }
}











.name-ar {
  font-size: 64px;
  font-weight: bold;
  letter-spacing: 1px;
  direction: rtl;
  text-shadow: 0 0 12px rgba(59,130,246,0.6);
}





.name-ar {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}









/* TOOLTIP */
/* =========================
   PREMIUM FIXED CONTACT BAR
   ========================= */

.contact-bar {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;

  /* الجديد */
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
}
/* Base Button */
.contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: white;
  background: #111;
  position: relative;
  transition: 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 10px 25px rgba(0,0,0,0.6);
}

/* Hover Effect */
.contact-btn:hover {
  transform: translateX(-6px) scale(1.08);
}

/* Tooltip */
.contact-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  background: #111;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(10px);
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.contact-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Platform Colors (Subtle) */
.contact-btn.whatsapp {
  border-left: 3px solid #25d366;
}

.contact-btn.facebook {
  border-left: 3px solid #1877f2;
}

.contact-btn.instagram {
  border-left: 3px solid #d62976;
}

.contact-btn.phone {
  border-left: 3px solid #3b82f6;
}

/* WhatsApp Soft Pulse (Premium) */
.contact-btn.whatsapp {
  animation: softPulse 3s infinite;
}

@keyframes softPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(37,211,102,0.2),
      0 10px 25px rgba(0,0,0,0.6);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(37,211,102,0.6),
      0 10px 35px rgba(37,211,102,0.4);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(37,211,102,0.2),
      0 10px 25px rgba(0,0,0,0.6);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .contact-bar {
    right: 14px;
  }

  .contact-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
}



.contact-bar.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;



}






* {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}



.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 8vw, 64px);
  margin-bottom: 16px;
}

.hero-sub {
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(59,130,246,0.4);
}
