/* ==========================================================================
   MOHAMMAD SAIFULLAH — DIGITAL GROWTH ENGINEER
   Master Design System & Stylesheet (High Contrast & Premium Aesthetics)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Caveat:wght@600;700&display=swap');

/* --- Core Color Tokens & Tokens --- */
:root {
  --bg-deep: #03060f;
  --bg-primary: #050a17;
  --bg-secondary: #0a1124;
  --bg-card: rgba(10, 18, 38, 0.78);
  --bg-card-hover: rgba(16, 28, 58, 0.92);
  --bg-glass: rgba(8, 14, 30, 0.75);

  --blue-primary: #2563eb;
  --blue-electric: #3b82f6;
  --cyan-accent: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --violet-accent: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --emerald-accent: #10b981;

  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --gradient-cyan: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #3b82f6 100%);
  --gradient-blue: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #00f0ff 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #00f0ff 60%, #3b82f6 100%);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(59, 130, 246, 0.25);
  --border-glow: rgba(0, 240, 255, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-script: 'Caveat', cursive;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 65% 18%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 18% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-accent);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
}

.hero-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-accent) 50%, var(--violet-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-blue {
  color: var(--blue-electric);
}

/* ==========================================================================
   LEFT FLOATING SOCIAL SIDEBAR
   ========================================================================== */
.social-sidebar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 99;
}

.social-sidebar a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.social-sidebar a:hover {
  color: var(--cyan-accent);
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  transform: translateX(4px);
}

.social-sidebar a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-sidebar .follow-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-sidebar .follow-text::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

@media (max-width: 1100px) {
  .social-sidebar { display: none; }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(3, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(3, 6, 15, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 36px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .name-top {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.brand-text .name-bottom {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--blue-electric);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-electric);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-talk {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-fast);
}

.nav-btn-talk:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.65);
}

.btn-secondary {
  background: rgba(10, 18, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--blue-electric);
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
  min-height: 92vh;
  padding-top: 130px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #38bdf8;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 14px;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Right 3D Visual Stage */
.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}

.portal-ring {
  position: absolute;
  top: 40px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.25), inset 0 0 60px rgba(59, 130, 246, 0.2);
  z-index: 1;
  pointer-events: none;
  animation: pulse-portal 6s ease-in-out infinite alternate;
}

@keyframes pulse-portal {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1.04); opacity: 1; }
}

/* The pristine cutout photo */
.hero-cutout-img {
  position: relative;
  z-index: 2;
  width: 380px;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
}

/* Floating HUD Glass Cards */
.hud-card {
  position: absolute;
  background: rgba(8, 15, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.2);
  transition: transform 0.3s ease;
}

.hud-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-accent);
}

.hud-top-left {
  top: 30px;
  left: -20px;
}

.hud-top-right {
  top: 15px;
  right: -25px;
}

.hud-mid-right {
  top: 140px;
  right: -40px;
}

.hud-bot-right {
  bottom: 30px;
  right: -20px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hud-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hud-val-bold {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-val-growth {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
}

.hud-sparkline {
  margin-top: 6px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.hud-spark-bar {
  width: 4px;
  background: var(--blue-electric);
  border-radius: 2px;
}

.hud-code-box {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

.hud-code-box .c-tag { color: #38bdf8; font-weight: 700; }
.hud-code-box .c-item { color: #cbd5e1; }

/* ==========================================================================
   STATS BAR (4-CARD GRID)
   ========================================================================== */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0 50px;
}

.stat-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition-fast);
}

.stat-card-box:hover {
  border-color: var(--blue-electric);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.25);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-accent);
  flex-shrink: 0;
}

.stat-content .s-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-content .s-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
#about {
  background: var(--bg-primary);
}

.about-grid-custom {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.about-glass-cube {
  position: relative;
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(37, 99, 235, 0.15);
}

.about-cube-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #38bdf8;
  margin-bottom: 12px;
  display: inline-block;
}

.about-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.about-signature {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  display: inline-block;
}

