/* ============================================================
   TOWPRA IT SOLUTIONS — "ARCHITECTURAL FORTRESS" DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Open+Sans:wght@400;600&display=swap');

/* --- CSS VARIABLES (Design Tokens) --- */
:root {
  --primary:           #0a1a35; /* Dark Charcoal / Navy */
  --primary-container: #152b52;
  --accent:            #FF8C00; /* Subtle Orange */
  --accent-hover:      #e67e00;
  --on-primary:        #ffffff;
  --surface:           #ffffff;
  --surface-low:       #f8fafc;
  --surface-container: #f1f5f9;
  --surface-high:      #e2e8f0;
  --surface-highest:   #cbd5e1;
  --on-surface:        #0f172a;
  --on-surface-var:    #475569;
  --outline-var:       #cbd5e1;
  --secondary:         #64748b;
  --nav-height:        120px;
  --section-gap:       120px; /* Wider spacing */
  --max-width:         1400px; /* Wider layout */
  --radius-sm:         4px;
  --radius-md:         8px;
  --radius-lg:         16px;
  --shadow-cloud:      0 10px 40px rgba(0,0,0,0.05);
  --shadow-float:      0 20px 60px rgba(0,0,0,0.12);
  --transition:        all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --accent-red:        #D32F4F;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary-container));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- TYPOGRAPHY --- */
.font-display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.font-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.25;
}
.font-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
}
.font-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --- LAYOUT PRIMITIVES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 64px 0; }

/* Specific Section Adjustments */
#services { padding-bottom: 60px; } /* Reduce gap between services and why */
#why { padding-top: 60px; }      /* Reduce gap between services and why */

/* --- SECTION LABELS --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- HEADER & NAVIGATION (Pelia Style) --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  transform: translateY(-40px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.top-bar {
  background: var(--primary);
  color: white;
  height: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--on-surface-var);
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  padding: 12px 0;
  display: flex;
  align-items: center;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.nav-links .has-dropdown {
  position: relative;
}
.nav-links .has-dropdown > a {
  cursor: pointer;
}
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(10, 26, 53, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
  border-top: 3px solid var(--accent);
}
.nav-links .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .dropdown li {
  width: 100%;
}
.nav-links .dropdown a {
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-surface-var);
}
.nav-links .dropdown a::after {
  display: none;
}
.nav-links .dropdown a:hover {
  background: var(--surface-low);
  color: var(--primary);
  padding-left: 24px;
}

/* Specific button style for Client Portal */
.btn-portal {
  background: var(--accent) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  margin-left: 12px;
  transition: transform 0.3s ease, background 0.3s ease !important;
}
.btn-portal::after { display: none !important; }
.btn-portal:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

@media (max-width: 992px) {
  .nav-toggle { display: flex; }

  /* Hide top bar when hamburger is active */
  .top-bar { display: none; }
  /* No top-bar offset to hide, disable scroll transform */
  .site-header.scrolled { transform: none; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--accent);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px 60px;
    gap: 8px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1050;
    margin: 0;
  }
  .nav-links.open { right: 0; }

  /* Style lists inside mobile menu */
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  /* Style links inside mobile menu */
  .nav-links a {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 20px;
    width: 100%;
    display: block;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s ease, color 0.3s ease;
  }
  .nav-links a:hover,
  .nav-links a.active { 
    color: white; 
    background: rgba(255,255,255,0.15); 
  }
  .nav-links a::after { display: none; }

  /* Mobile Dropdown Override */
  .nav-links .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    border-top: none;
  }
  .nav-links .dropdown a {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links .dropdown a:hover {
    padding-left: 24px;
    background: transparent;
  }
  .btn-portal {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    border-radius: 8px !important;
  }
}


.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-red);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-quote:hover {
  background: #b02040;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 47, 79, 0.3);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10, 26, 53, 0.25);
}
.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(15, 23, 42, 0.15);
}
.btn-outline:hover {
  background: var(--surface-low);
  border-color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: white;
  border: 2px solid transparent;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.25);
}

/* --- CARDS --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cloud);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.card-ribbon {
  border-left: 4px solid var(--primary-container);
}
.card-ribbon-red {
  border-left: 4px solid var(--accent-red);
}

/* --- STAT BLOCKS --- */
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--on-surface-var);
  margin-top: 4px;
}

/* --- HERO GRADIENT OVERLAY --- */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px; height: 48px;
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: #b71c1c; box-shadow: var(--shadow-float); }

