/* ══════════════════════════════════════════
   HERO SECTION - Cinematic Split Layout
   ══════════════════════════════════════════ */

/* ── Layout ── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  padding: 120px 40px 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
}

/* ── Logo Side ── */
.hero-logo-side {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) rotate(-10deg);
  animation: heroLogoIn 1s cubic-bezier(.4,0,.2,1) 0.3s forwards;
}

@keyframes heroLogoIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Orbit ring */
.hero-orbit {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(71, 206, 172, 0.6);
  border-right-color: rgba(41, 192, 109, 0.4);
  animation: orbitSpin 6s linear infinite;
  filter: blur(0.5px);
}

.hero-orbit::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary-color, #47ceac);
  border-radius: 50%;
  box-shadow: 0 0 14px 5px rgba(71, 206, 172, 0.7);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* Second orbit */
.hero-orbit-2 {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(41, 192, 109, 0.35);
  border-left-color: rgba(71, 206, 172, 0.25);
  animation: orbitSpin 10s linear infinite reverse;
}

/* Logo glow */
.hero-logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 206, 172, 0.12) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.15); }
}

.hero-logo-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(71, 206, 172, 0.3);
  box-shadow: 0 0 40px rgba(71, 206, 172, 0.25);
  animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Floating particles around logo */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color, #47ceac);
  box-shadow: 0 0 6px 2px rgba(71, 206, 172, 0.5);
  opacity: 0;
  animation: particleDrift 5s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 10%; left: 5%;  animation-delay: 0s;   background: #29c06d; box-shadow: 0 0 6px 2px rgba(41,192,109,0.5); }
.hero-particle:nth-child(2) { top: 80%; left: 10%; animation-delay: 1.2s; }
.hero-particle:nth-child(3) { top: 20%; right: 5%; animation-delay: 2.4s; background: #29c06d; box-shadow: 0 0 6px 2px rgba(41,192,109,0.5); }
.hero-particle:nth-child(4) { top: 75%; right: 8%; animation-delay: 0.8s; }
.hero-particle:nth-child(5) { top: 50%; left: -5%; animation-delay: 3s;   background: #29c06d; box-shadow: 0 0 6px 2px rgba(41,192,109,0.5); }
.hero-particle:nth-child(6) { top: 45%; right: -3%;animation-delay: 1.8s; }

@keyframes particleDrift {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.2); }
}


/* ── Text Side ── */
.hero-text-side {
  flex: 1;
  max-width: 600px;
}

.hero-greeting {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 0.6s;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 0.8s;
}

.hero-title .title-gradient {
  background: linear-gradient(135deg, #47ceac 0%, #29c06d 50%, #34a853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typewriter */
.hero-typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 1s;
}

.hero-typewriter-label {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-typewriter {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color, #47ceac);
  display: inline-block;
  min-width: 2px;
  min-height: 1.5em;
  vertical-align: bottom;
  border-right: 2px solid var(--primary-color, #47ceac);
  padding-right: 4px;
  animation: cursorBlink 0.7s step-end infinite;
}

[dir="rtl"] .hero-typewriter {
  border-right: none;
  border-left: 2px solid var(--primary-color, #47ceac);
  padding-right: 0;
  padding-left: 4px;
}

@keyframes cursorBlink {
  0%, 100% { border-color: var(--primary-color, #47ceac); }
  50%      { border-color: transparent; }
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 1.2s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CTA Buttons ── */
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 1.4s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  border: none;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-btn:hover::before {
  opacity: 1;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #47ceac, #29c06d);
  color: #fff;
  box-shadow: 0 4px 20px rgba(71, 206, 172, 0.35);
}

.hero-btn-primary::before {
  background: linear-gradient(135deg, #5ee0be, #34c07a);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(71, 206, 172, 0.5);
  color: #fff;
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
  border-color: var(--primary-color, #47ceac);
  background: rgba(71, 206, 172, 0.1);
  color: var(--primary-color, #47ceac);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(71, 206, 172, 0.15);
}

/* ── Social Row ── */
.hero-socials {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 1.6s;
}

.hero-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  transition: all 0.35s ease;
  text-decoration: none;
}

.hero-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-social-link.yt:hover    { color: #ff0000; border-color: rgba(255,0,0,0.4);   box-shadow: 0 6px 20px rgba(255,0,0,0.15); }
.hero-social-link.insta:hover { color: #e1306c; border-color: rgba(225,48,108,0.4); box-shadow: 0 6px 20px rgba(225,48,108,0.15); }
.hero-social-link.gh:hover    { color: #fff;    border-color: rgba(255,255,255,0.4); }
.hero-social-link.li:hover    { color: #0a66c2; border-color: rgba(10,102,194,0.4); box-shadow: 0 6px 20px rgba(10,102,194,0.15); }

/* ── Scroll Indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 2s;
  transition: color 0.3s;
  z-index: 5;
}

.hero-scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-indicator i {
  font-size: 1.2rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}


/* ── Tour FAB (Floating Action Button) ── */
.tour-fab {
  z-index: 900;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(71, 206, 172, 0.45),
              0 0 0 0 rgba(71, 206, 172, 0.3);
  animation: fabPulse 2.5s ease-in-out infinite;
  overflow: hidden !important;
  gap: 0 !important;
}

.tour-fab .tour-btn-text {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

.tour-fab i {
  font-size: 1.2rem;
  margin: 0 !important;
}

.tour-fab:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 35px rgba(71, 206, 172, 0.55);
  animation: none;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(71, 206, 172, 0.45), 0 0 0 0 rgba(71, 206, 172, 0.3); }
  50%      { box-shadow: 0 6px 28px rgba(71, 206, 172, 0.45), 0 0 0 10px rgba(71, 206, 172, 0); }
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .hero-text-side {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-typewriter-wrap {
    justify-content: center;
  }

  .hero-desc {
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-logo-side {
    width: 220px;
    height: 220px;
  }

  .hero-logo-img {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 100px 20px 80px;
  }

  .hero-inner {
    gap: 36px;
  }

  .hero-logo-side {
    width: 180px;
    height: 180px;
  }

  .hero-logo-img {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-typewriter {
    font-size: 1.15rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .hero-scroll-indicator {
    bottom: 20px;
  }
}
