:root {
  --ns-bg: #f3f4f6;
  --ns-bg-alt: #e5e7eb;
  --ns-surface: #ffffff;
  --ns-surface-alt: #f9fafb;
  --ns-accent: #2563eb;
  --ns-accent-soft: rgba(37, 99, 235, 0.12);
  --ns-accent-strong: #1d4ed8;
  --ns-text: #0f172a;
  --ns-muted: #6b7280;
  --ns-border: rgba(148, 163, 184, 0.5);
  --ns-radius-lg: 20px;
  --ns-radius-md: 14px;
  --ns-radius-pill: 999px;
  --ns-shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.12);
  --ns-shadow-subtle: 0 16px 40px rgba(15, 23, 42, 0.09);
  --ns-gradient-hero: radial-gradient(circle at top left, #dbeafe, #eff6ff 55%);
  --ns-gradient-card: linear-gradient(145deg, #ffffff, #f9fafb);
  --ns-gradient-border: linear-gradient(135deg, rgba(191, 219, 254, 0.9), rgba(56, 189, 248, 0.8));
  --ns-blur-card: blur(18px);
}



*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.65), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(167, 243, 208, 0.55), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(244, 244, 245, 1), transparent 55%),
    #f3f4f6;
  color: var(--ns-text);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.15;
  background-image: radial-gradient(circle at 2px 2px, rgba(148, 163, 184, 0.5) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: 80px;
}

.ns-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ns-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: none;
  background: #f3f3f3;
  border-bottom: 1px solid #e1e1e1;
}

.ns-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ns-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(191, 219, 254, 0.9), #ffffff);
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.35);
}

.ns-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ns-nav a {
  position: relative;
  color: #0066b3;
  font-weight: 600;
  transition: color 0.22s ease;
}

.ns-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #0ea5e9);
  transition: width 0.2s ease-out;
}

.ns-nav a:hover {
  color: #004f8a;
}

.ns-nav a:hover::after,
.ns-nav a.active::after {
  width: 100%;
}

.ns-nav a.active {
  color: #111827;
}

.ns-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.ns-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ns-text);
}

.ns-hero {
  padding: 5.8rem 0 3.8rem;
  position: relative;
  background-color: #021739;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.6), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(8, 47, 73, 0.8), transparent 55%),
    linear-gradient(135deg, #010b1f, #021739 45%, #020b2a);
  color: #e5f3ff;
  overflow: hidden;
}

.ns-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(30, 64, 175, 0.5), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ns-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.ns-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #22d3ff;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.ns-hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
  letter-spacing: -0.03em;
  color: #e5f3ff;
}

.ns-hero-subtitle {
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.97rem;
  max-width: 35rem;
  line-height: 1.7;
}

.ns-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.7rem;
}

.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ns-radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease-out;
  background: transparent;
  color: var(--ns-text);
}

.ns-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: transparent;
  color: #0b1120;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.ns-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(56, 189, 248, 0.6);
}

.ns-btn-outline {
  border-color: var(--ns-border);
  background: #ffffff;
}

.ns-btn-outline:hover {
  background: #e5f0ff;
  border-color: rgba(37, 99, 235, 0.8);
}

.ns-btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

.ns-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ns-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--ns-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), #ffffff);
  font-size: 0.75rem;
  color: var(--ns-muted);
}

.ns-pill-icon {
  font-size: 0.9rem;
}

.ns-hero-right {
  display: flex;
  justify-content: flex-end;
}

.ns-hero-card {
  width: 100%;
  max-width: 360px;
  padding: 1.8rem 1.6rem;
  border-radius: 26px;
  background:
    linear-gradient(var(--ns-blur-card), var(--ns-blur-card)),
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.95), #ffffff);
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  border-image: var(--ns-gradient-border) 1;
  box-shadow: var(--ns-shadow-soft);
}

.ns-hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.9rem;
}

.ns-hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: white;
}

.ns-section {
  padding: 3.5rem 0;
}

.ns-section-alt {
  background: radial-gradient(circle at top left, #eef2ff, #f9fafb);
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ns-mission-strip {
  background-color: #021739;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.6), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(8, 47, 73, 0.8), transparent 55%),
    linear-gradient(135deg, #010b1f, #021739 45%, #020b2a);
  color: #e5f3ff;
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.ns-mission-strip h3 {
  color: #e5f3ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.ns-mission-strip p {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.85rem;
}

.ns-section-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.ns-section-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.ns-section-header p {
  margin: 0.3rem 0 0;
}

.ns-grid {
  display: grid;
  gap: 1.8rem;
}

.ns-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ns-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ns-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ns-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--ns-radius-lg);
  background: var(--ns-gradient-card);
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--ns-shadow-subtle);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.ns-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 55%);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transform: translateY(20%);
}

