@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #004743; /* Dark Teal */
  --primary-hover: #003633; /* Darker Teal */
  --accent-color: #299f93; /* Aqua Green / Light Teal */
  --accent-hover: #1e7b71; /* Darker Aqua Green */
  --bg-cream: #f0ede4; /* Brand cream background */
  --border-cream: #dcd7c9; /* Harmonized border color */

  --ibm-blue: var(--accent-color);
  --ibm-blue-hover: var(--accent-hover);
  --ibm-dark: var(--primary-color);
  --ibm-dark-hover: var(--primary-hover);
  --ibm-bg-light: var(--bg-cream);
  --ibm-border: var(--border-cream);
  --ibm-text-main: #111e1d; /* Dark slate-teal for text instead of plain black */
  --ibm-text-muted: #4e5a59; /* Slate-teal muted text */
  --ibm-white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fallback mapping variables for inner pages */
  --color-dark-teal: var(--ibm-dark);
  --color-dark-teal-light: rgba(0, 71, 67, 0.1);
  --color-aqua-green: var(--ibm-blue);
  --color-off-white: var(--ibm-bg-light);
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ibm-text-main);
  background-color: var(--ibm-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ibm-text-main);
}
h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2.5rem; line-height: 1.2; }
p { font-size: 1.05rem; color: var(--ibm-text-muted); }

.text-blue { color: var(--ibm-blue) !important; }
.text-off-white { color: var(--ibm-bg-light) !important; }
.hover-blue:hover { color: var(--ibm-blue) !important; }
.hover-blue-dark:hover { color: var(--ibm-blue-hover) !important; }
.hover-white:hover { color: var(--ibm-white) !important; }
.bg-light-gray { background-color: var(--ibm-bg-light); }
.bg-dark { background-color: var(--ibm-dark); color: var(--ibm-white); }
.section-padding { padding: 100px 0; }
.z-index-1 { z-index: 1; }

