/* ==========================================================
   Maruthi Enterprises - Main Stylesheet
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #1a3a7a;
  --primary-light: #2f5bc4;
  --accent: #f4b52a;
  --accent-dark: #e09a00;
  --dark: #0a1630;
  --darker: #060e21;
  --light: #f4f7fd;
  --text: #5b6577;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0a1630 0%, #1a3a7a 55%, #2f5bc4 100%);
  --gradient-accent: linear-gradient(135deg, #f4b52a 0%, #ff8a3d 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 22, 48, 0.08);
  --shadow-lg: 0 25px 50px rgba(10, 22, 48, 0.18);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  font-weight: 700;
}

a { text-decoration: none; transition: all .3s var(--ease); }

img { max-width: 100%; }

section { position: relative; padding: 100px 0; }

.bg-light-soft { background: var(--light); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--darker);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-right-color: var(--primary-light);
  animation: spin 1s linear infinite;
  position: relative;
}
.loader-ring::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 4px solid transparent; border-bottom-color: var(--accent);
  animation: spin .7s linear infinite reverse;
}
.loader-text { color: #fff; margin-top: 18px; letter-spacing: 4px; font-size: 12px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient-accent); z-index: 2000;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--darker);
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container { min-height: 28px; gap: 20px; }
.topbar .container > div { display: flex; align-items: center; min-width: 0; }
.topbar .container > div:first-child { flex: 1 1 auto; overflow: hidden; }
.topbar .container > div:last-child { flex: 0 0 auto; }
.topbar span, .topbar a {
  display: inline-flex; align-items: center;
  height: 28px; line-height: 28px; white-space: nowrap;
}
.topbar .container > div:first-child > span {
  display: block; min-width: 0; flex: 0 1 auto;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar .container > div:first-child > span i { display: inline-block; vertical-align: top; line-height: 28px; }
.topbar .container > div:first-child > a { flex: 0 0 auto; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: 6px; line-height: 1; }
.topbar .social { display: flex; align-items: center; }
.topbar .social a {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center; margin-left: 6px;
  background: rgba(255,255,255,.06);
}
.topbar .social a i { color: #fff; margin: 0; }
.topbar .social a:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  padding: 16px 0;
  background: #fff;
  transition: all .4s var(--ease);
  z-index: 1030;
}
.navbar.navbar-scrolled {
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(10, 22, 48, .1);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.navbar-brand { padding: 0; margin-right: 24px; }
.navbar-brand img {
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: height .4s var(--ease);
}
.navbar-scrolled .navbar-brand img { height: 68px; }
.navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--dark);
  margin: 0 10px;
  position: relative;
  padding: 8px 0 !important;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gradient-accent);
  transition: width .35s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }
.navbar-toggler { border: none; box-shadow: none !important; }

/* ---------- Buttons ---------- */
.btn-main, .btn-outline-main {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .4s var(--ease);
  border: none;
}
.btn-main { background: var(--gradient-accent); color: var(--dark); box-shadow: 0 10px 25px rgba(244, 181, 42, .35); }
.btn-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn-main:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(26, 58, 122, .35); }
.btn-main:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-main i { transition: transform .3s; }
.btn-main:hover i { transform: translateX(4px); }

.btn-outline-main { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-main:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }

