/* OUR JOURNEY TIMELINE (About Us) */
.timeline {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 20px 10px;
  box-sizing: border-box;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #02a6ff 0%, #0369a1 100%);
  border-radius: 4px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 20px;
  align-items: start;
  margin: 18px 0;
}
.timeline-content {
  padding: 10px 20px;
}
.milestone {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(2, 150, 220, 0.06);
  color: #e6fbff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 11, 28, 0.5);
  display: inline-block;
  max-width: 420px;
  width: 100%;
}
.milestone .meta {
  font-weight: 800;
  color: #bfeeff;
  margin-bottom: 6px;
}
.milestone .title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.milestone .desc {
  font-size: 0.95rem;
  color: rgba(220, 245, 255, 0.85);
  line-height: 1.45;
}
.marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #02a6ff;
  box-shadow: 0 0 18px rgba(2, 160, 255, 0.2);
  border: 4px solid rgba(3, 24, 36, 0.9);
}
.timeline-row.left .timeline-content {
  grid-column: 1 / 2;
  text-align: right;
}
.timeline-row.left .marker {
  grid-column: 2 / 3;
}
.timeline-row.left .timeline-content .milestone {
  margin-right: 10px;
}
.timeline-row.right .timeline-content {
  grid-column: 3 / 4;
  text-align: left;
}
.timeline-row.right .marker {
  grid-column: 2 / 3;
}
.timeline-row.right .timeline-content .milestone {
  margin-left: 10px;
}
.milestone .icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(2, 160, 255, 0.12);
  color: #dff8ff;
  text-align: center;
  line-height: 36px;
  margin-right: 8px;
}
@media (max-width: 900px) {
  /* Mobile: present timeline as a simple stacked list of full-width cards with no vertical spine */
  .timeline {
    padding: 8px 8px;
    max-width: 100%;
  }

  /* Remove the central/left spine and decorative markers on mobile */
  .timeline::before,
  .marker,
  .dot {
    display: none !important;
  }

  /* Single-column stacked rows */
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    margin: 12px 0;
  }

  .timeline-row .timeline-content {
    grid-column: 1 / -1;
    text-align: left;
    padding: 0;
    width: 100%;
  }

  .milestone {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2, 11, 28, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .milestone .meta {
    text-align: left;
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
  }
  .milestone .title {
    font-size: 1.05rem;
  }
  .milestone .desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
  }

  /* remove left/right specific alignment on mobile */
  .timeline-row.left .timeline-content,
  .timeline-row.right .timeline-content {
    text-align: left;
    margin: 0;
  }
}
/* Infinite vertical carousel for timeline on small screens */
@media (max-width: 900px) {
  /* constrain the visible area and hide overflow */
  .timeline {
    max-height: 520px;
    overflow: hidden;
  }

  /* scroller contains two identical tracks (original + duplicate) stacked vertically */
  .timeline-scroller {
    display: block;
    will-change: transform;
  }
  .timeline-track {
    display: flex;
    flex-direction: column;
  }

  /* animate the scroller by translating upward by 50% (one full track height)
     duration depends on content length; 18s is a reasonable default */
  .timeline-scroller {
    animation: scrollY 18s linear infinite;
  }

  /* pause when user interacts */
  .timeline-scroller:hover,
  .timeline-scroller:focus-within {
    animation-play-state: paused;
  }

  @keyframes scrollY {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }

  /* Accessibility: stop animation for users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .timeline-scroller {
      animation: none !important;
    }
  }
}
/* Main Stylesheet for Persmon Technologies */

/* ======= CSS Variables ======= */
:root {
  /* Brand color palette - Inspired by modern blockchain designs */
  --primary-color: #0d1f3e; /* Deep Dark Blue */
  --primary-rgb: 26, 35, 50;
  --secondary-color: #163e72; /* Medium Dark Blue */
  --secondary-rgb: 45, 64, 89;
  --accent-color: #0f3478; /* Bright Blue */
  --accent-rgb: 52, 152, 219;
  --gradient-primary: linear-gradient(
    135deg,
    #0d1f3e 0%,
    #163e72 50%,
    #0f3478 100%
  );
  --gradient-secondary: linear-gradient(135deg, #11315b 0%, #2561ab 100%);
  --text-dark: #1a2332; /* Primary Dark Blue for text */
  --text-medium: #5a6c7d; /* Medium Gray Blue */
  --text-light: #8fa3b0;
  --background-light: #f8fafd;
  --background-white: #ffffff;
  --white: #ffffff;
  --border-color: #e5ebf0;
  --shadow-sm: 0 5px 15px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 10px 30px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 20px 50px rgba(26, 35, 50, 0.15);
  --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.527);
  --shadow-deep: 0 40px 80px rgba(5, 7, 10, 0.582);
  --shadow-deepest: 0 50px 100px rgba(0, 0, 0, 0.63);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
}

/* ======= CSS Reset & Base Styles ======= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-white);
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(26, 35, 50, 0.03) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(52, 152, 219, 0.02) 1px,
      transparent 1px
    );
  background-size: 120px 120px, 180px 180px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global page styling */
html,
body {
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem; /* Added consistent font size */
}

a:hover {
  color: var(--secondary-color);
}

/* ======= Navigation Header ======= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--primary-color);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9998;
  transition: all 0.3s ease;
}

/* Homepage-specific navbar style to match provided screenshot */
.navbar--screenshot {
  background: linear-gradient(
    90deg,
    rgba(10, 18, 32, 1) 0%,
    rgba(13, 31, 62, 1) 100%
  );
  height: 88px;
}

.navbar--screenshot .nav-container {
  height: 88px;
}

.navbar--screenshot .logo-img {
  height: 36px;
}

.navbar--screenshot .logo-text {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.navbar--screenshot .nav-list {
  gap: 1rem; /* tightened spacing for screenshot header */
}

/* Slightly thicker active underline to match screenshot */
.navbar--screenshot .nav-link::before {
  height: 3px;
}

/* Services link slightly emphasized */
.navbar--screenshot .nav-link.active,
.navbar--screenshot .nav-link:hover {
  color: #ffffff;
}

.navbar--screenshot .nav-link:hover::before {
  width: 80%;
}

/* Homepage no longer shows a contact button; global .nav-contact rules remain for other pages */

/* Keep all navbar text on one line for desktop/tablet sizes */
@media (min-width: 769px) {
  .nav-container {
    align-items: center;
  }

  /* Prevent wrapping of brand text and nav links */
  .nav-brand,
  .nav-menu {
    flex: 0 1 auto;
  }

  .nav-list {
    flex-wrap: nowrap; /* keep items on a single row */
    white-space: nowrap; /* prevent inline wrapping */
    overflow-x: auto; /* allow horizontal scroll if too many items */
    -webkit-overflow-scrolling: touch;
    gap: 1.75rem; /* slightly reduce gap when space is tight */
  }

  /* Hide scrollbar for webkit browsers to keep the visual clean */
  .nav-list::-webkit-scrollbar {
    /* collapse the webkit scrollbar so only the links are visible */
    height: 0;
  }
  .nav-list::-webkit-scrollbar-thumb {
    background: transparent; /* remove visible thumb */
    border-radius: 999px;
  }

  /* Hide scrollbars cross-browser while preserving scroll behavior */
  .nav-list {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .nav-link,
  .logo-text {
    white-space: nowrap; /* ensure each label stays on one line */
  }

  /* Allow links to shrink if necessary but keep text unwrapped */
  .nav-link {
    flex-shrink: 0;
  }
}

.navbar.scrolled {
  background: rgba(13, 31, 62, 0.95);
  box-shadow: var(--shadow-md);
}

/* When the navbar sits over the hero (top of page), make it visually transparent */
body.hero-visible .navbar.transparent {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Ensure links remain visible on top of hero when navbar is transparent */
.navbar.transparent .nav-link,
.navbar.transparent .logo-text,
.navbar.transparent .hamburger-line {
  color: #ffffff !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-brand {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 50px;
  width: auto;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem; /* reduced gap between nav links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  flex-wrap: nowrap; /* keep items on a single row */
  white-space: nowrap; /* prevent inline wrapping */
  overflow-x: auto; /* allow horizontal scroll if too many items */
  -webkit-overflow-scrolling: touch;
  gap: 1rem; /* tightened gap on desktop */
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 0.75rem; /* increase vertical padding to make links taller */
  transition: all 0.3s ease;
  border-radius: var(--border-radius-sm);
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::before {
  width: 80%;
}

.nav-contact {
  background: var(--accent-color);
  color: var(--white) !important;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.5rem !important;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.nav-contact:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 52, 120, 0.3);
}

.nav-contact::before {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(18, 37, 72, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--white);
    border-bottom-color: var(--white);
  }

  .nav-contact {
    margin-left: 0;
    margin-top: 1rem;
    background: var(--accent-color);
    color: var(--white) !important;
    border-radius: var(--border-radius-sm);
    padding: 1rem 2rem !important;
    border: none;
  }

  .nav-contact:hover {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
    border-bottom: none;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 46px;
  }

  .nav-container {
    padding: 0 1rem;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo-text {
    display: none;
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

/* Ensure body has top padding for fixed navbar */
/* Ensure body has top padding for fixed navbar */
body {
  /* match the navbar--screenshot height (72px) to avoid an extra gap */
  padding-top: 88px;
}

/* When the hero is visible at the very top (homepage), remove the padding so the hero sits flush with the viewport top */
body.hero-visible {
  padding-top: 0 !important;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 968px) {
  body {
    padding-top: 78px;
  }
}

/* ======= Typography ======= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.3rem;
  font-weight: 600;
}

h6 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-medium);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

.section-intro {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ======= Layout & Containers ======= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 6rem 0;
}

/* Modern Section Styling - Alternating Backgrounds */
.section-dark {
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );
  background-size: 100px 100px, 150px 150px;
  animation: float 30s ease-in-out infinite;
  z-index: 1;
}

.section-dark .container {
  position: relative;
  z-index: 2;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.section-light {
  background: var(--background-light);
  color: var(--text-dark);
}

.section-white {
  background: var(--background-white);
  color: var(--text-dark);
}

.page-banner {
  background: linear-gradient(rgba(13, 31, 62, 0.7), rgba(22, 62, 114, 0.7)),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 8rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* WebP support for modern browsers */
@supports (background-image: url("image.webp")) {
  .page-banner {
    background: linear-gradient(rgba(13, 31, 62, 0.7), rgba(22, 62, 114, 0.7)),
      url("../images/background.webp");
  }
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(2px);
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 3.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ======= About Page Sections with Background Images ======= */

/* About Intro Section */
.about-intro {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%
  );
  color: var(--text-dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements for about intro */
.about-intro::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-radius: 50%;
  z-index: 1;
}

.about-intro::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    rgba(0, 212, 255, 0.05) 100%
  );
  border-radius: 50%;
  z-index: 1;
}

/* Mission Vision Section */
.mission-vision {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.mission-vision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.mission-vision .container {
  position: relative;
  z-index: 2;
}

.mission-vision-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-vision-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mission-vision-content {
  padding-left: 2rem;
}

.mission-section,
.vision-section {
  margin-bottom: 3rem;
}

.mission-section:last-child,
.vision-section:last-child {
  margin-bottom: 0;
}

.mission-header,
.vision-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mission-header .icon,
.vision-header .icon {
  margin-right: 1.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 1rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission-header .icon i,
.vision-header .icon i {
  font-size: 2.5rem;
  color: #041833;
}

.mission-header h2,
.vision-header h2 {
  margin-bottom: 0;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.mission-section p,
.vision-section p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0;
}

/* Responsive design for mission-vision */
@media (max-width: 768px) {
  .mission-vision-modern {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-vision-content {
    padding-left: 0;
  }

  .mission-header h2,
  .vision-header h2 {
    font-size: 1.5rem;
  }

  .mission-header .icon,
  .vision-header .icon {
    width: 60px;
    height: 60px;
    padding: 0.8rem;
  }

  .mission-header .icon i,
  .vision-header .icon i {
    font-size: 2rem;
  }

  .mission-vision {
    padding: 4rem 0;
  }
}

.mission-vision h2,
.mission-vision h3,
.mission-vision p {
  color: var(--white);
}

/* Core Values Section */
.core-values {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%
  );
  color: var(--white);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.core-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 31, 62, 0.9) 0%,
    rgba(22, 62, 114, 0.8) 50%,
    rgba(15, 52, 120, 0.9) 100%
  );
  z-index: 1;
}

.core-values .container {
  position: relative;
  z-index: 2;
}

.core-values h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* Infinite Scroll Container */
.values-scroll-container {
  width: 100%;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 10%,
    white 90%,
    transparent
  );
}

.values-scroll-track {
  display: flex;
  gap: 3rem;
  animation: infiniteScroll 30s linear infinite;
  width: fit-content;
}

.values-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.value-card-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

.value-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  z-index: -1;
}

.value-card-modern:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.value-icon i {
  font-size: 2rem;
  color: var(--white);
}

.value-card-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.value-card-modern p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Responsive Design for Core Values */
@media (max-width: 768px) {
  .core-values {
    padding: 6rem 0;
  }

  .core-values h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .values-scroll-track {
    gap: 2rem;
    animation-duration: 25s;
  }

  .value-card-modern {
    padding: 2rem 1.5rem;
    min-width: 250px;
    max-width: 250px;
  }

  .value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
  }

  .value-icon i {
    font-size: 1.75rem;
  }

  .value-card-modern h3 {
    font-size: 1.1rem;
  }

  .value-card-modern p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .values-scroll-track {
    gap: 1.5rem;
    animation-duration: 20s;
  }

  .value-card-modern {
    min-width: 220px;
    max-width: 220px;
    padding: 1.75rem 1.25rem;
  }
}

/* Our Journey Section */

.our-journey {
  background: #0d1f3e;
  background: linear-gradient(180deg, #0d1f3e 0%, #163e72 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.our-journey::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(2px);
  z-index: 1;
}

.our-journey .container {
  position: relative;
  z-index: 2;
}

.our-journey h2,
.our-journey h3,
.our-journey p {
  color: var(--white);
}

/* Enhanced styling for Our Journey section */
.our-journey .section-heading {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}
/* Center cards under the section heading */
.our-journey .journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.our-journey .journey-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* center the heading and subtitle */
  text-align: center;
}

.our-journey .journey-timeline {
  display: flex;
  justify-content: center; /* center the timeline block in its column */
}

.our-journey .timeline {
  margin: 0 auto; /* ensure the inner timeline centers */
}

@media (max-width: 900px) {
  /* stacked layout: center intro and make milestone cards centered */
  .our-journey .journey-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .our-journey .journey-intro {
    align-items: center;
    text-align: center;
  }
  .our-journey .journey-timeline {
    justify-content: center;
  }
  .timeline-row .timeline-content {
    display: flex;
    justify-content: center;
  }
  .timeline-row .timeline-content .milestone {
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
  }
}

/* Team Preview Section */
.team-preview {
  background: var(--background-white);
  color: var(--text-dark);
}

/* Partners Section */
.partners {
  background: linear-gradient(rgba(13, 31, 62, 0.8), rgba(22, 62, 114, 0.8)),
    url("../images/Manufacturing.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.partners::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(3px);
  z-index: 1;
}

.partners .container {
  position: relative;
  z-index: 2;
}

.partners h2,
.partners p {
  color: var(--text-dark);
}

/* Enhanced styling for Partners section */
.partners .section-heading {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 800;
}

.partners .section-intro {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.4rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(
      rgba(248, 250, 253, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../images/Financial.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(3px);
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
}

/* Text color fixes for sections without background images */
.about-intro h2,
.about-intro h3,
.about-intro p {
  color: var(--text-dark);
}

/* Override for modern who we are section */
.who-we-are-modern h2,
.who-we-are-modern h3,
.who-we-are-modern p {
  color: inherit;
}

/* Core values styling is now handled in the main core-values section */

.team-preview h2,
.team-preview h3,
.team-preview p,
.team-preview .section-intro {
  color: var(--text-dark);
}

/* ======= Header & Navigation ======= */
header {
  background-color: var(--primary-color); /* Deep Navy Blue from brand guide */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: fixed; /* keep header fixed at top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100; /* higher than hero (hero z-index:1) */
  transition: transform 0.3s ease, background 0.2s ease;
}

/* Add class to hide header when scrolling down */
header.hide {
  transform: translateY(-100%);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.logo img {
  max-height: 50px;
  margin-right: 10px;
}

.logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
  font-family: "Montserrat", Arial, sans-serif;
  display: inline-block;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--white);
}

nav ul li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ======= Buttons ======= */
.btn {
  display: inline-flex;
  padding: 1rem 2.5rem;
  /* Pill-style buttons */
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: auto;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn.primary {
  background: #052046;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  background: #092c5c;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle white fill on hover */
  color: #ffffff;
  border-color: #ffffff;
}

/* Add styles for cta-buttons container */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Ensure equal button sizes on laptop and above */
@media (min-width: 992px) {
  .hero .cta-buttons {
    gap: 1.5rem;
  }

  .hero .cta-buttons .btn {
    min-width: 180px;
    padding: 1.1rem 2rem;
  }
}

/* ======= Hero Section ======= */
.hero {
  background: var(--gradient-primary);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 2rem 0;
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
}

/* When hero is visible at top, remove extra hero padding so it sits directly under the fixed header */
body.hero-visible .hero {
  padding-top: 0 !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.9) 0%,
    rgba(45, 64, 89, 0.8) 50%,
    rgba(52, 152, 219, 0.7) 100%
  );
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    );
  background-size: 100px 100px, 80px 80px, 120px 120px;
  animation: float 20s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  will-change: transform; /* Optimize for animations */
  position: relative;
  z-index: 3; /* Ensure content stays above background and overlay */
  background-position: center center;
  transition: transform 0.1s ease-out; /* Smooth transition for scrolling effect */
  perspective: 1000px; /* Add perspective for 3D effect */
}

.hero-content {
  flex: 1;
  text-align: center;
  max-width: 600px;

  border-radius: 32px;
  padding: 80px;
  backdrop-filter: blur(2px);
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.4rem;
  margin: 0 0 3rem 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: 400;
}

.hero .btn.primary {
  background: #062a5c;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 85, 204, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero .btn.primary:hover {
  background: #004099;
  color: var(--white);
  box-shadow: 0 12px 35px rgba(0, 85, 204, 0.4);
  transform: translateY(-2px);
}

.hero-image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-image-section img {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 85, 204, 0.18);
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .hero-content {
    padding: 2rem 1.2rem;
    text-align: center;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-image-section img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 0 1rem 0;
    min-height: 60vh;
  }
  .hero-content {
    padding: 1.2rem 0.5rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* ======= Featured Services Section ======= */
.featured-services {
  background: linear-gradient(
    135deg,
    #0a1729 0%,
    #0d2047 30%,
    #102856 60%,
    #0b1e3d 100%
  );
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.featured-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      30deg,
      transparent 40%,
      rgba(52, 152, 219, 0.05) 50%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(26, 35, 50, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(45, 64, 89, 0.03) 0%,
      transparent 50%
    );
  z-index: 1;
}

.featured-services .container {
  position: relative;
  z-index: 2;
}

.featured-services .section-heading {
  color: var(--white);
}

.featured-services .section-heading::after {
  background: rgba(255, 255, 255, 0.3);
}

/* ======= Services Section ======= */
.services-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-medium);
  font-size: 1.1rem;
  line-height: 1.6;
}

.featured-services .services-intro {
  color: rgb(255, 255, 255);
}

.services-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.featured-service-main {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: all 0.3s ease;
}

.featured-service-main:hover {
  box-shadow: var(--shadow-deepest);
  transform: translateY(-5px);
}

.featured-service-main .service-image {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.featured-service-main .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.featured-service-main:hover .service-image img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 31, 62, 0.85) 0%,
    rgba(22, 62, 114, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  color: white;
}

.featured-service-main .service-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.featured-service-main .service-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.98;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.service-btn {
  display: inline-block;
  background: #0055cc;
  border: 2px solid #0055cc;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-btn:hover {
  background: #004099;
  border-color: #004099;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 85, 204, 0.3);
}

.services-grid-secondary {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 150px;
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-3px);
}

.service-item .service-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.service-item .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-item .service-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 31, 62, 0.8) 0%,
    rgba(22, 62, 114, 0.6) 100%
  );
  padding: 1.5rem;
  justify-content: center;
}