/* Skills Progress Bars */
.skills-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-info .s-pct {
  font-family: var(--font-mono);
  color: var(--blue-electric);
}

.skill-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #00f0ff);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   SERVICES (4-CARD GRID)
   ========================================================================== */
#services {
  background: var(--bg-deep);
}

.services-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.service-card-v2:hover {
  border-color: var(--blue-electric);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 99, 235, 0.25);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon-blue {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-accent);
}

.service-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.service-card-v2 h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-bullets li::before {
  content: '•';
  color: var(--blue-electric);
  font-size: 1.1rem;
}

/* ==========================================================================
   FEATURED CASE STUDIES / RECENT WORK (6 CARDS WITH REAL SCREENSHOTS)
   ========================================================================== */
#projects {
  background: var(--bg-primary);
}

.case-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.recent-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.work-card:hover {
  border-color: var(--blue-electric);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 99, 235, 0.25);
}

.work-thumb-wrap {
  width: 100%;
  height: 180px;
  background: #060c18;
  overflow: hidden;
  position: relative;
}

.work-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-thumb-wrap img {
  transform: scale(1.04);
}

.work-info {
  padding: 18px 20px 20px;
}

.work-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.work-category {
  font-size: 0.82rem;
  color: var(--blue-electric);
  font-weight: 600;
  margin-bottom: 4px;
}

.work-tags {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INDUSTRIES I WORK WITH
   ========================================================================== */
#industries {
  background: var(--bg-deep);
  padding: 70px 0;
}

.industries-bar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.ind-badge-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.ind-badge-pill:hover {
  border-color: var(--blue-electric);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.ind-badge-pill svg {
  color: var(--cyan-accent);
  width: 22px;
  height: 22px;
}

.ind-badge-pill span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   PROFESSIONAL CONTACT ENGINE & LEAD FORM
   ========================================================================== */
#contact {
  background: var(--bg-primary);
  padding: 100px 0;
}

.contact-grid-main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-left-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.contact-left-card .c-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-left-card .c-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.c-direct-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.c-direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.c-direct-item:hover {
  border-color: var(--blue-electric);
  background: rgba(37, 99, 235, 0.08);
}

.c-direct-item svg {
  color: var(--cyan-accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.c-direct-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.c-direct-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* Interactive Lead Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.2);
}

.form-row {
  margin-bottom: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(4, 8, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
  background: rgba(6, 12, 24, 0.95);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

#form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

#form-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-accent);
  color: #34d399;
}

#form-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* ==========================================================================
   MASTER FOOTER
   ========================================================================== */
footer {
  background: #02040a;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
  z-index: 2;
}

.foot-grid-4col {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.foot-brand-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.foot-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.foot-heading {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 18px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.foot-links a:hover {
  color: var(--cyan-accent);
}

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WhatsApp Button */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition-fast);
}

#wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

#wa-float svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar-grid { grid-template-columns: 1fr 1fr; }
  .about-grid-custom { grid-template-columns: 1fr; gap: 30px; }
  .services-4-grid { grid-template-columns: 1fr 1fr; }
  .recent-work-grid { grid-template-columns: 1fr 1fr; }
  .industries-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid-main { grid-template-columns: 1fr; }
  .foot-grid-4col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .services-4-grid, .recent-work-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: 1fr; }
  .industries-bar-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid-4col { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

/* ==========================================================================
   PROJECT FILTER TABS
   ========================================================================== */
.proj-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.proj-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.proj-tab:hover {
  border-color: var(--blue-electric);
  color: #ffffff;
}

.proj-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   WORK CARD THUMBNAIL HOVER OVERLAY
   ========================================================================== */
.work-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.work-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.work-card:hover .work-thumb-overlay {
  opacity: 1;
}

.work-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
  transition: transform var(--transition-fast);
}

.work-live-btn:hover { transform: scale(1.05); }

.work-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wtag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-electric);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.work-card.hidden {
  display: none;
}

