/* Basic responsive styling for TRIDEV POWER CONTROL one-page site */
:root{
  --accent:#0b63ff;
  --accent-2:#0a4fe6;
  --bg:#f7f9fb;
  --muted:#6b7280;
  --container:1100px;
  --card-shadow: 0 10px 30px rgba(2,6,23,.06);
  --ease: cubic-bezier(.2,.9,.2,1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  line-height:1.6;color:#0b1220;background:linear-gradient(180deg,var(--bg),#eef3fb 60%);
  margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
/* Topbar */
.topbar{background:linear-gradient(90deg,#051023,#071128);color:#e6eefb;font-size:.95rem}
.topbar a{color:#fff;text-decoration:none}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:.6rem 1.25rem;gap:1rem}
.topbar-left{display:flex;align-items:center;gap:1rem}
.topbar .icon{width:16px;height:16px;fill:#fff;opacity:.95}
.contact-item{display:inline-flex;align-items:center;gap:.45rem;color:inherit}
.contact-item a{color:inherit;text-decoration:none}
.contact-item + .contact-item{padding-left:1rem;border-left:1px solid rgba(255,255,255,.06)}
.topbar-right{font-weight:600;color:#e6eefb}
@media (max-width:520px){
  .topbar-inner{flex-direction:column;align-items:flex-start;gap:.35rem}
  .contact-item + .contact-item{padding-left:0;border-left:0}
}

/* Header */
.site-header{background:linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0.7));backdrop-filter:blur(6px);position:sticky;top:0;z-index:60;box-shadow:0 6px 20px rgba(11,99,255,0.04)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand .logo{margin:0;font-size:1.15rem;letter-spacing:.06em}
.brand .logo span{display:block;font-weight:700}
.brand .tag{margin:0;color:var(--muted);font-size:.85rem}
.brand{display:flex;align-items:center;gap:0.75rem}
.logo-img{height:48px;width:auto;border-radius:6px}

/* Buttons */
.btn{display:inline-block;padding:.6rem 1rem;border-radius:10px;border:0;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;text-decoration:none;cursor:pointer;font-weight:600;transition:transform .18s var(--ease),box-shadow .18s var(--ease)}
.btn.outline{background:transparent;border:1px solid rgba(11,99,255,.12);color:var(--accent);box-shadow:none}
.btn.call{background:#ff6b6b}
.btn:active{transform:translateY(1px)}

/* Hero (mobile-first defaults) */
.hero{padding:3rem 0}
.hero-inner{display:grid;grid-template-columns:1fr;gap:1rem;align-items:start}
.hero-copy h2{font-size:1.6rem;margin:.25rem 0;font-family:'Poppins', 'Inter', sans-serif}
.lead{color:var(--muted);max-width:40ch}
.hero-right{display:flex;flex-direction:column;gap:0.6rem}
.hero-image img{width:100%;height:160px;object-fit:cover;border-radius:10px;box-shadow:var(--card-shadow)}
.hero-overlay{position:absolute;inset:auto 0 0 0;height:100px;pointer-events:none}
.hero-image{position:relative}
.shape{position:absolute;border-radius:50%;opacity:.14;mix-blend-mode:multiply}
.shape.s1{width:120px;height:120px;right:12px;bottom:-20px;background:linear-gradient(135deg,var(--accent),#6bc1ff);animation:float 6s ease-in-out infinite}
.shape.s2{width:80px;height:80px;left:8px;bottom:10px;background:linear-gradient(135deg,#ffd37a,#ff8a6b);animation:float 5.2s ease-in-out infinite}
@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-8px)}100%{transform:translateY(0)}}

.icon{width:18px;height:18px;vertical-align:middle;margin-right:.35rem;fill:#fff}
.topbar-left a{color:inherit;text-decoration:none}

/* Small micro-interactions */
.btn.primary{box-shadow:0 10px 30px rgba(11,99,255,.14);transition:transform .22s var(--ease),box-shadow .22s var(--ease)}
.btn.primary:hover{transform:translateY(-4px);box-shadow:0 22px 60px rgba(11,99,255,.18)}

/* Testimonials removed */

.hero-actions{display:flex;flex-direction:column;gap:.6rem;margin-top:1rem} 
@media (min-width:768px){
  .hero-actions{flex-direction:row}
}

/* Cards */
.hero-cards{display:grid;grid-template-columns:repeat(1,1fr);gap:.6rem;margin-top:.8rem}
.card{background:#fff;padding:.9rem;border-radius:8px;box-shadow:0 12px 30px rgba(16,24,40,.06);text-align:center;font-weight:700;transition:transform .18s var(--ease),box-shadow .18s var(--ease)}
.card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(16,24,40,.12)}

/* Products */
.products h3,.services h3,.contact h3{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.product{background:#fff;padding:1rem;border-radius:10px;box-shadow:var(--card-shadow);overflow:hidden;transition:transform .18s var(--ease),box-shadow .18s var(--ease)}
.product:hover{transform:translateY(-8px);box-shadow:0 28px 60px rgba(2,6,23,.12)}
.product img{width:100%;height:140px;object-fit:cover;border-radius:8px;margin-bottom:.75rem}

/* Services & form */
.services-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.contact .quote-form{background:#fff;padding:1rem;border-radius:10px;box-shadow:var(--card-shadow)}
.quote-form label{display:block;margin-bottom:.6rem}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;padding:.6rem;border:1px solid #e6e9ef;border-radius:8px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-actions{display:flex;gap:.75rem;align-items:center;margin-top:.5rem}
.form-message{color:green;margin-top:.5rem}

/* Footer */
.site-footer{margin-top:2.5rem;background:#f6f9ff;border-top:1px solid rgba(11,99,255,.06);padding:2rem 0 1.25rem;color:var(--muted)}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;align-items:start}
.brand-col .logo-img{height:48px}
.brand-col .muted{margin-top:.5rem;max-width:36ch}
.social-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}
.social-links a{display:inline-flex;gap:.5rem;align-items:center;color:var(--muted);text-decoration:none}
.links-col h5,.contact-col h5{margin:0 0 .6rem 0}
.links-col ul{list-style:none;padding:0;margin:0}
.links-col li{margin-bottom:.45rem}
.links-col a{text-decoration:none;color:inherit}
.contact-col .newsletter{display:flex;gap:.5rem;margin-top:.4rem}
.contact-col .newsletter input{flex:1;padding:.5rem;border-radius:8px;border:1px solid #e6e9ef}
.btn.small{padding:.45rem .7rem;border-radius:8px;font-size:.95rem}
.contact-col .muted.small{margin-top:.6rem;color:var(--muted);font-size:.95rem}
.footer-legal{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid rgba(11,99,255,.04);margin-top:1rem;font-size:.95rem;color:#94a3b8}
.small-links a{color:inherit;text-decoration:none;margin-left:.6rem}
@media (max-width:860px){
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:430px){
  .footer-grid{grid-template-columns:1fr}
  .footer-legal{flex-direction:column;gap:.6rem;text-align:center}
}

/* Reveal animations */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.reveal.in-view{opacity:1;transform:none}

/* Back to top */
.back-to-top{position:fixed;right:18px;bottom:18px;background:var(--accent);color:#fff;border-radius:10px;padding:.5rem .6rem;border:0;box-shadow:0 8px 24px rgba(2,6,23,.14);cursor:pointer;display:none}
.whatsapp-float{position:fixed;left:18px;bottom:18px;background:transparent;color:#fff;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 32px rgba(2,6,23,.12);z-index:120;transition:transform .18s ease,box-shadow .18s ease;width:48px;height:48px}
.whatsapp-float:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(2,6,23,.12)}
.whatsapp-float.pulse::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;background:rgba(37,211,102,.08);animation:pulse 1.8s infinite}
@keyframes pulse{0%{transform:translate(-50%,-50%) scale(.8);opacity:.9}70%{transform:translate(-50%,-50%) scale(1.6);opacity:0}100%{opacity:0}}

/* Inline topbar WhatsApp — green pill with white icon and text */
.whatsapp-inline{display:inline-flex;align-items:center;gap:.45rem;background:#25D366;color:#fff;padding:.2rem .5rem;border-radius:999px;text-decoration:none;font-weight:600;margin-left:.6rem;box-shadow:inset 0 -1px 0 rgba(0,0,0,.04)}
.whatsapp-inline:hover{opacity:.95}
.whatsapp-img{width:20px;height:20px;display:inline-block;border-radius:50%;object-fit:cover}
.whatsapp-inline .whatsapp-img{width:18px;height:18px}
.whatsapp-float .whatsapp-img{width:100%;height:100%;border-radius:50%}

@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr}
  .nav ul{display:none}
  .nav-toggle{display:inline-block}
  .row{grid-template-columns:1fr}
  .hero-image img{height:180px}
  /* Mobile nav open state */
  .nav-open .nav ul{display:flex !important;flex-direction:column;gap:0;background:#fff;padding:.75rem;border-radius:8px;box-shadow:0 14px 40px rgba(2,6,23,.08);position:absolute;right:1.25rem;top:68px;min-width:180px}
  .nav-open .nav ul li{margin:0}
  .nav-toggle{z-index:80}
}
/* Improved small-screen rules (<=430px) */
@media (max-width:430px){
  /* Headline and spacing */
  .hero-copy h2{font-size:1.6rem}
  .container{padding:0.9rem}
  .header-inner{padding:.45rem 0}

  /* Compact brand */
  .brand .tag{display:none}
  .logo-img{height:40px}

  /* Stack CTAs and make them full width */
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{width:100%}

  /* Shrink hero image and adjust cards to two columns */
  .hero-image img{height:160px}
  .hero-cards{grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:.9rem}
  .hero-cards .card{padding:0.9rem}

  /* Slightly tighter topbar */
  .topbar-inner{padding:.4rem 1rem}

  /* Make header appear as a compact card on small screens */
  .site-header{margin-inline:.6rem;border-radius:10px;box-shadow:0 12px 32px rgba(2,6,23,.06);border-bottom:none}

  /* Make nav toggle prominent */
  .nav-toggle{background:#fff;border-radius:8px;padding:.35rem .6rem;box-shadow:0 8px 20px rgba(2,6,23,.06)}
}
.container{max-width:var(--container);margin:0 auto;padding:1.25rem}
.site-header{background:#fff;border-bottom:1px solid #e6e9ef;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand .logo{margin:0;font-size:1.25rem;letter-spacing:.06em}
.brand .logo span{display:block;font-weight:700}
.brand .tag{margin:0;color:var(--muted);font-size:.9rem;display:none}
.brand{display:flex;align-items:center;gap:0.75rem}
.logo-img{height:48px;width:auto;border-radius:6px}
.hero-right{display:flex;flex-direction:column;gap:0.75rem}
.hero-image img{width:100%;height:100%;object-fit:cover;border-radius:8px;box-shadow:0 10px 30px rgba(2,6,23,.06)}
.product img{width:100%;height:140px;object-fit:cover;border-radius:6px;margin-bottom:.75rem}
/* Nav (mobile-first): hide list, show toggle */
.nav ul{list-style:none;margin:0;padding:0;display:none}
.nav a{color:#111;text-decoration:none;padding:.5rem .75rem;border-radius:6px}
.nav a:hover{background:#f0f4ff}
.btn{display:inline-block;padding:.5rem .9rem;border-radius:8px;border:1px solid transparent;background:transparent;text-decoration:none;cursor:pointer}
.btn.primary{background:var(--accent);color:#fff}
.btn.outline{border-color:#cbd5e1;background:transparent}
.btn.call{background:#ff6b6b;color:#fff}
.nav-toggle{display:inline-block;background:transparent;border:0;font-size:1.2rem}
.hero{padding:3rem 0}
.hero-inner{display:grid;grid-template-columns:1fr 320px;gap:1.5rem;align-items:start}
.hero-copy h2{font-size:2rem;margin:.25rem 0}
.lead{color:var(--muted);max-width:40ch}
.hero-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.card{background:#fff;padding:.9rem;border-radius:8px;box-shadow:0 8px 20px rgba(16,24,40,.04);text-align:center;font-weight:700}
.products h3,.services h3,.contact h3{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.product{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 6px 18px rgba(16,24,40,.04)}
.services-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.contact .quote-form{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 8px 24px rgba(2,6,23,.06)}
.quote-form label{display:block;margin-bottom:.6rem}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;padding:.5rem;border:1px solid #e6e9ef;border-radius:6px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-actions{display:flex;gap:.75rem;align-items:center;margin-top:.5rem}
.form-message{color:green;margin-top:.5rem}
.site-footer{margin-top:2rem;background:#fff;border-top:1px solid #e6e9ef;padding:1rem 0;color:var(--muted)}
.footer-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}
.footer-col h5{margin:0 0 .5rem 0}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col a{color:inherit;text-decoration:none}
.copyright{font-size:.9rem;color:#94a3b8;text-align:center;padding-top:.75rem}
@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr}
  .nav ul{display:none}
  .nav-toggle{display:inline-block}
  .row{grid-template-columns:1fr}
}
/* Narrow phones handled by @media (max-width:430px) above */

/* Mobile-first: breakpoints for larger screens */
@media (min-width:640px){
  /* small phones / landscape */
  .container{padding:1rem}
  .hero-copy h2{font-size:1.9rem}
  .hero-image img{height:180px}
}

@media (min-width:768px){
  /* tablets and small desktops */
  .nav ul{display:flex;gap:0.5rem;align-items:center}
  .nav-toggle{display:none}
  .hero-inner{grid-template-columns:1fr 320px;gap:1.25rem}
  .hero-copy h2{font-size:2rem}
  .lead{max-width:40ch}
  .hero-image img{height:220px}
  .hero-cards{grid-template-columns:repeat(2,1fr)}
  .row{grid-template-columns:1fr 1fr}
}

@media (min-width:1024px){
  /* desktop and larger */
  .container{max-width:var(--container)}
  .hero-inner{grid-template-columns:1fr 380px;gap:1.5rem}
  .hero-copy h2{font-size:2.6rem}
  .lead{max-width:54ch}
  .hero-image img{height:260px}
  .hero-cards{grid-template-columns:repeat(2,1fr)}
  .brand .tag{display:block}
  .logo-img{height:48px}
  .site-header{margin-inline:0;border-radius:0;box-shadow:none}
}