.ns-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.ns-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
}

.ns-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), #ffffff);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.4);
}

.ns-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.ns-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ns-muted);
  line-height: 1.7;
}

.ns-filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.ns-filter-tags button {
  border-radius: var(--ns-radius-pill);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  color: var(--ns-muted);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.ns-filter-tags button.active,
.ns-filter-tags button:hover {
  background: var(--ns-accent-soft);
  color: var(--ns-text);
  border-color: rgba(56, 189, 248, 0.9);
}

.ns-portfolio-item {
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.ns-portfolio-thumb {
  border-radius: 14px;
  background: radial-gradient(circle at top left, #e5e7eb, #f9fafb);
  min-height: 140px;
}

.ns-portfolio-item::after {
  content: "View Project";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-accent-strong);
  padding-bottom: 0.4rem;
  opacity: 0;
  transition: height 0.22s ease-out, opacity 0.22s ease-out;
}

.ns-portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

.ns-portfolio-item:hover::after {
  height: 40%;
  opacity: 1;
}

.ns-skeleton {
  position: relative;
  overflow: hidden;
}

.ns-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    110deg,
    transparent,
    rgba(55, 65, 81, 0.75),
    transparent
  );
  animation: ns-shine 1.4s infinite;
}

@keyframes ns-shine {
  100% {
    transform: translateX(100%);
  }
}

.ns-portfolio-item h3 {
  margin: 0;
  font-size: 0.9rem;
}

.ns-logo-grid .ns-logo-card {
  padding: 1.1rem 1rem;
  border-radius: var(--ns-radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ns-muted);
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
}

.ns-testimonial {
  padding: 1.5rem 1.4rem;
  border-radius: var(--ns-radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  box-shadow: var(--ns-shadow-subtle);
  position: relative;
  overflow: hidden;
}

.ns-testimonial::before {
  content: "“";
  position: absolute;
  top: -1.9rem;
  right: 1.5rem;
  font-size: 5rem;
  color: rgba(15, 23, 42, 0.7);
  pointer-events: none;
}

.ns-testimonial-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.ns-testimonial-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.ns-testimonial-role {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ns-muted);
}

.ns-faq-section .ns-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.ns-faq-list details {
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 0.7rem 1rem;
}

.ns-faq-list summary {
  cursor: pointer;
  font-size: 0.9rem;
  list-style: none;
}

.ns-faq-list summary::-webkit-details-marker {
  display: none;
}

.ns-faq-list p {
  margin: 0.6rem 0 0.1rem;
  font-size: 0.87rem;
  color: var(--ns-muted);
}

.ns-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.7), transparent 55%),
    #ffffff;
}

.ns-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.ns-footer h3 {
  margin: 0 0 0.7rem;
}

.ns-footer h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.ns-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ns-muted);
}

.ns-footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ns-values-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ns-value-item {
  padding: 1.5rem;
  background: var(--ns-surface);
  border-radius: var(--ns-radius-md);
  border: 1px solid var(--ns-border);
  transition: all 0.3s ease;
}

.ns-value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-subtle);
}

.ns-value-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--ns-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.ns-value-item p {
  margin: 0;
  color: var(--ns-muted);
  line-height: 1.6;
}

.ns-footer-list a {
  color: inherit;
}

.ns-footer-list a:hover {
  color: var(--ns-text);
}

.ns-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
}

.ns-socials a {
  padding: 0.3rem 0.7rem;
  border-radius: var(--ns-radius-pill);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
}

.ns-socials a:hover {
  background: #e5f0ff;
}

.ns-newsletter-form {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ns-newsletter-form input {
  border-radius: var(--ns-radius-pill);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.55rem 0.9rem;
  background: #ffffff;
  color: var(--ns-text);
  font-size: 0.85rem;
}

.ns-newsletter-form input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.ns-footer-bottom {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.9rem 0 1.2rem;
}

.ns-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ns-muted);
  text-align: center;
}

.ns-footer-link {
  color: var(--ns-muted);
}

.ns-footer-link:hover {
  color: var(--ns-text);
}

.ns-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--ns-accent);
  color: white;
  border: none;
  border-radius: var(--ns-radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.ns-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.ns-scroll-top:hover {
  background: var(--ns-accent-strong);
  transform: translateY(-3px);
}

/* Advanced Interactive Styles */

/* Notification System */
.ns-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--ns-radius-md);
  color: white;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 400px;
  box-shadow: var(--ns-shadow-soft);
}

.ns-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.ns-notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ns-notification-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ns-notification-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Form Validation Styles */
.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
  animation: slideDown 0.2s ease;
}

