/* ============================================
   VyzAppz Innovation - Corporate Website Styles
   Modern Design with Logo Colors & Animations
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Logo-based Color Palette */
  --primary: #0b8f8d;
  --primary-light: #15b8b5;
  --primary-dark: #087370;
  --secondary: #1a3a5c;
  --secondary-light: #2a5a8c;
  --secondary-dark: #0f2540;
  
  /* Background & Surface */
  --bg: #0a1628;
  --bg-soft: #0f1e32;
  --surface: rgba(15, 30, 50, 0.9);
  --card: rgba(20, 40, 65, 0.85);
  --card-hover: rgba(25, 50, 80, 0.95);
  
  /* Text Colors */
  --text: #ffffff;
  --text-secondary: #b8d4e8;
  --text-muted: #7a9bb8;
  
  /* Accents */
  --accent: #15d4c7;
  --accent-glow: rgba(21, 212, 199, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0b8f8d 0%, #15b8b5 50%, #1a3a5c 100%);
  --gradient-hero: linear-gradient(135deg, #0b8f8d 0%, #15d4c7 100%);
  --gradient-card: linear-gradient(145deg, rgba(11, 143, 141, 0.15), rgba(26, 58, 92, 0.1));
  --gradient-text: linear-gradient(135deg, #15d4c7 0%, #0b8f8d 50%, #1a3a5c 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(15, 30, 50, 0.98) 100%);
  
  /* Effects */
  --shadow-sm: 0 4px 20px rgba(11, 143, 141, 0.1);
  --shadow-md: 0 10px 40px rgba(11, 143, 141, 0.15);
  --shadow-lg: 0 25px 60px rgba(10, 22, 40, 0.5);
  --shadow-glow: 0 0 40px rgba(21, 212, 199, 0.3);
  --border-subtle: 1px solid rgba(11, 143, 141, 0.2);
  --border-glow: 1px solid rgba(21, 212, 199, 0.3);
  
  /* Animation */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Base & Reset
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============================================
   Animated Background
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(11, 143, 141, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(26, 58, 92, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(21, 212, 199, 0.05), transparent);
  animation: bgPulse 15s ease-in-out infinite;
  z-index: -1;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Floating particles effect */
body::after {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(21, 212, 199, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(11, 143, 141, 0.3), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(21, 212, 199, 0.2), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(11, 143, 141, 0.2), transparent),
    radial-gradient(2px 2px at 30% 90%, rgba(21, 212, 199, 0.3), transparent),
    radial-gradient(2px 2px at 70% 40%, rgba(11, 143, 141, 0.2), transparent);
  background-size: 100% 100%;
  animation: floatParticles 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatParticles {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   Layout
   ============================================ */
.site-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Add padding to body for fixed header */
body {
  padding-top: 130px; /* Adjust based on header height (logo 120px + padding) */
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 143, 141, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  animation: slideDown 0.6s var(--ease-smooth);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease-smooth);
}

.brand:hover { transform: scale(1.02); }

.brand-logo {
  width: 320px;
  height: 120px;
  background: transparent;
  border: none;
  padding: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(11, 143, 141, 0.2));
  transition: all 0.3s var(--ease-smooth);
}

.brand-logo:hover {
  filter: drop-shadow(0 4px 16px rgba(21, 212, 199, 0.4));
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a3a5c;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: all 0.3s var(--ease-smooth);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(11, 143, 141, 0.1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-cta {
  background: var(--gradient-hero) !important;
  color: var(--text) !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(21, 212, 199, 0.2);
  transition: all 0.3s var(--ease-smooth) !important;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  border: none;
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 4rem;
  min-height: 85vh;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(11, 143, 141, 0.15);
  border: var(--border-subtle);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '✦';
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  margin: 1.5rem 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary); /* Fallback for older browsers */
  animation: fadeInUp 0.8s var(--ease-smooth) 0.4s forwards;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.8s forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Ensure content is visible even if animations don't run */
.hero-eyebrow,
.hero h1,
.hero p,
.hero-actions,
.hero-trust {
  opacity: 1;
}

@supports (animation: fadeInUp 1s) {
  .hero-eyebrow,
  .hero h1,
  .hero p,
  .hero-actions,
  .hero-trust {
    animation-fill-mode: both;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 30px rgba(21, 212, 199, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(11, 143, 141, 0.5);
}

.btn-secondary:hover {
  background: rgba(11, 143, 141, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   Metrics Cards
   ============================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s var(--ease-smooth) 1s both;
}

.metric-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: var(--border-subtle);
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
}

.metric-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.metric-card strong {
  display: block;
  font-size: 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.metric-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Hero Trust Section
   ============================================ */
.hero-trust {
  margin-top: 2.5rem;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-smooth) 1s both;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(11, 143, 141, 0.1);
  border: 1px solid rgba(21, 212, 199, 0.25);
  border-radius: 50px;
  transition: all 0.3s var(--ease-smooth);
}

.trust-badge:hover {
  background: rgba(11, 143, 141, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(21, 212, 199, 0.15);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--gradient-card);
  border-radius: 16px;
  border: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

/* ============================================
   Hero Visual
   ============================================ */
.hero-visual {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  border: var(--border-subtle);
  box-shadow: var(--shadow-lg);
  animation: fadeInRight 1s var(--ease-smooth) 0.5s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--gradient-hero);
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-card {
  background: rgba(10, 22, 40, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.hero-card:hover {
  transform: translateY(-5px);
  background: rgba(11, 143, 141, 0.1);
  border-color: var(--accent);
}

.hero-card span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-card h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading p { color: var(--text-muted); max-width: 400px; }

/* ============================================
   Service Cards
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 40px rgba(21, 212, 199, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service-card h3 {
  margin: 0.8rem 0;
  font-size: 1.25rem;
}

.service-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.service-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ============================================
   Highlight Cards
   ============================================ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-card {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(11, 143, 141, 0.1), rgba(26, 58, 92, 0.1));
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.highlight-card strong {
  color: var(--accent);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.highlight-card p { color: var(--text-secondary); margin: 0; }

/* ============================================
   Industries Section
   ============================================ */
.industries {
  margin-top: 5rem;
  padding: 3.5rem;
  border-radius: 28px;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.industries::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.industry-card {
  padding: 1.8rem;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.5);
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.industry-card:hover {
  transform: translateY(-5px);
  background: rgba(11, 143, 141, 0.1);
  border-color: var(--accent);
}

.industry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   CTA Panel
   ============================================ */
.cta-panel {
  margin: 5rem 0;
  padding: 4rem;
  border-radius: 28px;
  background: linear-gradient(90deg, #0b8f8d 0%, #14a8a5 50%, #1fbfbb 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(10, 30, 50, 0.4), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 255, 255, 0.1), transparent 40%);
}

.cta-panel h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  font-style: normal;
  font-weight: 700;
}

.cta-panel p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  position: relative;
  font-style: normal;
}

.cta-panel .btn { position: relative; }

/* View Our Work button - white/light */
.cta-panel .btn-secondary {
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(255,255,255,1);
  color: #0b8f8d;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
}

.cta-panel .btn-secondary:hover { 
  background: #ffffff; 
  color: #087370;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Book Free Consultation button - dark navy */
.cta-panel .btn-primary {
  background: #0a1f30;
  border: 2px solid #0a1f30;
  color: #ffffff;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
}

.cta-panel .btn-primary:hover { 
  background: #0f2a3d; 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 31, 48, 0.4);
}

/* ============================================
   Page Hero (Inner Pages)
   ============================================ */
.page-hero {
  padding: 4rem 3rem;
  border-radius: 28px;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: var(--border-subtle);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s var(--ease-smooth);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
}

/* ============================================
   Page Sections
   ============================================ */
.page-section {
  margin: 3rem 0;
  padding: 3rem;
  border-radius: 24px;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: var(--border-subtle);
  animation: fadeInUp 0.8s var(--ease-smooth);
  position: relative;
}

.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: 24px 24px 0 0;
}

.page-section h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Service Detail Grid
   ============================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-detail {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(10, 22, 40, 0.5);
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.service-detail:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(11, 143, 141, 0.08);
}

.service-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-detail p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-detail ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.service-detail li { margin-bottom: 0.4rem; }

/* ============================================
   Solutions Grid
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--gradient-card);
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.solution-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.solution-card p { color: var(--text-secondary); }

.solution-card ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.case-study {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--border-subtle);
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
}

/* ============================================
   Contact Layout
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.contact-card,
.form-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.contact-card:hover,
.form-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-card h2,
.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-card li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-card li a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.contact-card li a:hover { color: var(--primary-light); }

/* ============================================
   Form Elements
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 1rem;
}

label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: var(--border-subtle);
  background: rgba(10, 22, 40, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease-smooth);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 212, 199, 0.15);
  background: rgba(10, 22, 40, 0.8);
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card button {
  width: 100%;
  margin-top: 1rem;
}

/* ============================================
   Badges
   ============================================ */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(11, 143, 141, 0.15);
  border: var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
}

.badge:hover {
  background: rgba(11, 143, 141, 0.25);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================
   Tech Stack Section
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-category {
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s var(--ease-smooth);
}

.tech-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.tech-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(21, 212, 199, 0.1);
  border: 1px solid rgba(21, 212, 199, 0.3);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-smooth);
}

.tech-tag:hover {
  background: var(--gradient-hero);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

/* ============================================
   Process Timeline Section
   ============================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: 2px;
  z-index: 0;
}

.process-step {
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-smooth);
}

.process-step:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(21, 212, 199, 0.4);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

footer strong {
  color: var(--text);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.8rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

footer a {
  color: var(--accent);
  transition: color 0.3s ease;
}

footer a:hover { color: var(--primary-light); }

/* ============================================
   Animations on Scroll
   ============================================ */
.animate-on-scroll {
  opacity: 1; /* Start visible as fallback */
  transform: translateY(0);
  transition: all 0.8s var(--ease-smooth);
}

/* Only animate if JS has loaded and added data attribute */
.js-loaded .animate-on-scroll:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 1; /* Start visible as fallback */
  transform: translateY(0);
  transition: all 0.6s var(--ease-smooth);
}

/* Only animate if JS has loaded */
.js-loaded .stagger-children:not(.visible) > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design - All Devices
   ============================================ */

/* Safe area support for iOS notch */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .site-shell {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 1rem 1.5rem;
  }
  
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
  }
  
  input,
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 48px;
    padding: 0.875rem 1rem;
  }
  
  .badge {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  
  .service-card:hover,
  .service-detail:hover,
  .contact-card:hover,
  .form-card:hover,
  .solution-card:hover {
    transform: none; /* Disable hover transforms on touch */
  }
}

/* Large Tablets - Landscape (1024px - 1200px) */
@media (max-width: 1200px) {
  .site-shell {
    width: min(1100px, 94vw);
  }
  
  .hero {
    gap: 3rem;
    padding: 4rem 0 3rem;
  }
  
  .cta-panel {
    padding: 3rem;
  }
}

/* Tablets - Portrait & Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 1rem 0;
  }
  
  .hero-visual {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
  }
  
  .hero-visual::before {
    display: none;
  }
  
  .hero p { 
    margin: 0 0 1rem; 
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  .hero-actions { 
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .metrics { 
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .metric-card {
    padding: 0.75rem;
  }
  
  .metric-card strong {
    font-size: 1.2rem;
  }
  
  .metric-card span {
    font-size: 0.7rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .hero-card {
    padding: 0.875rem;
    background: var(--gradient-card);
    border: var(--border-subtle);
    border-radius: 12px;
  }
  
  .hero-card span {
    font-size: 0.7rem;
  }
  
  .hero-card h4 {
    font-size: 0.9rem;
    margin: 0.25rem 0;
  }
  
  .hero-card p {
    font-size: 0.8rem;
    display: none; /* Hide description on tablet to save space */
  }
  
  .service-grid,
  .service-detail-grid,
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Tech Grid - Tablet */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Process Timeline - Tablet */
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .process-step {
    padding: 1.25rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
  }
  
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Small Tablets & Large Phones (600px - 768px) - Switch to single column */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2rem;
  }
  
  .hero-visual {
    order: 1; /* Boxes appear AFTER text content */
    margin-top: 1rem;
  }
  
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-card p {
    display: block; /* Show description again */
  }
  
  .hero-trust {
    margin-top: 2rem;
  }

  .trust-badges {
    gap: 0.5rem;
  }

  .trust-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
  }
}

/* Tablets & Large Phones (600px - 900px) */
@media (max-width: 900px) {
  body {
    padding-top: 130px; /* Maintain header space on mobile */
  }
  
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .site-nav {
    position: relative;
  }
  
  .nav-links {
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-links.open {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px); /* Dynamic viewport height for mobile */
    padding: 1.5rem;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    justify-content: center;
    color: #1a3a5c;
    min-height: 48px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 0.5rem;
  }
  
  .nav-links a:hover,
  .nav-links a:active,
  .nav-links a.active {
    background: rgba(11, 143, 141, 0.15);
    color: var(--primary);
  }
  
  .nav-links .nav-cta {
    background: var(--gradient-hero);
    color: white !important;
    margin-top: 0.5rem;
  }
  
  .nav-toggle { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem 1.25rem;
    justify-content: center;
    background: var(--gradient-hero);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }
  
  .page-hero {
    padding: 3rem 2rem;
    margin-top: 1.5rem;
  }
  
  .page-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }
  
  .page-section {
    margin: 2rem 0;
    padding: 2rem;
  }
  
  .page-section h2 {
    font-size: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .badge-row {
    justify-content: center;
  }
  
  /* Tech Grid - Mobile */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech-category {
    padding: 1.25rem;
  }
  
  /* Process Timeline - Mobile */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem;
  }
  
  .step-number {
    flex-shrink: 0;
    margin: 0;
  }
  
  .process-step h3 {
    margin-bottom: 0.5rem;
  }
  
  .footer-grid {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid > div {
    padding: 1rem 0;
  }
  
  footer {
    padding: 2.5rem 0;
  }
  
  footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Mobile Phones - Large (480px - 600px) */
@media (max-width: 600px) {
  body {
    padding-top: 130px;
  }
  
  .site-shell {
    width: 94vw;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero-visual {
    order: 1;
    margin-top: 2rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .metrics { 
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .metric-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .metric-card strong {
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  
  .page-hero,
  .page-section,
  .industries { 
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
  
  .contact-card,
  .form-card { 
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .service-grid,
  .service-detail-grid,
  .solutions-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card,
  .service-detail,
  .solution-card {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-panel {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    margin: 3rem 0;
  }
  
  .cta-panel h2 {
    font-size: 1.5rem;
  }
  
  .cta-panel p {
    font-size: 1rem;
  }
  
  .cta-panel .btn {
    width: 100%;
  }
  
  footer {
    padding: 2rem 0;
    margin-top: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Mobile Phones - Small (up to 480px) */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    padding-top: 70px;
  }
  
  .brand-logo {
    width: 130px;
    height: 48px;
  }
  
  .site-nav {
    padding: 0.5rem 0;
  }
  
  .nav-links {
    top: 70px;
    left: 0;
    right: 0;
  }
  
  .nav-links.open {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    padding: 1rem;
    border-radius: 0;
  }
  
  .nav-links a {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .page-hero {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
  }
  
  .page-hero h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  .page-hero p {
    font-size: 0.95rem;
  }
  
  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .page-section {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }
  
  .page-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-card h2,
  .form-card h2 {
    font-size: 1.2rem;
  }
  
  .contact-card,
  .form-card {
    padding: 1.25rem;
  }
  
  .contact-card li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  label span {
    font-size: 0.85rem;
  }
  
  input,
  textarea,
  select {
    padding: 0.875rem 1rem;
    border-radius: 10px;
  }
  
  textarea {
    min-height: 120px;
  }
  
  .service-detail h3 {
    font-size: 1.05rem;
  }
  
  .service-detail p {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .badge-row {
    gap: 0.5rem;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .nav-links.open {
    max-height: 70vh;
  }
  
  .cta-panel {
    padding: 1.5rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-logo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced motion preference - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  
  .hero-eyebrow,
  .hero h1,
  .hero p,
  .hero-actions,
  .metrics,
  .animate-on-scroll,
  .stagger-children,
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Selection Color */
::selection { background: rgba(11, 143, 141, 0.3); color: var(--text); }