.service-item .service-content h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: white;
  margin: 0 0 0.5rem 0;
}

.service-item .service-content p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  opacity: 0.95;
}

.additional-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.additional-services .service-card {
  background: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.additional-services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-image-card {
  height: 200px;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.service-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.additional-services .service-card:hover .service-image-card img {
  transform: scale(1.05);
}

.service-info {
  padding: 2rem;
}

.service-info h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--text-dark);
}

.service-info p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ======= Services Carousel ======= */
.services-carousel-container {
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.services-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  cursor: grab;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
  width: max-content;
  animation: infiniteScroll 40s linear infinite;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 6 - 2rem * 6));
  }
}

.services-carousel:hover {
  animation-play-state: paused;
}

.services-carousel.carousel-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-carousel:active {
  cursor: grabbing;
}

.services-carousel::-webkit-scrollbar {
  display: none; /* WebKit */
}

.service-carousel-card {
  flex: 0 0 350px;
  height: 450px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.service-carousel-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deepest);
  border-color: var(--accent-color);
}

.service-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  pointer-events: none;
  display: block;
}

.service-carousel-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(13, 31, 62, 0.95) 0%,
    rgba(13, 31, 62, 0.8) 70%,
    transparent 100%
  );
  color: var(--white);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}

.service-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-learn-more {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  align-self: flex-start;
}

