/* ============================================
   THV Services — Premium Hybrid Glassmorphism
   ============================================ */

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

:root {
  /* Brand Gradient (Cyan -> Blue -> Purple) */
  --color-cyan: #22D3EE;
  --color-blue: #3B82F6;
  --color-purple: #8B5CF6;

  --gradient-primary: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-purple));
  --gradient-animated: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-purple), var(--color-cyan));

  /* Backgrounds */
  --bg-page: #F4F7F9;
  /* Very light slate gray for depth */
  --bg-dark: #0A0D14;
  /* Deep premium dark */
  --bg-dark-glass: rgba(10, 13, 20, 0.7);
  --bg-card: rgba(255, 255, 255, 0.95);

  /* Text */
  --text-dark: #1E222A;
  --text-gray: #5A6474;
  --text-light: #FFFFFF;
  --text-light-muted: #A3AAB8;

  /* UI Elements */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 15px 40px rgba(59, 130, 246, 0.15);

  /* Typography */
  --font-main: 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-60 { margin-bottom: 60px; }

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

/* ═══════════════════════════════════════════
   TYPOGRAPHY & UTILITIES
   ═══════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-dark .section-subtitle {
  color: var(--text-light-muted);
}

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

.text-gradient-animated {
  background: var(--gradient-animated);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dark {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: border-pulse 1.5s ease-in-out infinite;
}

.badge-dark::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: badge-glare 2.5s ease-in-out infinite;
  transform: skewX(-30deg);
}

@keyframes badge-glare {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

@keyframes border-pulse {
  0% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0px transparent;
  }

  50% {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0px transparent;
  }
}

.badge-light {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ═══════════════════════════════════════════
   NAVIGATION (DARK PILL)
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 40px;
  background: transparent;
  pointer-events: none;
  transition: padding 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled {
  padding: 20px 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: auto;

  padding: 0;
  background: transparent;
  border-radius: 0px;
  border: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled .nav-inner {
  max-width: 1000px;
  padding: 12px 24px;
  background: var(--bg-dark-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
}

.nav-logo img {
  height: 65px;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  height: 55px;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: white;
  color: var(--bg-dark) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: white !important;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* ═══════════════════════════════════════════
   HERO SECTION (DARK) WITH FADE TRANSITION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: white;
  padding-top: 150px;
  padding-bottom: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 13, 20, 0.95) 0%, rgba(10, 13, 20, 0.6) 60%, rgba(10, 13, 20, 0.3) 100%);
  z-index: 1;
}

/* Sharp diagonal cut at the bottom connecting hero to next section */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.custom-shape-divider-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--bg-page);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  text-align: left;
  will-change: transform, opacity, filter;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 850px;
}

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

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════
   V3: ABOUT & CORE VALUES
   ═══════════════════════════════════════════ */
.about-v3 {
  position: relative;
  overflow: hidden;
  background: white;
}

.about-watermark {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-size: 35vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.about-grid-v3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text-v3 p {
  color: var(--text-gray);
  margin-bottom: 24px;
}

.strategic-pillars {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-page);
  border-left: 4px solid var(--color-blue);
  border-radius: 8px;
}

.strategic-pillars h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.strategic-pillars ul {
  list-style: none;
}

.strategic-pillars li {
  margin-bottom: 12px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
}

.strategic-pillars li::before {
  content: "→";
  color: var(--color-blue);
  margin-right: 12px;
  font-weight: bold;
}

.core-values-v3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-card-v3 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  transform: translateX(0);
}

.cv-card-v3:hover {
  transform: translateX(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.cv-content {
  position: relative;
  z-index: 1;
}

.cv-number {
  position: absolute;
  right: -20px;
  bottom: -35px;
  font-size: 14rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(59, 130, 246, 0.1);
  line-height: 1;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 0;
  pointer-events: none;
}

.cv-card-v3:hover .cv-number {
  -webkit-text-stroke: 2px rgba(59, 130, 246, 0.25);
  transform: scale(1.02) translate(-10px, -10px);
}

.cv-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.cv-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 0;
}

/* ═══════════════════════════════════════════
   ABOUT US V3
   ═══════════════════════════════════════════ */
.about-v3 {
  background: var(--bg-page);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-grid-v3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text-v3 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.2;
}

.about-text-v3 .lead-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.core-values-grid-v3 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-card-v3 {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card-v3:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
}

.value-card-v3 h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.value-card-v3 p {
  color: var(--text-light);
  margin: 0;
  position: relative;
  z-index: 2;
}

.value-number {
  position: absolute;
  right: 10px;
  bottom: -20px;
  font-size: 120px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.1);
  z-index: 1;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   V5: APPROACH (SNAKE PATH)
   ═══════════════════════════════════════════ */
.approach-v5 {
  background: var(--bg-page);
  padding: 100px 0;
  position: relative;
}

.ap5-roadmap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}

