/*
Theme Name: NovaSignal AI
Theme URI: https://novasignal-ai.online
Author: NovaSignal Team
Author URI: https://novasignal-ai.online
Description: Enterprise AI solutions theme with advanced chatbot, SEO optimization for Canada & USA, and modern dark-mode design.
Version: 1.0.0
License: GPL v2
Text Domain: novasignal-ai
*/

/* ===== CSS VARIABLES ===== */
:root {
  --ns-primary: #00d4ff;
  --ns-secondary: #7b2ff7;
  --ns-bg: #0a0a0f;
  --ns-surface: rgba(255,255,255,0.02);
  --ns-border: rgba(255,255,255,0.06);
  --ns-text: #ffffff;
  --ns-text-muted: rgba(255,255,255,0.55);
  --ns-text-dim: rgba(255,255,255,0.35);
  --ns-radius: 12px;
  --ns-radius-sm: 8px;
  --ns-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ns-bg);
  color: var(--ns-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ns-primary); text-decoration: none; transition: var(--ns-transition); }
a:hover { color: #33ddff; }
img { max-width: 100%; height: auto; display: block; }

/* ===== CONTAINER ===== */
.ns-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.ns-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ns-border);
  transition: var(--ns-transition);
}
.ns-navbar.scrolled { background: rgba(10,10,15,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.ns-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.ns-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600; color: #fff;
}
.ns-logo span { color: var(--ns-primary); }
.ns-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.ns-nav-links a {
  color: var(--ns-text-muted); font-size: 15px; font-weight: 500;
  position: relative;
}
.ns-nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: linear-gradient(90deg, var(--ns-primary), var(--ns-secondary));
  transition: var(--ns-transition);
}
.ns-nav-links a:hover { color: #fff; }
.ns-nav-links a:hover::after { width: 100%; }
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 500;
  border: none; cursor: pointer; transition: var(--ns-transition);
}
.ns-btn-primary {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  color: #fff; box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.ns-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.35); }
.ns-btn-secondary {
  background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.ns-btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }


/* ===== NAVIGATION FIXES ===== */
.ns-desktop-nav {
    display: flex;
    align-items: center;
}
.ns-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ns-nav-links li {
    display: flex;
    align-items: center;
}
.ns-nav-links a {
    color: var(--ns-text-muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--ns-transition);
}
.ns-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ns-primary), var(--ns-secondary));
    transition: var(--ns-transition);
}
.ns-nav-links a:hover {
    color: #fff;
}
.ns-nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.ns-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.ns-hero-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.ns-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ns-hero-badge {
  display: inline-block; background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2); color: var(--ns-primary);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.ns-hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.ns-hero h1 span { color: var(--ns-primary); }
.ns-hero p {
  font-size: 18px; color: var(--ns-text-muted); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.ns-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.ns-section { padding: 100px 0; }
.ns-section-header { text-align: center; margin-bottom: 60px; }
.ns-section-header h2 {
  font-size: 36px; font-weight: 600; margin-bottom: 12px;
}
.ns-section-header p { font-size: 17px; color: var(--ns-text-muted); max-width: 500px; margin: 0 auto; }

/* ===== FEATURES ===== */
.ns-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.ns-feature-card {
  background: var(--ns-surface); border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius); padding: 32px;
  transition: var(--ns-transition); position: relative; overflow: hidden;
}
.ns-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ns-primary), var(--ns-secondary));
  opacity: 0; transition: var(--ns-transition);
}
.ns-feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.ns-feature-card:hover::before { opacity: 1; }
.ns-feature-icon {
  width: 48px; height: 48px; border-radius: var(--ns-radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ns-feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.ns-feature-card p { font-size: 14px; color: var(--ns-text-muted); line-height: 1.6; }

/* ===== PRICING ===== */
.ns-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ns-pricing-card {
  background: var(--ns-surface); border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius); padding: 40px 32px; text-align: center;
  transition: var(--ns-transition); position: relative;
}
.ns-pricing-card.featured {
  background: linear-gradient(180deg, rgba(0,212,255,0.04), rgba(123,47,247,0.04));
  border-color: rgba(0,212,255,0.2); transform: scale(1.03);
}
.ns-pricing-card.featured .ns-badge {
  position: absolute; top: -1px; right: 24px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  color: #fff; font-size: 11px; font-weight: 600; padding: 5px 14px;
  border-radius: 0 0 8px 8px;
}
.ns-pricing-card h3 { font-size: 14px; font-weight: 500; color: var(--ns-text-muted); margin-bottom: 8px; }
.ns-pricing-card .price {
  font-size: 42px; font-weight: 600; margin-bottom: 4px;
}
.ns-pricing-card .price span { font-size: 16px; color: var(--ns-text-dim); font-weight: 400; }
.ns-pricing-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.ns-pricing-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--ns-text-muted);
  display: flex; align-items: center; gap: 10px;
}
.ns-pricing-card ul li svg { flex-shrink: 0; }