/* --- FOOTER --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 64px;
  padding-bottom: 32px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.footer-contact-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.footer-socials a svg { width: 16px; height: 16px; opacity: 0.75; }

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- PAGE HERO (sub-pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
}

/* Diagonal Decoration */
.hero-diagonal {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 45%;
  height: 110%;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.about-hero {
  background: linear-gradient(rgba(10, 26, 53, 0.75), rgba(10, 26, 53, 0.75)), url("abt_bann'.jfif") center/cover no-repeat !important;
}

/* --- SECTION UTILITIES --- */
.section { padding: var(--section-gap) 0; }
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.font-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}

.intro-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  margin-bottom: 72px;
}
.intro-split-reverse { flex-direction: row-reverse; }
.intro-split-text { flex: 1; min-width: 320px; }
.intro-split-text h2 { margin-bottom: 24px; }
.intro-split-text p { color: var(--on-surface-var); font-size: 1.05rem; line-height: 1.8; max-width: 520px; }
.intro-split-image { flex: 1; min-width: 320px; }
.intro-split-image img { 
  width: 100%; height: auto; 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-cloud);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Utilities */
.mb-48 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 16px; }

/* --- IMPACT FEATURE (Redesigned Services Intro) --- */
.impact-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  position: relative;
  margin-bottom: 100px;
}
.impact-feature-content {
  grid-column: 1 / span 6;
  grid-row: 1;
  background: var(--surface);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border-left: 5px solid var(--accent);
  z-index: 2;
  position: relative;
}
.impact-feature-visual {
  grid-column: 5 / span 8;
  grid-row: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-cloud);
  height: 500px;
}
.impact-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.impact-feature:hover .impact-feature-visual img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .impact-feature { display: block; }
  .impact-feature-content {
    margin-bottom: -40px;
    padding: 40px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .impact-feature-visual {
    height: 400px;
    width: 100%;
  }
}
.body-large { font-size: 1.1rem; color: var(--on-surface-var); line-height: 1.8; }
.white-opacity { color: rgba(255,255,255,0.6); }
.relative { position: relative; }
.z-2 { z-index: 2; }

/* --- CHAT WIDGET --- */
.chat-widget {
  position: fixed;
  bottom: 36px;
  right: 100px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}
.chat-widget-button {
  width: 56px; height: 56px;
  background: var(--primary-container);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.chat-widget-button:hover {
  transform: translateY(-4px);
  background: #254ab5;
}
.chat-widget-button svg {
  width: 28px; height: 28px;
  position: absolute;
  transition: var(--transition);
}
.chat-icon-close { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.chat-widget-button.active .chat-icon-open { opacity: 0; transform: scale(0.5) rotate(90deg); }
.chat-widget-button.active .chat-icon-close { opacity: 1; transform: scale(1) rotate(0); }

.chat-widget-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.chat-widget-window.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}
.chat-header {
  background: var(--primary);
  padding: 20px;
  color: white;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar svg { width: 24px; height: 24px; }
.chat-header h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.chat-header span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.chat-body {
  height: 340px;
  background: var(--surface);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-message { display: flex; }
.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-message.bot .msg-bubble {
  background: white;
  color: var(--on-surface);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.chat-message.user .msg-bubble {
  background: var(--primary-container);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  padding: 16px;
  background: white;
  border-top: 1px solid var(--surface-highest);
  gap: 10px;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid var(--surface-highest);
  border-radius: 20px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  background: var(--surface-low);
}
.chat-input-area input:focus { border-color: var(--primary-container); background: white; }
.chat-input-area button {
  width: 42px; height: 42px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-input-area button:hover { background: #b02040; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(211,47,79,0.3); }
.chat-input-area button svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .chat-widget {
    right: 20px;
    bottom: 20px;
  }
  .chat-widget-window {
    width: calc(100vw - 40px);
  }
}

.typing-dots { display: flex; gap: 4px; padding: 4px 8px; justify-content: center; min-width: 36px; }
.typing-dot { width: 6px; height: 6px; background: #a2a2b0; border-radius: 50%; animation: typing-bounce 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* --- HOME-SPECIFIC STYLES --- */

/* ===== HERO SECTION (SPLIT LAYOUT) for Service Pages ===== */
.hero-split-wrap {
  display: flex;
  min-height: 80vh;
  padding-top: 120px; /* nav height */
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-split-left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 40px;
}
.hero-left-inner {
  max-width: 600px;
  margin-left: auto;
}
.hero-split-left h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-split-left h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-split-left p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.hero-split-right {
  flex: 1;
  position: relative;
  min-height: 400px;
}
.hero-img-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}
.hero-img-slide.active {
  opacity: 1;
}

@media (max-width: 991px) {
  .hero-split-wrap {
    flex-direction: column;
  }
  .hero-split-left {
    padding: 40px 24px;
  }
  .hero-left-inner {
    margin-left: 0;
  }
  .hero-split-right {
    min-height: 350px;
  }
}

/* ===== FANCY HERO SLIDER ===== */
.hero-fancy-wrap {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--primary);
  display: flex;
  align-items: center;
}

.hero-fancy-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fancy-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
  display: flex;
  align-items: center;
  filter: contrast(1.12) brightness(1.08) saturate(1.05);
  image-rendering: -webkit-optimize-contrast;
}

.hero-fancy-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-fancy-slide.active {
  animation: slide-zoom 10s linear forwards;
}

@keyframes slide-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-fancy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 53, 0.92) 0%, rgba(10, 26, 53, 0.5) 45%, rgba(10, 26, 53, 0.1) 80%, transparent 100%);
  z-index: 1;
}