/* The continuous SVG background path */
.ap5-path-svg {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  height: 480px;
  z-index: 0;
  pointer-events: none;
}

/* Grid of Cards */
.ap5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Individual Cards */
.ap5-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  text-align: left;
}

.ap5-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
}

/* The number orb sitting on the path */
.ap5-orb {
  position: absolute;
  top: -20px;
  left: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 2;
}

.ap5-orb.bg-blue {
  background: var(--primary-color);
}

.ap5-orb.bg-purple {
  background: #7c3aed;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.ap5-content {
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

/* Icon Wrapper */
.ap5-icon-wrapper {
  margin-bottom: 20px;
}

.ap5-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.text-blue {
  color: var(--primary-color);
}

.text-purple {
  color: #7c3aed;
}

.ap5-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.ap5-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Checklist */
.ap5-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap5-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.ap5-checklist li:last-child {
  margin-bottom: 0;
}

.ap5-checklist li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Faint Background Icon */
.ap5-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
}

.ap5-bg-icon svg {
  width: 100%;
  height: 100%;
}

/* Bottom Summary Bar */
.ap5-bottom-bar {
  max-width: 800px;
  margin: 60px auto 0;
  background: white;
  border-radius: 100px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.ap5-star-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.ap5-bar-text {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
}

.ap5-bar-text strong {
  color: var(--text-dark);
  font-weight: 800;
}

.ap5-bar-text span {
  color: var(--text-light);
}

@media (max-width: 991px) {
  .about-grid-v3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ap5-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .ap5-path-svg {
    display: none;
  }
  .ap5-orb {
    top: -20px;
    left: 30px;
  }
  .ap5-bottom-bar {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 30px;
  }
  .ap5-bar-text {
    flex-direction: column;
    gap: 5px;
  }
}

/* ═══════════════════════════════════════════
   V3: SERVICES (STICKY STACKING CARDS)
   ═══════════════════════════════════════════ */
.services-v3 {
  background: white;
  padding: 100px 0 150px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.stacking-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.stack-card {
  position: sticky;
  /* Top value is set inline in HTML to create the stack offset */
  margin-bottom: 40px;
  transition: transform 0.5s ease;
}

.service-long-card-v3 {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  overflow: hidden;
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.03), transparent 50%);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 900;
  margin-right: 24px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.service-content {
  padding: 20px 40px 40px 40px;
}

.service-content h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: left !important;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: flex-start;
}

