/* ============================================
   Hero Section - المخطط الإنشائي المتحرك
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-32);
  padding-bottom: var(--space-16);
  background: var(--color-bg-primary);
}

.hero-blueprint-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-blueprint-bg svg {
  width: 100%;
  height: 100%;
}

.blueprint-line {
  stroke: var(--color-border-strong);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 6 6;
}

.blueprint-line.active-draw {
  stroke: var(--color-accent-primary);
  stroke-width: 1.5;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawBlueprint 4s var(--ease-out) forwards;
  animation-delay: 0.4s;
}

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

.blueprint-node {
  fill: var(--color-accent-primary);
  opacity: 0;
  animation: fadeInNode 0.6s var(--ease-out) forwards;
}

@keyframes fadeInNode {
  to { opacity: 1; }
}

.hero-gradient-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, var(--color-bg-primary) 20%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
}

.hero-content h1 .highlight {
  color: var(--color-accent-primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 .highlight svg {
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 100%;
  height: 12px;
}

.hero-content .text-lead {
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-item .icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.trust-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ===== بطاقة المشروع العائمة ===== */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
}

.hero:hover .hero-image-frame img,
.hero-image-frame:hover img {
  transform: scale(1.06);
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  animation: floatCard 5s ease-in-out infinite;
}

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

.floating-card.card-years {
  top: -6%;
  left: -8%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.floating-card.card-years .stat-figure {
  font-size: var(--text-4xl);
}

.floating-card.card-quality {
  bottom: 8%;
  right: -10%;
  animation-delay: 1.2s;
  max-width: 220px;
}

.floating-card.card-quality .icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-2);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.scroll-indicator .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-text-muted);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent-primary);
  border-radius: var(--radius-full);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 400px;
    margin-inline: auto;
  }
  .floating-card.card-years,
  .floating-card.card-quality {
    position: static;
    margin-top: var(--space-4);
    max-width: 100%;
    animation: none;
  }
  .hero-trust-strip {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}