/* No projects message */
.no-projects-msg {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.no-projects-msg svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.no-projects-msg a {
  color: var(--cyan-accent);
  font-weight: 600;
}

/* ==========================================================================
   INDUSTRIES SECTION WITH CLICKABLE PANELS
   ========================================================================== */
.industries-section {
  background: var(--bg-secondary);
}

.industries-bar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 0;
}

.ind-badge-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ind-badge-pill:hover {
  border-color: var(--blue-electric);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.ind-badge-pill.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(79,70,229,0.25));
  border-color: var(--blue-electric);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.ind-badge-pill svg {
  color: var(--cyan-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ind-badge-pill span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Industry Content Panel */
.industry-content-panel {
  margin-top: 36px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.industry-content-panel.open {
  max-height: 1000px;
  opacity: 1;
}

.ind-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
}

.ind-panel-header {
  margin-bottom: 22px;
}

.ind-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ind-panel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ind-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.ind-project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: block;
  color: inherit;
}

.ind-project-card:hover {
  border-color: var(--blue-electric);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.ind-project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.ind-project-info {
  padding: 14px 16px;
}

.ind-project-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ind-project-type {
  font-size: 0.78rem;
  color: var(--blue-electric);
  font-weight: 600;
}

.ind-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats Section padding fix */
.stats-section {
  padding: 20px 0 0;
}

/* ==========================================================================
   GLOBAL FOOTER STYLES (HIGH CONTRAST & RESPONSIVE)
   ========================================================================== */
footer {
  background: #02050c;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 35px;
  margin-top: 80px;
  position: relative;
  z-index: 10;
  color: var(--text-primary);
}

.foot-grid-4col {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .foot-grid-4col {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .foot-grid-4col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.foot-bio {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 360px;
}

.foot-heading {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links li {
  margin-bottom: 12px;
}

.foot-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.foot-links a:hover {
  color: var(--cyan-accent);
  transform: translateX(4px);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   FLOATING WHATSAPP CTA
   ========================================================================== */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all var(--transition-fast);
  text-decoration: none;
}

#wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

#wa-float svg, #wa-float i {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (320px - 1024px)
   ========================================================================== */

/* 1. Global Touch & Overflow Prevention */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-word;
}

/* 2. Mobile Nav Toggle & Drawer Menu */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.nav-toggle:hover, .nav-toggle.active {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 3. Mobile Nav Drawer */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(3, 6, 15, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.2);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-actions {
    display: none;
  }
}

/* 4. Responsive Breakpoints for Grids, Heroes & Cards */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-cutout-img {
    width: 280px;
    max-height: 420px;
  }

  .portal-ring {
    width: 320px;
    height: 320px;
  }

  /* HUD positioning on mobile */
  .hud-top-left {
    left: 4%;
    top: 5%;
    transform: scale(0.85);
  }

  .hud-top-right {
    right: 4%;
    top: 8%;
    transform: scale(0.85);
  }

  .hud-mid-right {
    right: 4%;
    bottom: 20%;
    transform: scale(0.85);
  }

  .hud-bot-right {
    left: 4%;
    bottom: 8%;
    transform: scale(0.85);
  }

  .about-grid-custom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-cube-img {
    height: 320px;
  }

  .case-hero-grid, .serv-hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-subhead {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hud-card {
    display: none; /* Hide cluttered HUDs on small phone screens for ultra clean focus */
  }

  .stats-row, .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-card .stat-num {
    font-size: 1.7rem;
  }

  .stat-card .stat-label {
    font-size: 0.72rem;
  }

  .services-grid, .projects-grid, .insights-grid, .ind-projects-grid {
    grid-template-columns: 1fr !important;
  }

  .cta-section {
    padding: 36px 20px;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .table-responsive, table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #wa-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

/* 5. Universal Container Safeguards for Articles & Calculators */
.article-container, .article-content, .calc-wrapper, .tool-card, .faq-section, .identity-grid, .cta-section {
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .calculator-card, .scorecard-card, .tool-card {
    padding: 24px 16px !important;
  }
  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .input-grid {
    grid-template-columns: 1fr !important;
  }
  .score-meter-box {
    flex-direction: column !important;
    text-align: center !important;
  }
}