.carousel-learn-more:hover {
  color: var(--white);
  border-bottom-color: var(--white);
  transform: translateX(3px);
}

/* Carousel fade effect on edges */
.services-carousel-container::before,
.services-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.services-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(13, 31, 62, 0.8) 0%, transparent);
}

.services-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(13, 31, 62, 0.8) 0%, transparent);
}

/* Mobile responsiveness for carousel */
@media (max-width: 768px) {
  .service-carousel-card {
    flex: 0 0 280px;
  }

  .services-carousel {
    gap: 1.5rem;
    padding: 1rem 1rem 2rem 1rem;
    margin: 0 -1rem;
    animation: infiniteScrollMobile 35s linear infinite;
  }

  @keyframes infiniteScrollMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 6 - 1.5rem * 6));
    }
  }

  .service-card-content {
    padding: 1.5rem;
  }

  .service-card-content h3 {
    font-size: 1.3rem;
  }

  .services-carousel-container::before,
  .services-carousel-container::after {
    width: 20px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-service-main .service-image {
    height: 400px;
  }

  .services-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }

  .service-item {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .services-grid-secondary {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .service-item {
    height: 150px;
  }

  .featured-service-main .service-content h3 {
    font-size: 2rem;
  }

  .additional-services {
    grid-template-columns: 1fr;
  }

  .service-overlay {
    padding: 2rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Legacy service card styles for backward compatibility */
.services-grid .service-card {
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.services-grid .service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.service-card .icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.1),
    rgba(26, 35, 50, 0.05)
  );
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  transform: scale(1.1);
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.read-more {
  color: var(--primary-color); /* Updated to Deep Navy Blue */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more:after {
  content: "→";
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover:after {
  transform: translateX(5px);
}

/* ======= Why Choose Us Section ======= */
.why-choose-us {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 8rem 0;
}

.why-choose-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );
  background-size: 100px 100px, 150px 150px;
  animation: float 30s ease-in-out infinite;
  z-index: 1;
}

.why-choose-us .container {
  position: relative;
  z-index: 2;
}

.why-choose-us .section-heading {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4rem;
  text-align: left;
  max-width: none;
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Testimonial Section */
.testimonial-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.client-images {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.client-image-main {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.client-image-small {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.client-images:hover .client-image-main {
  transform: scale(1.02);
}

.client-images:hover .client-image-small {
  transform: scale(1.05);
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-content blockquote {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--white);
  position: relative;
}

.testimonial-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  left: -2rem;
  top: -1rem;
  font-family: Georgia, serif;
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-info strong {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.client-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.client-company {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.client-company:hover {
  color: var(--white);
}

/* Benefits Section */
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-intro-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.section-intro-text strong {
  color: var(--white);
  font-weight: 600;
}

.benefit-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.benefit-stat {
  padding: 1.5rem 0;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  padding-left: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.benefit-stat:hover {
  border-left-color: var(--white);
  transform: translateX(10px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .why-choose-content {
    gap: 4rem;
  }

  .client-image-main {
    width: 250px;
    height: 170px;
  }
}

@media (max-width: 968px) {
  .why-choose-content {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .why-choose-us .section-heading {
    text-align: center;
    font-size: 2.8rem;
  }

  .testimonial-section {
    order: 2;
  }

  .benefits-section {
    order: 1;
  }

  .client-images {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .why-choose-us {
    padding: 5rem 0;
  }

  .why-choose-us .section-heading {
    font-size: 2.4rem;
    margin-bottom: 3rem;
  }

  .client-image-main {
    width: 200px;
    height: 140px;
  }

  .client-image-small {
    width: 100px;
    height: 100px;
  }

  .testimonial-content {
    padding: 2rem;
  }

  .testimonial-content blockquote {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .benefit-stat {
    padding-left: 1.5rem;
  }
}

/* ======= Case Studies & Portfolio ======= */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.case-study {
  border-radius: 36px; /* Updated */
  overflow: hidden;
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-study img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-content h3 {
  margin-bottom: 0.5rem;
}

.case-study-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

.category {
  color: var(--primary-color); /* Updated to Deep Navy Blue */
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  display: block;
}

.view-all-cases,
.view-all-services,
.view-all-insights {
  text-align: center;
  margin-top: 3rem;
}

/* ======= Testimonials ======= */
.testimonials {
  background: linear-gradient(
      rgba(248, 250, 252, 0.95),
      rgba(248, 250, 252, 0.95)
    ),
    url("../images/background 2.jpg") center/cover;
  background-attachment: fixed;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  border-radius: 36px; /* Updated */
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
}

.quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
  color: #444;
}

.quote:before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -5px;
  top: -20px;
  color: var(--primary-color); /* Updated to Deep Navy Blue */
  opacity: 0.3;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-name {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.client-position {
  font-size: 0.9rem;
  color: #666;
}

/* ======= CTA Section ======= */
.cta {
  background: linear-gradient(
      135deg,
      rgba(0, 43, 90, 0.9) 0%,
      rgba(30, 90, 153, 0.9) 100%
    ),
    url("../images/background 3.jpg") center/cover; /* Updated to use background 3 */
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: ctaShine 8s ease-in-out infinite;
  transform: rotate(45deg);
}

@keyframes ctaShine {
  0%,
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.cta h2 {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.cta .container {
  position: relative;
  z-index: 2;
}

/* ======= Blog/Insights ======= */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.insight-card {
  border-radius: 36px; /* Updated */
  overflow: hidden;
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.insight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.insight-content {
  padding: 1.5rem;
}

.insight-content h3 {
  margin-bottom: 0.5rem;
}

.insight-content p {
  color: #666;
  margin-bottom: 1rem;
}

.date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  display: block;
}

/* ======= Footer ======= */
footer {
  background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill-opacity="0.05"><circle cx="30" cy="30" r="2" fill="white"/><circle cx="15" cy="45" r="1" fill="white"/><circle cx="45" cy="15" r="1" fill="white"/></g></svg>');
  color: var(--white);
  padding-top: 4rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 1rem;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color); /* Updated to Alternative Blue */
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.7rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--white);
}

/* Added styling for footer email links */
footer address p a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

footer address p a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary-color); /* Updated to Alternative Blue */
  transform: translateY(-5px);
  color: var(--white);
}

/* ======= About Page Styles ======= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  border-radius: 36px; /* Updated from 8px to 36px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======= Modern Who We Are Section ======= */
.who-we-are-modern {
  padding: 0;
  background: transparent;
  position: relative;
  overflow: visible;
}

.who-we-are-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.modern-title .dimmed {
  color: rgba(255, 255, 255, 0.5);
}

.title-underline {
  position: relative;
  color: #ffffff;
}

.title-underline::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #1e88e5);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.4);
}

.content-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

.content-card,
.expertise-card {
  background: transparent;
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before,
.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #1e88e5);
}

.content-card:hover,
.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.content-card .card-title,
.expertise-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.content-card .card-text,
.expertise-card .card-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0;
  font-weight: 500;
}

.team-images-section {
  position: relative;
  padding: 2rem;
}

.team-image-container {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image-primary {
  width: 300px;
  height: 350px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  background: var(--background-white);
  padding: 8px;
}

.team-image-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.team-image-overlay {
  position: absolute;
  width: 200px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  top: 50px;
  right: -30px;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: var(--background-white);
  padding: 6px;
  transform: rotate(5deg);
  transition: all 0.3s ease;
}

.team-image-overlay:hover {
  transform: rotate(3deg) scale(1.05);
}

.team-image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Animation classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up:nth-child(1) {
  animation-delay: 0.2s;
}
.animate-fade-up:nth-child(2) {
  animation-delay: 0.4s;
}
.animate-fade-up:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-cards-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-image-container {
    height: 300px;
  }

  .team-image-primary {
    width: 250px;
    height: 280px;
  }

  .team-image-overlay {
    width: 160px;
    height: 200px;
    right: -20px;
    top: 30px;
  }
}

@media (max-width: 768px) {
  .modern-title {
    font-size: 2.8rem;
  }

  .who-we-are-content {
    padding: 0 1rem;
  }

  .content-card,
  .expertise-card {
    padding: 2rem 1.5rem;
  }

  .team-image-primary {
    width: 200px;
    height: 240px;
  }

  .team-image-overlay {
    width: 140px;
    height: 170px;
    right: -15px;
    top: 20px;
  }
}

@media (max-width: 480px) {
  .modern-title {
    font-size: 2.2rem;
  }

  .who-we-are-modern {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .content-cards-grid {
    margin-top: 2rem;
    gap: 2rem;
  }
}

/* Legacy grid - commented out since we're using new layout
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
*/

/* Legacy Mission and Vision Styles - Commented Out
.mission,
.vision {
  background: linear-gradient(
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    ),
    url("../images/background.png") center/cover;
  border-radius: 36px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission:hover,
.vision:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mission h2,
.vision h2 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.mission p,
.vision p {
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.mission-header,
.vision-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.mission-header .icon,
.vision-header .icon {
  margin-right: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 31, 62, 0.1),
    rgba(22, 62, 114, 0.05)
  );
  border-radius: 50%;
  padding: 1rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-header .icon i,
.vision-header .icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.mission-header h2,
.vision-header h2 {
  margin-bottom: 0;
  color: var(--text-dark);
}
*/

/* Legacy values grid - kept for backward compatibility but not used */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url("../images/background.png") center/cover;
  border-radius: 36px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline {
  max-width: 900px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.3)
  );
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.year {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.event {
  width: calc(50% - 80px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 36px; /* Updated from 8px to 36px */
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced text styling for timeline events */
.event h3 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.event p {
  color: #e0e0e0;
  font-weight: 500;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) .event {
  margin-left: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  border-radius: 36px; /* Added 36px border radius */
  padding: 20px;
  background: linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url("../images/background.png") center/cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.position {
  color: var(--primary-color); /* Updated to Deep Navy Blue */
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.bio {
  color: #666;
  font-size: 0.95rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 3rem;
}

.partners {
  text-align: center;
  background: linear-gradient(
      rgba(248, 250, 252, 0.92),
      rgba(248, 250, 252, 0.92)
    ),
    url("../images/background 1.jpg") center/cover;
  padding: 4rem 0;
  background-attachment: fixed;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}

.partner img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
  margin: 0 auto;
}

.partner:hover img {
  filter: brightness(1.2) contrast(1.3);
  transform: scale(1.05);
}

/* ======= Services Page Styles ======= */

/* Contact Page Styles */

.insights-search input[type="text"] {
  flex-grow: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.insights-search button {
  background-color: #0055cc;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.insights-search button:hover {
  background-color: #004099;
}

/* Insights Categories */
.insights-categories {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-btn {
  /* Style like .filter-btn */
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: #0055cc;
  color: #fff;
  border-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 85, 204, 0.2);
}

/* Featured Articles */
.featured-articles {
  padding: 4rem 0;
  background-color: #f8fafc; /* Light background */
}

.featured-articles h2,
.all-articles h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.featured-grid {
  display: grid;
  gap: 2rem;
}

.featured-article {
  background: #fff;
  border-radius: 36px; /* Updated */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.featured-article .article-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.featured-article .article-content {
  padding: 2rem;
}

.featured-article .article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
  align-items: center;
}

.featured-article .article-meta .category {
  background-color: #0055cc;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem; /* Explicit size */
}

.featured-article .article-meta .date {
  color: #0055cc;
}

.featured-article h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.featured-article p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.featured-article .author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #333;
}

.featured-article .author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-article .btn {
  background-color: #0055cc;
  color: #fff;
  padding: 0.7rem 1.5rem;
}
.featured-article .btn:hover {
  background-color: #004099;
}

/* All Articles */
.all-articles {
  padding: 4rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background: #fff;
  border-radius: 36px; /* Updated */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.article-card .article-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-card .article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card .article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.article-card .article-meta .category {
  background-color: #e7f0ff;
  color: #0055cc;
  padding: 0.25rem 0.7rem;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.8rem; /* Explicit size */
}

.article-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  color: #222;
}

.article-card p {
  color: #555;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.article-card .read-more {
  color: #0055cc;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}

.article-card .read-more:after {
  content: "→";
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.article-card .read-more:hover:after {
  transform: translateX(5px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a {
  color: #0055cc;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 36px; /* Updated */
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
  background-color: #0055cc;
  color: #fff;
  border-color: #0055cc;
  border-radius: 36px; /* Updated */
}

.pagination a.next i,
.pagination a.prev i {
  margin-left: 5px;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, #0055cc 0%, #003580 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.newsletter-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.newsletter-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto 1rem;
  gap: 0; /* Remove gap to make input and button touch */
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 36px 0 0 36px; /* Updated */
  border: 1px solid #fff;
  font-size: 1rem;
  outline: none;
  border-right: none; /* Remove right border for seamless connection */
}
.newsletter-form input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-form .btn {
  padding: 0.9rem 1.5rem;
  border-radius: 0 36px 36px 0; /* Updated */
  background-color: #fff;
  color: #0055cc;
  font-weight: 600;
  border: 1px solid #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.newsletter-form .btn:hover {
  background-color: #f0f0f0;
  color: #003580;
}

.privacy-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.privacy-note a {
  color: #fff;
  text-decoration: underline;
}

.privacy-note a:hover {
  text-decoration: none;
}

/* Insights CTA */
.insights-cta {
  background-color: #f8fafc;
  text-align: center;
  padding: 4rem 0;
}

.insights-cta .cta-content h2 {
  margin-bottom: 1rem;
}

.insights-cta .cta-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #555;
}

/* ======= Single Article Page Styles ======= */
.article-tab-content {
  padding: 4rem 0;
  text-align: left;
}

.article-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.article-banner-meta {
  font-size: 1rem;
  color: #555;
}

.article-banner-meta i {
  margin-right: 5px;
  color: #0055cc;
}

.article-banner-meta span {
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid #ddd;
}
.article-banner-meta span:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.article-page-main {
  padding: 3rem 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: 2.5fr 1fr;
  }
}

.article-content-main {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-image-header {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-image-header img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.article-body h2 {
  font-size: 1.8rem;
}
.article-body h3 {
  font-size: 1.5rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8fafc;
  border-left: 5px solid #0055cc;
  font-style: italic;
  color: #555;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.article-body a {
  color: #0055cc;
  text-decoration: underline;
}
.article-body a:hover {
  text-decoration: none;
}

.article-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.article-tags strong {
  margin-right: 0.5rem;
}

.article-tags a {
  display: inline-block;
  background-color: #e7f0ff;
  color: #0055cc;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.article-tags a:hover {
  background-color: #cce0ff;
}

.social-share {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.social-share strong {
  margin-right: 1rem;
  vertical-align: middle;
}

.social-icon-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social-icon-share i {
  font-size: 1.1rem;
}

.social-icon-share:hover {
  background-color: #0055cc;
  color: #fff;
}

.author-bio-box {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8fafc;
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-bio-box .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio-box .author-details h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.author-bio-box .author-details p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.author-bio-box .author-profile-link {
  font-weight: 600;
  color: #0055cc;
  text-decoration: none;
}
.author-bio-box .author-profile-link:hover {
  text-decoration: underline;
}

/* Article Sidebar */
.article-sidebar .sidebar-widget {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.article-sidebar .sidebar-widget:last-child {
  margin-bottom: 0;
}

.article-sidebar .sidebar-widget h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.sidebar-search-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
}
.sidebar-search-form input[type="text"] {
  flex-grow: 1;
  padding: 0.6rem 1rem;
  border: none;
  outline: none;
  background: #fff;
}
.sidebar-search-form button {
  background-color: #0055cc;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.sidebar-search-form button:hover {
  background-color: #004099;
}

.categories-widget ul,
.recent-posts-widget ul {
  list-style: none;
  padding-left: 0;
}

.categories-widget ul li,
.recent-posts-widget ul li {
  margin-bottom: 0.8rem;
}

.categories-widget ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
}
.categories-widget ul li a:hover {
  color: #0055cc;
}
.categories-widget ul li a span {
  color: #777;
  font-size: 0.9em;
}

.recent-posts-widget ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}
.recent-posts-widget ul li a:hover {
  color: #0055cc;
}
.recent-posts-widget ul li span {
  font-size: 0.85rem;
  color: #777;
  display: block;
}

.cta-widget {
  background-color: #0055cc;
  color: #fff;
}
.cta-widget h4 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.cta-widget p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}
.cta-widget .btn.primary {
  background-color: #fff;
  color: #0055cc;
  width: 100%;
}
.cta-widget .btn.primary:hover {
  background-color: #f0f0f0;
}

/* ======= Industry Expertise Section ======= */
.industries-served {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
}

.industries-served .container {
  position: relative;
  z-index: 2;
}

.industries-served .section-heading {
  color: white;
}

.industries-served .section-heading::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
}

.section-subtitle {
  text-align: center;
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.industry-card {
  position: relative;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.industry-card[data-bg="Healthcare Automation.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/Healthcare Automation.webp");
  background-size: cover;
  background-position: center;
}

.industry-card[data-bg="Financial.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/Financial.webp");
  background-size: cover;
  background-position: center;
}

.industry-card[data-bg="E-Commerce.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/E-Commerce.webp");
  background-size: cover;
  background-position: center;
}

.industry-card[data-bg="Manufacturing.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/Manufacturing.webp");
  background-size: cover;
  background-position: center;
}

.industry-card[data-bg="Real Estate.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/Real Estate.webp");
  background-size: cover;
  background-position: center;
}

.industry-card[data-bg="Logistics.webp"] {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/Logistics.webp");
  background-size: cover;
  background-position: center;
}

.industry-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 43, 90, 0.8) 0%,
    rgba(30, 90, 153, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover .industry-card-overlay {
  opacity: 1;
}

.industry-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 3;
}

.industry-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.industry-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.industry-location i {
  font-size: 0.8rem;
}

.industry-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Add a subtle animation indicator */
.industry-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  z-index: 4;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Enhanced hover animations */
.industry-card .industry-card-content {
  transition: transform 0.1s ease;
}

.industry-card:hover .industry-card-content {
  transform: translateZ(20px);
}

/* Stagger animation for grid items */
.industries-grid .animate-stagger-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.industries-grid .animate-stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}
.industries-grid .animate-stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}
.industries-grid .animate-stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}
.industries-grid .animate-stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}
.industries-grid .animate-stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}
.industries-grid .animate-stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .industry-card {
    height: 240px;
  }

  .industry-card-content {
    padding: 1.5rem;
  }

  .industry-info h3 {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Disable parallax effects on mobile */
  .industry-card .industry-card-content {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .industries-served {
    padding: 4rem 0;
  }

  .industry-card {
    height: 220px;
  }

  .industry-card-content {
    padding: 1.25rem;
  }

  .industry-info h3 {
    font-size: 1.3rem;
  }
}

/* Mobile optimizations for about page background images */
@media (max-width: 768px) {
  /* Disable fixed background attachment on mobile for better performance */
  .page-banner,
  .mission-vision,
  .our-journey,
  .partners,
  .cta {
    background-attachment: scroll;
  }

  /* Reduce blur effect on mobile for better performance */
  .page-banner::before,
  .mission-vision::before,
  .our-journey::before,
  .partners::before,
  .cta::before {
    backdrop-filter: blur(1px);
  }

  /* Simplify card effects on mobile */
  .value-card,
  .team-member,
  .event,
  .mission,
  .vision {
    backdrop-filter: blur(5px);
  }
}

@media (max-width: 768px) {
  /* Disable parallax effects on mobile for better performance */
  .why-choose-us,
  .industries-served {
    background-attachment: scroll;
  }

  /* Simplify hero video on mobile */
  .hero-video {
    display: none;
  }

  .hero {
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
  }

  /* Reduce floating animation complexity on mobile */
  .hero::after {
    animation: none;
  }

  /* Simplify background patterns on mobile */
  body {
    background-image: none;
    background-color: #ffffff;
  }
}

@media (max-width: 480px) {
  /* Further simplifications for very small screens */
  .feature::before,
  .service-card::before,
  .industry-card::after {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 43, 90, 0.9) 0%,
      rgba(30, 90, 153, 0.9) 100%
    );
  }
}

/* ======= Optimized animations for better performance ======= */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px); /* Reduced from 40px for subtler animation */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Reduced from 0.8s */
  will-change: opacity, transform; /* Helps browser optimize animations */
}

.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px); /* Reduced from 40px */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Reduced from 0.8s */
  will-change: opacity, transform;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-20px); /* Reduced from 40px */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Reduced from 0.8s */
  will-change: opacity, transform;
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(20px); /* Reduced from 40px */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Reduced from 0.8s */
  will-change: opacity, transform;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9); /* Changed from 0.8 for subtler animation */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Reduced from 0.8s */
  will-change: opacity, transform;
}

