/* ═══════════════════════════════════════════
   ANAY IT SOLUTIONS — Complete CSS v6
   Fixed: page-hero-dark + all inner page heroes
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-blue: #1a56db;
  --brand-blue-dark: #1e40af;
  --brand-cyan: #06b6d4;
  --brand-amber: #f59e0b;
  --brand-purple: #8b5cf6;
  --brand-green: #10b981;
  --brand-pink: #ec489a;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-blue: 0 10px 25px -5px rgba(26, 86, 219, 0.25);

  /* Legacy vars used by footer.html */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --blue-600: #2563eb;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: white;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* ═══════════════════════════════════════
   GRADIENTS & TEXT EFFECTS
═══════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan), #818cf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 38px; /* below top strap (38px height) */
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
}

/* When strap is hidden/removed, navbar moves to top */
body.strap-hidden #navbar {
  top: 0;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
}

#navbar.scrolled .nav-link { color: var(--gray-700); }
#navbar.scrolled .nav-link:hover { color: var(--brand-blue); background: var(--gray-100); }
#navbar.scrolled .nav-logo-text { color: var(--gray-800); }

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-priority > a {
  font-weight: 700;
  color: var(--gray-900);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 8px;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--gray-600);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--brand-blue);
  transform: translateX(4px);
}

/* Mobile Menu */
#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
}

#mobileMenu.open {
  transform: translateX(0);
}

/* ═══════════════════════════════════════
   HERO — HOME PAGE
═══════════════════════════════════════ */
.hero-gradient {
  background: linear-gradient(135deg, #0b1120 0%, #0f2b4d 50%, #0a4b5e 100%);
  position: relative;
  overflow: hidden;
}

.mesh-bg {
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33% { transform: translate(30px, -40px) scale(1.1); opacity: 0.5; }
  66% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.4; }
}

/* ═══════════════════════════════════════
   PAGE HERO — ALL INNER PAGES
   This was MISSING — the root cause of white hero bug
═══════════════════════════════════════ */
.page-hero-dark {
  background: linear-gradient(135deg, #0b1120 0%, #0f2b4d 45%, #0a4b5e 100%);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding-top: 140px; /* 38px strap + ~72px navbar + extra breathing room */
  padding-bottom: 80px;
}
.page-hero-dark * { position: relative; z-index: 2; }

/* Mesh grid overlay on inner page heroes */
.page-hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Subtle animated glow orbs in page hero */
.page-hero-dark::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* Ensure text inside page-hero-dark is always visible */
.page-hero-dark * {
  position: relative;
  z-index: 2;
}

.page-hero-dark h1,
.page-hero-dark h2 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-hero-dark p {
  color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════
   FLOAT ANIMATIONS (Hero visual)
═══════════════════════════════════════ */
.float {
  animation: floatAnim 6s ease-in-out infinite;
}
.float-slow {
  animation: floatAnim 9s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════
   CARDS & DASHBOARD
═══════════════════════════════════════ */
.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-blue);
}

.dashboard-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-cyan);
}

.stat-number {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ═══════════════════════════════════════
   CLIENT SLIDER (Infinite Loop)
═══════════════════════════════════════ */
.client-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.client-track {
  display: flex;
  gap: 32px;
  animation: slideClients 30s linear infinite;
  width: fit-content;
}

@keyframes slideClients {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  padding: 16px 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.2s ease;
  min-width: 160px;
  text-align: center;
}

.client-logo:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   TESTIMONIAL SLIDER
═══════════════════════════════════════ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 40px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--gray-200);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: var(--brand-blue);
  width: 24px;
  border-radius: 12px;
}

/* ═══════════════════════════════════════
   REVIEW CARDS
═══════════════════════════════════════ */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════
   GALLERY
═══════════════════════════════════════ */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
  background: white;
  color: var(--gray-800);
}

.form-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ═══════════════════════════════════════
   TIMELINE
═══════════════════════════════════════ */
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(180deg, var(--brand-blue), transparent);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible, .slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════
   BUTTONS & UTILITIES
═══════════════════════════════════════ */
.btn-glow {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(26, 86, 219, 0); }
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--brand-blue);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(26, 86, 219, 0.15);
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 4px;
  transition: all 0.2s ease;
}

.industry-pill:hover {
  background: var(--gray-100);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

/* ═══════════════════════════════════════
   LEGACY FOOTER SUPPORT (footer.html)
═══════════════════════════════════════ */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 80px 0 32px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.footer-brand-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
}

.social-link:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
}

/* Legacy btn classes for footer.html */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(26, 86, 219, 0.4);
}

/* nav-inner / nav-logo for legacy navbar.html */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.nav-logo-text span {
  color: var(--brand-cyan);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: white;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.nav-cta.pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hover-underline {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hover-underline:hover {
  color: white;
}

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

.mobile-links a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.mobile-links a:hover {
  color: white;
}

/* ═══════════════════════════════════════
   FLOATING ELEMENTS
═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: waBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 48px;
  height: 48px;
  background: var(--brand-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  background: var(--brand-blue-dark);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
  .hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  #navbar.scrolled .hamburger span { background: var(--gray-800); }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-card, .dashboard-card { padding: 24px; }
  .client-logo { min-width: 120px; padding: 12px 20px; font-size: 0.875rem; }
  .testimonial-slide { padding: 24px; }
  .timeline-item { padding-left: 32px; }
  .page-hero-dark { min-height: 360px; padding-top: 120px; padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 24px; }
  .scroll-top { bottom: 80px; right: 20px; width: 40px; height: 40px; }
  .page-hero-dark { padding-top: 80px; padding-bottom: 48px; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}