.service-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-checklist .check-icon {
  color: white;
  background: var(--gradient-primary);
  border-radius: 50%;
  padding: 4px;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  margin-top: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.check-icon {
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item span {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.service-highlight {
  background: var(--bg-dark);
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.highlight-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light-muted);
  margin-bottom: 16px;
}

.highlight-value {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════ */
.contact-v3-section {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  padding: 100px 0 !important;
}

.contact-layout-v3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left Column */
.contact-text-v3 {
  color: white;
}

.contact-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.contact-heading {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
  color: white;
}

.contact-cta {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-link-cta a {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link-cta a:hover {
  color: var(--color-blue);
}

.contact-link-cta {
  margin-bottom: 24px;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 440px;
}

/* Right Column: Form */
.contact-glass-form {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: #1e1e1e;
  color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.form-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}



/* ═══════════════════════════════════════════
   SCROLL TO 3D CAROUSEL (TEAM)
   ═══════════════════════════════════════════ */
.team-complex-section {
  height: 400vh;
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  z-index: 10;
}

.t-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 2000px;
}

.t-header {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 10px;
  flex-shrink: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.t-sticky-container.has-3d .t-header {
  /* opacity: 0.2; removed to keep it visible */
  transform: translateY(-10px);
}

.t-carousel-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 55vh;
  min-height: 460px;
  max-height: 480px;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

.t-card {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: block; 
  overflow: hidden;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
  transform: translateY(150vh); 
  backface-visibility: visible;
}

.t-img-wrap {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .t-img-wrap {
    width: 40%;
    height: 100%;
  }
}

.t-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.t-content {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  background: #ffffff;
}

.t-content::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 260px;
  height: 260px;
  background-image: url('Logo THV Services chữ đen.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.t-content > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .t-content {
    left: 40%;
    top: 0;
    width: 60%;
    height: 100%;
    padding: 30px 40px;
  }
}

.t-exp {
  display: inline-flex;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  align-self: flex-start;
  transition: all 1.2s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.t-name {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  transition: all 1.2s ease;
}

.t-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 20px;
  transition: all 1.2s ease;
}

.t-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.8s ease, max-height 0.8s ease;
  opacity: 1;
  max-height: 500px;
  overflow: hidden;
}

.t-bullets li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
}

.t-bullets li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ═══════════════════════════════════════════
   3D MODE OVERRIDES (Triggered by JS)
   ═══════════════════════════════════════════ */
.t-carousel-inner.is-3d-mode {
  width: 250px;
  height: 420px;
  animation: rotating-3d 20s linear infinite;
  animation-delay: 1.5s; 
  transform: translateY(0px) scale(0.85) rotateX(-5deg);
}

@keyframes rotating-3d {
  from { transform: translateY(0px) scale(0.85) rotateX(-5deg) rotateY(0deg); }
  to { transform: translateY(0px) scale(0.85) rotateX(-5deg) rotateY(360deg); }
}

.t-carousel-inner.is-3d-mode .t-card {
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 16px;
  opacity: 1 !important;
}

.t-carousel-inner.is-3d-mode .t-img-wrap {
  width: 100%;
  height: 55%;
  left: 0;
  top: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.t-carousel-inner.is-3d-mode .t-content {
  width: 100%;
  height: 45%;
  left: 0;
  top: 55%; 
  padding: 15px;
  align-items: center;
  text-align: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.t-carousel-inner.is-3d-mode .t-exp {
  font-size: 0.7rem;
  padding: 4px 10px;
  margin-bottom: 8px;
  align-self: center;
}
.t-carousel-inner.is-3d-mode .t-name { font-size: 1.1rem; }
.t-carousel-inner.is-3d-mode .t-role { font-size: 0.85rem; margin-bottom: 0; }
.t-carousel-inner.is-3d-mode .t-bullets {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

.t-carousel-inner.is-3d-mode .t-content::after {
  opacity: 0;
  display: none;
}

.t-carousel-inner.is-3d-mode .t-card[data-index="0"] { transform: rotateY(0deg) translateZ(350px) !important; }
.t-carousel-inner.is-3d-mode .t-card[data-index="1"] { transform: rotateY(72deg) translateZ(350px) !important; }
.t-carousel-inner.is-3d-mode .t-card[data-index="2"] { transform: rotateY(144deg) translateZ(350px) !important; }
.t-carousel-inner.is-3d-mode .t-card[data-index="3"] { transform: rotateY(216deg) translateZ(350px) !important; }
.t-carousel-inner.is-3d-mode .t-card[data-index="4"] { transform: rotateY(288deg) translateZ(350px) !important; }


/* 3D CENTER LOGO (COUNTER-ROTATING) */
.t-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  transform: translateZ(-200px) scale(0.5);
  z-index: 10;
}

.t-carousel-inner.is-3d-mode .t-center-logo {
  opacity: 1;
  transform: translateZ(0) scale(1.2) rotateY(0deg) rotateX(5deg);
  animation: counter-rotating-3d 20s linear infinite;
  animation-delay: 1.5s; 
}

@keyframes counter-rotating-3d {
  from { transform: translateZ(0) scale(1.2) rotateY(0deg) rotateX(5deg); }
  to { transform: translateZ(0) scale(1.2) rotateY(-360deg) rotateX(5deg); }
}

.t-center-logo .layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.15));
}

.t-center-logo .layer-1 { transform: translateZ(-1px); filter: brightness(0.6); }
.t-center-logo .layer-2 { transform: translateZ(-2px); filter: brightness(0.65); }
.t-center-logo .layer-3 { transform: translateZ(-3px); filter: brightness(0.7); }
.t-center-logo .layer-4 { transform: translateZ(-4px); filter: brightness(0.75); }
.t-center-logo .layer-5 { transform: translateZ(-5px); filter: brightness(0.8); }
.t-center-logo .layer-6 { transform: translateZ(-6px); filter: brightness(0.85); }
.t-center-logo .layer-7 { transform: translateZ(-7px); filter: brightness(0.9); }
.t-center-logo .layer-8 { transform: translateZ(-8px); filter: brightness(0.95); }
.t-center-logo .layer-9 { transform: translateZ(-9px); filter: brightness(0.95); }
.t-center-logo .layer-10 { transform: translateZ(-10px); filter: brightness(0.95); }
.t-center-logo .layer-top { transform: translateZ(0px); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: #05070A;
  color: white;
  padding: 0;
}

/* Footer Top: Logo + Tagline */
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0 32px;
}

