@charset "UTF-8";

/*--------------------------------------------------------------
# Font & Color Variables (Strict 3-Color Palette)
--------------------------------------------------------------*/
:root {
  --default-font: "Poppins", "Roboto", system-ui, -apple-system, sans-serif;
  --heading-font: "Poppins", "Nunito", sans-serif;
  --nav-font: "Poppins", "Ubuntu", sans-serif;

  /* 3-COLOR PALETTE - LIGHT MODE */
  --background-color: #ffffff;      /* White */
  --surface-color: #ffffff;         /* White */
  --accent-color: #800020;          /* Maroon */
  --heading-color: #111111;         /* Black */
  --default-color: #333333;         /* Dark Neutral Gray */
  --contrast-color: #ffffff;        /* White */
  --border-color: #eeeeee;
  --card-shadow: rgba(0, 0, 0, 0.06);
}

.light-background {
  --background-color: #ffffff;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --heading-color: #ffffff;
  --default-color: #ffffff;
}

/* 3-COLOR PALETTE - DARK MODE */
body.dark-mode {
  --background-color: #121212;      /* Deep Black */
  --surface-color: #1e1e1e;         /* Dark Card Background */
  --accent-color: #800020;          /* Maroon */
  --heading-color: #ffffff;         /* White */
  --default-color: #e0e0e0;         /* Soft Off-White */
  --contrast-color: #ffffff;        /* White */
  --border-color: rgba(255, 255, 255, 0.12);
  --card-shadow: rgba(0, 0, 0, 0.4);
}

/* Smooth Scrolling */
html, :root {
  scroll-behavior: smooth;
}

/* Global Container Scaling */
.container,
.container-fluid {
  width: 100% !important;
  max-width: 92vw !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/*--------------------------------------------------------------
# General Styling & Typography
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #600018;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font) !important;
}

/*--------------------------------------------------------------
# Global Header & Header Actions
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 12px 0;
  transition: all 0.5s ease-in-out;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header.scrolled,
body.scrolled .header {
  background: var(--surface-color) !important;
  box-shadow: 0px 4px 20px var(--card-shadow) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.header .cta-btn {
  color: var(--contrast-color) !important;
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 26px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .cta-btn:hover {
  background: #600018;
}

/* DARK MODE TOGGLE BUTTON - MAROON ALWAYS */
.darkmode-toggle-btn,
.header.scrolled .darkmode-toggle-btn,
body.dark-mode .darkmode-toggle-btn,
body.dark-mode .header.scrolled .darkmode-toggle-btn {
  background: transparent !important;
  border: none !important;
  color: #800020 !important;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
}

.darkmode-toggle-btn:hover {
  transform: scale(1.15);
}

/*--------------------------------------------------------------
# Navigation Styles
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
  }

  .navmenu a {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
  }

  .scrolled .navmenu a {
    color: var(--heading-color) !important;
  }

  body.dark-mode .navmenu a,
  body.dark-mode .scrolled .navmenu a,
  body.dark-mode.scrolled .header .navmenu a {
    color: #ffffff !important;
  }

  .navmenu a:hover,
  .navmenu .active,
  body.dark-mode .navmenu a:hover,
  body.dark-mode .navmenu .active {
    color: var(--accent-color) !important;
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--heading-color) !important;
    font-size: 28px;
    cursor: pointer;
  }

  .navmenu ul {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
  }

  .navmenu a {
    color: var(--heading-color) !important;
  }

  body.dark-mode .navmenu a {
    color: #ffffff !important;
  }
}

/*--------------------------------------------------------------
# Main Section Titles (Full Width Description Alignment)
--------------------------------------------------------------*/
.section-title {
  text-align: left;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%; /* Ensures section title wrapper takes full container width */
}

.section-title span {
  display: block !important;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title h2 {
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent-color) !important;
  margin: 0;
}

/* Let the description span in one long line across the container */
.section-title p {
  color: var(--default-color);
  opacity: 0.85;
  font-size: clamp(14px, 1vw, 16px);
  margin-top: 12px;
  width: 100% !important;
  max-width: 100% !important; /* Removes narrow inline line-wrapping restrictions */
  white-space: normal;
}
/*--------------------------------------------------------------
# Hero Page Title Section (Full Screen & Clear Right Side)
--------------------------------------------------------------*/
.page-title-team {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Adapts cleanly to mobile viewport URL bars */
  display: flex;
  align-items: center;
  padding: 120px 0 60px 0; /* Top padding accommodates the fixed navbar */
  background-size: cover;
  background-position: center right;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  transition: background-image 0.8s ease-in-out;
}

/* Hero Background Overlays (Fades to completely transparent on the right) */
.page-title-team::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Dark overlay covers left side for text, completely transparent on right side */
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.70) 40%, rgba(18, 18, 18, 0) 70%);
  z-index: 1;
}