.ns-field.error input,
.ns-field.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Scroll Animations - Optimized */
.ns-card,
.ns-contact-card,
.ns-service,
.ns-portfolio-item,
.ns-feature {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.ns-card.animate-in,
.ns-contact-card.animate-in,
.ns-service.animate-in,
.ns-portfolio-item.animate-in,
.ns-feature.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.ns-contact-grid .ns-contact-card:nth-child(1) { transition-delay: 0.1s; }
.ns-contact-grid .ns-contact-card:nth-child(2) { transition-delay: 0.2s; }
.ns-contact-grid .ns-contact-card:nth-child(3) { transition-delay: 0.3s; }

.ns-grid .ns-card:nth-child(1) { transition-delay: 0.1s; }
.ns-grid .ns-card:nth-child(2) { transition-delay: 0.2s; }
.ns-grid .ns-card:nth-child(3) { transition-delay: 0.3s; }
.ns-grid .ns-card:nth-child(4) { transition-delay: 0.4s; }

/* Enhanced Button Interactions - Optimized */
.ns-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  will-change: transform;
}

.ns-btn.clicked {
  transform: scale(0.98);
}

.ns-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  pointer-events: none;
}

.ns-btn.clicked::after {
  width: 200px;
  height: 200px;
}

/* Portfolio Hover Effects */
.ns-portfolio-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ns-portfolio-item.hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--ns-shadow-subtle);
}

.ns-portfolio-item img {
  transition: transform 0.6s ease;
}

.ns-portfolio-item.hover img {
  transform: scale(1.1);
}

.ns-portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ns-portfolio-item.hover::before {
  opacity: 1;
}

/* Service Card Enhanced Hover */
.ns-service,
.ns-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.ns-service:hover,
.ns-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--ns-shadow-subtle);
}

.ns-service:hover .ns-icon,
.ns-card:hover .ns-icon {
  transform: scale(1.1) rotate(5deg);
}

.ns-icon {
  transition: all 0.3s ease;
}

/* Active Navigation Link */
.ns-nav a.active {
  color: var(--ns-accent);
  position: relative;
}

.ns-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ns-accent);
  border-radius: 1px;
}

/* Loading States */
.ns-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.ns-btn:disabled:hover {
  transform: none !important;
}

/* Parallax Effects */
.ns-page-hero h1,
.ns-hero-title {
  transition: transform 0.3s ease-out;
}

/* Page Load Animation */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

.ns-header {
  animation: slideDown 0.6s ease;
}

.ns-page-hero {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.ns-hero {
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Enhanced Form Focus States */
.ns-field input:focus,
.ns-field textarea:focus {
  border-color: var(--ns-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.ns-field input,
.ns-field textarea {
  transition: all 0.3s ease;
}

/* Live Chat Float Enhanced */
.ns-livechat-float {
  transition: all 0.3s ease;
}

.ns-livechat-float:hover {
  transform: scale(1.05);
  box-shadow: var(--ns-shadow-subtle);
}

.ns-livechat-float:active {
  transform: scale(0.95);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced Footer Animation */
.ns-footer {
  animation: slideUp 0.6s ease 0.4s both;
}

/* Portfolio Filter Styles */
.ns-filter-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ns-filter-tags button {
  padding: 8px 20px;
  border: 2px solid var(--ns-border);
  background: var(--ns-surface);
  border-radius: var(--ns-radius-pill);
  font-family: inherit;
  font-weight: 500;
  color: var(--ns-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ns-filter-tags button:hover {
  border-color: var(--ns-accent);
  color: var(--ns-accent);
  transform: translateY(-2px);
}

.ns-filter-tags button.active {
  background: var(--ns-accent);
  border-color: var(--ns-accent);
  color: white;
  transform: scale(1.05);
}

/* Enhanced Portfolio Grid */
.ns-portfolio-grid {
  gap: 24px;
}

.ns-portfolio-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: var(--ns-radius-md);
  overflow: hidden;
}

.ns-portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  display: none;
}

.ns-portfolio-item.visible {
  opacity: 1;
  transform: scale(1);
  display: block;
}

/* Lightbox Styles */
.ns-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ns-lightbox.show {
  opacity: 1;
}

.ns-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  background: white;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: lightboxSlideIn 0.3s ease;
}

.ns-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
}

.ns-lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.ns-lightbox img {
  display: block;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}

.ns-lightbox-info {
  padding: 24px;
}

.ns-lightbox-info h3 {
  margin: 0 0 12px 0;
  color: var(--ns-text);
}

.ns-lightbox-info p {
  margin: 0;
  color: var(--ns-muted);
  line-height: 1.6;
}

/* Portfolio Item Hover Enhancement */
.ns-portfolio-item .ns-portfolio-thumb {
  position: relative;
  overflow: hidden;
}

.ns-portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--ns-radius-md);
  transition: transform 0.6s ease;
}

/* Other Projects - show full images */
.category-other-projects .ns-portfolio-image {
  height: auto;
  object-fit: contain;
}

.portfolio-section {
  margin-bottom: 4rem;
}

.portfolio-section-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 2rem 0;
  color: var(--ns-text);
  font-weight: 600;
}