/* Animation active states */
.animate-fade-up.in-view,
.animate-fade-down.in-view,
.animate-fade-left.in-view,
.animate-fade-right.in-view,
.animate-scale.in-view {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Animation delay classes */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}
.delay-600 {
  transition-delay: 0.6s;
}
.delay-700 {
  transition-delay: 0.7s;
}
.delay-800 {
  transition-delay: 0.8s;
}
.delay-900 {
  transition-delay: 0.9s;
}
.delay-1000 {
  transition-delay: 1s;
}

/* Contact Page Styles */
.contact-details {
  padding: 6rem 0;
  background: var(--background-light);
  position: relative;
}

.contact-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      30deg,
      transparent 40%,
      rgba(52, 152, 219, 0.03) 50%,
      transparent 60%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(26, 35, 50, 0.02) 0%,
      transparent 50%
    );
  z-index: 1;
}

.contact-details .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2.4rem;
}

.contact-info p {
  margin-bottom: 2.5rem;
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1.1rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-item .icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.contact-item .details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.contact-item .details p {
  margin-bottom: 0;
  color: var(--text-medium);
}

.contact-item .details a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.contact-item .details a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-contact h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
}

.social-contact .social-icons {
  display: flex;
  gap: 1rem;
}

.social-contact .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-contact .social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Contact Form Styles */
.contact-form {
  background-color: white;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
  outline: none;
  background-color: #fff;
}