/* ripple */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.5); animation: ripple .6s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Section heading ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(47, 91, 196, .08);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 14px;
}
.section-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244, 181, 42, .7); }
  70% { box-shadow: 0 0 0 10px rgba(244, 181, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 181, 42, 0); }
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; line-height: 1.25; }
.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-line {
  width: 70px; height: 4px; border-radius: 4px; background: var(--gradient-accent);
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.text-center .title-line { margin-left: auto; margin-right: auto; }
.title-line::after {
  content: ""; position: absolute; top: 0; left: -30px; width: 20px; height: 100%;
  background: #fff; animation: lineMove 2.2s linear infinite;
}
@keyframes lineMove { to { left: 100%; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex; align-items: center;
  background: url('../images/hero/hero-bg.jpg') center/cover no-repeat fixed;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(6,14,33,.95) 0%, rgba(26,58,122,.85) 55%, rgba(26,58,122,.45) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px; border-radius: 50px;
  font-size: 13px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.5vw, 64px); font-weight: 800;
  line-height: 1.15; margin: 22px 0;
}
.hero h1 .typed {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.typed-cursor {
  display: inline-block; width: 4px; height: .9em; background: var(--accent);
  margin-left: 4px; vertical-align: middle; animation: blink .8s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { color: rgba(255,255,255,.8); font-size: 19px; max-width: 560px; }

/* Hero animated CCTV visual */
.hero-visual { position: relative; height: 460px; }
.radar {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(244, 181, 42, .3);
  background: radial-gradient(circle, rgba(47,91,196,.25) 0%, transparent 70%);
}
.radar::before, .radar::after {
  content: ""; position: absolute; inset: 60px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.2);
}
.radar::after { inset: 120px; border-style: solid; border-color: rgba(244,181,42,.25); }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(244,181,42,.45), transparent 25%);
  animation: spin 4s linear infinite;
}
.radar-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--dark);
  box-shadow: 0 0 0 15px rgba(244,181,42,.15), 0 0 60px rgba(244,181,42,.6);
  animation: float 4s ease-in-out infinite;
}
.radar-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #3dff9a;
  box-shadow: 0 0 15px #3dff9a; animation: blinkDot 2s infinite;
}
@keyframes blinkDot { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

.float-card {
  position: absolute; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px);
  border-radius: 16px; padding: 14px 18px; color: #fff;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.float-card i {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; color: var(--dark); font-size: 20px;
}
.float-card strong { display: block; font-size: 18px; font-family: 'Poppins'; }
.float-card.fc-1 { top: 20px; left: 0; }
.float-card.fc-2 { bottom: 40px; right: 0; animation-delay: 1.5s; }
.float-card.fc-3 { bottom: 10px; left: 20px; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.radar-center { animation-name: floatCenter; }
@keyframes floatCenter {
  0%,100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 12px)); }
}

/* Animated background shapes */
.shape {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 1;
  animation: drift 14s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(244,181,42,.35), transparent 70%); top: -80px; right: 10%; }
.shape-2 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(47,91,196,.6), transparent 70%); bottom: -50px; left: 5%; animation-delay: 4s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,25px) scale(.95); }
}

.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.scroll-down::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--accent); border-radius: 4px; transform: translateX(-50%);
  animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel { to { top: 26px; opacity: 0; } }

/* ---------- Page banner ---------- */
.page-banner {
  padding: 170px 0 100px;
  background: url('../images/hero/hero-bg.jpg') center/cover no-repeat;
  color: #fff; text-align: center; overflow: hidden;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,14,33,.94), rgba(26,58,122,.85)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.page-banner .breadcrumb { justify-content: center; margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- About ---------- */
.about-img-wrap { position: relative; padding: 0 40px 40px 0; }
.about-img-wrap .main-img {
  border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.about-img-wrap::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 75%; height: 75%;
  border-radius: var(--radius); background: var(--gradient-accent); z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.experience-badge {
  position: absolute; left: -20px; bottom: 60px; z-index: 3;
  background: var(--gradient); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; text-align: center; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite; animation-delay: 1s;
}
.experience-badge h3 { color: var(--accent); font-size: 42px; margin: 0; line-height: 1; }
.experience-badge span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.about-quote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 18px 22px; border-radius: 0 12px 12px 0;
  font-style: italic; font-weight: 500; color: var(--dark); margin: 22px 0;
}
.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; color: var(--dark); font-weight: 500; }
.check-list i { color: var(--accent); font-size: 18px; }

