/*style.css*/

/* ===== GLOBAL BACKGROUND ENGINE ===== */
.global-logic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    pointer-events: none;
    overflow: hidden;
    background: var(--black); /* Base background color */
}

/* 1. Binary Floating Numbers (0 and 1) */
.binary-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap; /* Allows spans to fill the whole width */
    justify-content: space-between;
    padding: 0 5%;
}

.binary-overlay span {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--red);
    opacity: 0;
    filter: blur(0.5px);
    display: inline-block;
    user-select: none;
    animation: globalLogicRise 8s infinite linear;
}

/* Every 2nd number: Faster and Smaller */
.binary-overlay span:nth-child(2n) {
    animation-duration: 6s;
    animation-delay: 1s;
    font-size: 12px;
    opacity: 0.15;
}

/* Staggered timing for numbers across the screen */
.binary-overlay span:nth-child(even) { animation-duration: 12s; animation-delay: 2s; font-size: 14px; }
/* Every 3rd number: Slower and Blurry (Depth effect) */
.binary-overlay span:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: 3s;
    filter: blur(2px);
    font-size: 20px;
}

/* Every 5th number: Pure Red and Bright */
.binary-overlay span:nth-child(5n) {
    animation-duration: 9s;
    animation-delay: 0.5s;
    color: #fff; /* White flicker for electronic look */
    text-shadow: 0 0 8px var(--red);
}

/* Every 7th number: Offset slightly to the left */
.binary-overlay span:nth-child(7n) {
    transform: translateX(-30px);
    animation-duration: 15s;
}

@keyframes globalLogicRise {
    0% { 
        transform: translateY(110vh); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.4; 
    }
    90% { 
        opacity: 0.4; 
    }
    100% { 
        transform: translateY(-20vh); 
        opacity: 0; 
    }
}

/* 2. Red Electronics Dots (Particles) */
.p-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    opacity: 0;
    animation: globalParticle 15s infinite ease-in-out;
}

/* Random starting points for particles */
.p-dot:nth-child(1) { left: 10%; top: 80%; animation-delay: 0s; }
.p-dot:nth-child(2) { left: 85%; top: 60%; animation-delay: 3s; }
.p-dot:nth-child(3) { left: 40%; top: 90%; animation-delay: 6s; }
.p-dot:nth-child(4) { left: 70%; top: 20%; animation-delay: 9s; }
.p-dot:nth-child(5) { left: 25%; top: 40%; animation-delay: 12s; }

@keyframes globalParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 0.6; transform: translate(20px, -50px); }
    100% { transform: translate(-20px, -150px); opacity: 0; }
}

/* 3. Background Thermal Glow (The "Electronics Heat" effect) */
.thermal-pulse {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(232, 22, 30, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseHeat 8s infinite alternate ease-in-out;
}

@keyframes pulseHeat {
    0% { opacity: 0.2; transform: translateX(-50%) scale(0.8); }
    100% { opacity: 0.5; transform: translateX(-50%) scale(1.2); }
}

/* Adjusting existing sections to be transparent enough to see the effect */
section {
    background: transparent !important;
    position: relative;
    z-index: 1;
}
/* ===== DESIGN SYSTEM ===== */
:root {
  --red: #e8161e;
  --red-dark: #b5101a;
  --red-glow: rgba(232,22,30,0.25);
  --black: #0a0a0c;
  --dark: #111115;
  --dark2: #18181f;
  --dark3: #22222c;
  --border: rgba(255,255,255,0.08);
  --border-red: rgba(232,22,30,0.3);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --white: #ffffff;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--red);
  padding: 6px 0;
  font-size: 12px;
  font-family: var(--font-head);
  letter-spacing: 1px;
}
.topbar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar .socials a {
  margin-left: 14px;
  font-size: 13px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.topbar .socials a:hover { opacity: 1; transform: scale(1.15); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(10,10,12,0.98);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 58px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--text);
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }
.nav-links > li > a i { font-size: 10px; opacity: 0.6; }

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s;
  list-style: none;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-links > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  white-space: nowrap;
}
.dropdown-menu li a:hover { color: var(--red); background: rgba(232,22,30,0.05); padding-left: 26px; }

