/* ============================================
   MEP CENTER — Futuristic Neon Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;700&family=Share+Tech+Mono&display=swap');

/* ---- ROOT VARIABLES ---- */
:root {
  --dark-bg:        #0b0e14;
  --dark-bg2:       #0d1117;
  --card-bg:        #131820;
  --card-bg2:       #161b22;
  --neon-cyan:      #00e676;
  --neon-cyan-dim:  rgba(0, 230, 118, 0.10);
  --neon-cyan-glow: rgba(0, 230, 118, 0.35);
  --neon-orange:    #ff6b2b;
  --neon-orange-dim:rgba(255, 107, 43, 0.10);
  --text-primary:   #eef2f8;
  --text-gray:      #b1b8c0;
  --text-muted:     #6c7a8a;
  --border-neon:    rgba(0, 230, 118, 0.18);
  --border-hover:   rgba(0, 230, 118, 0.55);
  --font-heading:   'Rajdhani', sans-serif;
  --font-body:      'Exo 2', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;
  --transition:     0.28s ease;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-pill:    999px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Grid dot background — subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Light mode overrides */
body.light-mode {
  --dark-bg:    #f0f4f8;
  --dark-bg2:   #e4eaf0;
  --card-bg:    #ffffff;
  --card-bg2:   #f7fafc;
  --text-primary: #1a2030;
  --text-gray:  #4a5568;
  --text-muted: #718096;
  --border-neon: rgba(0, 200, 100, 0.2);
  --neon-cyan:  #00b84d;
  --neon-cyan-dim: rgba(0, 120, 200, 0.08);
  background-color: var(--dark-bg);
  color: var(--text-primary);
}
body.light-mode::before {
  background-image:
    linear-gradient(rgba(0,120,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,120,200,0.05) 1px, transparent 1px);
}

/* ============================================
   TYPOGRAPHY — Soft & Flowing
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--neon-cyan);
  line-height: 1.2;
}
h2 { font-size: clamp(22px, 2.8vw, 34px); }
h4 { font-size: 19px; }
h5 { font-size: 16px; }

p { color: var(--text-gray); font-size: 14.5px; line-height: 1.9; }
b, strong { color: var(--text-primary); font-weight: 600; }

a { color: var(--neon-cyan); transition: color var(--transition); }
a:hover { color: var(--neon-orange); }

section, footer { position: relative; z-index: 1; }

/* Section tag — softer */
.section-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  opacity: 0.75;
}
.section-tag::before { content: '· '; opacity: 0.6; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg2); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

/* ============================================
   NAVBAR — Softer, rounded
   ============================================ */
.navbar {
  background-color: rgba(11, 14, 20, 0.88) !important;
  border-bottom: 1px solid rgba(0, 230, 118, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  transition: background var(--transition);
  font-family: var(--font-heading);
}
.navbar.scrolled {
  background-color: rgba(11, 14, 20, 0.98) !important;
}

.navbar-brand {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: 2px !important;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand span { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan-glow); }

.navbar-brand img {
  border: 1px solid var(--border-neon);
  padding: 2px;
  background: var(--neon-cyan-dim);
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.nav-link {
  color: var(--text-gray) !important;
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 22px 12px !important;
  position: relative;
  transition: color var(--transition) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--neon-cyan) !important; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--neon-cyan) !important; }
.nav-link.active::after { transform: scaleX(1); }

/* Theme toggle button — icon only, pill circle */
.theme-switch-wrapper { display: flex; align-items: center; margin-left: 10px; }
#theme-toggle {
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,230,118,0.3);
  background: rgba(0,230,118,0.07);
  color: var(--neon-cyan);
  font-size: 15px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#theme-toggle:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 16px rgba(0,230,118,0.5);
  border-color: var(--neon-cyan);
}

/* Hamburger in mobile */
.navbar-toggler {
  border-color: var(--border-neon) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,230,118,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   HOME / HERO SECTION
   ============================================ */
.home-section {
  min-height: 100vh;
  padding: 120px 5% 80px;
  overflow: hidden;
  position: relative;
}

/* Glowing radial background */
.home-section::after {
  content: '';
  position: absolute;
  top: 30%; left: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,230,118,0.35);
  padding: 7px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: rgba(0,230,118,0.07);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse 2s ease-in-out infinite;
}