.hero-fancy-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 800px;
  padding-top: 140px; /* Prevent header overlap */
  padding-bottom: 80px; /* Space for controls */
}

.hero-fancy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.hero-fancy-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-fancy-content h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-fancy-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-fancy-slide.active .hero-fancy-badge,
.hero-fancy-slide.active h1,
.hero-fancy-slide.active p,
.hero-fancy-slide.active .hero-btns {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-fancy-slide.active .hero-fancy-badge { animation-delay: 0.2s; }
.hero-fancy-slide.active h1 { animation-delay: 0.4s; }
.hero-fancy-slide.active p { animation-delay: 0.6s; }
.hero-fancy-slide.active .hero-btns { animation-delay: 0.8s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Slider Controls */
.hero-fancy-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-fancy-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-fancy-prev,
.hero-fancy-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-fancy-prev:hover,
.hero-fancy-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.hero-fancy-prev svg,
.hero-fancy-next svg {
  width: 20px;
  height: 20px;
}

.hero-fancy-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-fancy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  cursor: pointer;
  padding: 0;
}

.hero-fancy-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.hero-fancy-progress {
  flex: 1;
  max-width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-left: 40px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.hero-fancy-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Stats Section */
.stats-section {
  background: #071321;
}
.stats-section .stat-number {
  color: white;
}
.stats-section .stat-label {
  color: rgba(255,255,255,0.5);
}

/* Accent syncing */
.accent-bar { background: var(--accent); }
.back-to-top { background: var(--accent); }
.back-to-top:hover { background: var(--accent-hover); }
.svc-slide-link { background: var(--accent); color: white; }
.svc-slide-link:hover { background: white; color: var(--primary); }
.svc-carousel-dot.active { background: var(--accent); }

/* --- INDUSTRIES GRID & CARDS --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.industry-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-cloud);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.industry-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.industry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover .industry-card-image img {
  transform: scale(1.1);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 53, 0.9) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
}

.industry-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: white;
}

.industry-card-icon svg { width: 24px; height: 24px; }

.industry-card-body {
  padding: 24px;
  flex: 1;
}

.industry-card-body p {
  color: var(--on-surface-var);
  font-size: 0.95rem;
  line-height: 1.7;
}

.industry-card-footer {
  padding: 0 24px 24px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-tag-sm {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--surface-container);
  color: var(--on-surface-var);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CONTACT PAGE LAYOUT --- */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-cloud);
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--surface-container);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-icon-wrap svg { width: 22px; height: 22px; }

.contact-info-content h4 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 4px;
}

.contact-info-content p {
  font-size: 0.9rem;
  color: var(--on-surface-var);
}

.contact-form-card {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group.full { grid-column: span 2; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline-var);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface-low);
  transition: var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 26, 53, 0.2);
}

/* --- RESPONSE / COMMITMENT --- */
.response-banner {
  background: var(--surface-low);
  padding: 80px 0;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.response-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cloud);
  text-align: center;
}

.response-card .stat-number { margin-bottom: 16px; }

/* --- CHALLENGE APPROACH --- */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.challenge-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--surface-highest);
}

