:root{
    --navy:#16324F; --navy-deep:#0F2438; --slate:#3B5166; --steel:#8CA3B5;
    --mist:#EEF2F5; --teal:#2FA8A0; --teal-deep:#1F7D77; --white:#FFFFFF; --ink:#1B2A35;
    --bg:#F6F8F9; --card:#FFFFFF; --border:#DCE4E8; --text:#1B2A35; --text-soft:#516373;
    box-sizing:border-box;
    padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg:#0F1B24; --card:#152833; --border:#26414F; --text:#E7EEF2; --text-soft:#9FB4C0;
      --mist:#152833;
    }
  }
  :root[data-theme="dark"]{
    --bg:#0F1B24; --card:#152833; --border:#26414F; --text:#E7EEF2; --text-soft:#9FB4C0; --mist:#152833;
  }
  html{ scroll-padding-top:80px; scroll-behavior:smooth; }
  *{ margin:0; padding:0; box-sizing:border-box; }
  body{
    font-family:'Inter',sans-serif; background:var(--bg); color:var(--text);
    line-height:1.55; -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.brand{ font-family:'Space Grotesk',sans-serif; letter-spacing:-0.01em; }
  img{ max-width:100%; }
  a{ color:inherit; }
  .wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
  .container-scroll{ overflow-x:auto; }

  /* NAV */
  header{
    position:sticky; top:0; z-index:40; background:var(--card);
    border-bottom:1px solid var(--border);
    padding-top:env(safe-area-inset-top,0px);
  }
  nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1120px; margin:0 auto; position:relative; }
  .brand{ font-weight:700; font-size:1.3rem; color:var(--navy); display:flex; align-items:center; gap:8px; }
  :root[data-theme="dark"] .brand, @media (prefers-color-scheme:dark){ .brand{ color:var(--teal); } }
  .brand-dot{ width:9px; height:9px; border-radius:50%; background:var(--teal); display:inline-block; }
  .nav-links{ display:flex; gap:28px; font-size:0.95rem; font-weight:500; }
  .nav-links a{ text-decoration:none; color:var(--text-soft); transition:color .15s; }
  .nav-links a:hover{ color:var(--teal-deep); }
  .nav-cta{
    background:var(--teal); color:#fff; padding:9px 18px; border-radius:8px;
    font-weight:600; font-size:0.9rem; text-decoration:none; white-space:nowrap;
  }
  .menu-toggle{ display:none; background:none; border:none; font-size:1.5rem; color:var(--navy); cursor:pointer; line-height:1; }
  @media (prefers-color-scheme:dark){ .menu-toggle{ color:#EAF1F4; } }
  :root[data-theme="dark"] .menu-toggle{ color:#EAF1F4; }
  @media (max-width:760px){
    .nav-links{
      display:none; position:absolute; top:100%; left:0; right:0; background:var(--card);
      flex-direction:column; gap:0; border-bottom:1px solid var(--border); box-shadow:0 8px 16px rgba(0,0,0,0.08);
    }
    .nav-links.mobile-open{ display:flex; }
    .nav-links a{ padding:14px 24px; border-top:1px solid var(--border); }
    .menu-toggle{ display:block; }
  }

  /* HERO */
  .hero{
    background:linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color:#EAF1F4; padding:72px 24px 88px;
  }
  .hero-inner{
    max-width:1120px; margin:0 auto; display:grid; grid-template-columns:1.1fr 0.9fr;
    gap:48px; align-items:center;
  }
  @media (max-width:820px){ .hero-inner{ grid-template-columns:1fr; } }
  .eyebrow-line{ color:var(--teal); font-weight:600; font-size:0.95rem; margin-bottom:14px; }
  .hero h1{ font-size:2.6rem; line-height:1.15; font-weight:700; margin-bottom:18px; }
  .hero p.sub{ color:#B9C9D2; font-size:1.08rem; max-width:480px; margin-bottom:30px; }
  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
  .btn-primary{
    background:var(--teal); color:#fff; padding:13px 26px; border-radius:8px; font-weight:600;
    text-decoration:none; border:none; cursor:pointer; font-size:0.98rem; display:inline-flex; align-items:center; gap:8px;
  }
  .btn-primary:hover{ background:var(--teal-deep); }
  .btn-ghost{
    background:transparent; color:#EAF1F4; padding:13px 26px; border-radius:8px; font-weight:600;
    text-decoration:none; border:1px solid rgba(234,241,244,0.35); font-size:0.98rem;
  }
  .hero-stats{ display:flex; gap:28px; margin-top:40px; flex-wrap:wrap; }
  .hero-stats div{ font-size:0.85rem; color:#9FB4C0; }
  .hero-stats strong{ display:block; font-size:1.35rem; color:#fff; font-family:'Space Grotesk',sans-serif; }
  .hero-art{ display:flex; align-items:center; justify-content:center; }

  /* SERVICES */
  section{ padding:72px 0; }
  .section-head{ max-width:560px; margin-bottom:44px; }
  .section-tag{ color:var(--teal-deep); font-weight:600; font-size:0.92rem; margin-bottom:10px; }
  .section-head h2{ font-size:1.9rem; color:var(--navy); }
  :root[data-theme="dark"] .section-head h2{ color:#EAF1F4; }
  @media (prefers-color-scheme:dark){ .section-head h2{ color:#EAF1F4; } }
  .services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  @media (max-width:900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .services-grid{ grid-template-columns:1fr; } }
  .service-card{
    background:var(--card); border:1px solid var(--border); border-radius:10px; padding:26px;
  }
  .service-icon{ width:42px; height:42px; margin-bottom:16px; color:var(--teal-deep); }
  .service-card h3{ font-size:1.08rem; margin-bottom:8px; color:var(--navy); }
  @media (prefers-color-scheme:dark){ .service-card h3{ color:#EAF1F4; } }
  :root[data-theme="dark"] .service-card h3{ color:#EAF1F4; }
  .service-card p{ font-size:0.92rem; color:var(--text-soft); }

  /* PRODUCTS */
  .products-bg{ background:var(--mist); }
  .filter-row{ display:flex; gap:12px; margin-bottom:28px; flex-wrap:wrap; align-items:center; }
  #searchInput{
    flex:1; min-width:220px; padding:12px 16px; border-radius:8px; border:1px solid var(--border);
    font-size:0.95rem; font-family:inherit; background:var(--card); color:var(--text);
  }
  .chip{
    padding:9px 16px; border-radius:20px; border:1px solid var(--border); background:var(--card);
    font-size:0.86rem; font-weight:500; cursor:pointer; color:var(--text-soft); white-space:nowrap;
  }
  .chip.active{ background:var(--navy); color:#fff; border-color:var(--navy); }
  .product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:900px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:600px){ .product-grid{ grid-template-columns:1fr; } }
  .product-card{
    background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; display:flex; flex-direction:column;
  }
  .product-thumb{
    height:140px; background:linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
    display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative;
  }
  .product-thumb svg{ width:56px; height:56px; color:var(--teal); }
  .product-thumb img{
    width:100%; height:100%; object-fit:cover; display:block;
  }
  .thumb-fallback{ display:none; align-items:center; justify-content:center; width:100%; height:100%; position:absolute; top:0; left:0; }
  .product-body{ padding:18px; display:flex; flex-direction:column; gap:8px; flex:1; }
  .product-cat{ font-size:0.72rem; font-weight:600; color:var(--teal-deep); }
  .product-body h3{ font-size:1.05rem; color:var(--navy); font-family:'Space Grotesk',sans-serif; }
  @media (prefers-color-scheme:dark){ .product-body h3{ color:#EAF1F4; } }
  :root[data-theme="dark"] .product-body h3{ color:#EAF1F4; }
  .product-specs{ font-size:0.85rem; color:var(--text-soft); flex:1; }
  .product-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
  .price{ font-weight:700; color:var(--navy); font-family:'Space Grotesk',sans-serif; }
  @media (prefers-color-scheme:dark){ .price{ color:var(--teal); } }
  :root[data-theme="dark"] .price{ color:var(--teal); }
  .enquire-btn{
    background:var(--teal); color:#fff; border:none; padding:8px 14px; border-radius:6px;
    font-size:0.82rem; font-weight:600; cursor:pointer; text-decoration:none;
  }
  #noResults{ text-align:center; color:var(--text-soft); padding:40px 0; display:none; }

  /* ABOUT */
  .about-inner{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
  @media (max-width:820px){ .about-inner{ grid-template-columns:1fr; } }
  .about-inner p{ color:var(--text-soft); margin-bottom:16px; }
  .about-list{ list-style:none; display:flex; flex-direction:column; gap:12px; margin-top:20px; }
  .about-list li{ display:flex; gap:10px; font-size:0.94rem; color:var(--text-soft); }
  .about-list svg{ width:18px; height:18px; color:var(--teal-deep); flex-shrink:0; margin-top:2px; }
  .about-panel{
    background:var(--navy); border-radius:12px; padding:36px; color:#EAF1F4;
  }
  .about-panel h3{ font-size:1.3rem; margin-bottom:14px; }
  .about-panel p{ color:#B9C9D2; font-size:0.94rem; }

  /* CONTACT */
  .contact-inner{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
  @media (max-width:820px){ .contact-inner{ grid-template-columns:1fr; } }
  .contact-card{ background:var(--card); border:1px solid var(--border); border-radius:10px; padding:32px; }
  .field{ margin-bottom:16px; }
  .field label{ display:block; font-size:0.85rem; font-weight:600; margin-bottom:6px; color:var(--text-soft); }
  .field input, .field textarea{
    width:100%; padding:11px 14px; border-radius:7px; border:1px solid var(--border);
    font-family:inherit; font-size:0.94rem; background:var(--bg); color:var(--text);
  }
  .field textarea{ resize:vertical; min-height:100px; }
  .contact-info{ display:flex; flex-direction:column; gap:20px; justify-content:center; }
  .info-row{ display:flex; gap:14px; align-items:flex-start; }
  .info-row svg{ width:22px; height:22px; color:var(--teal-deep); flex-shrink:0; margin-top:2px; }
  .info-row strong{ display:block; font-size:0.95rem; color:var(--navy); }
  @media (prefers-color-scheme:dark){ .info-row strong{ color:#EAF1F4; } }
  :root[data-theme="dark"] .info-row strong{ color:#EAF1F4; }
  .info-row span{ font-size:0.88rem; color:var(--text-soft); }

  footer{ background:var(--navy-deep); color:#9FB4C0; padding:36px 24px; padding-bottom:calc(36px + env(safe-area-inset-bottom,0px)); }
  .footer-inner{ max-width:1120px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; font-size:0.85rem; }

  /* WHATSAPP FLOAT */
  .wa-float{
    position:fixed; bottom:calc(24px + env(safe-area-inset-bottom,0px)); right:24px; z-index:50;
    background:#25D366; width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 18px rgba(0,0,0,0.25); text-decoration:none;
  }
  .wa-float svg{ width:28px; height:28px; fill:#fff; }

  /* HERO ROTATION */
  .hero-slide{ display:none; }
  .hero-slide.active{ display:block; animation:heroFade .5s ease; }
  @keyframes heroFade{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

  /* STEP NUMBER (reuses .service-card) */
  .step-num{
    width:36px; height:36px; border-radius:50%; background:var(--navy); color:#fff;
    display:flex; align-items:center; justify-content:center; font-weight:700;
    font-family:'Space Grotesk',sans-serif; margin-bottom:16px; font-size:1rem;
  }

  /* MODERN POLISH */
  header{ transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
  header.scrolled{
    background:rgba(255,255,255,0.78); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    box-shadow:0 4px 24px rgba(15,36,56,0.08);
  }
  @media (prefers-color-scheme:dark){ header.scrolled{ background:rgba(21,40,51,0.72); } }
  :root[data-theme="dark"] header.scrolled{ background:rgba(21,40,51,0.72); }

  .hero{ position:relative; overflow:hidden; }
  .hero-blob{
    position:absolute; border-radius:50%; filter:blur(60px); opacity:0.35; pointer-events:none;
    animation:floatBlob 10s ease-in-out infinite;
  }
  .hero-blob.b1{ width:340px; height:340px; background:var(--teal); top:-120px; right:-80px; }
  .hero-blob.b2{ width:260px; height:260px; background:#3B7FD4; bottom:-100px; left:-60px; animation-delay:2s; }
  @keyframes floatBlob{ 0%,100%{ transform:translateY(0) scale(1); } 50%{ transform:translateY(-24px) scale(1.06); } }
  .hero-inner{ position:relative; z-index:1; }

  .grad-text{
    background:linear-gradient(90deg, var(--teal) 0%, #6FD8CE 100%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:var(--teal);
  }

  .btn-primary{ transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(47,168,160,0.35); }
  .btn-ghost{ transition:transform .18s ease, background .18s ease, border-color .18s ease; }
  .btn-ghost:hover{ background:rgba(234,241,244,0.08); transform:translateY(-2px); }

  .service-card, .product-card{
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position:relative; overflow:hidden;
  }
  .service-card::before{
    content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg, var(--teal) 0%, #3B7FD4 100%);
    transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
  }
  .service-card:hover::before{ transform:scaleX(1); }
  .service-card:hover, .product-card:hover{
    transform:translateY(-5px); box-shadow:0 14px 28px rgba(15,36,56,0.10); border-color:transparent;
  }
  .product-thumb img{ transition:transform .3s ease; }
  .product-card:hover .product-thumb img{ transform:scale(1.06); }

  .wa-float{ animation:waPulse 2.4s ease-in-out infinite; }
  @keyframes waPulse{
    0%,100%{ box-shadow:0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.45); }
    50%{ box-shadow:0 6px 18px rgba(0,0,0,0.25), 0 0 0 10px rgba(37,211,102,0); }
  }

  .reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
  .reveal.in-view{ opacity:1; transform:translateY(0); }

  /* Staggered card entrance */
  .services-grid .service-card, .product-grid .product-card{
    opacity:0; transform:translateY(20px);
    transition:opacity .5s ease, transform .5s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .reveal.in-view .services-grid .service-card, .reveal.in-view .product-grid .product-card{
    opacity:1; transform:translateY(0);
  }
  .services-grid .service-card:nth-child(1), .product-grid .product-card:nth-child(1){ transition-delay:.05s; }
  .services-grid .service-card:nth-child(2), .product-grid .product-card:nth-child(2){ transition-delay:.1s; }
  .services-grid .service-card:nth-child(3), .product-grid .product-card:nth-child(3){ transition-delay:.15s; }
  .services-grid .service-card:nth-child(4), .product-grid .product-card:nth-child(4){ transition-delay:.2s; }
  .services-grid .service-card:nth-child(5), .product-grid .product-card:nth-child(5){ transition-delay:.25s; }
  .services-grid .service-card:nth-child(6), .product-grid .product-card:nth-child(6){ transition-delay:.3s; }
  .services-grid .service-card:nth-child(7), .product-grid .product-card:nth-child(7){ transition-delay:.35s; }
  .services-grid .service-card:nth-child(8), .product-grid .product-card:nth-child(8){ transition-delay:.4s; }
  .product-grid .product-card:nth-child(9){ transition-delay:.45s; }

  /* Icon micro-interaction */
  .service-icon{ transition:transform .3s ease; }
  .service-card:hover .service-icon{ transform:scale(1.15) rotate(-6deg); }

  /* Nav underline hover */
  .nav-links a{ position:relative; }
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background:var(--teal);
    transition:width .25s ease;
  }
  .nav-links a:hover::after{ width:100%; }

  /* Scroll progress bar */
  #scrollProgress{
    position:fixed; top:0; left:0; height:3px; width:0%; z-index:70;
    background:linear-gradient(90deg, var(--teal) 0%, #3B7FD4 100%);
    transition:width .1s linear;
  }

  /* Hero stat entrance */
  .hero-stats div{ opacity:0; animation:statFade .6s ease forwards; }
  .hero-stats div:nth-child(1){ animation-delay:.15s; }
  .hero-stats div:nth-child(2){ animation-delay:.3s; }
  .hero-stats div:nth-child(3){ animation-delay:.45s; }
  @keyframes statFade{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }

  /* Button shine sweep */
  .btn-primary{ position:relative; overflow:hidden; }
  .btn-primary::after{
    content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform:skewX(-20deg);
  }
  .btn-primary:hover::after{ animation:shine .7s ease; }
  @keyframes shine{ from{ left:-60%; } to{ left:130%; } }

  /* GET QUOTE MODAL */
  .modal-overlay{
    position:fixed; inset:0; background:rgba(15,27,36,0.6); display:none;
    align-items:center; justify-content:center; z-index:60; padding:20px;
  }
  .modal-overlay.open{ display:flex; }
  .modal-box{
    background:var(--card); border-radius:12px; padding:28px; max-width:420px; width:100%;
    position:relative; max-height:90vh; overflow-y:auto;
  }
  .modal-box h3{ color:var(--navy); font-size:1.2rem; margin-bottom:6px; }
  @media (prefers-color-scheme:dark){ .modal-box h3{ color:#EAF1F4; } }
  :root[data-theme="dark"] .modal-box h3{ color:#EAF1F4; }
  .modal-close{
    position:absolute; top:14px; right:14px; background:none; border:none; font-size:1.6rem;
    cursor:pointer; color:var(--text-soft); line-height:1;
  }