body.dark-mode .page-title-team::before {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.80) 45%, rgba(10, 10, 10, 0) 75%);
}

.page-title-team .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Large Desktop Container Position */
.page-title-team-content {
  max-width: 850px;
  padding-left: 10%;
  text-align: left;
}

/* Accent Kicker / Badge */
.hero-tag {
  display: inline-block;
  color: #ffffff;
  background-color: #800020;/* Deep Maroon */
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  padding: 10px 24px;
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Main Hero Heading */
.hero-title {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff !important;
  margin-bottom: 24px;
  letter-spacing: -1px;
  border-bottom: none !important;
}

/* Accent Word Highlight inside Title */
.hero-title .highlight-text {
  color: #d62839 !important;
  position: relative;
  display: inline-block;
  text-shadow: none !important;
}

body.dark-mode .hero-title .highlight-text {
  color: #e63946 !important;
}

/* Justified Elaboration Paragraph */
.hero-subtitle {
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.7;
  color: #e2e8f0 !important;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 28px;
  max-width: 100%;
}

body.dark-mode .hero-subtitle {
  color: #cccccc !important;
}

/* Accent Divider Bar */
.hero-divider {
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, #800020 0%, #ffffff 100%);
  border-radius: 3px;
}

/*--------------------------------------------------------------
# LAPTOP & MEDIUM DESKTOP BREAKPOINT (1024px to 1440px)
--------------------------------------------------------------*/
@media (max-width: 1440px) {
  .page-title-team {
    padding: 100px 0 40px 0;
  }

  .page-title-team-content {
    max-width: 620px;
    padding-left: 6%;
  }

  .hero-tag {
    font-size: 13px;
    letter-spacing: 2.5px;
    padding: 6px 18px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(38px, 4.2vw, 52px);
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-divider {
    width: 100px;
    height: 4px;
  }
}

/*--------------------------------------------------------------
# TABLET & MOBILE RESPONSIVE LAYOUT (< 991px)
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .page-title-team-content {
    max-width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .page-title-team {
    background-position: center center !important;
    padding: 100px 20px 40px 20px;
  }

  /* Solid overlay for mobile screens so text remains readable over centered subject */
  .page-title-team::before {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.90) 0%, rgba(18, 18, 18, 0.75) 100%);
  }

  .hero-subtitle {
    text-align: left;
  }

  .hero-divider {
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# LAPTOP & MEDIUM DESKTOP BREAKPOINT (1024px to 1440px)
--------------------------------------------------------------*/
@media (max-width: 1440px) {
  .page-title {
    padding: 160px 0 100px 0; /* Reduced top/bottom padding for laptops */
  }

  .page-title-content {
    max-width: 620px;          /* Tightened container width to avoid photo collision */
    padding-left: 6%;          /* Reduced offset for smaller horizontal room */
  }

  .hero-tag {
    font-size: 13px;
    letter-spacing: 2.5px;
    padding: 6px 18px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(40px, 4.2vw, 54px); /* Scaled down heading range */
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: clamp(15px, 1.1vw, 17px); /* Scaled down body text */
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-divider {
    width: 100px;
    height: 4px;
  }
}

/*--------------------------------------------------------------
# TABLET & MOBILE RESPONSIVE LAYOUT (< 991px)
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .page-title-content {
    max-width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .page-title {
    background-position: center center !important;
    padding: 140px 0 80px 0;
  }

  .hero-subtitle {
    text-align: left; /* Avoids wide gaps on narrow screens */
  }

  .hero-divider {
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# About 6 Section
--------------------------------------------------------------*/
.about-6 .experience-badge {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.about-6 .experience-badge .number {
  font-size: 32px;
  font-weight: 800;
  display: block;
}

.about-6 .section-badge {
  background-color: var(--surface-color);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.about-6 .main-heading .highlight {
  color: var(--accent-color);
}

.about-6 .timeline-marker {
  background-color: var(--accent-color);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-6 .cta-btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  padding: 12px 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

/*--------------------------------------------------------------
# Team Management Section (Cleaned Card Titles & Chevron Toggle)
--------------------------------------------------------------*/
.team .member {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--card-shadow);
  border: 1px solid var(--border-color);
  width: 100%;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .team .member {
  background-color: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.team .member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--card-shadow);
}

.team .member .member-img {
  width: 100%;
  background-color: #2b2c2e;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.team .member .member-img img {
  width: 100%;
  height: auto;
  display: block;
}

.team .member .member-content {
  padding: 24px 20px;
  text-align: center;
}

.team .member .member-content h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
  border-bottom: none !important;
}

.team .member .role-title {
  font-size: 0.95rem;
  color: var(--default-color);
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 16px;
}

.team .member .view-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 15px;
  transition: color 0.2s ease;
}

.team .member .view-profile-toggle:hover {
  color: #600018;
}

.team .member .view-profile-toggle .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  transform: rotate(0deg);
}

/* Rotate chevron 180 deg when profile details box is expanded */
.team .member .view-profile-toggle[aria-expanded="true"] .toggle-icon,
.team .member .view-profile-toggle:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}

