/* ============================================================
   Joy Solutions Technologies — Premium Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette (extracted from logo) */
  --brand-deep:    #0a1fb3;
  --brand-primary: #1a3de8;
  --brand-mid:     #2563eb;
  --brand-light:   #60a5fa;
  --brand-pale:    #93c5fd;
  --brand-glow:    #3b82f6;

  /* Dark-mode defaults */
  --bg-primary:    #000000;
  --bg-secondary:  #0a0a0f;
  --bg-card:       rgba(15,15,25,.65);
  --bg-card-hover: rgba(30,30,50,.75);
  --text-primary:  #f0f0f5;
  --text-secondary:#a0a0b5;
  --text-muted:    #6a6a80;
  --border-color:  rgba(255,255,255,.06);
  --glass-bg:      rgba(10,10,20,.55);
  --glass-border:  rgba(255,255,255,.08);
  --shadow-glow:   0 0 40px rgba(59,130,246,.12);
  --hero-gradient: linear-gradient(135deg, #000 0%, #050520 50%, #0a0a2e 100%);
  --section-alt:   #05050f;
  --nav-bg:        rgba(0,0,0,.72);
}

[data-theme="light"] {
  --bg-primary:    #f8f9fc;
  --bg-secondary:  #ffffff;
  --bg-card:       rgba(255,255,255,.85);
  --bg-card-hover: rgba(240,244,255,.95);
  --text-primary:  #111827;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;
  --border-color:  rgba(0,0,0,.08);
  --glass-bg:      rgba(255,255,255,.6);
  --glass-border:  rgba(0,0,0,.06);
  --shadow-glow:   0 0 40px rgba(59,130,246,.08);
  --hero-gradient: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 50%, #f8f9fc 100%);
  --section-alt:   #f0f2f8;
  --nav-bg:        rgba(255,255,255,.82);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--brand-glow);
  margin-bottom: 12px;
  padding: 6px 16px;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 999px;
  background: rgba(59,130,246,.06);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-mid));
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--brand-glow);
  color: var(--brand-light);
  background: rgba(59,130,246,.06);
}

.btn-sm { padding: 10px 22px; font-size: .85rem; border-radius: 10px; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-color);
  transition: background .4s, padding .3s;
}
.navbar.scrolled { padding: 10px 0; }

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

.nav-logo img {
  height: 38px;
  width: auto;
  transition: opacity .3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand-light);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-glow);
  transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  font-size: 1.1rem;
}
.theme-toggle:hover {
  border-color: var(--brand-glow);
  color: var(--brand-light);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 40px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--brand-light); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: var(--brand-primary);
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 350px; height: 350px;
  background: var(--brand-light);
  bottom: 10%; left: -5%;
  animation-delay: -4s;
}
.hero-orb--3 {
  width: 250px; height: 250px;
  background: var(--brand-pale);
  top: 40%; left: 40%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--brand-light);
  margin-bottom: 24px;
  animation: fadeInUp .8s ease forwards;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--brand-glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp .8s ease .1s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp .8s ease .2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp .8s ease .4s forwards;
  opacity: 0;
}
.hero-stat h3 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual — AI Brain animation */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.2s ease .5s forwards;
  opacity: 0;
}

.ai-brain-container {
  position: relative;
  width: 420px;
  height: 420px;
}

.ai-brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,.15);
}
.ai-brain-ring:nth-child(1) {
  inset: 0;
  animation: ringRotate 20s linear infinite;
}
.ai-brain-ring:nth-child(2) {
  inset: 40px;
  animation: ringRotate 15s linear infinite reverse;
  border-color: rgba(59,130,246,.1);
}
.ai-brain-ring:nth-child(3) {
  inset: 80px;
  animation: ringRotate 25s linear infinite;
  border-color: rgba(59,130,246,.08);
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-brain-ring::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--brand-glow);
  border-radius: 50%;
  top: -5px; left: 50%;
  box-shadow: 0 0 20px var(--brand-glow);
}

.ai-core {
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.2), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  animation: corePulse 3s ease-in-out infinite;
  overflow: hidden;
}

.ai-brain-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(59,130,246,.3));
  animation: svgBrainPulse 4s ease-in-out infinite;
}
@keyframes svgBrainPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(59,130,246,.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(59,130,246,.5)); }
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(59,130,246,.15); }
  50% { box-shadow: 0 0 80px rgba(59,130,246,.3); }
}

/* Neural particles */
.neural-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--brand-glow);
  border-radius: 50%;
  opacity: 0;
  animation: particleFly 4s ease-in-out infinite;
}
.neural-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.neural-particle:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.neural-particle:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 2s; }
.neural-particle:nth-child(4) { top: 35%; right: 25%; animation-delay: 3s; }

@keyframes particleFly {
  0% { opacity: 0; transform: translate(0,0) scale(0); }
  30% { opacity: 1; transform: translate(20px,-30px) scale(1); }
  70% { opacity: .6; transform: translate(50px,-60px) scale(.8); }
  100% { opacity: 0; transform: translate(80px,-90px) scale(0); }
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt { background: var(--section-alt); }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: all .4s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-light));
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,.2);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all .3s;
  color: var(--brand-light);
}
.service-icon svg {
  width: 28px; height: 28px;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-mid));
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-glow);
  transition: gap .3s;
}
.service-card:hover .learn-more { gap: 10px; }

