/* ================= Enhanced Color Scheme ================= */
:root {
  --primary-dark: #041e64;
  --primary: #1a3a8f;
  --primary-light: #4a7cff;
  --secondary: #3061e8;
  --accent: #3d6ef7;
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-600: #475569;
  --neutral-800: #1e293b;
  --text-color: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= Typography ================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

/* ================= Header ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-img:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.download-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(4, 30, 100, 0.22);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.download-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: 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(4, 30, 100, 0.28);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(4, 30, 100, 0.22);
  padding: 14px 28px;
  border-radius: 999px;
}

.btn-primary::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: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(4, 30, 100, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: #dfe6f3;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 999px;
}

.btn-ghost:hover {
  background: #f3f6fb;
  border-color: var(--primary-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.bar {
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ================= Hero ================= */
.hero {
  margin-top: 76px;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(72, 118, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  animation: pulse 15s ease-in-out infinite;
}

.hero-container {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: "text image";
  position: relative;
  z-index: 2;
}

.hero-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-image {
  grid-area: image;
  display: flex;
  justify-content: center;
}

h1.pulse {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle.pulse {
  font-size: 1.2rem;
  color: var(--neutral-600);
  margin-bottom: 14px;
  font-weight: 500;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 32px;
}

.hero-ctas .btn {
  padding: 14px 28px;
  border-radius: 999px;
}

/* Metrics */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 24px 0;
}

.hero-metrics li {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.hero-metrics li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.35rem;
}

/* Trust pills */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-pill {
  background: rgba(4, 30, 100, 0.08);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(4, 30, 100, 0.1);
  transition: var(--transition);
}

.trust-pill:hover {
  background: rgba(4, 30, 100, 0.12);
  transform: translateY(-2px);
}

/* Curved portrait */
.avatar {
  position: relative;
  width: min(480px, 88vw);
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
}

.avatar img {
  width: 88%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow-xl);
  animation: floaty 6.5s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-xl);
  background: conic-gradient(from 220deg, rgba(48, 97, 232, 0.35), rgba(4, 30, 100, 0.25), rgba(48, 97, 232, 0.2), rgba(4, 30, 100, 0.25));
  filter: blur(0.6px);
  opacity: 0.55;
  animation: spin-slow 18s linear infinite;
  z-index: 1;
}

.avatar-glow {
  position: absolute;
  inset: -22px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 120% at 20% 15%, rgba(48, 97, 232, 0.18), transparent 60%);
  z-index: 0;
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse {
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
}

/* ================= About ================= */
.about {
  position: relative;
  padding: 50px 0;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.3s ease;
}

.about-surface {
  position: relative;
  z-index: 1;   /* ✅ ensures it appears above the video */
  background: rgba(255, 255, 255, 0.92);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-title-light {
  color: #fff;
}

.section-title-light::after {
  background: linear-gradient(90deg, #fff, var(--neutral-200));
}

.about-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e3e7ef;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(4, 30, 100, 0.05), transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.cta-button-light {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
}

.cta-button-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ================= Competencies ================= */
.competencies {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--neutral-0) 0%, var(--neutral-50) 100%);
}

.competency-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.competency-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.competency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.competency-card:hover::before {
  transform: scaleX(1);
}

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

.icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 6px 12px rgba(4, 30, 100, 0.15);
  font-size: 1.5rem;
}

.competency-card h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.25rem;
}

.competency-card p {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ================= Projects ================= */
.projects {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  border: 1px solid #e9edf4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.project-media {
  position: relative;
  aspect-ratio: 16/10;
  background: #eef2f7;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(4, 30, 100, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  z-index: 2;
}

.project-body {
  padding: 24px;
  text-align: center;
}

.project-body h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.35rem;
}

.project-blurb {
  color: var(--neutral-600);
  margin: 12px 0 16px;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  margin: 0 0 16px 0;
  padding: 0;
  justify-content: center;
}

.chip {
  padding: 6px 12px;
  border: 1px solid #e3e7ef;
  border-radius: 999px;
  background: #f7f9fd;
  font-size: 0.9rem;
  color: var(--neutral-800);
  transition: var(--transition);
}

.chip:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.project-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.text-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link:hover {
  text-decoration: underline;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--secondary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.view-all-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: 0.5s;
}

.view-all-btn:hover::before {
  left: 100%;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ================= Testimonials ================= */
.testimonials {
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(3, 14, 51, 0.95), rgba(3, 14, 51, 0.98));
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(72, 118, 255, 0.1) 0%, rgba(3, 14, 51, 0) 70%);
  animation: pulse 20s ease-in-out infinite;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
}

.testimonial-screenshot {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.testimonial-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.verify-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #fff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: var(--transition);
}

.verify-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================= Services Preview ================= */
.services-preview {
  padding: 50px 20px;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-preview-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: visible;
  text-align: center;
}

.service-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-preview-card:hover::before {
  transform: scaleX(1);
}

.service-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-preview-card.highlighted {
  box-shadow: 0 0 0 2px rgba(48, 97, 232, 0.25), var(--shadow-md);
  position: relative;
}

.service-preview-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
}

.service-preview-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 6px 12px rgba(4, 30, 100, 0.15);
  font-size: 1.5rem;
}

.service-preview-card h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.25rem;
}

.service-preview-card p {
  color: var(--neutral-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-preview-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  justify-content: center;
}

.service-preview-link i {
  transition: transform 0.3s ease;
}

.service-preview-link:hover i {
  transform: translateX(4px);
}

.service-preview-link:hover {
  text-decoration: underline;
}

.view-all-container {
  text-align: center;
  margin-top: 40px;
}

/* ================= Footer ================= */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: #fff;
}

.footer-col {
  text-align: center;
}

.footer-col i {
  margin-right: 8px;
  width: 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  position: relative;
  z-index: 2;
}

/* ================= Back-to-Top ================= */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
  background: var(--primary-dark);
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr 0.9fr;
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }

  /* MOBILE: image first, then text */
  .hero-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
    gap: 30px;
    text-align: center;
  }
  
  .hero-text {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .competency-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  
  .about, .competencies, .projects, .services-preview, .testimonials {
    padding: 40px 0;
  }
  
  .competency-cards, .testimonial-grid, .services-preview-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  h1.pulse {
    font-size: 2.2rem;
  }
  
  .subtitle.pulse {
    font-size: 1rem;
  }
  
  .hero-metrics {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-metrics li {
    width: 100%;
    text-align: center;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  #back-to-top {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  
  .pulse {
    animation: none !important;
  }
}