/* ---------- Cards (generic) ---------- */
.card-modern {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); height: 100%;
  transition: all .45s var(--ease); position: relative; overflow: hidden;
  border: 1px solid rgba(26,58,122,.06);
}
.card-modern::before {
  content: ""; position: absolute; inset: 0; background: var(--gradient);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0;
}
.card-modern > * { position: relative; z-index: 1; }
.card-modern:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-modern:hover::before { transform: translateY(0); }
.card-modern:hover h4, .card-modern:hover h5, .card-modern:hover p { color: #fff; }
.card-modern .icon-box {
  width: 70px; height: 70px; border-radius: 18px;
  background: rgba(47,91,196,.08); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 22px; transition: all .5s var(--ease);
}
.card-modern:hover .icon-box { background: var(--gradient-accent); color: var(--dark); transform: rotateY(360deg); }
.card-modern h4, .card-modern h5 { transition: color .4s; margin-bottom: 12px; }
.card-modern p { transition: color .4s; margin: 0; font-size: 15px; }
.card-modern .card-num {
  position: absolute; top: 18px; right: 24px; font-family: 'Poppins'; font-weight: 800;
  font-size: 48px; color: rgba(26,58,122,.06); transition: color .4s; z-index: 1;
}
.card-modern:hover .card-num { color: rgba(255,255,255,.1); }

/* ---------- Feature (Why choose) ---------- */
.why-section { background: var(--gradient); color: #fff; overflow: hidden; }
.why-section h2, .why-section h5 { color: #fff; }
.why-section .section-tag { background: rgba(255,255,255,.1); color: var(--accent); }
.feature-box {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); height: 100%; transition: all .4s var(--ease);
}
.feature-box:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); border-color: rgba(244,181,42,.5); }
.feature-box .f-icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--dark);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  transition: transform .6s var(--ease);
}
.feature-box:hover .f-icon { transform: rotate(360deg) scale(1.1); }
.feature-box p { color: rgba(255,255,255,.7); margin: 0; font-size: 15px; }

/* ---------- Service cards with image ---------- */
.service-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); height: 100%; transition: all .45s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card .img-wrap { position: relative; overflow: hidden; height: 240px; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .img-wrap img { transform: scale(1.12) rotate(1deg); }
.service-card .img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,48,.8), transparent 60%);
}
.service-card .s-icon {
  position: absolute; bottom: -30px; right: 26px; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--dark);
  box-shadow: 0 10px 25px rgba(244,181,42,.5); transition: transform .5s var(--ease);
}
.service-card:hover .s-icon { transform: rotate(360deg); }
.service-card .body { padding: 40px 28px 30px; }
.link-arrow { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; }
.link-arrow i { transition: transform .3s; }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow:hover i { transform: translateX(6px); }

/* Scan line effect on images */
.scan { position: relative; overflow: hidden; }
.scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; top: -5%;
  background: linear-gradient(90deg, transparent, #3dff9a, transparent);
  box-shadow: 0 0 20px #3dff9a; z-index: 3; opacity: 0;
}
.scan:hover::before { opacity: 1; animation: scanLine 1.6s linear infinite; }
@keyframes scanLine { to { top: 105%; } }

