/*═══════════════════════════════════════════════════════════════
  VISION HERO v4 — Clean, seamless, no white lines
═══════════════════════════════════════════════════════════════*/

.vision-hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  outline: none !important;
  margin: 0 !important;
}

.vision-hero::before,
.vision-hero::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
}

/* القسم السابق (Home) */
section:has(+ .vision-hero),
.home:has(+ .vision-hero) {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

section:has(+ .vision-hero)::after,
.home:has(+ .vision-hero)::after {
  display: none !important;
  content: none !important;
}

/* القسم التالي (Skills) */
.vision-hero + section,
.vision-hero + .skills {
  border-top: none !important;
  margin-top: 0 !important;
}

.vision-hero + section::before,
.vision-hero + .skills::before {
  display: none !important;
  content: none !important;
}

.vision-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────
   الإطار الفاخر
   ───────────────────────────────────────────── */

.vision-hero__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.5),
    rgba(255, 217, 122, 0.8),
    rgba(184, 148, 31, 0.5),
    rgba(255, 235, 153, 0.7)
  );
  background-size: 200% 200%;
  padding: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 235, 153, 0.4),
    0 0 30px rgba(212, 175, 55, 0.4),
    0 0 80px rgba(212, 175, 55, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 50px 100px rgba(0, 0, 0, 0.25);
  animation: vision-frame-shimmer 6s ease-in-out infinite;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vision-frame-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.vision-hero__inner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: transparent;
  display: block;
  font-size: 0;
  line-height: 0;
}

.vision-hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
  vertical-align: top;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.8s ease;
}

.vision-hero__frame:hover .vision-hero__image {
  transform: scale(1.05);
  filter: brightness(1.12) contrast(1.08) saturate(1.1);
}

.vision-hero__frame:hover {
  transform: translateY(-6px);
  animation-play-state: paused;
}

/* Overlay */
.vision-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.3) 65%,
    rgba(0, 0, 0, 0.75) 90%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

/* النص */
.vision-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 3rem;
  z-index: 2;
  pointer-events: none;
}

.vision-hero__tagline {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 0.7rem 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff5c8 0%, #ffd97a 50%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9));
}

.vision-hero__tech-stack {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 240, 180, 0.92);
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.vision-hero__tech-stack .tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vision-hero__tech-stack .tech-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd97a, #d4af37);
  box-shadow: 0 0 8px rgba(212, 175, 55, 1);
}

/* جسيمات ذهبية */
.vision-hero__particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0b4, #ffd97a, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 1), 0 0 20px rgba(212, 175, 55, 0.5);
  opacity: 0;
  animation: vision-particle-float 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.vision-hero__particle:nth-child(1) { top: 8%;   left: -10px;  animation-delay: 0s;   }
.vision-hero__particle:nth-child(2) { top: 70%;  right: -10px; animation-delay: 2s;   }
.vision-hero__particle:nth-child(3) { bottom: 15%; left: 8%;   animation-delay: 4s;   }
.vision-hero__particle:nth-child(4) { top: 25%;  right: 8%;   animation-delay: 1s;   }
.vision-hero__particle:nth-child(5) { top: 50%;  left: -8px;  animation-delay: 3.5s; }
.vision-hero__particle:nth-child(6) { bottom: 40%; right: 5%; animation-delay: 5s;   }

@keyframes vision-particle-float {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  50%       { opacity: 1; transform: translate(20px, -25px) scale(1.3); }
}

/* Scroll reveal */
.vision-hero[data-revealed="false"] .vision-hero__frame {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
}

.vision-hero[data-revealed="true"] .vision-hero__frame {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Responsive */
@media (max-width: 768px) {
  .vision-hero { padding: 3rem 1rem 2.5rem; }
  .vision-hero__image { max-height: 460px; object-position: center 15%; }
  .vision-hero__content { padding: 1rem 1.2rem; }
  .vision-hero__frame { border-radius: 20px; }
  .vision-hero__inner { border-radius: 18px; }
  .vision-hero__tagline {
    position: absolute;
    bottom: 0.6rem;
    left: 1.2rem;
    right: 1.2rem;
    margin: 0;
  }
  .vision-hero__overlay {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 55%,
      rgba(0,0,0,0.3) 72%,
      rgba(0,0,0,0.8) 92%,
      rgba(0,0,0,0.95) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .vision-hero__frame, .vision-hero__particle { animation: none !important; }
  .vision-hero[data-revealed="false"] .vision-hero__frame { opacity: 1; transform: none; }
}
/*═══════════════════════════════════════════════════════════════*/