/* ===== CHATBOT WIDGET ===== */
#ns-chatbot-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
#ns-chatbot-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,212,255,0.3); transition: var(--ns-transition);
}
#ns-chatbot-toggle:hover { transform: scale(1.08); }
#ns-chatbot-panel {
  position: absolute; bottom: 76px; right: 0;
  width: 380px; max-height: 560px;
  background: #0f0f1a; border: 1px solid var(--ns-border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(20px) scale(0.95);
  pointer-events: none; transition: var(--ns-transition);
}
#ns-chatbot-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ns-chat-header {
  padding: 16px 20px; background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,47,247,0.1));
  border-bottom: 1px solid var(--ns-border); display: flex; align-items: center; gap: 12px;
}
.ns-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  display: flex; align-items: center; justify-content: center;
}
.ns-chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #27c93f; }
.ns-chat-status-dot { width: 7px; height: 7px; background: #27c93f; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.ns-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ns-chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.ns-chat-msg.bot { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.1); color: rgba(255,255,255,0.9); align-self: flex-start; border-bottom-left-radius: 4px; }
.ns-chat-msg.user { background: rgba(123,47,247,0.12); border: 1px solid rgba(123,47,247,0.15); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ns-chat-typing { display: flex; gap: 4px; padding: 12px 16px; }
.ns-chat-typing span { width: 7px; height: 7px; background: var(--ns-text-dim); border-radius: 50%; animation: typing 1.4s infinite; }
.ns-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ns-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }
.ns-chat-input-area { padding: 12px 16px; border-top: 1px solid var(--ns-border); display: flex; gap: 8px; align-items: center; }
.ns-chat-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 14px; color: #fff; font-size: 14px; outline: none;
}
.ns-chat-input:focus { border-color: var(--ns-primary); }
.ns-chat-send {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ns-chat-quick-replies { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.ns-chat-quick-replies button {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--ns-text-muted); padding: 5px 12px; border-radius: 14px; font-size: 12px; cursor: pointer;
  transition: var(--ns-transition);
}
.ns-chat-quick-replies button:hover { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.2); color: var(--ns-primary); }
.ns-chat-voice-btn {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: var(--ns-text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ns-chat-voice-btn.recording { background: rgba(255,50,50,0.2); border-color: rgba(255,50,50,0.4); color: #ff4444; animation: pulse 1s infinite; }

/* ===== FOOTER ===== */
.ns-footer {
  border-top: 1px solid var(--ns-border); padding: 48px 0 24px;
}
.ns-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.ns-footer-brand p { color: var(--ns-text-dim); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.ns-footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.ns-footer ul { list-style: none; padding: 0; }
.ns-footer ul li { margin-bottom: 10px; }
.ns-footer ul li a { color: var(--ns-text-dim); font-size: 14px; }
.ns-footer ul li a:hover { color: var(--ns-primary); }
.ns-footer-bottom {
  border-top: 1px solid var(--ns-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ns-text-dim); font-size: 13px;
}

/* ===== RESPONSIVE ===== */



/* ===== CHATBOT CLOSE BUTTON ===== */
.ns-chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ns-chat-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ===== MOBILE MENU ===== */
.ns-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}
.ns-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.ns-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ns-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.ns-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ns-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.ns-mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.ns-mobile-menu-inner {
    text-align: center;
    padding: 40px 24px;
}
.ns-mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ns-mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.ns-mobile-menu.open .ns-mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.ns-mobile-menu.open .ns-mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }
.ns-mobile-nav-links a {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.ns-mobile-nav-links a:hover {
    color: var(--ns-primary);
}


/* ===== IMAGES & VISUALS ===== */
.ns-img {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.ns-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ns-img:hover img {
  transform: scale(1.05);
}
.ns-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,0.9) 100%);
  pointer-events: none;
}
.ns-img-glow {
  position: relative;
}
.ns-img-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ns-img-glow:hover::before {
  opacity: 0.5;
}

/* Service card images */
.ns-service-img {
  width: 100%;
  height: 200px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -32px -32px 20px;
  width: calc(100% + 64px);
}
.ns-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ns-feature-card:hover .ns-service-img img {
  transform: scale(1.08);
}

/* Hero image styling */
.ns-hero-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,212,255,0.15), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.ns-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,47,247,0.1));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Team avatar images */
.ns-team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.ns-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio/Work gallery */
.ns-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ns-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  cursor: pointer;
}
.ns-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ns-gallery-item:hover img {
  transform: scale(1.1);
}
.ns-gallery-item .ns-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,15,0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ns-gallery-item:hover .ns-gallery-overlay {
  opacity: 1;
}
.ns-gallery-item .ns-gallery-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ns-gallery-item .ns-gallery-category {
  color: var(--ns-primary);
  font-size: 12px;
}