.footer-logo img {
  height: 90px;
  margin-left: -20px;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 400px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(59,130,246,0.15), rgba(139,92,246,0.1), rgba(255,255,255,0.04));
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding: 48px 0;
}

.footer-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  color: var(--color-cyan);
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--color-cyan);
}

/* Footer Locations */
.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-location strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.footer-location p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.footer-location p:last-child {
  margin-bottom: 0;
}

/* Footer Bottom */
.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

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

/* ═══════════════════════════════════════════
   ANIMATIONS (SCROLL REVEAL)
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  filter: blur(12px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  filter: blur(12px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  filter: blur(12px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .team-grid-v3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .about-grid-v3 {
    grid-template-columns: 1fr;
  }

  .about-watermark {
    display: none;
  }

  .service-long-card-v3 {
    grid-template-columns: 1fr;
  }

  .service-highlight {
    padding: 40px;
  }

  .service-highlight::before {
    width: 100%;
    height: 4px;
    bottom: auto;
    right: 0;
  }

  .contact-layout-v3 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar {
    padding: 16px 20px;
  }

  .navbar.scrolled {
    padding: 10px 16px;
    background: transparent;
    border-bottom: none;
  }

  .navbar.scrolled .nav-inner {
    padding: 8px 16px;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-dark);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .roadmap-v4 .rm4-row {
    flex-direction: column !important;
    gap: 40px;
  }

  .rm4-row-reverse {
    direction: ltr;
  }

  .rm4-connector,
  .rm4-curve {
    display: none;
  }

  .rm4-card {
    width: 100%;
  }

  .service-checklist {
    grid-template-columns: 1fr;
  }

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


  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .team-grid-v3 {
    grid-template-columns: 1fr;
  }

  .team-overlay-content {
    transform: translateY(0);
  }
}



/* ═══════════════════════════════════════════
   APPROACH V5 (Winding Roadmap with Checklists)
   ═══════════════════════════════════════════ */
.approach-v5 {
  padding: 100px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.ap5-roadmap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 60px;
}

.ap5-path-svg {
  position: absolute;
  top: 40px; /* Aligns with the center of the first row of cards */
  left: 0;
  width: 100%;
  height: 480px; /* Fixed height for the path */
  z-index: 0;
  pointer-events: none;
}

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

/* On desktop, row 2 needs to reverse visually, but in HTML it is 4, 5, 6 */
/* Let's just keep the grid normal and map the SVG path to them. */
/* Wait, the SVG path assumes row 1 is 1,2,3 and row 2 is 4,5,6 going backwards?
   In HTML, Card 4 is Finance Operations, Card 5 is Fundraising & M&A, Card 6 is Deals & Advisory.
   If we want the line to go 3 -> 4 -> 5 -> 6, where 4 is under 3 (bottom right), 
   then Card 4 should be grid-column: 3; Card 5 grid-column: 2; Card 6 grid-column: 1. 
*/
.ap5-card:nth-child(4) { grid-column: 3; }
.ap5-card:nth-child(5) { grid-column: 2; }
.ap5-card:nth-child(6) { grid-column: 1; }

.ap5-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ap5-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.ap5-orb {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 3px solid white;
}

.bg-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.ap5-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.ap5-content {
  position: relative;
  z-index: 1;
}

