/* Root variables */
:root {
  --primary-color: var(--primary-color, #3498db);
  --secondary-color: #f39c12;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --text-dark: #333333;
  --footer-bg: #2c3e50;
  --footer-text: #ecf0f1;
  --border-color: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --transition-normal: 0.3s ease;
  --card-bg: #ffffff;
  --section-spacing: 60px;
  --header-scroll-bg: #2c3e50; /* Dark blue for sticky header */
  --header-scroll-text: #ffffff; /* White text for sticky header */
}

/* Base styles and resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  scroll-behavior: smooth; /* Smooth scrolling for entire page */
}

/* Main Header */
#main-header {
  background-color: #2c3e50; /* Header background color */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* Services Sticky Header */
.services-header {
  position: sticky;
  top: 0; /* Stick to the very top when scrolled */
  background-color: var(--header-scroll-bg); /* Use the same color as sticky header */
  box-shadow: 0 2px 8px var(--shadow-light);
  z-index: 999;
  padding: 0;
  transition: background-color 0.3s ease;
}

.services-header .service-link {
  color: var(--header-scroll-text); /* Set text color to white */
}

/* Sticky class for services header */
.services-header.sticky {
top: 0; /* Stick to the very top when scrolled */
background-color: var(--header-scroll-bg);
}

.services-header.sticky .service-link {
 color: var(--header-scroll-text);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Disable sticky header for mobile view */
@media (max-width: 768px) {
  .services-header {
      display: none; /* Hide services header for mobile view */
  }
  .digital-strategy {
      padding: 40px 0; /* Adjust padding for mobile view */
      background-size: contain; /* Ensure background image fits within the viewport */
  }
  .digital-strategy-text h1 {
      font-size: 2rem; /* Adjust font size for mobile view */
      white-space: normal; /* Allow text to wrap */
  }
  .digital-strategy-text p {
      font-size: 1rem; /* Adjust font size for mobile view */
  }
  .service-link {
      display: block; /* Ensure links are block elements for better touch targets */
      padding: 10px 0; /* Adjust padding for better touch targets */
  }
  .outcomes-services {
      flex-direction: column; /* Align outcomes and services one by one */
  }
}

.service-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 15px 10px;
  transition: all var(--transition-normal);
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.service-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.service-link:hover {
  color: var(--secondary-color);
}

.service-link:hover:after,
.service-link.active:after {
  width: 70%;
}

.service-link.active {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Digital Strategy Hero Section */
.digital-strategy {
  width: 100%;
  background-color: #fff;
  padding: 80px 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url('../../assests/data_analytics.png');
  background-size: cover;
  background-position: center;
}

.digital-strategy-content {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
}

.digital-strategy-text {
  flex: 1;
  max-width: 700px;
}

.digital-strategy-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #2c3e50; /* Set font color to #2c3e50 */
  white-space: nowrap; /* Ensure the title appears in a single line */
}

.digital-strategy-text h1 span {
  color: #2c3e50;
}

.digital-strategy-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Content Wrapper */
.content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Section Cards */
.section-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--section-spacing);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.container {
  padding: 30px;
}

.container h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  position: relative;
  padding-bottom: 0.5rem;
}

.container h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
}

.section-content {
  margin-top: 20px;
}

.section-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Outcomes and Services */
.outcomes-services {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.outcomes, .services {
  flex: 1;
  background-color: rgba(248, 249, 250, 0.7);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.outcomes h3, .services h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
}

.outcomes ul, .services ul {
  list-style-type: none;
  padding: 0;
}

.outcomes ul li, .services ul li {
  font-size: 1rem;
  line-height: 1.5;
  color: var (--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.outcomes ul li i, .services ul li i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 1.1rem;
  transform: translateY(2px);
}

/* Differentiator cards */
.diff-card {
  background-color: rgba(248, 249, 250, 0.7);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-color);
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  padding: 50px 0 20px;
  color: var(--footer-text);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  margin-bottom: 30px;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  /* Remove cursor pointer and transition for hover effect */
  cursor: default;
  transition: none;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  font-size: 1rem;
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--footer-text);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Rounded icons */
  }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--footer-text);
}

/* Style for Digital Strategy & Transformation text */
.digital-strategy-text h1 {
color: #2c3e50; /* Set font color to #2c3e50 */
}

/* Style for all headings */
h2, h3, .footer-column h4 {
color: #2c3e50; /* Set font color to #2c3e50 */
cursor: pointer; /* Make headings look clickable */
transition: color 0.3s ease; /* Smooth transition for color change */
}

/* Change heading color on click */
h2:active, h3:active, .footer-column h4:active {
color: #f39c12;
}

/* Color for symbols/icons */
.outcomes ul li i, .services ul li i {
color: #f39c12;
}

@media (max-width: 767px) {
  .digital-strategy-text h1 {
      font-size: 2.5rem; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 486px) {
  .digital-strategy-text h1 {
      font-size: 2rem; /* Further adjust font size for very small screens */
  }
}

.back-button {
  padding: 10px 20px;
  background-color: var(--footer-bg); /* Change to footer background color */
  color: var(--footer-text); /* Change to footer text color */
  text-align: center;
  margin: 20px 0;
  display: inline-block;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--secondary-color); /* Add yellow border */
  transition: background-color var(--transition-normal);
}

.back-button a {
  color: var(--footer-text); /* Change to footer text color */
  text-decoration: none;
}

/* Remove hover effect */
.back-button:hover {
  background-color: var(--footer-bg); /* Keep the same color */
}

/* Remove hover effect on headings in footer */
.footer-column h4:hover {
  color: var(--secondary-color); /* Keep the same color */
}