.team .member .profile-details-collapse {
  width: 100%;
}

.team .member .profile-details-box {
  background-color: #fafafa;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  padding: 18px 16px;
  margin-top: 5px;
}

body.dark-mode .team .member .profile-details-box {
  background-color: #252525 !important;
  border: 1px dashed #800020 !important;
}

.team .member .profile-section {
  margin-bottom: 14px;
}

.team .member .profile-section:last-child {
  margin-bottom: 0;
}

.team .member .profile-section h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color) !important;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  border-bottom: none !important;
}

.team .member .profile-section p {
  font-size: 0.85rem;
  color: var(--default-color) !important;
  line-height: 1.6;
  margin-bottom: 0;
}

.team .member .profile-section ul {
  padding-left: 16px;
  margin-bottom: 0;
}

.team .member .profile-section ul li {
  font-size: 0.85rem;
  color: var(--default-color) !important;
  line-height: 1.5;
  margin-bottom: 6px;
}
/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/

.projects .service-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 5px 20px var(--card-shadow);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  height: 100%;

  display: flex;
  flex-direction: column;
}

.projects .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px var(--card-shadow);
}

/*--------------------------------------------------------------
# Project Image
--------------------------------------------------------------*/

.projects .service-image {
  width: 100%;
  height: 230px;

  overflow: hidden;
  background: #f3f3f3;

  flex-shrink: 0;
}

.projects .service-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  transition: transform 0.5s ease;
}

.projects .service-card:hover .service-image img {
  transform: scale(1.04);
}

/*--------------------------------------------------------------
# Project Content
--------------------------------------------------------------*/

.projects .service-content {
  padding: 26px 26px 28px;

  display: flex;
  flex-direction: column;

  flex: 1;
}

/*--------------------------------------------------------------
# Project Title
--------------------------------------------------------------*/

.projects .service-content h3 {
  color: var(--heading-color);

  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;

  margin: 0 0 14px;
  padding: 0;

  border: none !important;
}

/*--------------------------------------------------------------
# Project Description
--------------------------------------------------------------*/

.projects .service-content p {
  color: var(--default-color);
  opacity: 0.9;

  font-size: 16px;
  line-height: 1.75;

  margin: 0;
  padding: 0;

  text-align: justify;
  text-justify: inter-word;
}

