/* ===== ThriveCore Technologies - Global Styles ===== */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Blues */
  --blue-950: #0a1628;
  --blue-900: #0f2341;
  --blue-800: #153260;
  --blue-700: #1a4080;
  --blue-600: #1e4f9f;
  --blue-500: #2563b8;
  --blue-400: #4a8ad4;
  --blue-300: #7eb1e6;
  --blue-200: #a0ccfa;
  --blue-100: #b8d6f2;
  --blue-50: #e8f1fa;

  /* Accent (from logo: orange to red to magenta) */
  --orange-600: #d97706;
  --orange-500: #f28c28;
  --orange-400: #f5a623;
  --orange-300: #f5b84d;
  --orange-200: #fad9a1;
  --orange-100: #fef0d5;
  --accent-orange: #f28c28;
  --accent-red: #e04e3e;
  --accent-magenta: #a62d6b;
  --orange-glow: rgba(226, 78, 62, 0.25);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--accent-orange), var(--accent-red), var(--accent-magenta));
  --gradient-blue: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  --gradient-hero: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 40%, var(--blue-700) 100%);
  --gradient-blue-orange: linear-gradient(135deg, var(--blue-500), var(--accent-orange));

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e5ea;
  --gray-300: #c8cdd5;
  --gray-400: #9aa1ad;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.1);
  --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.14);
  --shadow-orange: 0 8px 30px rgba(226, 78, 62, 0.3);
  --shadow-blue: 0 8px 30px rgba(30, 79, 159, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* Watermark logo background */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='wm' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f28c28'/%3E%3Cstop offset='50%25' stop-color='%23e04e3e'/%3E%3Cstop offset='100%25' stop-color='%23a62d6b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M100 8 L180 88 L156 88 L100 32 L44 88 L20 88 Z' fill='url(%23wm)'/%3E%3Ctext x='100' y='130' text-anchor='middle' font-family='Poppins,sans-serif' font-weight='800' font-size='28' fill='%230f2341'%3ETHRIVECORE%3C/text%3E%3Ctext x='100' y='152' text-anchor='middle' font-family='Inter,sans-serif' font-weight='600' font-size='12' letter-spacing='6' fill='%230f2341'%3ETECHNOLOGIES%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue-900);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-bounce);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(226, 78, 62, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-200);
}

.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-3px);
}

.btn-blue {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(26, 109, 212, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* --- Section Styles --- */
.section {
  padding: var(--section-padding);
  position: relative;
  border-radius: var(--radius-2xl);
  margin: 0 12px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 12px;
  position: relative;
  padding: 6px 20px;
  background: var(--orange-100);
  border-radius: 50px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.section-light {
  background: var(--blue-50);
  border-radius: var(--radius-2xl);
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  z-index: 1000;
  background: #ffffff;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
}

.header.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
  border-color: var(--gray-200);
  top: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-900);
}

.nav-logo .logo-full {
  width: auto;
  height: 52px;
}

.footer-logo .logo-full {
  height: 56px;
}

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

.nav-links a {
  padding: 8px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 50px;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-links a.active {
  color: var(--white);
  background: var(--blue-600);
}

.nav-links a.active::after {
  display: none;
}

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin: 96px 12px 0;
  padding-top: 80px;
}

/* Geometric pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(226, 78, 62, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(26, 109, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(226, 78, 62, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative geometric shapes */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(226, 78, 62, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}

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

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-text h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-text h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--blue-200);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: 40px;
  color: var(--white);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Orange corner accent on hero card */
.hero-card::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 0 var(--radius-2xl) 0 80px;
  opacity: 0.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--blue-200);
  margin-top: 4px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Orange top accent bar */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--blue-600);
  transition: var(--transition);
  border: 1px solid var(--blue-100);
}

.service-card:hover .service-icon {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-orange);
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--blue-800);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-500);
}

.service-link:hover {
  gap: 12px;
  color: var(--orange-500);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid var(--blue-100);
}

.about-img-wrapper .placeholder-graphic {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  position: relative;
}

.about-tech-graphic {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-tech-graphic svg {
  width: 100%;
  height: 100%;
}

.stats-chart-graphic {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.stats-chart-graphic svg {
  width: 100%;
  height: 100%;
}

.about-floating-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gray-200);
}

.about-floating-card .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-floating-card .label {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  transition: var(--transition);
}

.value-item:hover {
  background: var(--orange-100);
  border-color: var(--orange-200);
  color: var(--orange-600);
}

.value-item svg {
  flex-shrink: 0;
  color: var(--orange-500);
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Blue left border accent */
.product-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-blue);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.product-card:hover::after {
  width: 6px;
  background: var(--gradient-accent);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 10px;
}

.product-name span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
}

/* ===== WHY CHOOSE US / FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.feature-item {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.feature-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  background: var(--blue-600);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  transition: var(--transition);
  position: relative;
}

/* Orange corner dot on feature icon */
.feature-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--orange-400);
  border-radius: 50%;
  border: 3px solid var(--white);
}

.feature-item:hover .feature-icon {
  background: var(--gradient-accent);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: var(--shadow-orange);
}

