/* ==========================================
   IoTantra – Clean Blue-Only UI
   ========================================== */

/* ---------- Variables ---------- */
:root {
  --brand-primary: #00bfff;
  --brand-dark:    #0099e6;
  --brand-light:   #33cfff;

  --bg-primary:    #0a0e1a;
  --bg-elev:       #111827;
  --border:        rgba(255,255,255,0.10);

  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --glow:          rgba(0,191,255,0.35);
  --glow-strong:   rgba(0,191,255,0.5);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
section   { padding: clamp(56px, 7vw, 100px) 0; }

.section-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.5px;
  margin-bottom: .5rem;
}
.section-description {
  text-align: center;
  color: var(--text-secondary);
  max-width: 860px;
  margin: .25rem auto 2.2rem;
}

/* Gradient headline text */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--text-primary); font-weight: 800; }
.logo-img {
  width: 64px; 
  height: 64px;
  object-fit: contain;
}
.nav-links { list-style: none; display: flex; gap: 1.25rem; align-items: center; }
.nav-link  { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--text-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.45rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: #fff;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  border-color: rgba(0,191,255,.35);
  box-shadow: 0 12px 30px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px var(--glow-strong); }

.btn-secondary {
  background: transparent;
  color: var(--brand-primary);
  border-color: rgba(0,191,255,.35);
}
.btn-secondary:hover { background: rgba(0,191,255,.10); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,191,255,.25); }

.btn-wide { padding-left: 1.75rem; padding-right: 1.75rem; }

/* LinkedIn badge */
.btn-icon { color: var(--brand-primary); }
.btn-icon:hover { color: #fff; }
.li-badge {
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; text-transform: lowercase; font-size: .9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset;
}

/* CTA groups */
.hero-cta, .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(64px, 9vw, 108px); }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: .6rem; }
.hero-description { max-width: 860px; margin: 0 auto 1.1rem; color: var(--text-secondary); font-size: clamp(1.05rem, 2.2vw, 1.2rem); }

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,191,255,.30);
  box-shadow: 0 12px 40px rgba(0,0,0,.30);
}
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0,191,255,.30); box-shadow: 0 12px 40px rgba(0,0,0,.30); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .45rem; }
.card p  { color: var(--text-secondary); }

/* Icon boxes with emoji */
.icon-box {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  box-shadow: 0 6px 18px var(--glow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.card:hover .icon-box { transform: scale(1.06); box-shadow: 0 0 18px rgba(0,191,255,.40); }

/* ---------- Solutions Section ---------- */
.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem 0;
  color: var(--text-primary);
  text-align: left;
}

/* ---------- Badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.badge {
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-primary);
  border: 1px solid rgba(0,191,255,.35);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,191,255,.08);
}

/* ---------- Contact (clean) ---------- */
.contact .section-title { margin-bottom: .25rem; }
.contact .section-description { margin-bottom: 1.25rem; }
.cta-row { gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { text-align: center; }
.footer-note { color: var(--text-secondary); margin-bottom: 6px; }
.footer-copy { color: var(--text-muted); }

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: #fff;
  position: relative; transition: transform .25s ease, opacity .25s ease;
}
.hamburger::before { position: absolute; top: -7px; }
.hamburger::after  { position: absolute; top: 7px; }

.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 0 0;
  background: rgba(10,14,26,0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: none; flex-direction: column; gap: 12px;
  padding: 18px 16px 24px; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu[hidden] { display: none !important; }

.mobile-menu-link {
  display: block; padding: 12px 10px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none; font-weight: 600;
}
.mobile-menu-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.mobile-menu-cta { margin-top: 6px; text-align: center; }

/* Show mobile button / hide desktop menu on narrow screens */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}