/*
Theme Name:  Luman AI
Theme URI:   https://lumanai.com
Author:      Luman AI
Description: Custom dark glassmorphism theme for Luman AI — fully compatible with Elementor Page Builder. Uses Tailwind CSS via CDN and Material Symbols icons.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:     Private
Text Domain: luman-ai
*/

/* =============================================================
   BASE
   ============================================================= */
html { scroll-behavior: smooth; }

body {
  background-color: #000000;
  color: #e2e2e2;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Fix Elementor adding unwanted margins */
.elementor-section, .elementor-container { max-width: 100% !important; }

/* =============================================================
   DOT GRID BACKGROUND
   ============================================================= */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =============================================================
   AMBIENT ORB
   ============================================================= */
.orb {
  position: absolute;
  filter: blur(120px);
  border-radius: 100%;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* =============================================================
   SCROLL PROGRESS BAR
   ============================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: #54d8e8;
  z-index: 100;
  transition: width 0.1s ease;
}

/* =============================================================
   GLASSMORPHISM CARD
   — Elementor: apply class "glass-card" via Advanced > CSS Classes
   ============================================================= */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
  transform: scale(1.02);
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 0 30px rgba(34,211,238,0.1);
}

/* =============================================================
   SHIMMER BUTTON
   — Elementor: apply class "shimmer-btn" via Advanced > CSS Classes
   ============================================================= */
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(45deg);
  transition: 0.8s; opacity: 0;
}
.shimmer-btn:hover::after { left: 120%; opacity: 1; }

/* =============================================================
   REVEAL ON SCROLL
   — Elementor: apply class "reveal" via Advanced > CSS Classes
     (Intersection Observer in footer.php handles activation)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* =============================================================
   SHOOTING STAR
   ============================================================= */
.shooting-star {
  position: absolute; width: 2px; height: 100px;
  background: linear-gradient(0deg, rgba(84,216,232,1), transparent);
  transform: rotate(45deg); opacity: 0;
}

/* =============================================================
   MATERIAL SYMBOLS
   ============================================================= */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  vertical-align: middle;
}

/* =============================================================
   NAVIGATION
   Elementor: use "Nav Menu" widget OR use Custom HTML widget
   with the pre-built nav markup.
   Active menu item styling is applied via WP's .current-menu-item
   ============================================================= */
#luman-nav ul { list-style: none; margin: 0; padding: 0; }
#luman-nav a {
  color: rgb(161 161 170); /* zinc-400 */
  text-decoration: none;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}
#luman-nav a:hover { color: #ffffff; }

/* Active / current page link */
#luman-nav .current-menu-item > a,
#luman-nav .current_page_item > a,
#luman-nav .current-page-ancestor > a {
  color: #22d3ee;
  border-bottom: 1px solid #22d3ee;
}

/* =============================================================
   HERO PULSE RINGS
   ============================================================= */
@keyframes pulse-intense {
  0%,100% { transform: scale(1); opacity: 0.15; box-shadow: 0 0 0 0 rgba(34,211,238,0); }
  50%      { transform: scale(1.2); opacity: 0.5; box-shadow: 0 0 80px 20px rgba(34,211,238,0.2); }
}
.pulse-ring-hero { animation: pulse-intense 5s cubic-bezier(0.4,0,0.6,1) infinite; }
.pulse-ring      { animation: pulse-intense 5s cubic-bezier(0.4,0,0.6,1) infinite; }

/* =============================================================
   SERVICE CARD ANIMATIONS
   ============================================================= */

/* Typing effect (Chatbots card) */
@keyframes typing { from { width: 0 } to { width: 100% } }
.typing-effect {
  overflow: hidden; white-space: nowrap;
  border-right: 2px solid #22d3ee;
  animation: typing 2s steps(40,end) infinite;
}

/* Task pulse (Workflow card) */
@keyframes pulse-soft {
  0%,100% { transform: scale(1); background: rgba(34,211,238,0.05); }
  50%      { transform: scale(1.05); background: rgba(34,211,238,0.15); }
}
.task-pulse { animation: pulse-soft 3s ease-in-out infinite; }

/* Scrolling list (Marketing card) */
@keyframes scroll-vertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.list-scroll { animation: scroll-vertical 15s linear infinite; }

/* Needle gauge (SEO card) */
@keyframes needle-rotate {
  0%   { transform: rotate(-90deg); }
  50%  { transform: rotate(45deg); }
  100% { transform: rotate(-90deg); }
}
.needle-anim { transform-origin: bottom center; animation: needle-rotate 4s ease-in-out infinite; }

/* Fill bar */
@keyframes fill-bar { 0% { width: 0%; } 100% { width: 92%; } }
.fill-anim { animation: fill-bar 3s cubic-bezier(0.65,0,0.35,1) forwards infinite; }

