/* HabeshaLancers Responsive Breakpoints & Compositor-Only Animations */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-stagger > * {
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--brand-forest);
  font-weight: 600;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-forest);
  animation: habeshaPulse 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes habeshaPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-black);
  color: var(--brand-lime);
  border: 1px solid var(--brand-forest);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.hero-section {
  padding: 68px 0 60px;
  background:
    radial-gradient(circle at 86% 18%, rgba(124, 230, 0, 0.16) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 12% 85%, rgba(13, 107, 42, 0.07) 0%, rgba(255, 255, 255, 0) 40%),
    #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: stretch;
}

.hero-panel {
  border: 1px solid rgba(13, 107, 42, 0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #0A0A0A 0%, #073B17 62%, #0D6B2A 100%);
  color: #FFFFFF;
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel h3,
.hero-panel strong {
  color: #FFFFFF;
}

.hero-panel-step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(124, 230, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.hero-panel-step:hover {
  background: rgba(124, 230, 0, 0.12);
  transform: translateX(4px);
}

.split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-stage.mode-login .auth-showcase-panel,
  .auth-stage.mode-login .auth-form-panel,
  .auth-stage.mode-register .auth-showcase-panel,
  .auth-stage.mode-register .auth-form-panel {
    transform: none;
  }
  .auth-showcase-panel {
    padding: 28px 24px;
  }
  .auth-form-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .site-nav { height: 64px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links,
  .dash-nav-pills {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 80;
  }

  .nav-links.open,
  .dash-nav-pills.open {
    display: flex;
  }

  .dash-user-name-label {
    display: none;
  }

  .ig-slide {
    padding: 28px 24px;
    min-height: 270px;
  }

  .ig-dm-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 540px;
  }

  .ig-dm-sidebar {
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .ig-dm-main {
    height: 480px;
  }

  .notif-panel {
    width: calc(100vw - 24px);
    right: -46px;
  }
}
