/* ==========================================================================
   Suraj Electricals — Modern Homepage
   Design tokens
   ========================================================================== */
:root{
  --void:#0A0F1A;
  --panel:#111A2B;
  --panel-2:#16213A;
  --line: rgba(201,124,61,0.22);
  --line-soft: rgba(237,239,243,0.08);
  --copper:#C97C3D;
  --copper-bright:#E8954F;
  --amber:#F2B705;
  --steel:#8A94A6;
  --paper:#EDEFF3;
  --paper-2:#F6F5F2;
  --ink:#131722;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.68,.32,1);
}

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

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper-2);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
:focus-visible{ outline: 2px solid var(--copper-bright); outline-offset: 3px; }
.wrap{ max-width: var(--container); margin:0 auto; padding: 0 24px; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:'';
  width: 22px; height:1px;
  background: var(--copper);
  display:inline-block;
}
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; letter-spacing:-.01em; }
p{ margin:0; }

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  padding: 22px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.scrolled{
  padding: 12px 0;
  background: rgba(10,15,26,0.86);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px rgba(0,0,0,.25);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:14px; }
.brand-mark{
  display:flex; align-items:center; justify-content:center;
  width: 100px; height: 50px;
  background: var(--paper); border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  transition: transform .25s var(--ease);
  overflow: hidden;
}
.brand:hover .brand-mark{ transform: translateY(-1px) scale(1.03); }
.brand-mark img{
  height: 120%;
  width: 120%;
  object-fit: contain;
  display:block;
}
.brand-name{
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 20px;
  font-weight:700;
  letter-spacing:.005em;
  line-height:1.15;
}
.brand-name small{
  display:block; font-family: var(--font-mono); font-weight:400;
  font-size: 10.5px; letter-spacing:.16em; text-transform:uppercase; color: var(--copper-bright); margin-top:4px; opacity:.9;
}
.nav-links{ display:flex; align-items:center; gap: 34px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size: 14.5px; color: var(--paper); opacity:.82; position:relative; padding: 4px 0;
  transition: opacity .25s;
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background: var(--copper-bright);
  transition: right .3s var(--ease);
}
.nav-links a:hover{ opacity:1; }
.nav-links a:hover::after{ right:0; }
.nav-links a.nav-cta{
  font-family: var(--font-mono); font-size: 13px; letter-spacing:.02em;
  color: var(--void); background: var(--copper-bright);
  padding: 13px 20px; border-radius: 999px; white-space:nowrap;
  display: inline-block;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,124,61,.35); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; background: var(--paper); margin:5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px){
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px);
    background: var(--panel); flex-direction:column; justify-content:center; align-items:flex-start;
    padding: 40px; gap: 26px; transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-cta{ margin-top:6px; }
  .nav-toggle{ display:block; }
  body.nav-open{ overflow:hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  min-height: 100vh;
  background: var(--void);
  overflow:hidden;
  display:flex; align-items:center;
  padding: 140px 0 80px;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-glow{
  position:absolute; inset:0;
  background: radial-gradient(600px 400px at 78% 18%, rgba(201,124,61,.18), transparent 70%),
              radial-gradient(500px 380px at 10% 90%, rgba(242,183,5,.08), transparent 70%);
}
.hero-circuit{ position:absolute; inset:0; width:100%; height:100%; opacity:.85; }
.hero-circuit .trace{
  fill:none; stroke: var(--copper); stroke-width:1.4; stroke-dasharray: 6 10; opacity:.55;
  animation: dash 3.2s linear infinite;
}
.hero-circuit .trace.alt{ stroke: var(--amber); animation-duration: 4.4s; animation-direction: reverse; opacity:.4;}
.hero-circuit .node{ fill: var(--copper-bright); }
.hero-circuit .node.pulse{ animation: pulse 2.4s ease-in-out infinite; }
@keyframes dash{ to{ stroke-dashoffset: -160; } }
@keyframes pulse{ 0%,100%{ opacity:.5; r:3; } 50%{ opacity:1; r:4.5; } }

.hero-content{ position:relative; z-index:2; max-width: 760px; }
.hero .eyebrow{ color: var(--copper-bright); margin-bottom: 22px; }
.hero h1{
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  color: var(--paper);
  font-weight: 600;
}
.hero h1 em{ font-style:normal; color: var(--copper-bright); }
.hero-sub{
  margin-top: 22px; font-size: 17px; line-height:1.65; color: var(--steel);
  max-width: 560px;
}
.hero-actions{ display:flex; gap:16px; margin-top: 36px; flex-wrap:wrap; }
.btn{
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing:.03em;
  padding: 14px 26px; border-radius: 999px; display:inline-flex; align-items:center; gap:10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary{ background: var(--copper-bright); color: var(--void); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,124,61,.4); }
.btn-ghost{ border: 1px solid var(--line-soft); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--copper); background: rgba(201,124,61,.08); }
.btn .arrow{ transition: transform .25s var(--ease); }
.btn:hover .arrow{ transform: translateX(4px); }