/*--------------------------------------------------------------
# Equal Card Height
--------------------------------------------------------------*/

.projects .row {
  display: flex;
  flex-wrap: wrap;
}

.projects .row > [class*="col-"] {
  display: flex;
}

.projects .row > [class*="col-"] .service-card {
  width: 100%;
}

/*--------------------------------------------------------------
# Tablet
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .projects .service-image {
    height: 220px;
  }

  .projects .service-content {
    padding: 23px;
  }

  .projects .service-content h3 {
    font-size: 20px;
    line-height: 1.35;

    margin-bottom: 14px;
  }

  .projects .service-content p {
    font-size: 15.5px;
    line-height: 1.7;
  }

}

/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 767px) {

  .projects .service-image {
    height: 220px;
  }

  .projects .service-content {
    padding: 22px;
  }

  .projects .service-content h3 {
    font-size: 20px;
    line-height: 1.4;

    margin-bottom: 14px;
  }

  .projects .service-content p {
    font-size: 15px;
    line-height: 1.7;

    text-align: justify;
  }

}

/*--------------------------------------------------------------
# Small Mobile
--------------------------------------------------------------*/

@media (max-width: 480px) {

  .projects .service-image {
    height: 200px;
  }

  .projects .service-content {
    padding: 20px;
  }

  .projects .service-content h3 {
    font-size: 19px;
    line-height: 1.4;

    margin-bottom: 12px;
  }

  .projects .service-content p {
    font-size: 15px;
    line-height: 1.65;
  }

}
/*--------------------------------------------------------------
# Milestones Timeline Section
--------------------------------------------------------------*/
.milestone-section {
  padding: 80px 0;
  background: var(--background-color);
  width: 100%;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 32px);
}

.timeline-line {
  position: absolute;
  top: 25px;
  left: 4%;
  width: 92%;
  height: 4px;
  background: var(--accent-color);
  border-radius: 20px;
  z-index: 1;
}

.milestone {
  position: relative;
  flex: 1;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.circle {
  width: clamp(50px, 3.5vw, 70px);
  height: clamp(50px, 3.5vw, 70px);
  margin: auto;
  border-radius: 50%;
  background: var(--surface-color);
  border: 4px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 20px);
  color: var(--heading-color);
  transition: .4s;
}

.card {
  margin-top: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: clamp(18px, 1.5vw, 32px) clamp(14px, 1.2vw, 24px);
  box-shadow: 0 10px 25px var(--card-shadow);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: translateX(-50%) rotate(45deg);
}

.year {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 30px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 600;
  margin-bottom: 10px;
}

.card h3 {
  color: var(--heading-color);
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 700;
  border-bottom: none !important; /* Underline Removed */
  margin-bottom: 8px;
}

.card p {
  color: var(--default-color);
  opacity: 0.9;
  font-size: clamp(13px, 1vw, 16px);
  margin: 0;
}

.active .circle {
  background: var(--accent-color);
  color: #ffffff;
}