.full-width {
  grid-column: 1 / -1;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.95rem;
  color: #666;
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Map Section */
.map-section {
  padding: 4rem 0;
  background-color: white;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 400px;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: #f9fafc;
}

.faq-section .section-heading {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
  position: relative;
  padding-left: 2rem;
}

.faq-item h3:before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary-color);
}

.faq-item p {
  color: #666;
  line-height: 1.6;
  position: relative;
  padding-left: 2rem;
}

.faq-item p:before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--secondary-color);
}

/* ======= Careers Page Styles ======= */

/* Careers Hero Section */
.careers-hero {
  background: var(--gradient-primary);
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

.careers-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );
  background-size: 100px 100px, 150px 150px;
  animation: float 25s ease-in-out infinite;
  z-index: 1;
}

.careers-hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.careers-hero-content {
  flex: 1;
  min-width: 300px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.careers-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 3.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-name {
  color: #fff;
  font-weight: 800;
  font-size: 3.6rem;
  background: linear-gradient(45deg, #fff, rgba(52, 152, 219, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.careers-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.careers-hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.careers-hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.careers-hero-image img:hover {
  transform: scale(1.05);
}

/* Life at Company Section */
.life-at-company {
  padding: 5rem 0;
  background-color: #f9fafc;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 2.8rem;
  position: relative;
  padding-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: var(--gradient-secondary);
  border-radius: 10px;
}

.section-heading.white {
  color: var(--white);
}

.section-heading.white::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.company-culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.company-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.culture-card,
.perks-card {
  background-color: #fff;
  border-radius: 36px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.culture-card:hover,
.perks-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.culture-card .icon,
.perks-card .icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 85, 204, 0.1);
  border-radius: 50%;
}

.culture-card h3,
.perks-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #222;
}