/* Lead populate (Lead Gen card) */
@keyframes lead-populate {
  0%,10%  { opacity: 0; transform: translateX(-10px); }
  20%,100%{ opacity: 1; transform: translateX(0); }
}
.lead-item { animation: lead-populate 4s ease-out infinite; }
.lead-item:nth-child(2) { animation-delay: 0.5s; }
.lead-item:nth-child(3) { animation-delay: 1s; }

/* Morph shape (Branding card) */
@keyframes shape-shift {
  0%,100% { border-radius: 40% 60% 70% 30%/40% 50% 60% 50%; transform: rotate(0deg) scale(1);   background: #22d3ee; }
  33%     { border-radius: 70% 30% 50% 50%/30% 30% 70% 70%; transform: rotate(120deg) scale(1.1); background: #cebdff; }
  66%     { border-radius: 30% 70% 30% 70%/50% 40% 30% 60%; transform: rotate(240deg) scale(0.9); background: #54d8e8; }
}
.morph-shape { animation: shape-shift 8s ease-in-out infinite; }

/* =============================================================
   SOLUTIONS PAGE — FILTER TABS
   ============================================================= */
.filter-tab {
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgb(161,161,170);
}
.filter-tab:hover { border-color: rgba(34,211,238,0.3); color: #fff; }
.filter-tab.active {
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.5);
  color: #22d3ee;
}

/* =============================================================
   SOLUTIONS PAGE — CATEGORY BADGE COLORS
   ============================================================= */
.badge-operations  { background: rgba(34,211,238,0.12);  color: #22d3ee;  border: 1px solid rgba(34,211,238,0.25); }
.badge-recruitment { background: rgba(167,139,250,0.12); color: #a78bfa;  border: 1px solid rgba(167,139,250,0.25); }
.badge-marketing   { background: rgba(52,211,153,0.12);  color: #34d399;  border: 1px solid rgba(52,211,153,0.25); }
.badge-sales       { background: rgba(251,146,60,0.12);  color: #fb923c;  border: 1px solid rgba(251,146,60,0.25); }
.badge-ecommerce   { background: rgba(244,114,182,0.12); color: #f472b6;  border: 1px solid rgba(244,114,182,0.25); }

.feature-pill {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #bcc9cb;
}
.hot-badge {
  background: linear-gradient(90deg,#ef4444,#f97316);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 9999px;
}
.solution-card { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.solution-card.hidden-card { display: none; }
#empty-state { display: none; }
#empty-state.visible { display: flex; }

/* =============================================================
   FORM STATES
   ============================================================= */
.form-success { background: rgba(34,211,238,0.1) !important; border-color: rgba(34,211,238,0.5) !important; }
.field-error  { border-color: rgba(255,80,80,0.5) !important; }

/* =============================================================
   SEARCH INPUT
   ============================================================= */
.search-input:focus {
  outline: none;
  border-color: rgba(34,211,238,0.6);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}

/* =============================================================
   ELEMENTOR WIDGET OVERRIDES
   These ensure Elementor's native widgets (Heading, Button, etc.)
   respect the Luman AI dark theme.
   ============================================================= */

/* Elementor Heading widget */
.elementor-widget-heading .elementor-heading-title {
  background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Elementor Button widget — primary style */
.elementor-widget-button .elementor-button.elementor-button-luman-primary {
  background: #ffffff;
  color: #000000;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.3s ease;
}
.elementor-widget-button .elementor-button.elementor-button-luman-primary:hover {
  background: #22d3ee;
}

/* Elementor Image widget — add glow */
.elementor-widget-image.luman-glow img {
  box-shadow: 0 0 40px rgba(34,211,238,0.15);
  border-radius: 16px;
}

/* Elementor Divider — style to match theme */
.elementor-widget-divider .elementor-divider-separator {
  border-color: rgba(255,255,255,0.05) !important;
}

/* Elementor Icon Box */
.elementor-widget-icon-box .elementor-icon { color: #22d3ee; }
.elementor-widget-icon-box .elementor-icon-box-title { color: #ffffff; }
.elementor-widget-icon-box .elementor-icon-box-description { color: rgb(113,113,122); }

/* Elementor Counter widget */
.elementor-widget-counter .elementor-counter-number-wrapper { color: #ffffff; }
.elementor-widget-counter .elementor-counter-title { color: rgb(113,113,122); text-transform: uppercase; letter-spacing: 0.05em; }

/* Elementor Form widget (Elementor Pro) */
.elementor-widget-form .elementor-field-group .elementor-field {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}
.elementor-widget-form .elementor-field-group .elementor-field:focus {
  border-color: #22d3ee !important;
}
.elementor-widget-form .elementor-button {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  transition: background 0.3s ease !important;
}
.elementor-widget-form .elementor-button:hover {
  background: #22d3ee !important;
}

/* =============================================================
   MOBILE NAV
   ============================================================= */
@media (max-width: 768px) {
  #luman-nav { padding: 0; }
  .luman-nav-links { display: none; }
  #mobile-menu a {
    color: rgb(161,161,170);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s;
  }
  #mobile-menu a:hover,
  #mobile-menu .current-menu-item a { color: #22d3ee; }
}
