/* ===================================================================
   Emerging AI Solutions - Custom Styles
   Extends Tailwind CSS with brand-specific design tokens and effects
   =================================================================== */

/* --- CSS Custom Properties ---------------------------------------- */
:root {
  --color-brand-cyan: #22d3ee;
  --color-brand-fuchsia: #d946ef;
  --color-brand-amber: #fbbf24;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* --- Background ambient glow ------------------------------------- */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow::before,
.ambient-glow::after,
.ambient-glow .glow-3 {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  will-change: transform;
}

.ambient-glow::before {
  left: 50%;
  top: 0;
  height: 520px;
  width: 520px;
  transform: translateX(-50%);
  background: rgba(99, 102, 241, 0.15);
  animation: pulse-slow 8s ease-in-out infinite alternate;
}

.ambient-glow::after {
  right: 0;
  top: 160px;
  height: 380px;
  width: 380px;
  background: rgba(217, 70, 239, 0.10);
  animation: pulse-slow 10s ease-in-out 2s infinite alternate;
}

.ambient-glow .glow-3 {
  bottom: 80px;
  left: 0;
  height: 360px;
  width: 360px;
  background: rgba(34, 211, 238, 0.10);
  animation: pulse-slow 9s ease-in-out 4s infinite alternate;
}

@keyframes pulse-slow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.12); }
}

/* --- Header / Navbar ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* --- Card hover effects ------------------------------------------ */
.offering-card {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s ease;
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  border-color: rgba(113, 113, 122, 0.5);
}

.offering-card:hover .card-arrow {
  transform: scale(1.12);
}

.card-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

/* --- CTA buttons ------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #09090b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: transform 0.25s var(--ease-out-expo),
              border-color 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #71717a;
}

@media (min-width: 768px) {
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
  }
}

/* --- Gradient bar ------------------------------------------------ */
.progress-bar {
  background: linear-gradient(
    90deg,
    var(--color-brand-cyan),
    var(--color-brand-fuchsia),
    var(--color-brand-amber)
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

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

/* --- Mobile menu ------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--color-brand-cyan);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a1a1aa;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* --- Scroll reveal animation ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }

/* --- Footer ------------------------------------------------------ */
.footer-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

/* --- Utility: visually hidden ------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip link --------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #09090b;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}