.culture-card p,
.perks-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.learn-more-btn-container {
  text-align: center;
  margin-top: 2rem;
}

/* Job Openings Section */
.job-openings {
  padding: 5rem 0;
}

.job-search-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.job-search {
  flex: 1;
  min-width: 250px;
}

.job-search input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 36px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.job-search input:focus {
  border-color: #0055cc;
  box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.1);
}

.job-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-filters select {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 36px;
  background-color: #fff;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
  color: #333;
}

.job-filters select:focus {
  border-color: #0055cc;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.job-card {
  background-color: #fff;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.job-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-header h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
  color: #222;
}

.job-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.job-badge.remote {
  background-color: #e7f0ff;
  color: #0055cc;
}

.job-badge.onsite {
  background-color: #ffeee6;
  color: #ff6b35;
}

.job-badge.hybrid {
  background-color: #e6f8e6;
  color: #28a745;
}

.job-details {
  padding: 1.5rem;
}

.job-department {
  color: #0055cc;
  font-weight: 500;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.job-description {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.view-all-jobs {
  text-align: center;
}

/* Careers Stats Section */
.careers-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2.5rem;
  background-color: #f26522;
  border-radius: 36px;
  box-shadow: 0 10px 30px rgba(0, 85, 204, 0.12);
}

.stat-item {
  text-align: center;
  color: #fff;
  min-width: 150px;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.stat-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Recruitment Process Section */
.recruitment-process {
  padding: 5rem 0;
  background-color: #f9fafc;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.process-step {
  background-color: #fff;
  border-radius: 36px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 85, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon i {
  font-size: 2rem;
  color: #0055cc;
}

.process-step h3 {
  margin-bottom: 1rem;
  color: #222;
  font-size: 1.4rem;
}

.process-step p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive elements added to Careers page */
.tab-btn {
  color: #555;
}

.tab-btn.active,
.tab-btn:hover {
  color: #fff;
}

.tab-features li {
  color: #666;
}

.tab-features li i {
  color: var(--primary-color);
}

.tab-text h3 {
  color: #222;
}

.tab-text p {
  color: #555;
}

.timeline-step .step-marker {
  color: #fff;
}

.step-content h3 {
  color: #222;
}

.step-content p {
  color: #555;
}

.process-nav-btn {
  color: #fff;
}

.process-nav-btn:disabled {
  color: #999;
}

.testimonial-content .quote {
  color: #444;
}

.employee-info h4 {
  color: var(--primary-color);
}

.employee-info p {
  color: #666;
}

.floating-element {
  color: #333;
}

.stat-number {
  color: #fff;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive styles */
@media (max-width: 992px) {
  .careers-hero .container {
    flex-direction: column;
  }

  .careers-hero-content {
    text-align: center;
  }

  .careers-hero h1,
  .company-name {
    font-size: 2.2rem;
  }

  .job-search-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .job-filters {
    justify-content: center;
  }

  .careers-stats {
    padding: 2rem 1rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .company-name {
    font-size: 1.8rem;
  }

  .careers-hero p {
    font-size: 1rem;
  }

  .job-card {
    min-width: 100%;
  }

  .careers-stats {
    gap: 2rem;
  }
}

/* ======= WhatsApp Chat Bubble ======= */
.whatsapp-bubble {
  position: fixed;
  bottom: 25px; /* Keep this at 25px to maintain consistent spacing */
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* WhatsApp green */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-bubble i {
  font-size: 2rem;
}

.whatsapp-tooltip {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  color: #333;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.whatsapp-bubble:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .whatsapp-bubble {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-bubble i {
    font-size: 1.5rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 165px; /* Positioned above the chatbot icon (95px) and WhatsApp button (60px + 10px gap) */
  right: 25px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Position adjustments for different configurations */
.chatbot-trigger + .scroll-to-top {
  bottom: 165px; /* 95px + 60px + 10px gap */
}

.whatsapp-bubble + .scroll-to-top {
  bottom: 90px; /* 20px + 60px + 10px gap */
}

/* If both chatbot and WhatsApp exist */
.chatbot-trigger ~ .whatsapp-bubble ~ .scroll-to-top,
.whatsapp-bubble ~ .chatbot-trigger ~ .scroll-to-top {
  bottom: 165px; /* Position above both */
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .scroll-to-top {
    width: 35px;
    height: 35px;
    right: 15px;
  }

  .chatbot-trigger + .scroll-to-top {
    bottom: 135px;
  }

  .whatsapp-bubble + .scroll-to-top {
    bottom: 75px;
  }

  .chatbot-trigger ~ .whatsapp-bubble ~ .scroll-to-top,
  .whatsapp-bubble ~ .chatbot-trigger ~ .scroll-to-top {
    bottom: 135px;
  }
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 350px;
  height: 450px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transform-origin: bottom right;
  transition: all 0.3s ease;
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 15px 20px;
  background: var(--primary-color); /* Using brand color */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-title img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f5f8fb;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.message.bot {
  background-color: #eef2f7;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.message.user {
  background-color: var(--primary-color); /* Using brand color */
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #eef2f7;
  padding: 12px 15px;
  border-radius: 15px;
  border-bottom-left-radius: 5px;
  max-width: 65px;
  align-self: flex-start;
  margin-bottom: 5px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #aaa;
  border-radius: 50%;
  display: inline-block;
  animation: typing 1s infinite ease-in-out alternate;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0ms;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 200ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 400ms;
}

@keyframes typing {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-5px);
  }
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid #eaeaea;
  background-color: #fff;
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 36px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.chatbot-input input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.chatbot-input button {
  background-color: var(--primary-color); /* Using brand color */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chatbot-input button:hover {
  background-color: var(--secondary-color); /* Using secondary brand color */
}

.chatbot-input button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.chatbot-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 998;
  transition: all 0.3s ease;
}

.chatbot-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.chatbot-trigger i {
  font-size: 1.6rem;
}

.chatbot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4d4d;
  color: white;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .chatbot-container {
    width: calc(100% - 30px);
    max-width: 360px;
    height: auto; /* allow content to determine height */
    max-height: 70vh; /* limit height to viewport fraction on small screens */
    bottom: 85px;
    right: 15px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chatbot-trigger {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .chatbot-trigger i {
    font-size: 1.3rem;
  }
}

/* Update scroll-to-top position if WhatsApp bubble is used too */
.whatsapp-bubble + .scroll-to-top {
  bottom: 165px; /* 95px + 60px + 10px gap */
}

.chatbot-trigger + .scroll-to-top {
  bottom: 95px;
}

/* If both exist, position accordingly */
.whatsapp-bubble ~ .chatbot-trigger ~ .scroll-to-top,
.chatbot-trigger ~ .whatsapp-bubble ~ .scroll-to-top {
  bottom: 165px;
}

@media (max-width: 576px) {
  .whatsapp-bubble + .scroll-to-top {
    bottom: 135px;
  }

  .chatbot-trigger + .scroll-to-top {
    bottom: 75px;
  }

  .whatsapp-bubble ~ .chatbot-trigger ~ .scroll-to-top,
  .chatbot-trigger ~ .whatsapp-bubble ~ .scroll-to-top {
    bottom: 135px;
  }
}

/* ======= Modern Geometric Elements ======= */
.geometric-bg {
  position: relative;
  overflow: hidden;
}

.geometric-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
      45deg,
      transparent 30%,
      rgba(52, 152, 219, 0.1) 40%,
      transparent 50%
    ),
    linear-gradient(
      -45deg,
      transparent 30%,
      rgba(26, 35, 50, 0.05) 40%,
      transparent 50%
    );
  background-size: 100px 100px, 120px 120px;
  animation: geometricMove 20s linear infinite;
  z-index: 1;
}

@keyframes geometricMove {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hexagon-pattern {
  position: relative;
}

.hexagon-pattern::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(52, 152, 219, 0.1) 2px,
    transparent 3px
  );
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  opacity: 0.5;
  z-index: 1;
}

/* Modern Card Hover Effects */
.modern-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(52, 152, 219, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.modern-card:hover::before {
  opacity: 1;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-elements::before,
.floating-elements::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(52, 152, 219, 0.1),
    rgba(26, 35, 50, 0.05)
  );
  animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
  top: 20%;
  right: 10%;
  animation-delay: -2s;
}

.floating-elements::after {
  bottom: 20%;
  left: 10%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* ======= Organizational Structure Styles ======= */

/* Section Layout */
.organizational-structure {
  background: linear-gradient(135deg, #f8fafd 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.organizational-structure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(13, 31, 62, 0.02) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(15, 52, 120, 0.02) 1px,
      transparent 1px
    );
  background-size: 60px 60px, 90px 90px;
  pointer-events: none;
}

.section-intro {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

/* Common Header Styles */
.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.icon-circle-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.icon-circle-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0d5f3c, #10b981);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.icon-white {
  color: white;
  font-size: 32px;
}

.heading-large {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.text-governance {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0;
}

.section-margin-bottom {
  margin-bottom: 80px;
}

/* Board of Directors Styles */
.governance-section {
  margin-bottom: 80px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.board-member {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(13, 31, 62, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.board-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(13, 31, 62, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.board-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(13, 31, 62, 0.15);
  border-left-color: var(--accent-color);
}

.board-member:hover::before {
  opacity: 1;
}

.member-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.member-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(13, 31, 62, 0.2);
}

.member-name {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.member-title {
  margin: 5px 0 0 0;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.member-description {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Independent Members Section */
.independent-members {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(13, 31, 62, 0.05);
  border: 1px solid #e2e8f0;
}

.independent-heading {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 600;
}

.icon-primary {
  color: var(--accent-color);
}

.icon-margin-right {
  margin-right: 10px;
}

.independent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.independent-member {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(13, 31, 62, 0.05);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.independent-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin: 0 auto 15px auto;
}

.independent-name {
  margin: 0 0 5px 0;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

.independent-status {
  margin: 0 0 10px 0;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.independent-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.info-box {
  background: rgba(15, 52, 120, 0.05);
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.info-text {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Executive Leadership Team Styles */
.executive-section {
  margin-bottom: 80px;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.executive-member {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(13, 31, 62, 0.08);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.executive-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(22, 62, 114, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.executive-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(22, 62, 114, 0.15);
  border-left-color: var(--accent-color);
}

.executive-member:hover::before {
  opacity: 1;
}

.executive-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.executive-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(22, 62, 114, 0.2);
}

.executive-name {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.executive-title {
  margin: 5px 0 0 0;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.executive-description {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Divisions Styles */
.divisions-section {
  margin-bottom: 60px;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.division-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(13, 31, 62, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.division-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(13, 31, 62, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(13, 31, 62, 0.15);
}

.division-card:hover::before {
  opacity: 1;
}

.division-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.marketing-decoration {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.software-decoration {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.data-decoration {
  background: linear-gradient(135deg, #10b981, #059669);
}

.orange-decoration {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.division-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.division-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.marketing-avatar {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.software-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.data-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
}

.orange-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.division-title {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.division-director {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.marketing-director {
  color: #ec4899;
}

.software-director {
  color: #3b82f6;
}

.data-director {
  color: #10b981;
}

.orange-director {
  color: #f59e0b;
}

.division-role {
  margin: 2px 0 0 0;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
}

.division-description {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Organization Summary */
.org-summary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(13, 31, 62, 0.2);
  position: relative;
  overflow: hidden;
}

.org-summary::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  animation: float 10s ease-in-out infinite;
}

.org-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .board-grid,
  .executive-grid,
  .divisions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .independent-grid {
    grid-template-columns: 1fr;
  }

  .org-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .board-member,
  .executive-member,
  .division-card {
    padding: 20px;
  }

  .heading-large {
    font-size: 1.8rem;
  }

  .section-intro {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .org-stats-grid {
    grid-template-columns: 1fr;
  }

  .member-header,
  .executive-header,
  .division-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .member-avatar,
  .executive-avatar,
  .division-avatar {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* ======= Portfolio Page Dark Theme ======= */
/* Apply dark theme specifically for portfolio pages */
body.portfolio-page.dark-theme {
  background: var(--text-dark);
  color: var(--white);
}

/* Portfolio page sections with dark theme */
body.portfolio-page.dark-theme .portfolio-intro {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0;
}

body.portfolio-page.dark-theme .portfolio-intro h2 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
}

body.portfolio-page.dark-theme .portfolio-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Industries served section with dark theme */
body.portfolio-page.dark-theme .industries-served {
  background: var(--primary-color);
  color: var(--white);
}

body.portfolio-page.dark-theme .industries-served .section-heading {
  color: var(--white);
}

body.portfolio-page.dark-theme .industries-served .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Testimonials section with dark theme */
body.portfolio-page.dark-theme .testimonials {
  background: linear-gradient(rgba(13, 31, 62, 0.95), rgba(13, 31, 62, 0.95)),
    url("../images/background 2.jpg") center/cover;
  background-attachment: fixed;
  color: var(--white);
}

body.portfolio-page.dark-theme .testimonials h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

body.portfolio-page.dark-theme .testimonial {
  background: linear-gradient(rgba(22, 62, 114, 0.9), rgba(22, 62, 114, 0.9)),
    url("../images/background.png") center/cover;
  border-radius: 36px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.portfolio-page.dark-theme .testimonial .quote {
  color: rgba(255, 255, 255, 0.9);
}

body.portfolio-page.dark-theme .testimonial .client-name {
  color: var(--white);
}

body.portfolio-page.dark-theme .testimonial .client-position {
  color: rgba(255, 255, 255, 0.7);
}

/* Portfolio CTA section with dark theme */
body.portfolio-page.dark-theme .portfolio-cta {
  background: var(--primary-color);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

body.portfolio-page.dark-theme .portfolio-cta h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

body.portfolio-page.dark-theme .portfolio-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

body.portfolio-page.dark-theme .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer adjustments for portfolio page */
body.portfolio-page.dark-theme footer {
  background: var(--text-dark);
  color: var(--white);
}

body.portfolio-page.dark-theme footer h3 {
  color: var(--white);
}

body.portfolio-page.dark-theme footer p {
  color: rgba(255, 255, 255, 0.8);
}

body.portfolio-page.dark-theme footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

body.portfolio-page.dark-theme footer a:hover {
  color: var(--white);
}

/* Responsive adjustments for portfolio dark theme */
@media (max-width: 768px) {
  body.portfolio-page.dark-theme .portfolio-intro {
    padding: 3rem 0;
  }

  body.portfolio-page.dark-theme .portfolio-intro h2 {
    font-size: 2rem;
  }

  body.portfolio-page.dark-theme .portfolio-cta {
    padding: 4rem 0;
  }

  body.portfolio-page.dark-theme .portfolio-cta h2 {
    font-size: 2rem;
  }

  body.portfolio-page.dark-theme .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  body.portfolio-page.dark-theme .cta-buttons .btn {
    width: 80%;
    max-width: 300px;
  }
}
