/* ===============================
   NGTECH – Light Professional Theme
   =============================== */

:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --muted:#5b6475;
  --text:#0f172a;
  --primary:#1e90ff;
  --accent:#ffcc33;
  --border:rgba(15,23,42,.12);
  --shadow:0 10px 28px rgba(15,23,42,.12);
  --radius:16px;
  --max:1180px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}

/* ===============================
   Layout
   =============================== */

.container{
  width:min(var(--max),92vw);
  margin-inline:auto;
}

/* ===============================
   NAVBAR
   =============================== */

.nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
}

.brand img{
  height:42px;
  width:auto;
}

.menu{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
}

/* MENU TABS */
.menu a{
  color:#334155;
  padding:8px 14px;
  border-radius:10px;
  font-weight:600;
  transition:all .2s ease;
}

/* Hover */
.menu a:hover{
  background:#e6f0ff;
  color:var(--primary);
}

/* Active */
.menu a.active{
  background:var(--primary);
  color:#ffffff;
}

/* Mobile menu */
.hamburger{
  display:none;
}

@media(max-width:860px){
  .hamburger{
    display:inline-flex;
    border:1px solid var(--border);
    padding:8px 12px;
    border-radius:10px;
    background:#fff;
  }
  .menu{
    display:none;
    width:100%;
    flex-direction:column;
    background:#ffffff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:10px;
    box-shadow:var(--shadow);
  }
  .menu.open{display:flex}
  .menu a{background:#f1f5f9}
}

/* ===============================
   HERO
   =============================== */

.hero{
  padding:60px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
}

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

.hero-card{
  position:relative;
  border-radius:calc(var(--radius) + 6px);
  border:1px solid var(--border);
  background:#ffffff;
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height:420px;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-url);
  background-size:cover;
  background-position:center;
  opacity:.35;
}

.hero-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,.95) 0%,
    rgba(255,255,255,.75) 45%,
    rgba(255,255,255,.40) 100%
  );
}

.hero-content{
  position:relative;
  z-index:2;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:14px;
  height:100%;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-weight:700;
}

.kicker-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}

h1{
  font-size:42px;
  margin:0;
  line-height:1.1;
}

@media(max-width:520px){
  h1{font-size:32px}
}

.lead{
  color:var(--muted);
  font-size:16px;
  max-width:60ch;
}

/* ===============================
   BUTTONS
   =============================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  border:1px solid var(--border);
  background:#ffffff;
  cursor:pointer;
}

.btn.primary{
  background:var(--primary);
  color:#ffffff;
  border:none;
}

.btn:hover{
  transform:translateY(-1px);
}

/* ===============================
   SECTIONS / CARDS
   =============================== */

.section{
  padding:50px 0;
}

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

.section-title h2{
  margin:0;
  font-size:28px;
}

.section-title p{
  margin-top:6px;
  color:var(--muted);
}

.cards{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}

.card{
  grid-column:span 4;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.card h3{
  margin:0 0 8px;
  font-size:18px;
}

.card p{
  margin:0;
  color:var(--muted);
}

@media(max-width:980px){
  .card{grid-column:span 6}
}

@media(max-width:600px){
  .card{grid-column:span 12}
}

/* ===============================
   FOOTER
   =============================== */

.footer{
  background:#ffffff;
  border-top:1px solid var(--border);
  padding:24px 0;
  color:var(--muted);
  font-size:14px;
}

.footer strong{color:var(--text)}

/* ===============================
   RESPONSIVE ENHANCEMENTS (LATEST)
   Add at END of file
   =============================== */

/* -------- GLOBAL TEXT SCALING -------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

/* -------- NAVBAR IMPROVEMENTS -------- */
@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .brand img {
    height: 36px;
  }

  .menu {
    margin-top: 10px;
  }

  .menu a {
    width: 100%;
    text-align: center;
  }
}

/* -------- HERO SECTION -------- */
@media (max-width: 980px) {
  .hero {
    padding: 40px 0 30px;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-card::after {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.85) 100%
    );
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding: 20px;
  }

  .lead {
    font-size: 15px;
  }
}

/* -------- BUTTONS (MOBILE FRIENDLY) -------- */
@media (max-width: 520px) {
  .btn {
    width: 100%;
    padding: 14px 18px;
  }
}

/* -------- SECTIONS -------- */
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }
}

/* -------- CARDS TOUCH OPTIMIZATION -------- */
@media (max-width: 600px) {
  .card {
    padding: 18px;
  }

  .card h3 {
    font-size: 17px;
  }
}

/* -------- FOOTER -------- */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
}

/* -------- SAFE AREA (iOS notch fix) -------- */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ===============================
   MOBILE IMAGE FIX (IMPORTANT)
   =============================== */

/* All images responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HERO images / background containers */
@media (max-width: 768px) {
  .hero-card {
    min-height: auto;
  }

  .hero-card::before {
    background-size: cover;
    background-position: center;
  }
}

/* Images inside cards / sections */
.card img,
.section img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Service / icon images */
@media (max-width: 600px) {
  .card img {
    max-height: 160px;
    margin-inline: auto;
  }
}

/* Prevent horizontal scroll due to images */
body {
  overflow-x: hidden;
}


/* ===============================
   CLIENT LOGO SCROLLER – PRO
   =============================== */

.logo-slider{
  overflow:hidden;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px 0;
  box-shadow:var(--shadow);
}

/* Pause animation on hover */
.logo-slider:hover .logo-track{
  animation-play-state: paused;
}

.logo-track{
  display:flex;
  align-items:center;
  width:max-content;
  animation: scrollLogos 40s linear infinite;
}

.logo-item{
  flex:0 0 auto;
  width:240px;          /* was 200px */
  height:140px;         /* was 120px */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

/* Card background */
.logo-item .logo-card{
  width:100%;
  height:100%;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  position:relative;
  transition:all .3s ease;
}

/* Logo image */
.logo-item img{
  max-width:180px;      /* was 150px */
  max-height:90px;      /* was 70px */
  object-fit:contain;
  transition:all .3s ease;
}

/* Hover effects */
.logo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.logo-card:hover img{
  transform:scale(1.05);
}

/* Tooltip */
.logo-card::after{
  content: attr(data-name);
  position:absolute;
  bottom:-36px;
  left:50%;
  transform:translateX(-50%);
  background:#0f172a;
  color:#ffffff;
  font-size:12px;
  padding:6px 10px;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:all .2s ease;
}

.logo-card:hover::after{
  opacity:1;
}

/* Animation */
@keyframes scrollLogos{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* Mobile */
@media(max-width:600px){
  .logo-item{
    width:190px;
    height:115px;
  }
  .logo-item img{
    max-width:140px;
    max-height:70px;
  }
}

/* =============================
   Centered Responsive Image
   ============================= */

.image-center{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 10px 0 30px;
}

.responsive-image{
  max-width: 100%;
  width: 860px;          /* desktop max width */
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Mobile optimization */
@media (max-width: 768px){
  .responsive-image{
    width: 100%;
  }
}


