/* =========================================================
   WorkForce CMS AI Command Center - style.css
   FINAL CORRECTED version
   ========================================================= */

/* ---------- CSS Variables (Root) ---------- */
:root {
  --accent-cyan: #00f0ff;
  --accent-indigo: #6c63ff;
  --accent-glow: rgba(0, 240, 255, 0.4);
  --bg-dark: #040c1a; /* Dark background */
  --bg-glass: rgba(10, 20, 40, 0.6); /* Glass effect bg */
  --border-color: rgba(255, 255, 255, 0.07);
  --text-light: #dbeaff;
  --text-muted: #8a9fc3; /* Muted text color */
}

/* YEH NAYA AUR SAHI CODE HAI (FIXED) */
html {
  /* Humne HTML ko wapis solid color de diya hai */
  background-color: var(--bg-dark);
}

body {
  /* Humne yahan se 'background-color: transparent !important;' HATA diya hai */
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

/* ---------- Animated Canvas Background (THE FIX) ---------- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Animation ko HTML se yahan move kar diya hai */
  background: linear-gradient(120deg, 
    var(--bg-dark), 
    #003366, /* Dark Blue shade */
    var(--bg-dark),
    #005080  /* Light Blue Glow shade */
  );
  background-size: 400% 400%;
  
  /* Animation ko thora slow kar diya hai */
  animation: animatedBackground 25s ease infinite; 
  
  /* Isay thora visible kar diya hai (Pehle 0.2 tha) */
  opacity: 0.35;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.nav-container {
  max-width: 90rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem; /* px-6 */
  height: 4.5rem; /* 72px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none; /* Add this for links */
}

.nav-links {
  display: none; /* Hidden on mobile */
  align-items: center;
  gap: 1rem; /* gap-4 */
}
@media (min-width: 768px) { /* md: breakpoint */
  .nav-links {
    display: flex;
  }
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}
@media (min-width: 768px) { /* md: breakpoint */
  .mobile-toggle {
    display: none;
  }
}

/* Hide mobile menu by default */
#mobileMenu[aria-hidden="true"] {
  display: none;
}


/* ---------- Global Classes (Jo aapki HTML mein hain) ---------- */

/* The Glass Effect */
.glass {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem; /* rounded-xl or rounded-lg */
  transition: border-color 0.3s ease; /* Smooth transition for border */ /* ADDED THIS */
}

/* Add Hover effect to glass elements */ /* ADDED THIS WHOLE BLOCK */
.glass:hover {
  border-color: var(--accent-cyan); /* Highlight border on hover */
}


/* Muted Text */
.muted {
  color: var(--text-muted);
}

.neon-text {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Orbitron', Inter, sans-serif;
  padding-bottom: 0.1em; /* Gives letters a little extra space below */
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem; /* rounded-md */
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  color: #0c0c24; /* Dark text */
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem; /* rounded-md */
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.2s ease-in-out; 
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Icon Background */
.icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem; /* rounded-lg */
  display: grid;
  place-items: center;
  color: var(--bg-dark); /* Icons inside are dark */
  
  /* --- YEH HAI NAYA FIX --- */
  /* Isay shrink honay se rokay ga */
  flex-shrink: 0; 
}

/* Timeline Dot */
.timeline-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 999px; /* rounded-full */
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--bg-dark);
}

/* --- IMPROVEMENT: Accessibility Focus Outline --- */
/* Hide outline by default */
*:focus {
  outline: none;
}
/* Show outline only when JS adds 'show-focus' class (i.e., user is tabbing) */
body.show-focus *:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}


/* ---------- Hero Section Layout ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: single column */
  gap: 28px;
  align-items: start;
}
@media (min-width: 1024px) { /* lg: or md: breakpoint */
  .hero-grid {
    grid-template-columns: 1fr 520px; /* Desktop: 2 columns */
  }
}

/* Hero right card in mobile */
.hero-right {
  height: auto;
}
@media (min-width: 1024px) { /* lg: breakpoint */
  .hero-right {
    height: 100%; /* Take full height on desktop */
  }
}


/* ---------- Chart Placeholders ---------- */
.chart-lg { min-height: 280px; }
.chart-md { min-height: 200px; }
.chart-sm { min-height: 80px; }

/* ---------- AI Orb Button ---------- */
.ai-orb {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent-cyan), var(--accent-indigo));
  color: var(--bg-dark);
  display: grid;
  place-items: center;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ai-orb:hover {
  transform: scale(1.1);
}

@keyframes pulseOrb {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* ---------- Animated Background Keyframes (NAYA MODERN STYLE) ---------- */
@keyframes animatedBackground {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}
