/* ═══════════════════════════════════════════════════════════
   🎨 Al-Tayebaat - Animated Hero + Larger Spacing
   Modern Blue animation system
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   ANIMATED HERO (combination: mesh + shapes + particles + wave)
   ═══════════════════════════════════════════════ */

.en-hero-animated {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 8rem;
  background: #0F172A; /* fallback */
  isolation: isolate;
}

/* ─── 1. Animated Mesh Gradient ─── */

.en-hero-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(14, 165, 233, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(59, 130, 246, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 60% 20%, rgba(6, 182, 212, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 40% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 55%),
    linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  animation: meshShift 20s ease-in-out infinite;
  z-index: -3;
}

@keyframes meshShift {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 0%, 50% 100%, 0 0;
    filter: hue-rotate(0deg);
  }
  33% {
    background-position: 30% 70%, 70% 30%, 60% 80%, 40% 20%, 0 0;
    filter: hue-rotate(10deg);
  }
  66% {
    background-position: 70% 30%, 30% 70%, 40% 20%, 60% 80%, 0 0;
    filter: hue-rotate(-10deg);
  }
}

/* ─── 2. Floating Organic Shapes (Blobs) ─── */

.en-hero-shapes {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.en-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: floatShape 25s ease-in-out infinite;
}

.en-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.en-shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  top: 50%;
  right: -100px;
  animation-delay: -8s;
  animation-duration: 30s;
}

.en-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  bottom: -50px;
  left: 30%;
  animation-delay: -15s;
  animation-duration: 35s;
}

.en-shape-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  top: 20%;
  left: 60%;
  animation-delay: -20s;
  animation-duration: 28s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 50px) scale(0.9);
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

/* ─── 3. Floating Particles ─── */

.en-hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.en-particle {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(125, 211, 252, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.8);
  animation: floatParticle 15s linear infinite;
}

.en-particle:nth-child(1)  { left: 5%;  width: 4px; height: 4px; animation-delay: 0s;   animation-duration: 18s; }
.en-particle:nth-child(2)  { left: 15%; width: 8px; height: 8px; animation-delay: -2s;  animation-duration: 22s; }
.en-particle:nth-child(3)  { left: 25%; width: 5px; height: 5px; animation-delay: -5s;  animation-duration: 16s; }
.en-particle:nth-child(4)  { left: 35%; width: 7px; height: 7px; animation-delay: -8s;  animation-duration: 20s; }
.en-particle:nth-child(5)  { left: 45%; width: 4px; height: 4px; animation-delay: -3s;  animation-duration: 24s; }
.en-particle:nth-child(6)  { left: 55%; width: 6px; height: 6px; animation-delay: -10s; animation-duration: 19s; }
.en-particle:nth-child(7)  { left: 65%; width: 5px; height: 5px; animation-delay: -6s;  animation-duration: 23s; }
.en-particle:nth-child(8)  { left: 75%; width: 8px; height: 8px; animation-delay: -12s; animation-duration: 17s; }
.en-particle:nth-child(9)  { left: 85%; width: 4px; height: 4px; animation-delay: -4s;  animation-duration: 21s; }
.en-particle:nth-child(10) { left: 92%; width: 6px; height: 6px; animation-delay: -7s;  animation-duration: 25s; }
.en-particle:nth-child(11) { left: 30%; width: 5px; height: 5px; animation-delay: -14s; animation-duration: 18s; }
.en-particle:nth-child(12) { left: 70%; width: 7px; height: 7px; animation-delay: -11s; animation-duration: 22s; }

@keyframes floatParticle {
  0% {
    transform: translateY(110vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(30px);
    opacity: 0;
  }
}

/* ─── 4. Hero Content (above all animations) ─── */

.en-hero-animated .en-hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.en-hero-animated .en-hero-badge {
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #7DD3FC;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: badgeFloat 4s ease-in-out infinite;
}

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

.en-hero-animated .en-hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(135deg, #FFFFFF 0%, #BFDBFE 50%, #7DD3FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: titleShimmer 6s ease-in-out infinite;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

@keyframes titleShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.en-hero-animated .en-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.en-hero-animated .en-hero-cta {
  margin-top: 2.5rem;
}

.en-hero-animated .en-btn-primary {
  background: var(--en-accent-primary);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6), 0 0 0 8px rgba(14, 165, 233, 0.1);
  }
}