.home-section h2.display-7 {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 5px !important;
  color: var(--neon-cyan) !important;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}

.home-section h3.display-10 {
  font-family: var(--font-heading) !important;
  font-size: clamp(28px, 4.5vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 1px !important;
  color: var(--text-primary) !important;
  margin-bottom: 16px;
}
.home-section h3.display-10 span.highlight { color: var(--neon-cyan); text-shadow: 0 0 20px var(--neon-cyan-glow); }

.home-section .lead {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--neon-orange);
  margin-top: 10px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* Canvas circuit */
#circuit-canvas {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-neon-primary {
  background: var(--neon-cyan);
  color: #000;
  border: none;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  box-shadow: 0 0 22px rgba(0,230,118,0.35), 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-block;
}
.btn-neon-primary:hover {
  background: #1fff8a;
  box-shadow: 0 0 36px rgba(0,230,118,0.55), 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  color: #000;
}

.btn-neon-outline {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.4);
  color: var(--neon-cyan);
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-neon-outline:hover {
  background: rgba(0,230,118,0.14);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0,230,118,0.3);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* Override Bootstrap btn-primary */
.btn-primary {
  background: var(--neon-cyan) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  color: #000 !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 10px 28px !important;
  box-shadow: 0 0 18px rgba(0,230,118,0.35) !important;
  transition: all var(--transition) !important;
}
.btn-primary:hover {
  background: #1fff8a !important;
  box-shadow: 0 0 30px rgba(0,230,118,0.5) !important;
  transform: translateY(-1px) !important;
}

/* ============================================
   STATS BAR — Softer
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 5%;
  background: transparent;
  border-top: 1px solid rgba(0,230,118,0.08);
  border-bottom: 1px solid rgba(0,230,118,0.08);
}
.stat-item {
  background: var(--card-bg2);
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,230,118,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.stat-item:hover {
  background: rgba(0,230,118,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 16px var(--neon-cyan-glow);
  display: block;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* ============================================
   ABOUT SECTION — Softer
   ============================================ */
#about {
  padding: 90px 0;
  background-color: var(--dark-bg2) !important;
  border-top: 1px solid rgba(0,230,118,0.08);
  border-bottom: 1px solid rgba(0,230,118,0.08);
}
#about .container { position: relative; }
#about h2 { margin-bottom: 28px; }

#about p {
  color: var(--text-gray);
  font-size: 14.5px;
  line-height: 1.95;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid rgba(0,230,118,0.2);
  border-radius: 0 4px 4px 0;
  transition: border-color 0.3s;
}
#about p:hover { border-left-color: var(--neon-cyan); }

/* ============================================
   SOFTWARE MARQUEE — Train Animation
   ============================================ */
.marquee-track-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 6px 0;
}

/* Fade edges like a vignette */
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left  { left:  0; background: linear-gradient(to right, var(--dark-bg2) 10%, transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(to left,  var(--dark-bg2) 10%, transparent); }

/* The scrolling track */
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual pill — landscape: logo left, text right */
.sw-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--pill-rgb, 0,230,118), 0.2);
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  min-width: 148px;
  cursor: default;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  flex-shrink: 0;
  white-space: nowrap;
}
.sw-pill:hover {
  background: rgba(var(--pill-rgb, 0,230,118), 0.08);
  border-color: var(--pill-color, #00e676);
  box-shadow: 0 0 16px rgba(var(--pill-rgb, 0,230,118), 0.3);
  transform: translateY(-2px) scale(1.03);
}

/* Logo box — left side */
.sw-pill-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--pill-rgb, 0,230,118), 0.35);
  background: rgba(var(--pill-rgb, 0,230,118), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}
.sw-pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.sw-pill-icon {
  display: none; /* shown via onerror */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
}
.sw-pill-icon i { font-size: 16px; }

/* Text — right side */
.sw-pill span {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--pill-color, #00e676);
  transition: color 0.25s;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
  padding: 90px 0;
  background: var(--dark-bg);
}

