:root {
  --blue: #0b1f3a;
  --blue-2: #102c52;
  --orange: #f7931e;
  --cyan: #18d5ff;
  --steel: #27313f;
  --silver: #d8dee8;
  --light: #f4f7fb;
  --white: #ffffff;
  --dark: #071421;
  --shadow: 0 22px 60px rgba(7, 20, 33, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263241;
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section-padding { padding: 96px 0; }
.section-muted { background: var(--light); }
.section-dark { background: var(--blue); color: var(--white); }
.text-orange { color: var(--orange); }
.text-cyan { color: var(--cyan); }
.lead-tight { max-width: 760px; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--blue);
  transition: opacity .45s ease, visibility .45s ease;
}

.preloader.hide { opacity: 0; visibility: hidden; }

.loader-mark {
  width: 76px;
  height: 76px;
  border: 5px solid rgba(255,255,255,.18);
  border-top-color: var(--orange);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.navbar {
  padding: 16px 0;
  background: rgba(7, 20, 33, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all .25s ease;
}

.navbar.scrolled { padding: 10px 0; background: rgba(7, 20, 33, .96); }
.navbar-brand { color: var(--white); font-weight: 800; letter-spacing: .2px; }
.brand-logo {
  width: 46px;
  height: 46px;
  margin-right: 10px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
  padding: 3px;
}

.navbar .nav-link {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  padding: 10px 14px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--orange); }

.dropdown-menu {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 640px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
}

.mega-item:hover { background: #f1f5fa; }
.mega-item i { color: var(--orange); font-size: 22px; margin-top: 3px; }
.mega-item strong { display: block; color: var(--blue); line-height: 1.2; }
.mega-item span { display: block; color: #647286; font-size: 13px; }

.btn-industrial {
  border: 0;
  border-radius: 4px;
  padding: 13px 24px;
  font-weight: 800;
  color: var(--blue);
  background: linear-gradient(135deg, var(--orange), #ffb451);
  box-shadow: 0 14px 28px rgba(247,147,30,.26);
}

.btn-industrial:hover { color: var(--blue); transform: translateY(-2px); }
.btn-outline-light { border-radius: 4px; padding: 12px 23px; font-weight: 800; }

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(7,20,33,.92), rgba(11,31,58,.74) 52%, rgba(7,20,33,.5)),
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1920&q=80") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,213,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,213,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  z-index: -1;
}

#particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .75;
}

.hero h1 {
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.hero p { font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.86); max-width: 820px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--orange);
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7,20,33,.78);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-strip .col { padding: 22px; border-right: 1px solid rgba(255,255,255,.1); }
.hero-strip strong { display: block; color: var(--white); font-size: 18px; }
.hero-strip span { color: rgba(255,255,255,.62); font-size: 14px; }

.section-title {
  margin-bottom: 46px;
}

.section-title h2 {
  font-family: "Rajdhani", "Inter", sans-serif;
  color: var(--blue);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 14px;
}

.section-dark .section-title h2 { color: var(--white); }
.section-title p { color: #607086; max-width: 760px; margin: 0; }

.glass-card,
.service-card,
.product-card,
.value-card,
.project-card,
.testimonial-card {
  border: 1px solid rgba(216,222,232,.82);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 30px rgba(7,20,33,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.glass-card:hover,
.service-card:hover,
.product-card:hover,
.value-card:hover,
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(247,147,30,.42);
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(247,147,30,.16), rgba(24,213,255,.12));
  color: var(--orange);
  font-size: 25px;
  flex: 0 0 auto;
}

.service-card { padding: 28px; height: 100%; overflow: hidden; position: relative; }
.service-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -70px;
  bottom: -70px;
  border: 20px solid rgba(247,147,30,.1);
  transform: rotate(35deg);
}
.service-card h3,
.product-card h3,
.value-card h3 { font-size: 20px; color: var(--blue); font-weight: 800; margin: 18px 0 10px; }
.service-card p,
.product-card p,
.value-card p { color: #637085; margin-bottom: 0; }

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--orange), var(--cyan));
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(247,147,30,.16);
}