.ap5-icon-wrapper {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.text-blue { color: #3b82f6; }
.text-purple { color: #7c3aed; }

.ap5-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1f36;
}

.ap5-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ap5-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap5-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 10px;
  font-weight: 500;
}

.ap5-checklist li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Bottom Bar */
.ap5-bottom-bar {
  background: white;
  border-radius: 100px;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 50px;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.ap5-star-icon {
  font-size: 1.5rem;
}

.ap5-bar-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.ap5-bar-text strong {
  color: #1a1f36;
}

.ap5-bar-text span {
  color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
  .ap5-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .ap5-card:nth-child(4),
  .ap5-card:nth-child(5),
  .ap5-card:nth-child(6) {
    grid-column: 1; /* Reset order for mobile */
  }

  .ap5-path-svg {
    display: none; /* Hide complex path on mobile */
  }
  
  .ap5-bottom-bar {
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  
  .ap5-bar-text {
    flex-direction: column;
    gap: 5px;
  }
}


/* Fixes for approach-v5 */
.approach-v5 .ap5-orb.bg-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa) !important; color: white !important; }
.approach-v5 .ap5-orb.bg-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa) !important; color: white !important; }


/* RESTORED CHALLENGES GRID CSS */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.challenge-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.challenge-icon {
  width: 50px;
  height: 50px;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.challenge-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #1e3a8a;
}

.challenge-card p {
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .challenges-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .challenges-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ULTRA-PREMIUM FINTECH BENTO ROADMAP
   ========================================================================== */

.timeline-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  padding: 100px 0;
  overflow: hidden;
}

.roadmap-grid-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  z-index: 1;
}

.rg-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  position: relative;
}

@media (min-width: 1024px) {
  .rg-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.rg-row.mt-40 {
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .rg-row.mt-40 { margin-top: 40px; }
}

/* Bento Card Styling */
.rg-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 33px; /* Adjusted for 2px border */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  border: 2px solid rgba(15, 23, 42, 0.05); /* Solid border instead of inset shadow */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden; /* Clips watermark so it never covers the border */
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.rg-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(30, 58, 138, 0.12), 
    0 10px 20px rgba(30, 58, 138, 0.05);
  border-color: #1e3a8a; /* Solid Navy Blue border on hover */
  z-index: 10;
}

/* Step Badge */
.rg-badge {
  display: inline-flex;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 25px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.rg-card:hover .rg-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Watermark Number */
.rg-watermark {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-size: 180px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rg-card:hover .rg-watermark {
  transform: scale(1.05) translate(-10px, -10px);
  color: #e2e8f0;
}

/* Icons */
.rg-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.rg-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a); /* Solid blue gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* White icon */
  border: none;
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
  flex-shrink: 0;
  transition: all 0.5s ease;
}

.rg-card:hover .rg-icon-wrap {
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.3);
}

.rg-card:hover .rg-icon-wrap svg {
  transform: scale(1.15) rotate(5deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rg-icon-wrap svg {
  transition: transform 0.4s ease;
}

/* Typography */
.rg-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.rg-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

/* Checklist */
.rg-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.rg-checklist li {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
  transition: transform 0.3s ease, color 0.3s ease;
}

.rg-checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a); /* Solid blue gradient */
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.15);
}

.rg-card:hover .rg-checklist li {
  transform: translateX(5px);
  color: #0f172a;
}

.rg-card:hover .rg-checklist li::before {
  box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}


/* ==========================================================================
   ABOUT US MOSAIC (PREMIUM STORYBOARD)
   ========================================================================== */

