/* ============================================
   FUTURE DIGITAL — Hero Section
   Split-layout: Text left, Visual right
   Inspired by premium textile branding
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg);
}

/* ── Subtle dot pattern on left side ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--hero-dot) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, black 40%, transparent 60%);
  -webkit-mask-image: linear-gradient(to right, black 40%, transparent 60%);
}

/* ═══════════════════════════════════
   ANIMATED GLOW ORBS (subtle on light bg)
   ═══════════════════════════════════ */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  animation: orbAppear 2s var(--ease-out) forwards;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 165, 0.08) 0%, transparent 70%);
  top: 20%;
  left: 15%;
  animation: orbAppear 2s var(--ease-out) 0.2s forwards, orbFloat1 14s ease-in-out infinite 2s;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 120, 210, 0.06) 0%, transparent 70%);
  bottom: 20%;
  left: 30%;
  animation: orbAppear 2s var(--ease-out) 0.6s forwards, orbFloat2 16s ease-in-out infinite 2.6s;
}

.hero__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  top: 30%;
  right: 35%;
  animation: orbAppear 2s var(--ease-out) 1s forwards, orbFloat3 18s ease-in-out infinite 3s;
}

@keyframes orbAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(20px, -15px); }
  50%      { transform: translate(-15px, 10px); }
  75%      { transform: translate(10px, 20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-20px, -25px); }
  66%      { transform: translate(15px, 15px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-10px, 15px); }
  50%      { transform: translate(20px, -8px); }
  75%      { transform: translate(-8px, -20px); }
}

/* ═══════════════════════════════════
   SPLIT LAYOUT
   ═══════════════════════════════════ */
.hero__split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  min-height: 100vh;
  padding: 0 var(--space-12);
  gap: var(--space-8);
}

/* ═══════════════════════════════════
   TEXT SIDE (Left)
   ═══════════════════════════════════ */
.hero__text-side {
  padding: var(--space-16) 0;
}

/* ── Eyebrow ── */
.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

/* ── Title — "yes we are Future..." ── */
.hero__title {
  margin-bottom: var(--space-6);
  line-height: 1.1;
  opacity: 0;
  animation: heroTitleReveal 1.2s var(--ease-out) 0.5s forwards;
}

.hero__title-line {
  display: block;
}

.hero__title-line--1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: var(--weight-medium);
  font-style: italic;
  color: var(--hero-title-sub);
  letter-spacing: -0.01em;
}

.hero__title-line--2 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: var(--weight-bold);
  color: var(--hero-title-main);
  letter-spacing: var(--tracking-tight);
  font-style: italic;
  display: inline;
}

.hero__title-dots {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: var(--weight-bold);
  color: var(--hero-title-main);
  letter-spacing: var(--tracking-tight);
  font-style: italic;
  display: inline;
}

/* ── Subtitle ── */
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--hero-subtitle);
  max-width: 450px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
}

/* ── Tagline ── */
.hero__tagline {
  font-size: var(--text-base);
  color: var(--hero-tagline);
  max-width: 420px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.1s forwards;
}

/* ── CTA Button ── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--hero-cta-bg);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 82, 165, 0.25);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.3s forwards;
}

.hero__cta:hover {
  background: var(--hero-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 82, 165, 0.35);
}

.hero__cta:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════
   VISUAL SIDE (Right)
   ═══════════════════════════════════ */
.hero__visual-side {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroVisualReveal 1.4s var(--ease-out) 0.6s forwards;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 85%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px var(--hero-shadow);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 8s ease-out;
}

.hero__image-wrapper:hover .hero__image {
  transform: scale(1.03);
}

/* Gradient overlay on the left edge to blend with text side */
.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(var(--hero-overlay-rgb), 0.6) 0%,
    rgba(var(--hero-overlay-rgb), 0.1) 15%,
    transparent 35%
  );
  pointer-events: none;
}

/* ═══════════════════════════════════
   SCROLL INDICATOR
   ═══════════════════════════════════ */
.hero__scroll {
  position: absolute;
  bottom: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--hero-scroll);
  animation: heroFadeUp 1s var(--ease-out) 1.5s forwards;
  opacity: 0;
  z-index: 3;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__scroll-icon {
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--hero-scroll);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--hero-scroll);
  border-radius: var(--radius-full);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ═══════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════ */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroVisualReveal {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

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

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__split {
    grid-template-columns: 1fr;
    padding: var(--space-8);
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__text-side {
    padding: calc(var(--space-16) + 60px) 0 var(--space-8);
    text-align: center;
  }

  .hero__subtitle,
  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    margin: 0 auto;
  }

  .hero__visual-side {
    height: 50vh;
    min-height: 350px;
  }

  .hero__image-wrapper {
    height: 100%;
    border-radius: var(--radius-lg);
  }

  .hero__image-overlay {
    background: linear-gradient(
      to bottom,
      rgba(var(--hero-overlay-rgb), 0.4) 0%,
      transparent 25%
    );
  }

  .hero__scroll {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: var(--space-8) 0 var(--space-12);
  }
}

@media (max-width: 768px) {
  .hero__title-line--1 {
    font-size: 1.5rem;
  }

  .hero__title-line--2,
  .hero__title-dots {
    font-size: 3rem;
  }

  .hero__visual-side {
    height: 40vh;
    min-height: 280px;
  }

  .hero__orb--1 { width: 250px; height: 250px; }
  .hero__orb--2 { width: 180px; height: 180px; }
  .hero__orb--3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
  .hero__split {
    padding: var(--space-4);
  }

  .hero__text-side {
    padding-top: calc(var(--space-12) + 60px);
  }

  .hero__title-line--2,
  .hero__title-dots {
    font-size: 2.5rem;
  }

  .hero__visual-side {
    height: 35vh;
    min-height: 220px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__orb {
    animation: none !important;
    opacity: 1;
  }
}