/* Video thumbnail */
.ns-video-thumb {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.ns-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-video-thumb .ns-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,212,255,0.3);
  transition: all 0.3s ease;
}
.ns-video-thumb:hover .ns-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(0,212,255,0.4);
}

/* Before/After comparison */
.ns-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ns-compare-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.ns-compare-item img {
  width: 100%;
  height: auto;
  display: block;
}
.ns-compare-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Image with floating card */
.ns-img-float {
  position: relative;
}
.ns-img-float .ns-float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Parallax effect for hero images */
.ns-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,47,247,0.05));
}

/* Image caption */
.ns-img-caption {
  text-align: center;
  color: var(--ns-text-dim);
  font-size: 13px;
  margin-top: 12px;
}

/* Full-width section image */
.ns-section-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

/* Image grid for portfolio */
.ns-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ns-img-grid .ns-img-grid-item:first-child {
  grid-row: span 2;
}
.ns-img-grid-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.ns-img-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ns-img-grid-item:hover img {
  transform: scale(1.05);
}

/* Stats with image background */
.ns-stats-bg {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.ns-stats-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(2px);
}
.ns-stats-bg .ns-stats-content {
  position: relative;
  z-index: 1;
}

/* Client logo grid */
.ns-client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.ns-client-logos img {
  height: 32px;
  width: auto;
  filter: grayscale(100%) brightness(2);
  transition: all 0.3s ease;
}
.ns-client-logos img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Testimonial with photo */
.ns-testimonial-photo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ns-testimonial-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,212,255,0.3);
}

/* Process step with image */
.ns-process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ns-process-step-img {
  width: 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.ns-process-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE IMAGES ===== */
@media (max-width: 768px) {
  .ns-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .ns-img-grid {
    grid-template-columns: 1fr;
  }
  .ns-img-grid .ns-img-grid-item:first-child {
    grid-row: span 1;
  }
  .ns-process-step {
    flex-direction: column;
  }
  .ns-process-step-img {
    width: 100%;
    height: 200px;
  }
  .ns-compare {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1024px) {
  .ns-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .ns-hero p { margin: 0 auto 32px; }
  .ns-hero-buttons { justify-content: center; }
  .ns-pricing-grid { grid-template-columns: 1fr; }
  .ns-pricing-card.featured { transform: none; }
  .ns-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ns-desktop-nav { display: none; }
  .ns-mobile-toggle { display: flex; }
  .ns-section { padding: 60px 0; }
  .ns-features-grid { grid-template-columns: 1fr; }
  .ns-footer-grid { grid-template-columns: 1fr; }
  #ns-chatbot-panel { width: calc(100vw - 48px); right: -12px; }
  .ns-hero h1 { font-size: 32px; }
  .ns-section-header h2 { font-size: 28px; }
}