#services h2 { margin-bottom: 12px; }
#services h4.fw-bold {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-neon);
}
#services > .container > p,
#services .mb-5 > p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* DED package image */
.ded-img-wrapper {
  border: 1px solid rgba(0,230,118,0.12);
  border-radius: var(--radius-md);
  display: inline-block;
  padding: 8px;
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,230,118,0.06);
  margin: 24px 0;
}
.ded-img-wrapper img { display: block; border-radius: calc(var(--radius-md) - 4px); }

/* Service Cards — Softer */
.service-card.card-custom {
  background: var(--card-bg2) !important;
  border: 1px solid rgba(0,230,118,0.1) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card.card-custom::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-orange));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card.card-custom:hover::before { transform: scaleX(1); }
.service-card.card-custom:hover {
  border-color: rgba(0,230,118,0.28) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(0,230,118,0.1) !important;
  transform: translateY(-5px);
}

.service-card.card-custom .text-secondary {
  color: var(--neon-cyan) !important;
  filter: drop-shadow(0 0 6px var(--neon-cyan-glow));
}

.service-card.card-custom h5 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card.card-custom .text-muted {
  color: var(--text-gray) !important;
  font-size: 13px;
  line-height: 1.8;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
#gallery {
  padding: 90px 0;
  background: var(--dark-bg2);
  border-top: 1px solid var(--border-neon);
}

#gallery h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 48px;
}

/* Thumbnail — Softer rounded */
.thumb-box {
  overflow: hidden;
  border: 1px solid rgba(0,230,118,0.12);
  background: var(--card-bg);
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.thumb-box:hover {
  border-color: var(--card-neon, #00e676);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(var(--card-rgb,0,230,118),0.25);
}
.thumb-box .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.thumb-box:hover .thumb-img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(0.7);
}

/* Hover overlay */
.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 230, 118, 0.08);
  opacity: 0;
  transition: opacity var(--transition);
  padding: 16px;
  text-align: center;
}
.thumb-box:hover .thumb-overlay { opacity: 1; }
.thumb-overlay h6 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Magnifier icon */
.plus-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border: 2px solid var(--neon-cyan);
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-cyan);
  font-size: 16px;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(0, 230, 118, 0.12);
  box-shadow: 0 0 14px var(--neon-cyan-glow);
  z-index: 2;
}
.thumb-box:hover .plus-icon { opacity: 1; }

/* Caption */
.project-caption {
  background: var(--card-bg) !important;
  border: 1px solid rgba(0,230,118,0.1);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text-gray) !important;
  padding: 10px 14px !important;
  text-align: center;
}

/* Preview area */
#previewArea {
  border: 1px solid var(--border-neon);
  background: var(--card-bg2);
  padding: 28px;
  margin-bottom: 40px;
}
#previewArea img { border: 1px solid var(--border-neon); }
#previewDesc { color: var(--text-gray); font-size: 13px; }
#previewDesc h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}
#previewDesc h5 {
  font-size: 14px;
  color: var(--text-primary);
  margin: 14px 0 8px;
}
#previewDesc ul {
  padding-left: 18px;
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.85;
}
#previewDesc ul li::marker { color: var(--neon-cyan); }

/* ============================================
   FOOTER / CONTACT SECTION
   ============================================ */
#contact { border-top: 1px solid var(--border-neon); }

footer {
  background: var(--dark-bg2) !important;
  border-top: 1px solid var(--border-neon) !important;
  position: relative;
  z-index: 1;
}

footer h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-neon);
}

footer address {
  font-style: normal;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 2;
}