/* ---------- Process ---------- */
.process-wrap { position: relative; }
.process-wrap::before {
  content: ""; position: absolute; top: 55px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 20px);
  animation: dashMove 1s linear infinite;
}
@keyframes dashMove { to { background-position: 20px 0; } }
.process-step { text-align: center; position: relative; z-index: 2; }
.process-step .p-circle {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 22px;
  background: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--primary); position: relative; transition: all .5s var(--ease);
}
.process-step .p-circle::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed var(--accent); animation: spin 12s linear infinite;
}
.process-step .p-circle span {
  position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--dark); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: 'Poppins';
}
.process-step:hover .p-circle { background: var(--gradient); color: #fff; transform: scale(1.08); }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .45s var(--ease); height: 100%;
  border: 1px solid rgba(26,58,122,.06);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-card .p-img {
  height: 240px; background: radial-gradient(circle at 50% 40%, #fff 0%, #eef2fb 100%);
  display: flex; align-items: center; justify-content: center; padding: 26px; position: relative; overflow: hidden;
}
.product-card .p-img img { max-height: 190px; object-fit: contain; transition: transform .7s var(--ease); }
.product-card:hover .p-img img { transform: scale(1.12) rotate(-4deg); }
.product-card .badge-cat {
  position: absolute; top: 16px; left: 16px; background: var(--gradient); color: #fff;
  font-size: 11px; padding: 5px 12px; border-radius: 50px; font-weight: 600; letter-spacing: .5px;
}
.product-card .p-body { padding: 24px; }
.product-card .p-body h5 { font-size: 18px; margin-bottom: 8px; }
.product-card .p-body p { font-size: 14px; margin-bottom: 16px; }
.btn-enquire {
  border: 2px solid var(--primary); color: var(--primary); border-radius: 50px;
  padding: 8px 22px; font-weight: 600; font-size: 14px; font-family: 'Poppins'; background: transparent;
  transition: all .35s var(--ease);
}
.btn-enquire:hover { background: var(--primary); color: #fff; }

.category-card {
  border-radius: var(--radius); padding: 30px 24px; text-align: center; background: #fff;
  box-shadow: var(--shadow); transition: all .45s var(--ease); display: block; height: 100%;
  position: relative; overflow: hidden;
}
.category-card img { height: 130px; object-fit: contain; margin-bottom: 18px; transition: transform .6s var(--ease); }
.category-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.category-card:hover img { transform: scale(1.1) translateY(-6px); }
.category-card h5 { font-size: 17px; margin-bottom: 6px; }
.category-card .count {
  display: inline-block; background: rgba(244,181,42,.15); color: var(--accent-dark);
  font-weight: 600; font-size: 13px; padding: 3px 14px; border-radius: 50px;
}
.category-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: var(--gradient-accent); transition: width .5s var(--ease);
}
.category-card:hover::after { width: 100%; }

.product-card .p-img.p-img-cover { padding: 0; }
.product-card .p-img.p-img-cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.product-card:hover .p-img.p-img-cover img { transform: scale(1.1); }
.product-card .p-img.p-img-cover .badge-cat { z-index: 2; }

/* ---------- Product showcase ---------- */
.showcase-section { overflow: hidden; }
.showcase-row { padding: 40px 0; position: relative; scroll-margin-top: 110px; }
.showcase-row + .showcase-row { border-top: 1px dashed rgba(26,58,122,.12); }
.showcase-media {
  position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #fff 0%, #e3e9f7 100%);
}
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.showcase-media:hover img { transform: scale(1.08); }
.showcase-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,14,33,.55), transparent 45%);
}
.showcase-media .sc-num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: 'Poppins'; font-weight: 800; font-size: 56px; line-height: 1;
  color: rgba(255,255,255,.9); text-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.showcase-media .sc-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(14px);
  color: #fff; font-size: 13px; animation: float 5s ease-in-out infinite;
}
.showcase-media .sc-badge i {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-accent); color: var(--dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.showcase-media .sc-badge strong { display: block; font-family: 'Poppins'; font-size: 16px; }
.showcase-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.showcase-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #eef2fb 100%);
  border: 2px solid transparent; box-shadow: var(--shadow); transition: all .35s var(--ease);
}
.showcase-thumbs img[src$=".png"] { object-fit: contain; padding: 10px; }
.showcase-thumbs img:hover, .showcase-thumbs img.active { border-color: var(--accent); transform: translateY(-4px); }
.sc-tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins'; font-weight: 600;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-dark);
  background: rgba(244,181,42,.14); padding: 6px 16px; border-radius: 50px; margin-bottom: 14px;
}
.sc-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.sc-features {
  list-style: none; padding: 0; margin: 22px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.sc-features li {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: var(--light); color: var(--dark); font-weight: 500; font-size: 15px;
  transition: all .35s var(--ease);
}
.sc-features li i { color: var(--accent-dark); font-size: 18px; }
.sc-features li:hover { background: var(--gradient); color: #fff; transform: translateX(6px); }
.sc-features li:hover i { color: var(--accent); }
.sc-note {
  display: flex; gap: 10px; align-items: flex-start; border-left: 4px solid var(--accent);
  background: rgba(47,91,196,.06); padding: 14px 18px; border-radius: 0 12px 12px 0;
  color: var(--dark); font-weight: 500; margin-bottom: 26px;
}
.sc-note i { color: var(--primary-light); margin-top: 3px; }
.sc-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.sc-stats > div {
  flex: 1 1 120px; text-align: center; padding: 16px 12px; border-radius: 14px;
  background: var(--gradient); color: rgba(255,255,255,.8); font-size: 13px;
}
.sc-stats h4 { color: var(--accent); margin: 0; font-size: 26px; }
.btn-ghost {
  font-family: 'Poppins', sans-serif; font-weight: 600; padding: 11px 28px; border-radius: 50px;
  border: 2px solid var(--primary); color: var(--primary); display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
@media (max-width: 575.98px) {
  .sc-features { grid-template-columns: 1fr; }
  .showcase-media .sc-num { font-size: 42px; }
}

/* Filter buttons */
.filter-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; }
.filter-btn {
  border: none; background: #fff; color: var(--dark); box-shadow: var(--shadow);
  padding: 10px 24px; border-radius: 50px; font-weight: 600; font-family: 'Poppins'; font-size: 14px;
  transition: all .35s var(--ease);
}
.filter-btn:hover { transform: translateY(-3px); }
.filter-btn.active { background: var(--gradient); color: #fff; }
.filter-item { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.filter-item.hidden-item { opacity: 0 !important; transform: scale(.85) !important; }
.filter-item.d-none-item { display: none !important; }

/* ---------- Counter ---------- */
.counter-section {
  background: linear-gradient(135deg, rgba(6,14,33,.92), rgba(26,58,122,.9)), url('../images/services/cctv.jpg') center/cover fixed;
  padding: 80px 0;
}
.counter-box { text-align: center; color: #fff; padding: 20px; }
.counter-box .c-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid rgba(244,181,42,.5); display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--accent); animation: pulseDot 2s infinite;
}
.counter-box h2 { color: #fff; font-size: 46px; font-weight: 800; margin-bottom: 4px; }
.counter-box p { color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 40px 34px; box-shadow: var(--shadow);
  position: relative; text-align: center; max-width: 720px; margin: 0 auto;
}
.testimonial-card .quote-icon {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--dark);
}
.testimonial-card p { font-size: 20px; font-style: italic; color: var(--dark); margin: 18px 0 24px; }
.testimonial-card img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--accent); padding: 3px; background: #fff; }
.testimonial-card .stars { color: var(--accent); margin: 8px 0; }
.carousel-indicators.custom { position: static; margin-top: 30px; }
.carousel-indicators.custom button {
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: none; opacity: .3;
}
.carousel-indicators.custom button.active { opacity: 1; width: 30px; border-radius: 10px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gradient-accent); padding: 18px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--dark);
  margin: 0 30px; display: inline-flex; align-items: center; gap: 30px;
}
.marquee-track span::after { content: "\2726"; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta {
  background: var(--gradient); border-radius: 28px; padding: 60px; color: #fff;
  position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; border: 40px solid rgba(255,255,255,.04);
}
.cta::before { width: 300px; height: 300px; top: -120px; right: -60px; animation: spin 20s linear infinite; }
.cta::after { width: 200px; height: 200px; bottom: -100px; left: 10%; }
.cta h2 { color: #fff; position: relative; z-index: 2; }
.cta .btn-main { position: relative; z-index: 2; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 20px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; display: block; transition: transform .8s var(--ease); }
.gallery-item .g-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,48,.9), rgba(26,58,122,.3));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
  opacity: 0; transition: opacity .45s var(--ease);
}
.gallery-item .g-overlay h6 { color: #fff; margin: 0; transform: translateY(20px); transition: transform .45s var(--ease); }
.gallery-item .g-overlay small { color: var(--accent); transform: translateY(20px); transition: transform .5s var(--ease); }
.gallery-item .g-zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-accent); color: var(--dark);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .45s var(--ease);
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover .g-overlay { opacity: 1; }
.gallery-item:hover .g-overlay h6, .gallery-item:hover .g-overlay small { transform: translateY(0); }
.gallery-item:hover .g-zoom { transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(6,14,33,.95); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transform: scale(.85); transition: transform .45s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 22px; transition: all .3s;
}
.lightbox .lb-btn:hover { background: var(--accent); color: var(--dark); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; font-family: 'Poppins'; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff; border-radius: var(--radius); padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow); height: 100%; transition: all .45s var(--ease); position: relative; overflow: hidden;
}
.contact-info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.contact-info-card .ci-icon {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 32px; position: relative;
}
.contact-info-card .ci-icon::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(26,58,122,.2);
  animation: ringPulse 2s infinite;
}
@keyframes ringPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.contact-info-card a { color: var(--text); }
.contact-info-card a:hover { color: var(--primary); }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg); }
.form-floating > .form-control, .form-floating > .form-select {
  border-radius: 12px; border: 2px solid #e7ecf5; transition: all .3s;
}
.form-floating > .form-control:focus, .form-floating > .form-select:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(47,91,196,.12);
}
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 100%; min-height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; filter: grayscale(.2); }
.hours-card { background: var(--gradient); color: #fff; border-radius: var(--radius); padding: 30px; }
.hours-card h5 { color: #fff; }
.hours-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hours-card li:last-child { border: none; }
.form-success {
  display: none; background: rgba(61,200,120,.1); border: 1px solid rgba(61,200,120,.4);
  color: #1d8a4e; border-radius: 12px; padding: 14px 18px; margin-top: 18px;
}
.form-success.show { display: block; animation: fadeInUp .5s var(--ease); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent), var(--primary-light));
}
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent); animation: pulseDot 2s infinite;
}
.timeline-item .year { font-family: 'Poppins'; font-weight: 700; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--darker); color: rgba(255,255,255,.65); padding: 90px 0 0; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-accent);
}
.footer h5 { color: #fff; margin-bottom: 26px; position: relative; padding-bottom: 12px; }
.footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer .f-logo { background: #fff; border-radius: 12px; padding: 10px 14px; height: 70px; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,.65); }
.footer a:hover { color: var(--accent); padding-left: 6px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer .f-links i { color: var(--accent); margin-right: 6px; font-size: 12px; }
.footer .f-contact li { display: flex; gap: 12px; }
.footer .f-contact i { color: var(--accent); font-size: 18px; margin-top: 2px; }
.footer .portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer .portfolio-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: all .4s var(--ease); }
.footer .portfolio-grid a:hover { padding: 0; }
.footer .portfolio-grid img:hover { transform: scale(1.08); filter: brightness(1.15); }
.footer .f-social a {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #fff; align-items: center; justify-content: center; margin-right: 8px;
}
.footer .f-social a:hover { background: var(--accent); color: var(--dark); padding: 0; transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; margin-top: 60px; font-size: 14px; }

/* ---------- Floating buttons ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: var(--gradient); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .4s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gradient-accent); color: var(--dark); }
.whatsapp-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 10px 25px rgba(37,211,102,.45);
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: ringPulse 1.8s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }

/* ---------- Scroll reveal animations ---------- */
.reveal { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.reveal.fade-up { transform: translateY(60px); }
.reveal.fade-down { transform: translateY(-60px); }
.reveal.fade-left { transform: translateX(-70px); }
.reveal.fade-right { transform: translateX(70px); }
.reveal.zoom-in { transform: scale(.8); }
.reveal.flip-up { transform: perspective(800px) rotateX(35deg) translateY(40px); }
.reveal.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }

/* Hero entrance */
.hero-anim > * { opacity: 0; transform: translateY(40px); animation: heroIn 1s var(--ease) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .3s; }
.hero-anim > *:nth-child(2) { animation-delay: .5s; }
.hero-anim > *:nth-child(3) { animation-delay: .7s; }
.hero-anim > *:nth-child(4) { animation-delay: .9s; }
.hero-anim > *:nth-child(5) { animation-delay: 1.1s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Tilt */
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  section { padding: 80px 0; }
  .hero { background-attachment: scroll; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-visual { height: 380px; margin-top: 50px; }
  .radar { width: 320px; height: 320px; }
  .navbar-brand img { height: 70px; }
  .navbar-scrolled .navbar-brand img { height: 60px; }
  .navbar-collapse { background: #fff; padding: 16px; border-radius: 14px; margin-top: 12px; box-shadow: var(--shadow); }
  .process-wrap::before { display: none; }
  .cta { padding: 40px 28px; text-align: center; }
  .counter-section { background-attachment: scroll; }
  .reveal.fade-left, .reveal.fade-right { transform: translateY(40px); }
}
@media (max-width: 575.98px) {
  .navbar-brand { margin-right: 0; max-width: 75%; }
  .navbar-brand img { height: 58px; }
  .navbar-scrolled .navbar-brand img { height: 50px; }
  .float-card { display: none; }
  .radar { width: 270px; height: 270px; }
  .hero-visual { height: 300px; }
  .contact-form-wrap { padding: 28px 20px; }
  .experience-badge { left: 0; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .hero { padding: 120px 0 90px; }
  .hero-tag { letter-spacing: 1px; font-size: 12px; padding: 8px 16px; }
  .hero p.lead { font-size: 17px; }
  .hero .d-flex.gap-4 { gap: 1rem !important; }
  .hero .d-flex.gap-4 h3 { font-size: 24px; }
  .about-img-wrap { padding: 0 20px 20px 0; }
  .filter-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 36px; }
  .filter-btn {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 10px 12px; font-size: 13px; line-height: 1.3; border-radius: 14px; min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
