:root{
  --brand:#30308A;
  --accent:#24BFE2;
  --bg:#F8FAFC;
  --card:#FFFFFF;
  --text:#0F172A;
  --muted:#475569;
  --border:#E2E8F0;
  --radius:16px;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{width:min(1120px,92%);margin:0 auto}

/* Topbar */
.topbar{
  background:#0b1220;
  color:#fff;
  font-size:14px;
}
.topbar__inner{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
}
.topbar__text{margin:0;opacity:.9}
.topbar__right{display:flex;gap:14px;flex-wrap:wrap}
.topbar__link{opacity:.9}
.topbar__link:hover{opacity:1}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:10000; /* important for mobile drawer layering */
  background:rgba(248,250,252,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  overflow:visible;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
  position:relative; /* for hamburger z-index */
}

.brand{display:flex;align-items:center;gap:10px}
.brand__logo{width:44px;height:44px;object-fit:contain}
.brand__name{font-weight:800;letter-spacing:.2px}

/* Desktop nav */
.nav{display:flex;align-items:center;gap:16px}
.nav__list{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.nav__link{
  padding:10px 8px;
  border-radius:10px;
  color:var(--muted);
  font-weight:600;
}
.nav__link:hover{background:#fff}
.nav__link.is-active{color:var(--brand)}
.nav__cta{white-space:nowrap}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:700;
}
.btn--primary{background:var(--brand);color:#fff}
.btn--primary:hover{filter:brightness(1.05)}
.btn--ghost{background:#fff;border-color:var(--border);color:var(--text)}
.btn--block{width:100%}

/* Hamburger */
.nav-toggle{
  display:none;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}
.nav-toggle__bar{
  display:block;
  width:20px;
  height:2px;
  background:var(--text);
  margin:4px 0;
}

/* Hero */
.hero{
  background:linear-gradient(180deg, rgba(36,191,226,.18), transparent);
  border-bottom:1px solid var(--border);
}
.hero__inner{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  padding:42px 0;
}
.hero h1{font-size:42px;line-height:1.1;margin:0 0 12px}
.hero p{margin:0 0 18px;color:var(--muted);font-size:18px}
.hero__actions{display:flex;gap:12px;flex-wrap:wrap}
.hero__badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.badge{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.hero__card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.hero__card h3{margin:0 0 6px}
.muted{color:var(--muted)}

/* Sections */
.section{padding:52px 0}
.section--alt{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section__head{margin-bottom:18px}
.section__head h2{margin:0 0 6px;font-size:28px}
.section__head p{margin:0;color:var(--muted)}
.section__actions{margin-top:18px}

/* Grid */
.grid{display:grid;gap:14px}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.card h3{margin:0 0 8px}
.card p{margin:0;color:var(--muted)}

/* CTA */
.cta{
  background:var(--brand);
  color:#fff;
  padding:34px 0;
}
.cta__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.cta p{opacity:.9;margin:8px 0 0}

/* Footer */
.footer{background:#0b1220;color:#fff;margin-top:40px}
.footer__inner{
  padding:34px 0;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer h4{margin:0 0 10px}
.footer a{display:block;opacity:.85;margin:6px 0}
.footer a:hover{opacity:1}
.footer__bottom{border-top:1px solid rgba(255,255,255,.12)}
.footer__bottom-inner{
  padding:14px 0;
  color:rgba(255,255,255,.8);
  font-size:14px;
}

/* Page hero */
.page-hero{padding:34px 0;border-bottom:1px solid var(--border);background:#fff}
.page-hero h1{margin:0 0 8px}
.page-hero p{margin:0;color:var(--muted)}

/* Shared bullets */
.bullets{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.bullets li{margin:6px 0}

/* ===== Services page extras ===== */
.icon-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.icon{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:22px;
  margin-bottom:10px;
}

/* Steps */
.step{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.step__num{
  width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;
  background:rgba(36,191,226,.18);
  border:1px solid var(--border);
  font-weight:900;
  margin-bottom:10px;
}
.step p{color:var(--muted);margin:8px 0 0}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 12px;
  font-weight:700;
  color:var(--muted);
  font-size:14px;
}

/* ===== Products page extras ===== */
.product-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.product-card__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.product-icon{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:22px;
}
.tag{
  font-weight:800;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(36,191,226,.14);
  color:var(--text);
}
.product-card__actions{
  margin-top:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== Offers page extras ===== */
.offer-banner{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.offer-banner__left h2{margin:0 0 8px}
.offer-banner__left p{margin:0;color:var(--muted)}
.offer-banner__badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.offer-banner__right{display:flex;gap:10px;flex-direction:column;min-width:220px}

.offer-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.offer-icon{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:22px;
  margin-bottom:10px;
}

/* Pricing cards */
.price-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.price-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.price-tag{
  font-weight:800;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(36,191,226,.14);
}
.price{font-size:18px;margin:10px 0;color:var(--text)}
.price-card--featured{
  border-color:rgba(36,191,226,.45);
  box-shadow:0 16px 45px rgba(36,191,226,.16);
  transform:translateY(-2px);
}

/* ===== Portfolio page extras ===== */
.filters{display:flex;gap:10px;flex-wrap:wrap}
.filter{
  background:#fff;
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  color:var(--muted);
  font-size:14px;
}
.filter.is-active{color:var(--text); background:rgba(36,191,226,.14)}

.project-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.project-thumb{background:#fff;border-bottom:1px solid var(--border)}
.placeholder{
  height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:900;
}
.project-body{padding:18px}
.project-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.project-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Case study block */
.case{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.case__grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.case__item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:rgba(248,250,252,.7);
}
.case__item h4{margin:0 0 6px}
.case__item p{margin:0;color:var(--muted)}
.case__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.case__mock{border:1px dashed var(--border);border-radius:16px;overflow:hidden;background:#fff}
.case__mock .placeholder{height:280px}

/* ===== About page extras ===== */
.about{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.about__card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.about__stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:16px 0;
}
.stat{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  text-align:center;
  box-shadow:var(--shadow);
}
.stat__num{font-weight:900}
.stat__label{color:var(--muted);font-weight:700;margin-top:4px;font-size:13px}
.about__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Values cards */
.value-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.value-icon{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:22px;
  margin-bottom:10px;
}

/* Team cards */
.team-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.avatar{
  width:52px;height:52px;
  border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  background:rgba(36,191,226,.18);
  border:1px solid var(--border);
  margin-bottom:10px;
}

/* ===== Contact page extras ===== */
.contact{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  align-items:start;
}
.contact__form{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.contact__info{display:flex;flex-direction:column;gap:14px}

.info-card, .map-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.info-list{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.info-item{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.info-label{color:var(--muted);font-weight:800}

.quick-box{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:rgba(248,250,252,.7);
}

.map-placeholder{
  border:1px dashed var(--border);
  border-radius:16px;
  overflow:hidden;
  margin-top:10px;
}

/* Form */
.form{margin-top:14px}
.form__row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.field{display:flex;flex-direction:column;gap:8px;margin-top:12px}
label{font-weight:800}
input, select, textarea{
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px 12px;
  font:inherit;
  outline:none;
  background:#fff;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(36,191,226,.7);
  box-shadow:0 0 0 4px rgba(36,191,226,.18);
}
.form__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* Alerts */
.alert{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  margin:12px 0;
  font-weight:800;
}
.alert.success{ border-color: rgba(36,191,226,.7); }
.alert.error{ border-color: rgba(225,29,72,.6); }

/* Footer logo button */
.footer-brand{max-width:260px}
.footer-logo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  border-radius:18px;
  padding:10px;
  border:2px solid rgba(255,255,255,.25);
  transition:all .25s ease;
}
.footer-logo-btn img{width:160px;height:auto;display:block}
.footer-logo-btn:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
  border-color:var(--accent);
}
.footer-text{
  margin-top:10px;
  font-size:14px;
  color:rgba(255,255,255,.85);
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .hero__inner{grid-template-columns:1fr}
  .grid--3{grid-template-columns:repeat(2,1fr)}
  .contact{grid-template-columns:1fr}
  .case{grid-template-columns:1fr}
  .case__grid{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .about__stats{grid-template-columns:1fr}
}

@media (max-width: 700px){
  .form__row{grid-template-columns:1fr}
  .footer-logo-btn img{width:140px}
}


/* =========================================================
   MOBILE DRAWER MENU (SINGLE SOURCE OF TRUTH)
   - iPhone safe (click + scroll)
   - overlay never blocks menu items
========================================================= */
body.menu-open{
  overflow:hidden;
  height:100%;
  touch-action:none;
}

@media (max-width:700px){

  /* show hamburger */
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:10003;
  }

  /* overlay: below nav, above page */
  .nav-overlay{
    position:fixed;
    inset:0;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    background:rgba(15,23,42,.30);
    backdrop-filter:blur(1px);
    transition:opacity .2s ease;
  }
  .nav-overlay.show{
    opacity:1;
    pointer-events:auto;
  }

  /* drawer */
  .nav{
    position:fixed;
    top:0;
    right:-340px;
    width:320px;
    height:100vh;
    background:#fff;
    border-left:1px solid var(--border);
    box-shadow:-20px 0 60px rgba(15,23,42,.18);
    padding:18px;
    display:flex !important;
    flex-direction:column;
    gap:14px;
    z-index:10002;
    transition:right .25s ease;
    border-top-left-radius:18px;
    border-bottom-left-radius:18px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    pointer-events:auto;
  }
  .nav.open{ right:0; }

  /* list */
  .nav__list{
    display:flex;
    flex-direction:column;
    gap:6px;
    list-style:none;
    margin:0;
    padding:0;
  }

  .nav__link{
    display:block;
    padding:12px;
    border-radius:12px;
    font-weight:800;
    color:var(--text);
    pointer-events:auto;
  }
  .nav__link:hover{background:rgba(36,191,226,.14)}
  .nav__link.is-active{background:rgba(48,48,138,.10);color:var(--brand)}

  /* CTA button bottom */
  .nav__cta{
    margin-top:auto;
    width:100%;
    justify-content:center;
    padding:13px 16px;
    border-radius:14px;
    pointer-events:auto;
  }
}
/* ===== Job Popup (FINAL FIXED) ===== */

/* Overlay */
.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);

  /* HIDDEN by default */
  display: none;

  align-items: center;
  justify-content: center;

  z-index: 100000; /* higher than header/nav */
  padding: 18px;
}

/* Show popup */
.popup-overlay.show{
  display: flex;
}

/* Popup Card */
.popup-card{
  background: #ffffff;
  width: min(440px, 94%);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  position: relative;
  text-align: center;
  animation: popupIn .35s ease;
}

/* Animation */
@keyframes popupIn{
  from{
    transform: scale(.92) translateY(10px);
    opacity: 0;
  }
  to{
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Close button */
.popup-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
  color: #0f172a;
}
.popup-close:hover{
  background:#e2e8f0;
}

/* Subtitle */
.popup-sub{
  color: #475569;
  margin: 8px 0 16px;
  font-size: 15px;
}

/* Job list */
.popup-list{
  text-align: left;
  padding-left: 18px;
  color: #334155;
  margin: 0 0 18px;
}
.popup-list li{
  margin: 6px 0;
  font-weight: 600;
}

/* Buttons */
.popup-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Checkbox */
.popup-check{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: #475569;
}