@media(max-width: 1024px) {
  .timeline {
    flex-direction: column;
    gap: 16px;
  }

  .timeline-line {
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 4px;
    height: auto;
  }

  .milestone {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .circle {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .card {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .card::before {
    top: 50%;
    left: -8px;
    transform: translateY(-50%) rotate(45deg);
  }
}
/*--------------------------------------------------------------
# Clients Section (Single Line - No Scrollbar)
--------------------------------------------------------------*/
/* Light Mode (Pure White Background) */
#clients.clients,
.clients.light-background {
  background-color: #ffffff !important;
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

/* Flex Container Forced into 1 Line Without Scrollbar */
.clients-grid {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: center; /* Center aligns all logos evenly */
  align-items: center;
  gap: 30px; /* Clean gap between logos */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden !important; /* Removes the scrollbar completely */
  padding: 10px 0;
}

/* Logo Dimensions */
.clients .client-logo img {
  filter: none !important;
  opacity: 1 !important;
  max-height: 55px !important;
  max-width: 160px !important;
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
  flex-shrink: 1; /* Allows micro-adjustments so scrollbars never trigger */
}

.clients .client-logo:hover img {
  transform: scale(1.08);
}

/* Dark Mode: Ultra-Dark Maroon Tint */
body.dark-mode #clients.clients,
body.dark-mode .clients.light-background {
  background-color: #1a0a0f !important;
  border-top: 1px solid rgba(128, 0, 32, 0.4) !important;
  border-bottom: 1px solid rgba(128, 0, 32, 0.4) !important;
}

body.dark-mode .clients .client-logo img {
  filter: none !important;
}
/*--------------------------------------------------------------
# Footer Section
--------------------------------------------------------------*/
#footer.footer {
  background-color: var(--surface-color) !important;
  color: var(--default-color) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 80px 0 0 0 !important;
}

.footer h4 {
  color: var(--accent-color) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  border-bottom: none !important;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 6px 0;
}

.footer .footer-links ul li a {
  color: var(--default-color) !important;
  font-size: 14px !important;
  transition: color 0.3s ease;
}

.footer .footer-links ul li a:hover {
  color: var(--accent-color) !important;
}

.footer .social-pill-link {
  background: var(--background-color) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--default-color) !important;
  border-radius: 50px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer .social-pill-link:hover {
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

.footer .footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  background: var(--background-color);
}

.footer .footer-bottom p,
.footer .footer-bottom a {
  color: var(--default-color) !important;
  font-size: 13px !important;
  opacity: 0.8;
}

/*--------------------------------------------------------------
# Scroll Top & Floating Chat Buttons
--------------------------------------------------------------*/
.scroll-top,
.floating-chat-box {
  position: fixed !important;
  bottom: 28px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  transition: transform 0.3s ease;
}

.scroll-top {
  right: 20px !important;
}

.floating-chat-box {
  right: 74px !important;
}

.scroll-top:hover,
.floating-chat-box:hover {
  transform: translateY(-3px) scale(1.05);
}
/*--------------------------------------------------------------
# Colorful Stepped Roadmap Section (Per-Pin Custom Placement)
--------------------------------------------------------------*/
.roadmap-flow-section {
  padding: 80px 0 120px 0;
  background-color: var(--background-color);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.roadmap-flow-container {
  position: relative;
  width: 100%;
  height: 550px;
  margin-top: 18px;
  transform-origin: top left; /* Keeps alignment anchored from the left */
  transition: transform 0.3s ease;
}

/* ==========================================================================
   AUTO-SCALE FOR BIGGER SCREENS (MAINTAINS EXACT PIN ALIGNMENT & EXPANDS WIDE)
   ========================================================================== */

/* 1440p & Desktop Displays */
@media (min-width: 1400px) {
  .roadmap-flow-container {
    transform: scale(1.18);
    width: 84.7%; /* Offsets container width to fit scaled boundary */
    margin-bottom: 100px;
  }
}

/* Ultra-Wide & 4K Displays */
@media (min-width: 1800px) {
  .roadmap-flow-container {
    transform: scale(1.38);
    width: 72.4%; /* Offsets container width to fit scaled boundary */
    margin-bottom: 200px;
  }
}

/* Multi-Color Gradient Arrow Bar */
.roadmap-flow-arrow {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 98%;
  height: 18px;
  background: linear-gradient(90deg, #FF5722 0%, #E91E63 25%, #7CB342 50%, #FFB300 75%, #00ACC1 100%);
  border-radius: 12px;
  transform: rotate(-10deg);
  transform-origin: left bottom;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.roadmap-flow-arrow .arrow-head {
  position: absolute;
  right: -14px;
  top: -8px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 24px solid #00ACC1;
}

/* Common Step Item Base Styling */
.roadmap-flow-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  width: 19%;
  transition: transform 0.3s ease;
}

.roadmap-flow-item:hover {
  transform: translateY(-8px) !important;
}

/* ==========================================================================
   INDIVIDUAL CUSTOM STEP & PIN PLACEMENTS (100% UNTOUCHED FOR LAPTOP)
   ========================================================================== */

/* STEP 1 (2003 - Coral Orange) */
.roadmap-flow-item.step-1 {
  --step-color: #FF5722;
  left: 1%;
  bottom: 100px;
}
.roadmap-flow-item.step-1 .roadmap-pointer-line {
  height: 35px;
}
.roadmap-flow-item.step-1 .roadmap-node-dot {
  margin-bottom: 5px; /* Adjust pin offset up/down */
}

/* STEP 2 (2008 - Vivid Pink) */
.roadmap-flow-item.step-2 {
  --step-color: #E91E63;
  left: 20%;
  bottom: 155px;
}
.roadmap-flow-item.step-2 .roadmap-pointer-line {
  height: 35px;
}
.roadmap-flow-item.step-2 .roadmap-node-dot {
  margin-bottom: -10px; /* Adjust pin offset up/down */
}

/* STEP 3 (2013 - Lime Green) */
.roadmap-flow-item.step-3 {
  --step-color: #7CB342;
  left: 39%;
  bottom: 210px;
}
.roadmap-flow-item.step-3 .roadmap-pointer-line {
  height: 35px;
}
.roadmap-flow-item.step-3 .roadmap-node-dot {
  margin-bottom: -25px; /* Adjust pin offset up/down */
}

/* STEP 4 (2018 - Warm Amber) */
.roadmap-flow-item.step-4 {
  --step-color: #FFB300;
  left: 58%;
  bottom: 265px;
}
.roadmap-flow-item.step-4 .roadmap-pointer-line {
  height: 35px;
}
.roadmap-flow-item.step-4 .roadmap-node-dot {
  margin-bottom: -40px; /* Adjust pin offset up/down */
}

/* STEP 5 (2026 - Electric Cyan) */
.roadmap-flow-item.step-5 {
  --step-color: #00ACC1;
  left: 77%;
  bottom: 320px;
}
.roadmap-flow-item.step-5 .roadmap-pointer-line {
  height: 35px;
}
.roadmap-flow-item.step-5 .roadmap-node-dot {
  margin-bottom: -58px; /* Adjust pin offset up/down */
}

/* ==========================================================================
   CARD & ICON ELEMENTS
   ========================================================================== */

/* Card Box */
.roadmap-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--step-color);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  width: 90%;
  box-shadow: 0 8px 24px var(--card-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.roadmap-year {
  display: inline-block;
  background-color: var(--step-color);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.roadmap-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
  border-bottom: none !important;
}

.roadmap-box p {
  font-size: 0.82rem;
  color: var(--default-color);
  opacity: 0.88;
  line-height: 1.45;
  margin: 0;
}

/* Connector Pointer Line Base */
.roadmap-pointer-line {
  width: 3px;
  background-color: var(--step-color);
}

/* Pin / Node Circle Base Styling */
.roadmap-node-dot {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 4px solid var(--step-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 3;
}

/* Dark Mode Fine Tuning */
body.dark-mode .roadmap-box {
  background-color: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-top: 3px solid var(--step-color) !important;
}

body.dark-mode .roadmap-node-dot {
  background-color: #121212 !important;
}

/* Responsive Mobile Layout */
@media (max-width: 991px) {
  .roadmap-flow-container {
    height: auto;
    min-height: auto;
    transform: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .roadmap-flow-arrow,
  .roadmap-pointer-line,
  .roadmap-node-dot {
    display: none;
  }

  .roadmap-flow-item {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
  }

  .roadmap-box {
    text-align: left;
  }
}
/* ==========================================================================
   AUTO-SCALE FOR BIGGER SCREENS WITH PIN REALIGNMENT
   ========================================================================== */

/* 1440p & Wide Desktop Displays */
@media (min-width: 1400px) {
  .roadmap-flow-container {
    transform: scale(1.35) !important;
    transform-origin: top center !important;
    width: 74% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 220px !important;
  }

  /* Fine-tune node pins to sit directly on the arrow center at 1.35x scale */
  .roadmap-flow-item.step-1 .roadmap-node-dot { margin-bottom: 2px !important; }
  .roadmap-flow-item.step-2 .roadmap-node-dot { margin-bottom: -12px !important; }
  .roadmap-flow-item.step-3 .roadmap-node-dot { margin-bottom: -28px !important; }
  .roadmap-flow-item.step-4 .roadmap-node-dot { margin-bottom: -44px !important; }
  .roadmap-flow-item.step-5 .roadmap-node-dot { margin-bottom: -62px !important; }
}

/* Ultra-Wide & 4K Displays */
@media (min-width: 1800px) {
  .roadmap-flow-container {
    transform: scale(1.65) !important;
    transform-origin: top center !important;
    width: 60% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 360px !important;
  }

  /* Fine-tune node pins to sit directly on the arrow center at 1.65x scale */
  .roadmap-flow-item.step-1 .roadmap-node-dot { margin-bottom: 0px !important; }
  .roadmap-flow-item.step-2 .roadmap-node-dot { margin-bottom: -15px !important; }
  .roadmap-flow-item.step-3 .roadmap-node-dot { margin-bottom: -32px !important; }
  .roadmap-flow-item.step-4 .roadmap-node-dot { margin-bottom: -50px !important; }
  .roadmap-flow-item.step-5 .roadmap-node-dot { margin-bottom: -70px !important; }
}

/* ==========================================================================
   MOBILE REFINEMENT PATCH — Team Management page
   Appended overrides only; existing desktop styling remains unchanged.
   ========================================================================== */

/* Prevent horizontal overflow and give mobile content a consistent gutter. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 767px) {
  .container,
  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    margin-bottom: 26px;
    gap: 8px;
  }

  .section-title h2 {
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.2;
    padding-bottom: 7px;
  }

  .section-title p {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 4px;
  }

  /* Header: compact logo and actions without squeezing the mobile menu. */
  #header.header {
    padding: 8px 0;
  }

  #header.header > .container {
    gap: 8px;
  }

  #header .logo {
    min-width: 0;
    margin-right: auto !important;
  }

  #header .logo img {
    width: 88px !important;
    max-width: 88px;
    height: auto;
  }

  #header .header-actions {
    gap: 7px !important;
    flex-shrink: 0;
  }

  #header .darkmode-toggle-btn {
    font-size: 1.1rem;
    padding: 6px;
  }

  #header .cta-btn {
    font-size: 12px;
    line-height: 1.2;
    padding: 9px 12px;
    white-space: nowrap;
  }

  #nav-container {
    min-width: 0;
  }

  .mobile-nav-toggle {
    font-size: 25px !important;
  }

  /* Hero: avoid a full-screen, oversized text block on phones. */
  .page-title-team {
    min-height: auto;
    min-height: 82svh;
    padding: 112px 0 52px !important;
    background-position: 58% center !important;
    align-items: center;
  }

  .page-title-team .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page-title-team-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-tag {
    font-size: 10px;
    letter-spacing: 1.7px;
    line-height: 1.4;
    padding: 7px 11px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: left;
    text-wrap: pretty;
  }

  .hero-divider {
    width: 76px;
    height: 4px;
    margin-left: 0;
  }

  /* About: stack image and copy with no oversized badge overlap. */
  #about-6 .row {
    --bs-gutter-y: 1.75rem;
  }

  #about-6 .image-wrapper {
    max-width: 100%;
  }

  #about-6 .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  #about-6 .experience-badge {
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 155px;
  }

  #about-6 .experience-badge .number {
    font-size: 25px;
    line-height: 1.1;
  }

  #about-6 .experience-badge .text {
    font-size: 11px;
    line-height: 1.35;
  }

  #about-6 .content-wrapper {
    width: 100%;
  }

  #about-6 .main-heading {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  #about-6 .intro-text,
  #about-6 .timeline-content p {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }

  #about-6 .timeline-item {
    gap: 12px;
    align-items: flex-start;
  }

  #about-6 .timeline-marker {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  #about-6 .timeline-content h4 {
    font-size: 16px;
    line-height: 1.35;
  }

  #about-6 .cta-btn {
    padding: 11px 19px;
    font-size: 14px;
  }

  /* Team profiles: readable names, full-width cards, comfortable tap targets. */
  .team .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.25rem;
  }

  .team .member {
    border-radius: 15px;
    margin-bottom: 14px;
  }

  .team .member .member-img img {
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: cover;
    object-position: center top;
  }

  .team .member .member-content {
    padding: 20px 16px;
  }

  .team .member .member-content h4 {
    font-size: 1.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .team .member .role-title {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }

  .team .member .view-profile-toggle {
    min-height: 42px;
    padding: 9px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
  }

  .team .member .profile-details-box {
    padding: 15px 13px;
    overflow-wrap: anywhere;
  }

  .team .member .profile-section h5 {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .team .member .profile-section p,
  .team .member .profile-section ul li {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Projects: use a compact image/content ratio and avoid justified text gaps. */
  .projects .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .projects .service-card {
    border-radius: 13px;
  }

  .projects .service-image {
    height: clamp(170px, 54vw, 230px);
  }

  .projects .service-content {
    padding: 18px 16px 20px;
  }

  .projects .service-content h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .projects .service-content p {
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: anywhere;
  }

  /* Milestones: keep the existing vertical timeline readable on narrow screens. */
  .milestone-section {
    padding: 48px 0;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }

  .timeline-line {
    top: 18px;
    bottom: 18px;
    left: 21px;
    width: 3px;
    height: auto;
  }

  .milestone {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    text-align: left;
    align-items: start;
  }

  .milestone .circle {
    width: 44px;
    height: 44px;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 13px;
    border-width: 3px;
  }

  .milestone .card {
    min-width: 0;
    margin: 0;
    padding: 17px 15px;
    align-items: flex-start;
    text-align: left;
  }

  .milestone .card::before {
    top: 16px;
    left: -7px;
    transform: rotate(-45deg);
  }

  .milestone .card h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .milestone .card p {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Client logos: wrap instead of shrinking seven logos into one unreadable row. */
  #clients.clients,
  .clients.light-background {
    padding: 38px 0;
  }

  .clients-grid {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 20px 22px;
    overflow: visible !important;
    padding: 8px 0;
  }

  .clients .client-logo {
    flex: 0 1 calc(33.333% - 18px);
    min-width: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .clients .client-logo img {
    max-width: 100% !important;
    max-height: 42px !important;
    object-fit: contain;
  }

  /* Footer spacing and floating actions should not cover content. */
  #footer.footer {
    padding-top: 48px !important;
  }

  .footer .footer-bottom {
    margin-top: 28px;
    padding: 16px 0;
  }

  .footer .footer-bottom p,
  .footer .footer-bottom a {
    font-size: 12px !important;
    line-height: 1.6;
  }

  .scroll-top,
  .floating-chat-box {
    width: 42px !important;
    height: 42px !important;
    bottom: 16px !important;
  }

  .scroll-top {
    right: 14px !important;
  }

  .floating-chat-box {
    right: 64px !important;
  }

  /* Roadmap: remove desktop-scale transforms and allow the section to flow. */
  .roadmap-flow-section {
    padding: 48px 0 60px;
  }

  .roadmap-flow-container {
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    margin: 18px 0 0;
  }
}

/* Extra-small phones */
@media (max-width: 390px) {
  #header .logo img {
    width: 76px !important;
    max-width: 76px;
  }

  #header .header-actions {
    gap: 3px !important;
  }

  #header .cta-btn {
    font-size: 11px;
    padding: 8px 9px;
  }

  .page-title-team {
    min-height: auto;
    padding-top: 104px !important;
    padding-bottom: 42px !important;
  }

  .hero-title {
    font-size: clamp(33px, 9.5vw, 39px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .clients .client-logo {
    flex-basis: calc(50% - 16px);
  }
}

/* Respect reduced-motion preferences on mobile and desktop. */
@media (prefers-reduced-motion: reduce) {
  html,
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