.feature-item h4 {
  margin-bottom: 10px;
  color: var(--blue-800);
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--gray-500);
}

/* ===== CTA BANNER ===== */
.cta-section {
  background: var(--gradient-hero);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin: 0 12px;
}

/* Decorative circles */
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border: 3px solid rgba(226, 78, 62, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(226, 78, 62, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--blue-200);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== CLIENTS / TRUST ===== */
.clients-section {
  padding: 60px 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  margin: 0 12px;
}

.clients-header {
  text-align: center;
  margin-bottom: 40px;
}

.clients-header p {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 600;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-300);
  transition: var(--transition);
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.client-logo:hover {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-100);
}

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-200);
}

.team-photo {
  height: 250px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
  position: relative;
}

/* Orange accent stripe on photo */
.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-info h4 {
  margin-bottom: 4px;
  color: var(--blue-800);
}

.team-info .role {
  font-size: 0.88rem;
  color: var(--orange-500);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-info p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-200), var(--orange-300));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-dot {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--orange-500);
  transform: scale(1.1);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--gray-200);
  flex: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  margin-bottom: 8px;
  color: var(--blue-800);
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--blue-50);
}

.contact-item-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--blue-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-blue);
}

.contact-item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--blue-800);
}

.contact-item-text p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 44px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

/* Orange accent line on form */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500));
}

.contact-form-wrapper h3 {
  margin-bottom: 28px;
  color: var(--blue-800);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(26, 109, 212, 0.1);
  background: var(--white);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* ===== OFFICES ===== */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.office-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Blue bottom accent */
.office-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-blue);
  transition: var(--transition);
}

.office-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--blue-200);
}

.office-card:hover::after {
  background: var(--gradient-accent);
  height: 5px;
}

.office-card .city {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 4px;
}

.office-card .type {
  font-size: 0.82rem;
  color: var(--orange-500);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.office-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-950);
  color: var(--blue-200);
  padding-top: 80px;
  position: relative;
  border-radius: var(--radius-2xl);
  margin: 0 12px 16px;
}

/* Orange top accent line */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500), var(--blue-500));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--blue-300);
  margin-top: 16px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Orange underline on footer heading */
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--orange-500);
  border-radius: 3px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--blue-300);
}

.footer-col ul li a:hover {
  color: var(--orange-400);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--blue-400);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--blue-300);
}

.footer-bottom a:hover {
  color: var(--orange-400);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin: 96px 12px 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 75% 30%, rgba(226, 78, 62, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 25% 70%, rgba(26, 109, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Geometric decorations */
.page-hero::after {
  display: none;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: var(--blue-200);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: var(--blue-300);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: var(--blue-400);
}

.breadcrumb .current {
  color: var(--orange-400);
  font-weight: 600;
}

/* ===== SERVICES PAGE DETAILED ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 2px solid rgba(37, 99, 184, 0.2);
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: var(--transition);
}

/* Geometric accent */
.service-detail-visual::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--gradient-accent);
  border-radius: 120px 0 0 0;
  opacity: 0.15;
}

.service-detail-visual svg {
  width: 100%;
  height: 100%;
}

.service-detail:hover .service-detail-visual {
  border-color: rgba(242, 140, 40, 0.3);
  box-shadow: var(--shadow-md);
}

.service-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--blue-800);
}

.service-detail-content p {
  font-size: 1.02rem;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-600);
  padding: 6px 0;
}

.service-features li svg {
  flex-shrink: 0;
  color: var(--orange-500);
}

/* ===== COUNTERS / STATS BAR ===== */
.stats-bar {
  background: var(--white);
  padding: 60px 0;
  border-radius: var(--radius-2xl);
  margin: 0 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stats-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
  transition: var(--transition);
}

.stats-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
  transform: translateY(-4px);
}

.stats-item .number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-600);
  -webkit-text-fill-color: var(--blue-600);
  display: block;
}

.stats-item:hover .number {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-item .label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

/* Quote mark decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-family: serif;
  color: var(--blue-100);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--orange-400);
  margin-bottom: 16px;
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid var(--orange-200);
}

.testimonial-author-info h5 {
  font-size: 0.95rem;
  color: var(--blue-800);
  font-weight: 600;
}

.testimonial-author-info span {
  font-size: 0.82rem;
  color: var(--orange-500);
  font-weight: 500;
}

/* ===== MAP PLACEHOLDER ===== */
.map-section {
  height: 400px;
  background: linear-gradient(135deg, var(--blue-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  border-radius: var(--radius-2xl);
  margin: 0 12px;
  font-size: 1.1rem;
  border-top: 4px solid var(--blue-500);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .header {
    width: calc(100% - 24px);
    top: 10px;
    border-radius: 40px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
    gap: 4px;
    border: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-links a.active {
    background: var(--blue-50);
    color: var(--blue-600);
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 80px 0 60px;
    margin-top: 88px;
  }

  .hero::after {
    display: none;
  }

  .hero-graphic {
    max-width: 360px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .about-floating-card {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 16px;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .hero-stats,
  .hero-stats-3 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .hero-card::before {
    display: none;
  }
}