.about-mosaic-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Optional Background Orbs */
.about-mosaic-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.about-mosaic-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.am-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.am-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 1024px) {
  .am-top-row {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* The Story Card */
.am-story-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.am-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 20px;
}
.am-story-card p:not(.am-lead) {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

/* Strategic Pillars Stack */
.am-pillars {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}
.am-pillars-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  margin-left: 5px;
}
.am-pillar-tab {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  cursor: default;
}
.am-pillar-tab:hover {
  background: #ffffff;
  transform: translateX(10px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}
.am-pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.1));
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.4s ease;
}
.am-pillar-tab:hover .am-pillar-icon {
  background: linear-gradient(135deg, #22d3ee, #1e3a8a);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.am-pillar-text {
  display: flex;
  flex-direction: column;
}
.am-pillar-text strong {
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 6px;
}
.am-pillar-text span {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* Core Values Row */
.am-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 1024px) {
  .am-bottom-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.am-value-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 33px; /* Adjusted for 2px border */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  border: 2px solid rgba(15, 23, 42, 0.05); /* Solid border instead of inset shadow */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.am-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(30, 58, 138, 0.1);
  border-color: #1e3a8a; /* Solid Navy Blue border on hover */
}
.am-value-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(30, 58, 138, 0.05);
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 58, 138, 0.15);
  z-index: 2;
  transition: all 0.4s ease;
}
.am-value-card:hover .am-value-icon {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  transform: scale(1.1) rotate(5deg);
}
.am-value-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
  z-index: 2;
}
.am-value-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  z-index: 2;
}
.am-watermark {
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 150px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.am-value-card:hover .am-watermark {
  transform: scale(1.05) translate(-10px, -10px);
  color: #e2e8f0;
}

.service-number {
  color: #3b82f6;
  margin-right: 12px;
  font-weight: 800;
  opacity: 0.7;
  -webkit-text-fill-color: #3b82f6;
}

/* ═══════════════════════════════════════════
   SOCIAL MEDIA ICONS (FOOTER)
   ═══════════════════════════════════════════ */
.social-wrapper {
  display: inline-flex;
  list-style: none;
  width: 100%;
  padding-top: 20px;
  justify-content: flex-start;
  gap: 15px;
}

.social-wrapper .icon {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-wrapper .icon a {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.social-wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 12px;
  background: #fff;
  color: #111;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
}

.social-wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 6px;
  width: 6px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-wrapper .icon:hover .tooltip {
  top: -40px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.social-wrapper .icon:hover span,
.social-wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.social-wrapper .facebook:hover {
  background: #1877f2;
  color: #fff;
}
.social-wrapper .facebook:hover .tooltip,
.social-wrapper .facebook:hover .tooltip::before {
  background: #1877f2;
  color: #fff;
}

.social-wrapper .linkedin:hover {
  background: #0077b5;
  color: #fff;
}
.social-wrapper .linkedin:hover .tooltip,
.social-wrapper .linkedin:hover .tooltip::before {
  background: #0077b5;
  color: #fff;
}

/* ═══════════════════════════════════════════
   COMPREHENSIVE MOBILE OPTIMIZATION
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero Refinements */
  .hero-content h1 .text-typewriter {
    font-size: 1rem !important;
    white-space: normal !important;
    margin-bottom: 10px !important;
  }
  .hero-content h1 .text-gradient-animated {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-top: 0;
  }
  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Typography */
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  /* Services Cards */
  .stack-card {
    position: relative !important;
    top: auto !important;
    margin-bottom: 24px;
    transform: none !important;
  }
  .service-content {
    padding: 24px;
  }
  .service-highlight {
    padding: 24px;
  }

  /* Contact Form */
  .contact-text-v3, .contact-glass-form {
    padding: 30px 20px;
  }

  /* Team Carousel Cards */
  .t-carousel-inner {
    height: 68vh;
    min-height: 540px;
    max-height: 650px;
  }
  .t-img-wrap {
    height: 35%;
  }
  .t-content {
    height: 65%;
    padding: 20px 16px;
    overflow-y: auto;
  }
  .t-content::after {
    width: 150px;
    height: 150px;
    top: auto;
    bottom: 10px;
    right: -20px;
    opacity: 0.06;
  }
  .t-bullets li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .t-role {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .t-exp {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .t-name {
    font-size: 1.3rem;
  }

  /* Footer Alignment */
  .footer-top {
    justify-content: center;
    padding: 30px 0 20px;
  }
  .footer-logo img {
    margin-left: 0 !important;
    height: 70px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 40px 20px;
    padding: 32px 0;
  }
  
  /* Force active states on mobile (no hover available) */
  .am-pillar-icon,
  .am-value-icon {
    background: linear-gradient(135deg, #22d3ee, #1e3a8a) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  }
  .rg-checklist li {
    color: #1e293b !important;
  }
  .rg-checklist li::before {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
  }

  .footer-col.footer-brand-col {
    grid-column: span 2;
  }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    grid-column: span 1;
  }
  .footer-col:nth-child(4) {
    grid-column: span 2;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .social-wrapper {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