.challenge-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.challenge-visual {
  background: var(--primary);
  padding: 60px;
  border-radius: var(--radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-mini-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-mini-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* --- CTA REFINEMENT --- */
.ind-cta {
  background: var(--primary);
  padding: 100px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .contact-main-grid,
  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .response-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full { grid-column: auto; }
  .stats-mini {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- HOMEPAGE STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0;
  text-align: center;
}

/* --- WHY SECTION GRID --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.why-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface-low);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.why-feature:hover {
  background: white;
  box-shadow: var(--shadow-cloud);
  transform: translateX(8px);
}

.why-feature-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.why-visual {
  background: var(--primary);
  padding: 60px;
  border-radius: var(--radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.why-visual-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.why-visual p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

/* --- UPTIME BADGE --- */
.uptime-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
}

.uptime-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.uptime-desc {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* Mobile responsive extensions */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 580px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--surface-low);
  padding: 40px 0;
  border-top: 1px solid var(--outline-var);
  border-bottom: 1px solid var(--outline-var);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.trust-bar-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex: 1;
  flex-wrap: wrap;
}

.trust-badge-item {
  height: 40px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(1);
}

.trust-badge-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.trust-badge-item img,
.trust-badge-item svg {
  height: 100%;
  width: auto;
  max-width: 140px;
}

/* --- SERVICES CAROUSEL --- */
.services-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  margin: 0 -10px;
}

.services-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 20px;
}

.svc-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 300px;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: white;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .svc-slide { flex: 0 0 calc(50% - 13px); }
}

@media (max-width: 640px) {
  .svc-slide { flex: 0 0 100%; }
}

.svc-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 53, 0.95) 0%, rgba(10, 26, 53, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.svc-slide-content {
  position: relative;
  z-index: 2;
}

.svc-slide-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.svc-slide h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.svc-slide p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.svc-slide-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.svc-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.svc-carousel-btn:hover { background: var(--primary); color: white; }
.svc-carousel-prev { left: 20px; }
.svc-carousel-next { right: 20px; }

.svc-counter {
  margin-top: 24px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--on-surface-var);
}

.svc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.svc-carousel-dot {
  width: 12px;
  height: 12px;
  background: var(--surface-highest);
  border-radius: 50%;
  transition: var(--transition);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--primary);
  padding: 100px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .trust-bar-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .trust-badges {
    justify-content: center;
  }
}

/* --- PAGE HERO --- */
.page-hero {
  background: var(--primary);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-diagonal {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.1;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-top: 16px;
  margin-bottom: 24px;
}

.section-label.white-opacity {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.2);
}

/* --- FOOTER --- */
.footer {
  background: var(--primary);
  color: white;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 20px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-socials svg { width: 18px; height: 18px; }

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- SERVICES PAGE LAYOUT --- */
.svc-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.svc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: white;
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cloud);
  transition: var(--transition);
}

.svc-card:nth-child(even) {
  direction: rtl;
}

.svc-card:nth-child(even) .svc-content {
  direction: ltr;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.svc-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-float);
}

.svc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.svc-icon-box {
  width: 64px;
  height: 64px;
  background: var(--surface-container);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.svc-icon-box svg { width: 32px; height: 32px; }

.svc-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--primary);
}

.svc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  list-style: none;
}

.svc-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--on-surface-var);
}

.svc-feature-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .svc-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  .svc-card:nth-child(even) { direction: ltr; }
  .svc-visual { height: 300px; }
  .svc-features { grid-template-columns: 1fr; }
}

/* Enhanced tech specs for Services Page */
.svc-tech-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-highest);
}

.svc-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-spec-label {
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.svc-spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- SERVICES SHAPE DIVIDER --- */
.svc-shape-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.svc-divider-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

/* --- HOMEPAGE INDUSTRIES UPGRADE --- */
.industries-section {
  background: #071321;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.industries-section .hero-grid-pattern {
  opacity: 0.15;
}

.industries-section h2 {
  color: white;
}

.industries-section .industries-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.industries-section .industry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: none;
  height: auto;
}

.industries-section .industry-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}

.industries-section .industry-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 140, 0, 0.15);
  color: var(--accent);
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 12px;
  transition: var(--transition);
}

.industries-section .industry-card span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
  letter-spacing: 0.01em;
}

.industries-section .industry-card:hover .industry-card-icon {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.5);
}