footer .list-unstyled li { margin-bottom: 8px; }
footer .list-unstyled a {
  color: var(--text-gray) !important;
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .list-unstyled a::before {
  content: '▸';
  color: var(--neon-cyan);
  font-size: 11px;
}
footer .list-unstyled a:hover { color: var(--neon-cyan) !important; }

footer .text-white a {
  font-size: 18px;
  transition: color var(--transition), filter var(--transition);
}
footer .text-white a:hover {
  color: var(--neon-cyan) !important;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

footer p { font-size: 13px; color: var(--text-gray); line-height: 1.8; }

footer .border-top {
  border-color: var(--border-neon) !important;
}
footer .text-center.pt-3 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* ============================================
   MODAL / LIGHTBOX CUSTOM
   ============================================ */
.modal-content {
  background: var(--card-bg2) !important;
  border: 1px solid var(--border-neon) !important;
  border-radius: 0 !important;
}
.modal-header {
  border-bottom: 1px solid var(--border-neon) !important;
  padding: 16px 24px;
}
.modal-title {
  font-family: var(--font-heading) !important;
  color: var(--neon-cyan) !important;
  letter-spacing: 1px;
}
.modal-body { padding: 28px 24px; }
.btn-close { filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

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

.anim-1 { animation: fadeInUp 0.7s ease forwards; }
.anim-2 { animation: fadeInUp 0.7s 0.18s ease forwards; opacity: 0; }
.anim-3 { animation: fadeInUp 0.7s 0.34s ease forwards; opacity: 0; }
.anim-4 { animation: fadeInUp 0.7s 0.50s ease forwards; opacity: 0; }

/* ============================================
   UTILITY — BG / TEXT OVERRIDES FOR DARK
   ============================================ */
.bg-light  { background-color: var(--dark-bg2) !important; }
.bg-dark   { background-color: var(--card-bg)  !important; }
.text-white { color: var(--text-primary) !important; }
.text-muted { color: var(--text-gray) !important; }

/* rounded-4 → sharp corner override */
.rounded-4 { border-radius: 0 !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  #circuit-canvas { display: none; }
  .home-section { text-align: center; }
  .hero-cta { justify-content: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 20px 4%; }
  .nav-link { padding: 12px 8px !important; font-size: 12px !important; }
  .marquee-track { animation-duration: 22s; }
}

@media (max-width: 768px) {
  .home-section { padding: 100px 5% 60px; }
  #about, #services, #gallery { padding: 64px 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
  footer .col-md-4 { margin-bottom: 32px; }
  .sw-pill { min-width: 130px; padding: 7px 14px 7px 7px; }
  .sw-pill-logo { width: 32px; height: 32px; }
}

@media (max-width: 576px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 22px; }
  .marquee-track { animation-duration: 18s; }
  .sw-pill { min-width: 120px; }
  .marquee-fade-left, .marquee-fade-right { width: 40px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================
   NAVBAR — Calculation Engineer Highlight
   ============================================ */

/* Container link */
.nav-link-new {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #00e676 !important;
  font-weight: 600 !important;
  padding: 20px 14px !important;
  background: rgba(0, 230, 118, 0.06);
  border-radius: 6px;
  transition: background 0.25s, box-shadow 0.25s !important;
  animation: navGlowPulse 2.5s ease-in-out infinite;
  margin-left: 6px;
}
.nav-link-new:hover {
  background: rgba(0, 230, 118, 0.14) !important;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.35) !important;
  color: #1fff8a !important;
}
/* cancel the underline bar from base style */
.nav-link-new::after { display: none !important; }

@keyframes navGlowPulse {
  0%,100% { box-shadow: 0 0 6px rgba(0,230,118,0.25), inset 0 0 6px rgba(0,230,118,0.05); }
  50%      { box-shadow: 0 0 20px rgba(0,230,118,0.5), inset 0 0 10px rgba(0,230,118,0.1); }
}

/* NEW badge */
.nav-new-badge {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #000;
  background: #00e676;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.4;
  animation: badgeBounce 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badgeBounce {
  0%,100% { transform: translateY(0) scale(1); }
  40%     { transform: translateY(-3px) scale(1.08); }
  60%     { transform: translateY(-1px) scale(1.04); }
}

/* Fire emoji wrapper */
.nav-fire-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-fire {
  display: inline-block;
  font-size: 14px;
  animation: fireWiggle 0.9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px rgba(255,140,0,0.8));
  transform-origin: bottom center;
}
@keyframes fireWiggle {
  0%   { transform: rotate(-8deg) scale(1);    filter: drop-shadow(0 0 4px rgba(255,140,0,0.7)); }
  50%  { transform: rotate(0deg)  scale(1.12); filter: drop-shadow(0 0 8px rgba(255,80,0,1));   }
  100% { transform: rotate(8deg)  scale(1);    filter: drop-shadow(0 0 4px rgba(255,140,0,0.7)); }
}

/* Mobile: stack vertically nicely */
@media (max-width: 992px) {
  .nav-link-new {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 10px 14px !important;
  }
}