/* ─── 5. SVG Wave at Bottom ─── */

.en-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.en-hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── 6. Scroll Indicator ─── */

.en-hero-scroll {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

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

.en-scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  position: relative;
}

.en-scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ═══════════════════════════════════════════════
   LARGER SPACING (3rem → 5rem)
   ═══════════════════════════════════════════════ */

/* Main content area */
.en-content-main {
  padding: 0 2rem 4rem;
  max-width: 1080px;
}

.en-home-main {
  padding: 0 2rem 4rem;
  margin-top: -4rem;
}

/* Article container - more breathing room */
.en-content-article {
  padding: 5rem 5rem;
  border-radius: var(--en-radius-xl);
}

/* Article paragraphs - more space between */
.en-content-article p {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--en-text-primary);
}

.en-content-article p:last-child {
  margin-bottom: 0;
}

/* Article headings - more space above */
.en-content-article h1,
.en-content-article h2,
.en-content-article h3,
.en-content-article h4 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.en-content-article h1:first-child,
.en-content-article h2:first-child,
.en-content-article h3:first-child {
  margin-top: 0;
}

.en-content-article h2 {
  font-size: 1.875rem;
  padding-bottom: 1rem;
}

/* Lists - more breathing room */
.en-content-article ul,
.en-content-article ol {
  margin: 1.5rem 0 2rem 2rem;
}

.en-content-article li {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

/* Sections - more padding */
.en-section {
  padding: 5rem 3.5rem;
  margin-bottom: 2rem;
}

.en-section-header {
  margin-bottom: 3.5rem;
}

/* Cards grid - more gap */
.en-cards-grid {
  gap: 2rem;
}

.en-feature-card {
  padding: 2.5rem 2rem;
}

/* Essentials grid */
.en-essentials-grid {
  gap: 1.75rem;
}

.en-essential-card {
  padding: 2.25rem 1.5rem;
}

/* Philosophy grid - more gap */
.en-philosophy-grid {
  gap: 2.5rem;
}

.en-philosophy-item {
  padding: 2rem;
}

/* CTA section - more padding */
.en-cta-section {
  padding: 5rem 2.5rem;
}

/* Premium sections */
.premium-section {
  padding: 5rem 3.5rem;
}

/* Section content spacing */
.en-section-title {
  margin-bottom: 1.25rem;
}

.en-section-desc {
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE - keep things sane on mobile
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .en-hero-animated {
    padding: 4rem 1rem 6rem;
  }
  
  .en-hero-scroll {
    display: none;
  }
  
  .en-shape {
    filter: blur(30px);
  }
  
  /* Mobile: reduce padding (5rem too much on small screens) */
  .en-content-article {
    padding: 2.5rem 1.75rem;
  }
  
  .en-content-article p,
  .en-content-article li {
    font-size: 1rem;
    line-height: 1.75;
  }
  
  .en-section {
    padding: 3rem 1.5rem;
  }
  
  .premium-section {
    padding: 3rem 1.5rem;
  }
  
  .en-content-main,
  .en-home-main {
    padding: 0 1rem 3rem;
  }
  
  .en-cta-section {
    padding: 3rem 1.5rem;
  }
  
  .en-feature-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .en-hero-animated {
    padding: 3rem 1rem 5rem;
  }
  
  .en-content-article {
    padding: 2rem 1.25rem;
  }
  
  .en-section {
    padding: 2.5rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════
   PREFERS REDUCED MOTION (accessibility)
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .en-hero-mesh,
  .en-shape,
  .en-particle,
  .en-hero-animated .en-hero-badge,
  .en-hero-animated .en-hero-title,
  .en-hero-animated .en-btn-primary,
  .en-hero-scroll,
  .en-scroll-dot {
    animation: none !important;
  }
}