/* Sub-dropdown */
.dropdown-menu li { position: relative; }
.sub-dropdown {
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 240px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.22s;
  z-index: 101;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dropdown-menu li:hover .sub-dropdown { opacity: 1; visibility: visible; transform: translateX(0); }
.sub-dropdown li a { padding: 8px 20px; font-size: 12.5px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav .sub { padding-left: 20px; font-size: 14px; color: var(--text-muted); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0c 0%, #150508 50%, #0a0a0c 100%);
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,22,30,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,22,30,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

/* Radial glow */
.hero-glow {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,22,30,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,22,30,0.1);
  border: 1px solid var(--border-red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent { color: var(--red); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Hero image side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(1.1);
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,12,0.5) 0%, transparent 60%);
}
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge-icon { width: 36px; height: 36px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hero-badge-icon i { color: #fff; font-size: 16px; }
.hero-badge-text strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--white); }
.hero-badge-text span { font-size: 11px; color: var(--text-muted); }

/* Floating certs */
.hero-cert {
  position: absolute;
  top: 20px;
  right: -10px;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.hero-cert img { height: 28px; object-fit: contain; }

/* ===== SECTION BASE ===== */
section { padding: 80px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}
.section-title span { color: var(--red); }
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== ABOUT CARDS ===== */
.about-section { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}
.about-card {
  background: var(--dark2);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.about-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}
.about-card:hover { background: var(--dark3); }
.about-card:hover::before { transform: scaleX(1); }
.about-card-num {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 700;
  color: rgba(232,22,30,0.08);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.about-card:hover .about-card-num { color: rgba(232,22,30,0.15); }
.about-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.about-card ul { list-style: none; padding: 0; }
.about-card ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.about-card ul li:last-child { border-bottom: none; }
.about-card ul li::before {
  content: '▸';
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 8px;
}

/* ===== PRODUCTS ===== */
.products-section { background: var(--black); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  group: true;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-red);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--dark3);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img .cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.product-card-body { padding: 20px 22px; }
.product-card-body h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
  transition: color 0.2s;
}
.product-card:hover .product-card-body h4 { color: var(--red); }
.product-card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  margin-top: 12px;
  transition: color 0.2s;
}
.product-card:hover .product-card-arrow { color: var(--red); }
.product-card-arrow i { font-size: 10px; transition: transform 0.2s; }
.product-card:hover .product-card-arrow i { transform: translateX(4px); }

/* ===== MARQUEE ===== */
.marquee-section { background: var(--dark); padding: 0; overflow: hidden; }
.marquee-section.clients { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-wrap { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-wrap:hover { animation-play-state: paused; }
.marquee-inner { display: flex; align-items: center; gap: 0; }
.marquee-inner img { height: 80px; object-fit: cover; margin: 0 4px; opacity: 0.85; transition: opacity 0.2s; }
.marquee-section.clients .marquee-inner img { height: 64px; object-fit: contain; filter: grayscale(60%); transition: filter 0.3s; }
.marquee-section.clients .marquee-inner img:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 0 24px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== SERVICES ===== */
.services-section { background: var(--dark); position: relative; overflow: hidden; }
.services-section::before {
  content: 'SERVICES';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 200px;
  font-weight: 700;
  color: rgba(255,255,255,0.015);
  white-space: nowrap;
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover { background: var(--dark3); border-color: var(--border-red); transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,22,30,0.12);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: rgba(232,22,30,0.2); }
.service-icon i { color: var(--red); font-size: 22px; }
.service-card h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ===== STATS COUNTER ===== */
.stats-section {
  background: linear-gradient(135deg, var(--red-dark) 0%, #8b0000 100%);
  position: relative;
  overflow: hidden;
  padding: 70px 0;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.stat-card { text-align: center; }
.stat-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(255,255,255,0.2);
}
.stat-card-icon i { font-size: 26px; color: #fff; }
.stat-card-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-card-num sup { font-size: 24px; margin-top: 8px; }
.stat-card h5 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h3 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.cta-text p { font-size: 15px; color: var(--text-muted); }
.cta-phone {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.cta-phone-icon {
  width: 58px;
  height: 58px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: phoneRing 2s ease-in-out infinite;
}
@keyframes phoneRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,22,30,0.4); }
  50% { box-shadow: 0 0 0 16px rgba(232,22,30,0); }
}
.cta-phone-icon i { color: #fff; font-size: 22px; }
.cta-phone-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}
.cta-phone-text span { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr;
  gap: 48px;
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.footer-col .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-col .socials a {
  width: 34px;
  height: 34px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.footer-col .socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links li a::before { content: '›'; color: var(--red); font-size: 14px; }
.footer-links li a:hover { color: var(--red); padding-left: 4px; }
.footer-prod-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-prod-list a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  transition: all 0.2s;
}
.footer-prod-list a:hover { border-color: var(--red); color: var(--red); }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item i { color: var(--red); margin-top: 3px; font-size: 14px; }
.footer-contact-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.footer-contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--red); }
.footer-indiamart { margin-top: 18px; }
.footer-indiamart img { height: 32px; object-fit: contain; filter: brightness(0.8); transition: filter 0.2s; }
.footer-indiamart img:hover { filter: brightness(1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom span { color: var(--red); }

/* ===== SIDEBAR CONTACT ===== */
.sidebar-contact-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: right center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  z-index: 900;
  border: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.sidebar-contact-btn:hover { background: var(--red-dark); }
.sidebar-panel {
  position: fixed;
  right: -360px;
  top: 0;
  bottom: 0;
  width: 340px;
  background: var(--dark2);
  border-left: 1px solid var(--border);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding: 40px 32px;
}
.sidebar-panel.open { right: 0; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1099;
  display: none;
}
.sidebar-overlay.open { display: block; }
.sidebar-panel h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.sidebar-panel p { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.sidebar-panel label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sidebar-panel input,
.sidebar-panel textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.sidebar-panel input:focus,
.sidebar-panel textarea:focus { border-color: var(--red); }
.sidebar-panel textarea { min-height: 100px; resize: vertical; }
.sidebar-panel .btn-primary { width: 100%; justify-content: center; }
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-close:hover { color: var(--red); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 800;
  box-shadow: 0 4px 16px var(--red-glow);
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; text-align: center; }
  section { padding: 56px 0; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-cert { display: none; }
  .topbar .socials { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
 