/* Buttons */
.btn-ibm-primary {
  background-color: var(--ibm-blue);
  color: var(--ibm-white);
  border: 1px solid var(--ibm-blue);
  border-radius: 0;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn-ibm-primary:hover {
  background-color: var(--ibm-blue-hover);
  border-color: var(--ibm-blue-hover);
  color: var(--ibm-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 159, 147, 0.3);
}

.btn-ibm-secondary {
  background-color: transparent;
  color: var(--ibm-blue);
  border: 1px solid var(--ibm-blue);
  border-radius: 0;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn-ibm-secondary:hover {
  background-color: var(--ibm-blue);
  color: var(--ibm-white);
}

/* IBM Global Container Padding Constraints */
.container-fluid.px-4.px-lg-5 {
    max-width: 1600px;
    margin: 0 auto;
}
@media (min-width: 1400px) {
    .container-fluid.px-4.px-lg-5 {
        padding-left: 6% !important;
        padding-right: 6% !important;
    }
}

/* Navbar */
.ibm-navbar {
  background: var(--ibm-white);
  transition: var(--transition);
  padding: 15px 0;
  border-bottom: 1px solid var(--ibm-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.ibm-navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.ibm-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ibm-text-main);
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}
.ibm-navbar .nav-link {
  color: var(--ibm-text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 22px;
  position: relative;
  transition: var(--transition);
}
.ibm-navbar .nav-link:hover { color: var(--ibm-blue); }
.ibm-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background-color: var(--ibm-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.ibm-navbar .nav-link:hover::after { transform: scaleX(1); }

@media (min-width: 992px) {
  .ibm-navbar .nav-item {
    margin: 0 8px;
  }
}

/* Dropdowns Hover Logic */
@media (min-width: 992px) {
  .ibm-navbar .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-menu {
  border: 1px solid var(--ibm-border);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  padding: 12px;
  margin-top: 0;
  background: var(--ibm-white);
  border-top: 3px solid var(--ibm-blue);
  min-width: 220px;
}
.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ibm-text-main);
  border-radius: 6px;
  transition: var(--transition);
}
.dropdown-item:hover {
  background-color: var(--ibm-bg-light);
  color: var(--ibm-blue);
  padding-left: 25px;
}

/* Inner Page Headers */
.premium-page-header {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #54d8c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
/* Animated Hero Texture */
@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
  animation: moveGrid 3s linear infinite;
}
.hero-glow {
  position: absolute;
  top: 20%; right: 10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(41, 159, 147, 0.1) 0%, transparent 60%);
  z-index: -1;
}

/* Hero Custom Columns (45/45/10 Split) */
.hero-col-text, .hero-col-visual, .hero-col-articles { width: 100%; }
.hero-col-articles { margin-top: 20px; }
@media (min-width: 992px) {
    .hero-col-text { width: 44%; }
    .hero-col-visual { width: 44%; }
    .hero-col-articles { width: 10%; margin-top: 0; }
}

/* Pure CSS Interactive AI Core */
.ai-core-container { perspective: 1200px; }
.ai-core-container:hover .orbit-ring { border-color: rgba(41, 159, 147, 0.4); }

/* Floating Metric Cards */
.metric-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    padding: 18px;
    border-radius: 12px;
    z-index: 10;
    min-width: 160px;
    border-top: 3px solid var(--ibm-blue) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.card-top-left { top: 10%; left: 5%; animation: float 5s ease-in-out infinite; }
.card-bottom-right { bottom: 10%; right: 15%; animation: float 6s ease-in-out infinite reverse; }
.card-top-right { top: 20%; right: 10%; animation: float 4.5s ease-in-out infinite; }

/* Core System */
.orbit-system {
    position: relative;
    width: 380px;
    height: 380px;
    transform-style: preserve-3d;
    transform: rotateX(65deg) rotateY(-15deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ai-core-container:hover .orbit-system {
    transform: rotateX(50deg) rotateY(0deg) scale(1.05);
}

.core-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(-65deg) rotateY(15deg);
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--ibm-blue), var(--ibm-dark));
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 40px rgba(41, 159, 147, 0.6);
    z-index: 5;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ai-core-container:hover .core-orb {
    transform: translate(-50%, -50%) rotateX(-50deg) rotateY(0deg);
}
.core-pulse {
    position: absolute;
    width: 100%; height: 100%;
    background: var(--ibm-blue);
    border-radius: 50%;
    animation: corePulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes corePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(41, 159, 147, 0.2);
    transform-style: preserve-3d;
    transition: border-color 0.5s ease;
}
.ring-1 { width: 180px; height: 180px; animation: spin 8s linear infinite; border-left: 2px solid var(--ibm-blue); }
.ring-2 { width: 280px; height: 280px; animation: spin 15s linear infinite reverse; border-right: 2px solid var(--ibm-blue); }
.ring-3 { width: 380px; height: 380px; animation: spin 24s linear infinite; border-bottom: 2px solid var(--ibm-blue); }

.orbit-dot {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--ibm-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ibm-blue);
}
.dot-1 { top: -6px; left: 50%; transform: translateX(-50%); }
.dot-2 { top: 50%; right: -6px; transform: translateY(-50%); }
.dot-3 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.dot-4 { top: 50%; left: -6px; transform: translateY(-50%); }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateZ(360deg); }
}
.bg-blue { background-color: var(--ibm-blue) !important; }

/* Software Solutions Cards */
.ibm-card {
  background: var(--ibm-white);
  border: 1px solid var(--ibm-border);
  padding: 40px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ibm-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--ibm-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.ibm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.ibm-card:hover::after { transform: scaleX(1); }
.ibm-card-icon {
  font-size: 2.5rem;
  color: var(--ibm-blue);
  margin-bottom: 24px;
}
.ibm-card-title { font-size: 1.5rem; margin-bottom: 16px; }
.ibm-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--ibm-blue);
  font-weight: 600;
  margin-top: 24px;
  text-decoration: none;
}
.ibm-card-link i { margin-left: 8px; transition: var(--transition); }
.ibm-card:hover .ibm-card-link i { transform: translateX(5px); }

/* Services Layout */
.service-block { transition: var(--transition); }
.service-block:hover { background-color: var(--ibm-bg-light); }

/* Engineering & Consultation Section */
.split-img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.split-content { background: var(--ibm-bg-light); height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Teams Grow With AI */
.ai-section {
  position: relative;
  background: var(--ibm-dark);
  color: var(--ibm-white);
  overflow: hidden;
  padding: 120px 0;
}
.ai-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.ai-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41, 159, 147, 0.2) 0%, transparent 70%);
}
.ai-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  height: 100%;
  transition: var(--transition);
}
.ai-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