.timeline-item h3 { font-size: 20px; color: var(--blue); font-weight: 800; margin-bottom: 6px; }

.industrial-image {
  min-height: 450px;
  border-radius: var(--radius);
  background: linear-gradient(rgba(11,31,58,.18), rgba(11,31,58,.24)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.industrial-image::after {
  content: "IEC | EPC | POWER";
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.product-card { height: 100%; overflow: hidden; }
.product-card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}
.product-card .body { padding: 22px; }
.feature-list { list-style: none; padding: 0; margin: 14px 0 0; }
.feature-list li { margin: 7px 0; color: #536176; }
.feature-list i { color: var(--orange); margin-right: 8px; }

.technical-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,31,58,.96), rgba(16,44,82,.9)),
    url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?auto=format&fit=crop&w=1500&q=80") center/cover;
  color: var(--white);
  overflow: hidden;
}

.diagram-box {
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(24,213,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,213,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  display: grid;
  place-items: center;
  padding: 28px;
}

.diagram-core {
  width: min(340px, 100%);
  aspect-ratio: 1;
  border: 3px solid var(--cyan);
  position: relative;
}
.diagram-core::before,
.diagram-core::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 3px solid var(--orange);
}
.diagram-core::after {
  inset: 34%;
  border-color: rgba(255,255,255,.72);
}

.counter-box {
  padding: 26px;
  border-left: 3px solid var(--orange);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.counter { font-family: "Rajdhani", sans-serif; font-size: 48px; font-weight: 800; line-height: 1; }

.nav-pills .nav-link {
  border-radius: 4px;
  color: var(--blue);
  font-weight: 800;
  border: 1px solid var(--silver);
  margin-right: 10px;
}
.nav-pills .nav-link.active { background: var(--orange); color: var(--blue); border-color: var(--orange); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #dde5ef;
}
.spec-table td:first-child { color: var(--blue); font-weight: 800; }

.solar-section {
  background:
    linear-gradient(90deg, rgba(7,20,33,.88), rgba(9,71,67,.72)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
  color: var(--white);
}

.energy-line {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--cyan), #64ff7f, var(--orange), transparent);
  animation: flow 2.6s linear infinite;
  background-size: 220% 100%;
}
@keyframes flow { to { background-position: 220% 0; } }

.value-card { padding: 25px; height: 100%; }
.stats-band { background: var(--dark); color: var(--white); }
.stats-band .counter-box { height: 100%; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--silver);
  background: var(--white);
  color: var(--blue);
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 800;
}
.filter-btn.active,
.filter-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.project-card { overflow: hidden; cursor: pointer; height: 100%; }
.project-card img { height: 250px; width: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card .body { padding: 18px; }
.project-card small { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.project-card h3 { color: var(--blue); font-size: 20px; font-weight: 800; margin: 7px 0 0; }

.testimonial-card { padding: 28px; min-height: 260px; }
.testimonial-card i { color: var(--orange); font-size: 34px; }

.cert-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cert-item {
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
}
.cert-item i { color: var(--cyan); font-size: 36px; margin-bottom: 14px; }

.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  border-radius: 4px;
  border: 1px solid #d8e0eb;
  min-height: 50px;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(247,147,30,.15);
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  filter: saturate(.85) contrast(1.05);
}

.footer {
  background: #071421;
  color: rgba(255,255,255,.72);
  padding: 70px 0 24px;
}
.footer h3,
.footer h4 { color: var(--white); font-weight: 800; }
.footer a { display: block; color: rgba(255,255,255,.7); margin: 9px 0; }
.footer a:hover { color: var(--orange); }
.socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  margin-right: 8px;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
}
.floating-cta a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.floating-cta .whatsapp { background: #25d366; }
.floating-cta .call { background: var(--orange); color: var(--blue); }

.page-hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 110px;
  background:
    linear-gradient(100deg, rgba(7,20,33,.9), rgba(11,31,58,.68)),
    var(--page-bg, url("https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&w=1800&q=80")) center/cover;
}
.page-hero h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  line-height: 1;
}

.modal-content { border-radius: var(--radius); border: 0; }
.modal-header { background: var(--blue); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; }
.btn-close { filter: invert(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