/* ---------- Features / Why Choose ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-item {
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  text-align: center;
  transition: all .3s;
}
.feature-item:hover {
  border-color: rgba(59,130,246,.2);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--brand-light);
}
.feature-icon svg {
  width: 36px; height: 36px;
}
.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-item p {
  color: var(--text-secondary);
  font-size: .88rem;
}

/* ---------- Tech Stack Section ---------- */
.tech-marquee {
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.tech-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 12px 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all .3s;
}
.tech-item svg {
  width: 18px; height: 18px;
  color: var(--brand-light);
  flex-shrink: 0;
}
.tech-item:hover {
  color: var(--brand-light);
  border-color: rgba(59,130,246,.3);
}

/* ---------- Inline Icon Helpers ---------- */
.icon-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 1em; height: 1em;
  color: var(--brand-light);
}
.testimonial-stars svg {
  width: 18px; height: 18px;
  fill: #f59e0b;
  color: #f59e0b;
}
.blog-card-meta svg,
.footer-column svg {
  width: 14px; height: 14px;
  vertical-align: -2px;
  color: var(--brand-light);
}
.footer-bottom svg {
  width: 14px; height: 14px;
  vertical-align: -2px;
  color: #ef4444;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.08), transparent 70%);
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 { margin-bottom: 18px; }
.cta-content p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------- About Page ---------- */
.about-hero {
  padding: 160px 0 80px;
  background: var(--hero-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.team-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all .3s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  color: #fff;
}
.team-avatar svg {
  width: 40px; height: 40px;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--brand-light); font-size: .85rem; font-weight: 500; margin-bottom: 12px; }
.team-card p { color: var(--text-secondary); font-size: .88rem; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  transition: all .3s;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.2);
}
.value-card .value-icon { font-size: 2rem; margin-bottom: 16px; color: var(--brand-light); }
.value-card .value-icon svg { width: 32px; height: 32px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--text-secondary); font-size: .88rem; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 48px auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-light), transparent);
}
.timeline-item {
  padding-left: 64px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-glow);
  box-shadow: 0 0 16px rgba(59,130,246,.4);
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-item .year { font-size: .8rem; color: var(--brand-light); font-weight: 600; }
.timeline-item p { color: var(--text-secondary); font-size: .9rem; margin-top: 8px; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.blog-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-image .category {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-light);
}
.blog-card-body {
  padding: 24px;
}
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  transition: color .3s;
}
.blog-card:hover h3 { color: var(--brand-light); }
.blog-card p {
  color: var(--text-secondary);
  font-size: .88rem;
  margin-bottom: 16px;
}
.blog-card .read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s;
}
.blog-card:hover .read-more { gap: 10px; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

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

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all .3s;
}
.contact-info-card:hover {
  border-color: rgba(59,130,246,.2);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--brand-light);
}
.contact-info-icon svg {
  width: 22px; height: 22px;
}
.contact-info-card h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-secondary); font-size: .88rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand-glow);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  background: var(--bg-secondary);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: .88rem;
  margin-top: 16px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all .3s;
}
.footer-social a:hover {
  border-color: var(--brand-glow);
  color: var(--brand-light);
  background: rgba(59,130,246,.06);
}

.footer-column h4 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-column a {
  display: block;
  font-size: .85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color .3s;
}
.footer-column a:hover { color: var(--brand-light); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
  transition: all .3s;
  text-decoration: none;
  animation: fabBounce 2s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,.5);
  animation: none;
}

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

/* ---------- Page Headers ---------- */
.page-header {
  padding: 160px 0 80px;
  background: var(--hero-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-primary));
}
.page-header h1 { margin-bottom: 16px; position: relative; z-index: 2; }
.page-header p { color: var(--text-secondary); position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s cubic-bezier(.215,.61,.355,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Clients / Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all .3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.testimonial-stars { color: #fbbf24; margin-bottom: 16px; font-size: 1rem; }
.testimonial-card blockquote {
  font-size: .95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: .85rem;
}
.testimonial-author h4 { font-size: .9rem; }
.testimonial-author p { font-size: .78rem; color: var(--text-muted); }

/* ---------- Logo Switcher ---------- */
.logo-dark { display: block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-visual {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 320px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.service-detail-content h3 { font-size: 1.5rem; margin-bottom: 16px; }
.service-detail-content p {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 20px;
}
.service-detail-content ul {
  margin-bottom: 24px;
}
.service-detail-content li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-detail-content li::before {
  content: '✓';
  color: var(--brand-glow);
  font-weight: 700;
}

/* ---------- Count-up Numbers ---------- */
.stats-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.stat-item p {
  color: var(--text-secondary);
  font-size: .85rem;
}

/* --------- Process / How We Work ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  transition: all .3s;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.2);
}
.process-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-mid));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--text-secondary); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-visual { margin-top: 40px; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .ai-brain-container { width: 280px; height: 280px; }
  .ai-core { inset: 80px; font-size: 2.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .typing-text { min-height: 2.4em; }
  .section { padding: 60px 0; }
  .contact-form { padding: 24px; }
}

/* ---------- Page Transition ---------- */
.page-transition {
  animation: pageIn .6s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Typing Animation ---------- */
.typing-text {
  display: block;
  min-height: 1.2em;
}
.typing-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--brand-glow);
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 48px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(.6) contrast(1.1);
}
[data-theme="light"] .map-container iframe {
  filter: grayscale(.2) contrast(1);
}