@media (max-width: 1200px) {
  .industries-section .industries-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

@media (max-width: 768px) {
  .industries-section .industries-grid {
    grid-template-columns: 1fr;
  }
  .industries-section .industry-card {
    padding: 24px;
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE SYSTEM — MOBILE & TABLET
   ============================================================ */

/* --- NAV OVERLAY BACKDROP --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* --- HAMBURGER ICON ANIMATION --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1060;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- CONTAINER PADDING --- */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .top-bar-inner, .nav-inner { padding: 0 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-bar-inner, .nav-inner { padding: 0 20px; }
  :root { --section-gap: 72px; }
}

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

/* --- SPLIT HERO (index.html) & NAV TOGGLE --- */
@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  
  .hero-split-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }
  .hero-split-left { padding: 60px 32px 60px; }
  .hero-left-inner { max-width: 100%; margin: 0; padding: 0; }
  .hero-split-right { height: 360px; }
  .hero-split-right::after {
    background: linear-gradient(to bottom, var(--primary), transparent);
  }
}

@media (max-width: 640px) {
  .hero-split-left { padding: 48px 20px 48px; }
  .hero-left-inner h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-split-right { height: 260px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0; }
}

/* --- IMPACT FEATURE --- */
@media (max-width: 1024px) {
  .impact-feature {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .impact-feature-content {
    width: 100%;
    padding: 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: none;
    border-top: 5px solid var(--accent);
    box-shadow: none;
    order: 2;
    margin: 0;
  }
  .impact-feature-visual {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    order: 1;
  }
}

@media (max-width: 640px) {
  .impact-feature-content { padding: 28px 20px; }
  .impact-feature-visual { height: 220px; }
}

/* --- PAGE HERO --- */
@media (max-width: 768px) {
  .page-hero { padding: 140px 0 60px; }
  .page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .page-hero p { font-size: 1rem; }
}

/* --- WHY SECTION --- */
@media (max-width: 768px) {
  .why-visual { padding: 40px 28px; }
  .why-visual-headline { font-size: 1.2rem; }
}

/* --- CTA BANNER --- */
@media (max-width: 640px) {
  .cta-banner { padding: 64px 0; }
  .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 28px; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
  .cta-banner-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* --- TRUST BAR --- */
@media (max-width: 640px) {
  .trust-bar { padding: 28px 0; }
  .trust-badges { gap: 20px; justify-content: center; }
  .trust-badge-item { opacity: 1; filter: grayscale(0); }
}

/* --- FOOTER --- */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding-top: 48px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* --- CONTACT PAGE --- */
@media (max-width: 768px) {
  .contact-form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
}

/* --- SERVICES PAGE --- */
@media (max-width: 640px) {
  .svc-card { padding: 24px 16px; gap: 24px; }
  .svc-content h2 { font-size: 1.5rem; }
  .svc-visual { height: 220px; }
  .svc-features { grid-template-columns: 1fr; gap: 12px; }
}

/* --- TYPOGRAPHY SCALING --- */
@media (max-width: 640px) {
  .font-display { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .font-headline { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .body-large { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

/* --- NAV HEIGHT ON MOBILE --- */
@media (max-width: 640px) {
  .nav { height: 64px; }
  .nav-logo-img { height: 48px; }
  .page-hero { padding: 120px 0 56px; }
}

/* ============================================================
   FORM SUBMISSION & VALIDATION
   ============================================================ */

.form-response {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  display: none;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-response.active {
  display: block;
}

.form-response.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid #2ecc71;
  color: #27ae60;
}

.form-response.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid #e74c3c;
  color: #c0392b;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e74c3c !important;
  background-color: rgba(231, 76, 60, 0.02);
}

.error-message {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 5px;
  display: block;
  font-weight: 600;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit.loading .btn-text {
  visibility: hidden;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MULTI-STEP FORM STYLES --- */
.form-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--surface-highest);
  z-index: 1;
}

.form-progress-bar {
  position: absolute;
  top: 25px;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-low);
  border: 3px solid var(--outline-var);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  transition: all 0.4s ease;
  margin-bottom: 8px;
  box-shadow: 0 0 0 6px var(--surface); /* Mask the connector line */
}

.step-indicator.active .step-circle {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.2), 0 0 0 6px var(--surface);
}

.step-indicator.completed .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: color 0.4s ease;
}

.step-indicator.active .step-title,
.step-indicator.completed .step-title {
  color: var(--primary);
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid var(--outline-var);
  padding-top: 24px;
}

.form-navigation.single-btn {
  justify-content: flex-end;
}

.btn-back {
  padding: 14px 28px;
  border: 2px solid var(--outline-var);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-back:hover {
  background: var(--surface-container);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-next {
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-next:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 26, 53, 0.2);
}

.btn-submit-step {
  padding: 16px 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit-step:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 26, 53, 0.2);
}

.btn-submit-step.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit-step.loading .btn-text {
  visibility: hidden;
}

.btn-submit-step.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 640px) {
  .form-steps {
    margin-bottom: 32px;
  }
  .step-circle {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
    border-width: 2px;
  }
  .form-steps::before, .form-progress-bar {
    top: 21px;
  }
  .step-title {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
  .form-navigation {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .btn-back, .btn-next, .btn-submit-step {
    width: 100%;
    justify-content: center;
  }
}