/* Impact Stats */
.stat-item {
  border-left: 2px solid var(--ibm-blue);
  padding-left: 20px;
}
.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--ibm-blue); line-height: 1; margin-bottom: 8px; }
.stat-text { font-size: 1.1rem; font-weight: 500; color: var(--ibm-text-main); }

/* Insights / Blog */
.blog-card {
  border: 1px solid var(--ibm-border);
  transition: var(--transition);
}
.blog-img-wrapper { overflow: hidden; }
.blog-img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-content { padding: 30px; }
.blog-meta { font-size: 0.85rem; color: var(--ibm-text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Contact Form */
.ibm-form-control {
  border: none;
  border-bottom: 1px solid var(--ibm-border);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  font-size: 1rem;
  transition: var(--transition);
}
.ibm-form-control:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--ibm-blue);
}
.ibm-form-label { font-size: 0.85rem; font-weight: 600; color: var(--ibm-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Footer */
.ibm-footer { background: var(--ibm-dark); color: var(--ibm-white); padding: 80px 0 40px; }
.ibm-footer .footer-title { font-size: 1.2rem; margin-bottom: 24px; color: var(--ibm-white); }
.ibm-footer ul { list-style: none; padding: 0; margin: 0; }
.ibm-footer ul li { margin-bottom: 12px; }
.ibm-footer ul li a { color: #c6c6c6; text-decoration: none; transition: var(--transition); }
.ibm-footer ul li a:hover { color: var(--ibm-white); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; padding-top: 30px; font-size: 0.9rem; }

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .split-content { padding: 40px 20px; }
  .ibm-navbar { background: var(--ibm-white); border-bottom: 1px solid var(--ibm-border); }
  .hero-card-float { display: none; }
}

/* Scroll Top Button styling to fix visual layout */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--ibm-blue);
  color: var(--ibm-white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(41, 159, 147, 0.3);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}
.scroll-top.active {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background-color: var(--ibm-blue-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(41, 159, 147, 0.4);
}

/* --- Animated AI Navbar Button --- */
.btn-nav-ai {
  position: relative;
  background: rgba(41, 159, 147, 0.06);
  color: var(--ibm-text-main) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(41, 159, 147, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-right: 15px;
}

.btn-nav-ai i {
  color: var(--ibm-blue);
  transition: transform 0.4s ease;
}

.btn-nav-ai::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(90deg, 
    rgba(41, 159, 147, 0) 0%, 
    rgba(41, 159, 147, 0.15) 25%, 
    rgba(0, 242, 254, 0.25) 50%, 
    rgba(41, 159, 147, 0.15) 75%, 
    rgba(41, 159, 147, 0) 100%
  );
  z-index: -1;
  animation: shineSweep 3.5s infinite linear;
}

@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-nav-ai:hover {
  background: var(--ibm-blue);
  color: var(--ibm-white) !important;
  border-color: var(--ibm-blue);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(41, 159, 147, 0.3);
}

.btn-nav-ai:hover i {
  color: var(--ibm-white);
  transform: rotate(20deg) scale(1.25);
}

.btn-nav-ai .pulse-badge {
  width: 7px;
  height: 7px;
  background-color: var(--ibm-blue);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  transition: background-color 0.4s ease;
}

.btn-nav-ai:hover .pulse-badge {
  background-color: var(--ibm-white);
}

.btn-nav-ai .pulse-badge::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  border-radius: 50%;
  background-color: inherit;
  animation: badgePulse 1.8s infinite ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

@media (max-width: 991px) {
  .btn-nav-ai {
    margin-right: 0;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* --- Transform with AI Page Custom Styles --- */

/* Hero Grid and Orb Section */
.ai-page-hero {
  background: linear-gradient(to right, var(--primary-color), #03211f);
  position: relative;
  overflow: hidden;
  padding: 180px 0 120px;
}
.ai-hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(41, 159, 147, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(41, 159, 147, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.7;
}
.ai-hero-glow-1 {
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41, 159, 147, 0.15) 0%, transparent 70%);
  z-index: 1;
}
.ai-hero-glow-2 {
  position: absolute;
  bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  z-index: 1;
}

/* AI Capabilities Cards */
.capability-card {
  background: var(--ibm-white);
  border: 1px solid rgba(41, 159, 147, 0.15);
  border-radius: 12px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px rgba(0, 71, 67, 0.02);
  position: relative;
  z-index: 2;
}
.capability-card:hover {
  transform: translateY(-8px);
  border-color: var(--ibm-blue);
  box-shadow: 0 20px 40px rgba(0, 71, 67, 0.08);
}
.capability-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(41, 159, 147, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--ibm-blue);
  font-size: 2rem;
  transition: all 0.3s ease;
}
.capability-card:hover .capability-icon-wrapper {
  background: var(--ibm-blue);
  color: var(--ibm-white);
  transform: scale(1.1) rotate(5deg);
}

/* AI Roadmap Timeline Styles */
.roadmap-timeline {
  position: relative;
  padding: 40px 0;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(41, 159, 147, 0.2);
  transform: translateX(-50%);
}
@media (max-width: 767px) {
  .roadmap-timeline::before {
    left: 20px;
  }
}
.roadmap-step {
  position: relative;
  margin-bottom: 60px;
}
.roadmap-step:last-child {
  margin-bottom: 0;
}
.roadmap-badge {
  width: 50px;
  height: 50px;
  background: var(--ibm-white);
  border: 3px solid var(--ibm-blue);
  border-radius: 50%;
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ibm-blue);
  box-shadow: 0 4px 10px rgba(0, 71, 67, 0.15);
}
@media (max-width: 767px) {
  .roadmap-badge {
    left: 20px;
    transform: translateX(-50%);
  }
}
.roadmap-content {
  width: 44%;
  padding: 25px 30px;
  background: var(--ibm-white);
  border: 1px solid var(--ibm-border);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}
.roadmap-content:hover {
  border-color: var(--ibm-blue);
  box-shadow: 0 10px 25px rgba(0, 71, 67, 0.05);
}
.roadmap-step:nth-child(even) .roadmap-content {
  margin-left: auto;
}
.roadmap-step:nth-child(odd) .roadmap-content {
  margin-right: auto;
  text-align: right;
}
@media (max-width: 767px) {
  .roadmap-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    text-align: left !important;
  }
}

/* Interactive ROI Calculator Styles */
.roi-calculator-card {
  background: linear-gradient(135deg, var(--ibm-white) 0%, rgba(240, 237, 228, 0.3) 100%);
  border: 1px solid var(--ibm-border);
  border-top: 5px solid var(--ibm-blue);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 71, 67, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.roi-slider-container {
  margin-bottom: 30px;
}
.roi-slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ibm-text-main);
  margin-bottom: 10px;
}
.roi-slider-value {
  color: var(--ibm-blue);
  font-weight: 700;
}
.roi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(41, 159, 147, 0.15);
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ibm-blue);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(41, 159, 147, 0.4);
  transition: transform 0.1s ease;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.roi-result-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #032826 100%);
  border-radius: 12px;
  padding: 30px;
  color: var(--ibm-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 71, 67, 0.15);
}
.roi-result-number {
  font-size: 3rem;
  font-weight: 750;
  color: #00f2fe;
  line-height: 1.1;
  margin-bottom: 5px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.roi-result-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* --- Advanced AI Ecosystem / Infinite Smooth Marquee --- */
.ai-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  position: relative;
}