.hero-readout{
  position:relative; z-index:2; margin-top: 56px;
  display:flex; align-items:center; gap: 30px;
  padding: 22px 30px;
  background: rgba(237,239,243,.04);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  width: fit-content; max-width: 100%;
}
.stat-block{ display:flex; align-items:center; gap: 14px; }
.stat-block svg{ width: 24px; height:24px; color: var(--copper-bright); flex-shrink:0; }
.stat-num{
  font-family: var(--font-mono); font-size: clamp(24px,2.6vw,30px); color: var(--paper); font-weight:600; line-height:1;
}
.stat-label{ font-size: 11.5px; color: var(--steel); margin-top:6px; letter-spacing:.03em; white-space:nowrap; }
.stat-div{ width:1px; height:38px; background: var(--line-soft); flex-shrink:0; }

.build-flow{ position:relative; z-index:2; margin-top: 40px; }
.flow-label{
  display:block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--steel); margin-bottom: 18px;
}
.flow-steps{ display:flex; align-items:flex-start; }
.flow-step{ display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center; flex-shrink:0; }
.flow-dot{
  width: 32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size: 12px; color: var(--copper-bright);
  border: 1px solid var(--copper); background: rgba(201,124,61,.1);
  position:relative; z-index:2;
}
.flow-step span:last-child{ font-size: 11px; color: var(--steel); letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }
.flow-line{
  flex:1; min-width: 30px; height:2px; margin-top:15px; align-self:flex-start;
  background-image: linear-gradient(90deg, var(--copper) 50%, transparent 50%);
  background-size: 12px 2px; background-repeat: repeat-x;
  animation: flowMove 1s linear infinite;
  opacity:.6;
}

@keyframes flowMove{ from{ background-position: 0 0; } to{ background-position: -12px 0; } }

@media (max-width: 900px){
  .hero-readout{ flex-wrap:wrap; gap: 20px 30px; }
  .stat-div{ display:none; }
}
@media (max-width: 640px){
  .hero-readout{ padding: 18px 20px; gap: 16px 24px; }
  .flow-steps{ flex-wrap:wrap; row-gap: 20px; justify-content:flex-start; }
  .flow-line{ min-width: 20px; }
}

/* ==========================================================================
   About / welcome strip
   ========================================================================== */
