# Ensure chat panel is always on top when open
#sn-chat-panel.open {
  z-index: 100000 !important;
}

/* Chat messages scrollable */
#sn-chat-messages {
  max-height: 320px;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}
/* ---- Chat Widget Always On Top ---- */
#sn-chat-widget,
#sn-chat-widget * {
  z-index: 99999 !important;
}

#sn-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  /* Existing styles will be preserved */
}
/* ============================================================
   SEEK NEXUS — Global Styles
   Dark tech theme | Orange & Blue | Mobile-first
   ============================================================ */

:root {
  --orange: #ff6a00;
  --orange-glow: rgba(255, 106, 0, 0.25);
  --blue: #0096ff;
  --blue-dark: #004d8c;
  --bg-dark: #0a0c10;
  --bg-card: #10141c;
  --bg-alt: #0d1018;
  --border: rgba(255, 255, 255, 0.07);
  --text: #c8d0e0;
  --text-muted: #6b7a99;
  --white: #ffffff;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--white); font-weight: 700; }

span { color: var(--orange); }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--blue); }

/* ---- Navbar ---- */
.sn-navbar {
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: background 0.3s;
}

.sn-brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white) !important;
}
.sn-brand span { color: var(--orange); }

.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--orange) !important; }

/* ---- Buttons ---- */
.sn-btn-primary {
  background: linear-gradient(135deg, var(--orange), #e05500);
  color: #fff;
  border: none;
  padding: 0.65rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: opacity 0.2s, transform 0.2s;
}
.sn-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }

.sn-btn-outline {
/* ---- Chat Modal ---- */
.sn-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,12,16,0.85);
  display: flex; align-items: center; justify-content: center;
}
.sn-modal-content {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 6px 32px 0 #0008;
  padding: 2rem 2.2rem 1.5rem 2.2rem;
  min-width: 320px;
  max-width: 90vw;
  color: var(--text);
}
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.65rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sn-btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Hero ---- */
.sn-hero {
  min-height: 100vh;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Subtle grid overlay */
.sn-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 150, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glowing orb */
.sn-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,106,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.sn-hero .container { position: relative; z-index: 1; }

.sn-overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.sn-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.sn-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ---- Sections ---- */
.sn-section {
  padding: 100px 0;
}

.sn-section-alt {
  background-color: var(--bg-alt);
}

.sn-section-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.sn-section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---- Angled Cards ---- */
.sn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.sn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,106,0,0.04), transparent);
  clip-path: inherit;
  pointer-events: none;
}

.sn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 106, 0, 0.12);
}

.sn-card-wide {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.sn-card-icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.sn-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.sn-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---- Feature Box ---- */
.sn-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  padding: 2.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
  text-align: center;
}

.sn-feature-box i {
  font-size: 3.5rem;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
}

.sn-feature-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.sn-feature-box p { color: var(--text-muted); margin: 0; }

/* ---- List ---- */
.sn-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.sn-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
  color: var(--text);
}

.sn-list li i {
  color: var(--orange);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---- Contact ---- */
.sn-contact {
  background: var(--bg-dark);
}

.sn-input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  padding: 0.75rem 1rem;
  border-radius: 0 !important;
  transition: border-color 0.2s;
}

.sn-input::placeholder { color: var(--text-muted) !important; }
.sn-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--orange) !important;
}

.sn-input option { background: var(--bg-card); color: var(--white); }

.sn-form .sn-btn-primary {
  clip-path: none;
  border-radius: 0;
  font-size: 1rem;
  padding: 0.85rem;
}

/* ---- Footer ---- */
.sn-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.sn-footer-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger child reveals in a row */
.row .reveal:nth-child(2) { transition-delay: 0.1s; }
.row .reveal:nth-child(3) { transition-delay: 0.2s; }
.row .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .sn-section { padding: 70px 0; }
  .sn-hero { padding: 110px 0 60px; }
  .sn-btn-primary, .sn-btn-outline {
    clip-path: none;
    border-radius: 4px;
  }
}

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */

#sn-chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* Toggle button */
#sn-chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #e05500);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(255, 106, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
#sn-chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(255, 106, 0, 0.6);
}

/* Chat panel */
#sn-chat-panel {
  width: 340px;
  height: 480px;
  background: var(--bg-card);
  border: 1px solid rgba(255,106,0,0.25);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,0.6);
}

#sn-chat-panel.open {
  display: flex;
}

/* Header */
#sn-chat-header {
  background: linear-gradient(135deg, #15192a, #0d1018);
  border-bottom: 1px solid rgba(255,106,0,0.2);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sn-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #e05500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.sn-chat-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.2;
}

.sn-chat-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sn-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

#sn-chat-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
#sn-chat-close-btn:hover { color: var(--white); }

/* Messages */
#sn-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sn-msg {
  max-width: 82%;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 2px;
}

.sn-msg-bot {
  background: rgba(0, 150, 255, 0.1);
  border-left: 2px solid var(--blue);
  color: var(--text);
  align-self: flex-start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.sn-msg-user {
  background: rgba(255, 106, 0, 0.12);
  border-right: 2px solid var(--orange);
  color: var(--text);
  align-self: flex-end;
  text-align: right;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.sn-msg-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.7rem 1rem;
}

.sn-msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: typing-bounce 1.2s infinite ease-in-out;
  display: inline-block;
  color: transparent;
}
.sn-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.sn-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Input area */
#sn-chat-input-area {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

#sn-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  outline: none;
}

#sn-chat-input::placeholder { color: var(--text-muted); }

#sn-chat-send {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 1.1rem;
  padding: 0 1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
#sn-chat-send:hover { color: #fff; transform: translateX(2px); }

@media (max-width: 480px) {
  #sn-chat-panel { width: calc(100vw - 32px); height: 420px; }
  #sn-chat-widget { bottom: 20px; right: 16px; }
}