/* Gradient fade overlays for seamless visual sliding on left/right edges */
.ai-marquee-wrapper::before,
.ai-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.ai-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--ibm-white) 0%, transparent 100%);
}
.ai-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--ibm-white) 0%, transparent 100%);
}

.ai-marquee-track {
  display: flex;
  width: max-content;
  gap: 30px;
  animation: marquee 35s linear infinite;
}

/* Pause scroll animation on user hover to allow card interactions */
.ai-marquee-wrapper:hover .ai-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate by exactly 50% of track length (one full set of cards) for perfect loop */
    transform: translateX(-50%);
  }
}

.ai-tool-card {
  background: var(--ibm-white);
  border: 1px solid var(--ibm-border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ai-tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(41, 159, 147, 0.12);
  border-color: var(--ibm-blue);
}
.ai-tool-logo-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.ai-tool-card:hover .ai-tool-logo-wrapper {
  transform: scale(1.1);
}
.ai-tool-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ibm-text-main);
  margin-bottom: 0;
}

/* --- Remote Resource Panel Cards --- */
.resource-panel-card {
  background: var(--ibm-white);
  border: 2px solid rgba(0, 71, 67, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.01);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.resource-panel-card:hover {
  transform: translateY(-5px);
  border-color: var(--ibm-blue);
  box-shadow: 0 20px 40px rgba(0, 71, 67, 0.08);
}
.border-start-md {
  border-left: 1px solid rgba(0, 71, 67, 0.08);
}
.border-end-md {
  border-right: 1px solid rgba(0, 71, 67, 0.08);
}
@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid rgba(0, 71, 67, 0.08);
  }
  .border-end-md {
    border-right: 1px solid rgba(0, 71, 67, 0.08);
  }
}
@media (max-width: 767px) {
  .border-start-md, .border-end-md {
    border-left: none !important;
    border-right: none !important;
  }
}
.panel-img {
  max-height: 250px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.resource-panel-card:hover .panel-img {
  transform: scale(1.04);
}

.btn-hire-source {
  background-color: var(--primary-color);
  color: var(--ibm-white);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-hire-source:hover {
  background-color: var(--accent-color);
  color: var(--ibm-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(41, 159, 147, 0.2);
}

/* --- Premium Hire Resource Modal Form --- */
.modal-form-control {
  background-color: #fcfbfa !important;
  border: 1px solid rgba(0, 71, 67, 0.15) !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease;
  color: var(--ibm-text-main) !important;
}
.modal-form-control::placeholder {
  color: #adb5bd !important;
  opacity: 0.8;
}
.modal-form-control:focus {
  border-color: var(--ibm-blue) !important;
  box-shadow: 0 0 0 4px rgba(41, 159, 147, 0.15) !important;
  background-color: #ffffff !important;
  outline: none;
}
select.modal-form-control {
  color: #6c757d !important;
}
select.modal-form-control option {
  color: var(--ibm-text-main);
}
.btn-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: 1px solid rgba(0, 71, 67, 0.2);
  color: #004743;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  z-index: 10;
}
.btn-modal-close:hover {
  background-color: #ef5350;
  color: white;
  border-color: #ef5350;
}
.btn-modal-submit {
  background-color: var(--primary-color) !important;
  color: var(--ibm-white) !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 35px !important;
  box-shadow: 0 4px 6px rgba(0, 71, 67, 0.1);
  transition: all 0.2s ease;
}
.btn-modal-submit:hover {
  background-color: var(--accent-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(41, 159, 147, 0.2);
}

/* --- Interactive Tab Styles for Remote Resources --- */
.resources-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ibm-white);
  border: 1px solid rgba(0, 71, 67, 0.12);
  border-radius: 12px;
  padding: 18px 24px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 100%;
}

.resource-tab-btn:hover {
  border-color: var(--accent-color);
  background: rgba(41, 159, 147, 0.04);
  transform: translateX(5px);
}

.resource-tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--ibm-white) !important;
  box-shadow: 0 8px 20px rgba(0, 71, 67, 0.15);
}

.resource-tab-btn .tab-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(0, 71, 67, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.resource-tab-btn:hover .tab-icon-box {
  background: rgba(41, 159, 147, 0.12);
  color: var(--accent-color);
}

.resource-tab-btn.active .tab-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: var(--ibm-white);
}

.resource-tab-btn .tab-title-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ibm-text-main);
  transition: all 0.3s ease;
  margin: 0;
}

.resource-tab-btn.active .tab-title-text {
  color: var(--ibm-white);
}

/* Tab Pane Transitions */
.resource-tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.resource-tab-pane.active {
  display: block;
}

.resource-tab-pane.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness for Tabs */
@media (max-width: 767.98px) {
  .resources-tabs-container {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .resources-tabs-container::-webkit-scrollbar {
    display: none;
  }
  .resource-tab-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 12px 18px;
    gap: 10px;
    border-radius: 8px;
  }
  .resource-tab-btn:hover {
    transform: none;
  }
  .resource-tab-btn .tab-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 6px;
  }
  .resource-tab-btn .tab-title-text {
    font-size: 0.95rem;
  }
}