.about{ background: var(--paper-2); padding: 110px 0; }
.about .wrap{ display:grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items:center; }
.about-gallery{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-gallery img{
  border-radius: var(--radius); object-fit:cover; width:100%; height: 200px;
  box-shadow: 0 20px 40px rgba(19,23,34,.12);
}
.about-gallery .g1{ margin-top: 40px; }
.about-gallery .g3{ margin-top: -40px; }
.about h2{ font-size: clamp(28px,3vw,38px); color: var(--ink); line-height:1.15; margin-bottom:18px; }
.about-lead{ font-size: 17px; color:#4b5566; line-height:1.7; }
.about-lead + .about-lead{ margin-top:14px; }
.cert-plaque{
  margin-top: 38px; padding: 22px 26px;
  background: #fff; border: 1px solid rgba(19,23,34,.07); border-radius: 14px;
  box-shadow: 0 16px 34px rgba(19,23,34,.07);
}
.eyebrow-mini{
  display:block; font-family: var(--font-mono); font-size: 11px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--steel); margin-bottom: 16px;
}
.cert-row{ display:flex; align-items:center; gap: 30px; flex-wrap:wrap; }
.cert-row img{
  height: 67px; width:auto; object-fit:contain;
  transition: transform .3s var(--ease);
}
.cert-row img:hover{ transform: translateY(-3px) scale(1.04); }

@media (max-width: 860px){
  .about .wrap{ grid-template-columns: 1fr; }
  .about-gallery{ order:2; }
}

/* ==========================================================================
   Products
   ========================================================================== */
.products{ background: var(--paper-2); padding: 40px 0 120px; }
.section-head{ text-align:center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2{ font-size: clamp(28px,3.4vw,40px); color: var(--ink); margin-top: 16px; }
.section-head p{ margin-top: 14px; color:#5b6577; font-size: 16px; line-height:1.6; }

.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card{
  position:relative; background: var(--panel); border-radius: var(--radius); padding: 28px 24px 26px;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow:hidden;
}
.product-card::before{
  content:''; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: linear-gradient(135deg, transparent 40%, var(--copper) 140%);
  opacity:0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}
.product-card:hover{ transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.product-card:hover::before{ opacity:1; }
.product-card .rivet{ position:absolute; width:5px; height:5px; border-radius:50%; background: rgba(255,255,255,.14); }
.product-card .rivet.tl{ top:10px; left:10px; } .product-card .rivet.tr{ top:10px; right:10px; }
.product-card .rivet.bl{ bottom:10px; left:10px; } .product-card .rivet.br{ bottom:10px; right:10px; }
.tag-code{
  font-family: var(--font-mono); font-size: 12px; letter-spacing:.12em; color: var(--copper-bright);
  display:inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px;
}
.product-card h3{ color: var(--paper); font-size: 19px; margin-bottom: 12px; font-weight:600; }
.product-card p{ color: var(--steel); font-size: 14.5px; line-height:1.6; margin-bottom: 22px; }
.card-link{
  font-family: var(--font-mono); font-size: 13px; color: var(--copper-bright); display:inline-flex; align-items:center; gap:8px;
}
.card-link .arrow{ transition: transform .25s var(--ease); }
.card-link:hover .arrow{ transform: translateX(4px); }

@media (max-width: 980px){ .product-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .product-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Industries / Projects
   ========================================================================== */
.industries{ background: var(--void); padding: 120px 0; }
.industries .section-head h2, .industries .eyebrow{ color: var(--paper); }
.industries .section-head p{ color: var(--steel); }
.industry-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.industry-item{
  position:relative; border-radius: var(--radius); overflow:hidden; aspect-ratio: 4/3;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.industry-item img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.industry-item:hover img{ transform: scale(1.08); }
.industry-item::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(10,15,26,.92) 0%, rgba(10,15,26,.15) 55%, transparent 80%);
}
.industry-caption{
  position:absolute; left:18px; right:18px; bottom:16px; z-index:2;
  font-family: var(--font-mono); font-size: 13px; letter-spacing:.05em; color: var(--paper); text-transform:uppercase;
  display:flex; align-items:center; justify-content:space-between;
}
.industry-caption .arrow{ color: var(--copper-bright); transition: transform .3s var(--ease); }
.industry-item:hover .industry-caption .arrow{ transform: translateX(4px); }

@media (max-width: 900px){ .industry-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .industry-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Clients marquee
   ========================================================================== */
.clients{ background: var(--paper-2); padding: 90px 0; overflow:hidden; }
.clients .section-head{ margin-bottom: 46px; }
.marquee{ position:relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display:flex; gap: 56px; width:max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track img{ height: 46px; width:auto; object-fit:contain; opacity:.65; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.marquee-track img:hover{ opacity:1; filter:none; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials{ background: var(--void); padding: 110px 0; }
.testimonials .section-head h2, .testimonials .eyebrow{ color: var(--paper); }
.testimonials .section-head p{ color: var(--steel); }
.t-slider{ max-width: 720px; margin: 0 auto; position:relative; min-height: 260px; }
.t-slide{
  position:absolute; inset:0; opacity:0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events:none; text-align:center;
}
.t-slide.active{ opacity:1; transform: translateY(0); pointer-events:auto; position:relative; }
.t-stars{ color: var(--amber); font-size: 18px; letter-spacing:3px; margin-bottom: 22px; }
.t-text{ font-size: 20px; line-height:1.6; color: var(--paper); font-weight:400; }
.t-text::before{ content:'“'; } .t-text::after{ content:'”'; }
.t-name{ margin-top: 26px; font-family: var(--font-display); color: var(--copper-bright); font-size: 16px; font-weight:600; }
.t-company{ margin-top: 4px; color: var(--steel); font-size: 13.5px; }
.t-dots{ display:flex; justify-content:center; gap:10px; margin-top: 46px; }
.t-dots button{ width:8px; height:8px; border-radius:50%; background: var(--line-soft); border:none; cursor:pointer; padding:0; transition: background .25s, transform .25s; }
.t-dots button.active{ background: var(--copper-bright); transform: scale(1.3); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background: linear-gradient(120deg, var(--copper) 0%, var(--copper-bright) 100%);
  padding: 64px 0; text-align:center;
}
.cta-band h2{ font-size: clamp(24px,3vw,32px); color: var(--void); }
.cta-band p{ color: rgba(10,15,26,.75); margin-top:10px; font-size: 15.5px; }
.cta-band .btn-primary{ background: var(--void); color: var(--paper); margin-top: 26px; }
.cta-band .btn-primary:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.3); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--void); padding: 70px 0 30px; border-top: 1px solid var(--line-soft); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 46px; }
.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand p{ color: var(--steel); font-size: 14.5px; line-height:1.7; max-width: 320px; }
.footer-col h4{ color: var(--paper); font-size: 13.5px; letter-spacing:.08em; text-transform:uppercase; font-family: var(--font-mono); margin-bottom: 18px; font-weight:500; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-col a{ color: var(--steel); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover{ color: var(--copper-bright); }
.footer-bottom{ border-top: 1px solid var(--line-soft); padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color: var(--steel); font-size: 13px; }

@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; gap:32px; } }

.footer-cta-col p{ color: var(--steel); font-size: 14px; line-height:1.6; margin-bottom: 20px; max-width: 240px; }
.footer-cta-btn{ padding: 11px 20px; font-size: 12.5px; }

.back-to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background: var(--copper-bright); color: var(--void);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(201,124,61,.35);
  opacity:0; transform: translateY(14px); pointer-events:none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
}
.back-to-top.visible{ opacity:1; transform: translateY(0); pointer-events:auto; }
.back-to-top:hover{ background: var(--copper); }
.back-to-top svg{ width: 20px; height:20px; }
