/* ============================================================
   MULTI SKILL HUB — COMPONENTS CSS
   Toast, Progress, Tabs, Chat, Portfolio, etc.
   ============================================================ */

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 14px;
  animation: fadeSlideUp 0.3s ease;
  box-shadow: var(--shadow-card);
  min-width: 260px;
  max-width: 380px;
}

.toast.removing {
  animation: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

/* ============================================================
   PROGRESS BAR (Client dashboard)
   ============================================================ */
.progress-track {
  display: flex;
  align-items: center;
  gap: 0;
  margin: var(--sp-xl) 0;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step:last-child::before { display: none; }

.progress-step.done::before { background: var(--gradient); }

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.progress-step.done .step-dot {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 15px rgba(123, 47, 255, 0.4);
}

.progress-step.active .step-dot {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(123, 47, 255, 0.15);
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

.progress-step.done .step-label { color: var(--text-primary); }
.progress-step.active .step-label { color: var(--accent-purple); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: var(--sp-xl);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(123,47,255,0.3); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   CHAT INTERFACE (Talk page)
   ============================================================ */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.chat-agent-header {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: rgba(255,255,255,0.02);
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 4px;
  animation: pulse-ring 2s infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.message-bubble {
  max-width: 75%;
  animation: fadeSlideUp 0.3s ease;
}

.message-bubble.user { align-self: flex-end; }
.message-bubble.assistant { align-self: flex-start; }

.bubble-content {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.message-bubble.user .bubble-content {
  background: var(--gradient);
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.message-bubble.assistant .bubble-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 16px 16px 16px 4px;
}

.bubble-time {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 0 4px;
}

.message-bubble.user .bubble-time { text-align: right; }

.quick-replies {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-lg);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.quick-reply {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(123,47,255,0.05);
}

.chat-input-area {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.chat-input:focus { border-color: var(--accent-purple); outline: none; }

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--gradient);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.send-btn:hover { opacity: 0.9; transform: scale(1.05); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.2s infinite;
}

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

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s;
}

.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }

.portfolio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-info { padding: var(--sp-lg); }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 6px; }
.portfolio-info .tech { font-size: 12px; color: var(--text-secondary); margin-bottom: var(--sp-md); }

/* ============================================================
   COPY BUTTON (for credentials)
   ============================================================ */
.copy-field {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
}

.copy-value {
  flex: 1;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-value.hidden { -webkit-text-security: disc; }

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--accent-purple); background: rgba(123,47,255,0.1); }
.copy-btn.copied { color: var(--success); }

/* ============================================================
   GOOGLE SIGN IN BUTTON
   ============================================================ */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: white;
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.google-btn:hover { background: #f5f5f5; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.google-logo {
  width: 20px;
  height: 20px;
}

/* ============================================================
   CREDENTIAL CARD
   ============================================================ */
.cred-card {
  background: rgba(123, 47, 255, 0.06);
  border: 1px solid rgba(123, 47, 255, 0.2);
  border-radius: var(--radius-card);
  padding: var(--sp-lg);
}

.cred-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: var(--sp-sm);
}

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.5;
}

.alert-info    { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); color: var(--accent-cyan); }
.alert-success { background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2); color: var(--success); }
.alert-warning { background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.2); color: var(--warning); }
.alert-error   { background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.2); color: var(--error); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: rgba(123,47,255,0.3);
  margin: 0 auto var(--sp-md);
}

.empty-state h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: var(--sp-sm); }
.empty-state p { font-size: 14px; }

/* ============================================================
   INVOICE / QUOTE
   ============================================================ */
.invoice-paper {
  background: #0f0f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 700px;
}

.invoice-header { display: flex; justify-content: space-between; margin-bottom: 40px; }
.invoice-title { font-size: 2rem; font-weight: 800; }
.invoice-number { font-size: 13px; color: var(--text-secondary); }

.invoice-table { width: 100%; border-collapse: collapse; margin: var(--sp-xl) 0; }
.invoice-table th { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); text-transform: uppercase; }
.invoice-table td { padding: 12px 10px; border-bottom: 1px solid rgba(123,47,255,0.06); font-size: 14px; }
.invoice-total { text-align: right; font-size: 1.3rem; font-weight: 700; }

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MISSING FOOTER & UTILITY CLASSES
   ============================================================ */
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-md);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-row:hover { color: var(--text-primary); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 8000;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* Social btn whatsapp variant */
.social-btn.whatsapp {
  background: rgba(37,211,102,0.15);
  border-color: rgba(37,211,102,0.3);
  color: #25D366;
}
.social-btn.whatsapp:hover {
  background: rgba(37,211,102,0.25);
  border-color: #25D366;
}

/* Typography helpers */
.display-sm { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.display-xs { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.25; }

/* Nav link */
.nav-link { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Nav UL reset */
.nav-links li { list-style: none; }

/* ── MOBILE BOTTOM NAV ─────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10,10,15,0.97);
  border-top: 1px solid rgba(123,47,255,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.2s;
  min-width: 48px;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--accent-purple);
}
.mobile-nav-item.active svg { color: var(--accent-purple); }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  .wa-float { bottom: 78px; right: 16px; width: 46px; height: 46px; }
  .chat-widget { bottom: 72px !important; right: 16px; }
  .toast-container { bottom: 80px; right: 12px; left: 12px; }
  .toast { min-width: auto; max-width: 100%; }
}

/* ── FAQ MOBILE LAYOUT FIX ─────────────────────────────── */
@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ── DECORATIVE GRADIENT HEADER LINE ──────────────────── */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,0.4), rgba(0,212,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.navbar.scrolled::after { opacity: 1; }

/* ── FOOTER SHIMMER LINE ──────────────────────────────── */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(123,47,255,0.6) 30%, rgba(0,212,255,0.5) 70%, transparent 100%);
}

/* ── SLIDER DOTS (additional) ─────────────────────────── */
.slider-dots {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 10px;
  min-height: 10px;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(123,47,255,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}
.slider-dot.active {
  width: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7B2FFF, #00D4FF);
}
@media (min-width: 769px) {
  .slider-dots { display: none; }
}

/* ── SWIPE HINT ─────────────────────────────────────────── */
.swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(136,139,160,0.65);
  font-weight: 500;
}
@media (max-width: 768px) {
  .swipe-hint { display: flex; }
}

/* ── HERO SECTION POSITION FIX ──────────────────────────── */
.hero > *:not(.hero-bg):not(.blob-1):not(.blob-2):not(.blob-3):not(.particles-container) {
  position: relative;
  z-index: 1;
}

/* ── MOBILE SPACING UTILITY ─────────────────────────────── */
@media (max-width: 768px) {
  .mb-mobile-sm { margin-bottom: 12px !important; }
  .mb-mobile-md { margin-bottom: 24px !important; }
  .hide-mobile  { display: none !important; }
  .show-mobile  { display: block !important; }
}

/* ── ENHANCED SOCIAL BUTTONS ────────────────────────────── */
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(123,47,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(123,47,255,0.15);
  border-color: rgba(123,47,255,0.5);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.social-btn.whatsapp {
  background: rgba(37,211,102,0.08);
  border-color: rgba(37,211,102,0.2);
  color: #25D366;
}
.social-btn.whatsapp:hover {
  background: rgba(37,211,102,0.2);
  border-color: #25D366;
}

/* ── FOOTER SOCIAL ROW ──────────────────────────────────── */
.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── MOBILE MENU OPEN STATE ─────────────────────────────── */
.mobile-nav.open {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* ── HERO RESPONSIVE Z-INDEX FIX ────────────────────────── */
.hero .container {
  position: relative;
  z-index: 2;
}