.ns-portfolio-item::after {
  content: '🔍 View Project';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ns-accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--ns-radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.ns-portfolio-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Additional Animations */
@keyframes lightboxSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .ns-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .ns-card.animate-in,
  .ns-contact-card.animate-in,
  .ns-service.animate-in,
  .ns-portfolio-item.animate-in {
    transform: translateY(0);
  }
  
  .ns-filter-tags {
    gap: 8px;
  }
  
  .ns-filter-tags button {
    padding: 6px 16px;
    font-size: 0.875rem;
  }
  
  .ns-lightbox-content {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  .ns-portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .ns-portfolio-grid {
    grid-template-columns: 1fr !important;
  }
}







.ns-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ns-livechat-float {
  position: fixed;
  right: 1.6rem;
  bottom: 8rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf3;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.45);
  border: 1px solid rgba(22, 163, 74, 0.9);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s ease-out;
}

.ns-livechat-float span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ns-livechat-float-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 0.9rem;
}

.ns-livechat-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(22, 163, 74, 0.6);
}

.ns-livechat-float:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.5);
}

.ns-page-hero {
  padding: 4.5rem 0 2rem;
}

.ns-page-hero h1 {
  margin: 0 0 0.5rem;
}

.ns-page-hero p {
  margin: 0;
  color: var(--ns-muted);
  max-width: 34rem;
}

.ns-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.ns-page-sidebar {
  padding: 1.4rem 1.3rem;
  border-radius: var(--ns-radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
}

.ns-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.ns-contact-card {
  padding: 1rem;
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  font-size: 0.85rem;
}

.ns-contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.ns-contact-form {
  display: grid;
  gap: 0.9rem;
}

.ns-field-group {
  display: grid;
  gap: 0.7rem;
}

.ns-field-group-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ns-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.ns-field input,
.ns-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.6rem 0.8rem;
  background: #ffffff;
  color: var(--ns-text);
  font-size: 0.86rem;
  resize: vertical;
}

.ns-field textarea {
  min-height: 130px;
}

.ns-field input:focus,
.ns-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.ns-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 0.7rem;
  color: var(--ns-muted);
}

.ns-blog-list {
  display: grid;
  gap: 1.35rem;
}

.ns-blog-card {
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 1.2rem 1.1rem;
}

.ns-blog-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.ns-blog-meta {
  font-size: 0.75rem;
  color: var(--ns-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.ns-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.ns-category-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.ns-category-list a {
  font-size: 0.85rem;
  color: var(--ns-muted);
}

.ns-category-list a:hover {
  color: var(--ns-text);
}

.ns-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.ns-tag {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.72rem;
  color: var(--ns-muted);
}

.ns-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.ns-service-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--ns-radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  box-shadow: var(--ns-shadow-subtle);
  font-size: 0.88rem;
}

.ns-service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.ns-service-card p {
  margin: 0 0 0.9rem;
  color: var(--ns-muted);
}

.ns-service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ns-muted);
}

.ns-chip {
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.85);
  font-size: 0.72rem;
  color: var(--ns-accent-strong);
}

.ns-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.3rem;
}

.ns-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.ns-stat-card {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  font-size: 0.8rem;
}

.ns-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.ns-breadcrumb {
  font-size: 0.78rem;
  color: var(--ns-muted);
  margin-bottom: 0.5rem;
}

.ns-breadcrumb a {
  color: var(--ns-muted);
}

.ns-breadcrumb a:hover {
  color: var(--ns-text);
}

.ns-breadcrumb span {
  margin: 0 0.25rem;
}

@media (max-width: 960px) {
  main {
    padding-top: 72px;
  }

  .ns-hero {
    padding-top: 4.5rem;
  }

  .ns-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-hero-right {
    justify-content: flex-start;
  }

  .ns-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ns-logo-grid.ns-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .ns-nav {
    position: fixed;
    inset: 72px 1.25rem auto 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 1);
    padding: 0.65rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform-origin: top right;
    transform: scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  }

  .ns-nav.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .ns-nav-toggle {
    display: inline-flex;
  }

  .ns-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ns-grid-2,
  .ns-grid-3,
  .ns-grid-4,
  .ns-contact-grid,
  .ns-stat-grid,
  .ns-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ns-page-hero {
    padding-top: 3.5rem;
  }
}

