:root {
  --primary: #2563eb;          /* Bright blue */
  --primary-dark: #1d4ed8;     /* Darker blue */
  --dark-bg: #ffffff;          /* White background */
  --darker-bg: #f8fafc;        /* Very light blue-gray */
  --card-bg: #ffffff;          /* White cards */
  --text-light: #1e293b;       /* Dark blue-gray text */
  --text-muted: #64748b;       /* Medium gray */
  --border-color: #e2e8f0;     /* Light gray border */
  --input-bg: #ffffff;         /* White inputs */
  --input-text: #1e293b;       /* Dark text */
  --input-placeholder: #94a3b8; /* Light gray placeholder */
  --input-border: #e2e8f0;     /* Light gray border */
  --input-focus-border: #2563eb; /* Blue focus */
  --bs-secondary: #64748b;     /* Secondary */
}


/* Add this to your styles.css file to override the existing navbar styles */
.navbar-dark {
  background-color: #ffffff !important;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
  color: #1e293b !important;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 5px;
}

.navbar-dark .navbar-toggler {
  border-color: #1e293b;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}




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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 95px;
  color: var(--text-light);
  background-color: var(--dark-bg);
}

@media (max-width: 991px) {
  body {
    padding-top: 85px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 80px;
  }
}

/* Remove all overflow properties from main containers */
.container, 
.row, 
section,
.card,
.card-body {
  overflow: visible !important;
}

/* Reset any fixed heights */
section,
.card,
.container,
.row {
  /* height: auto !important; */
  min-height: auto !important;
  max-height: none !important;
}

.techfusion-logo {
  width: 180px;
  max-width: 100%;
  border-radius: 5px;
}

/* Fix viewport width issues */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

.row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Fix for extra space on mobile */
section, 
header, 
footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Section Backgrounds */
section {
  background-color: var(--dark-bg);
  width: 100%;
}

section.bg-alternate {
  background-color: var(--darker-bg);
}

/* Hero Section */
#hero {
  background-image: linear-gradient(rgba(9, 19, 36, 0.8), rgba(9, 19, 36, 0.9)), url("assets/img/aibackground.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 0 60px;
}

@media (max-width: 991px) {
  #hero {
    padding: 100px 0 50px;
  }
}

@media (max-width: 767px) {
  #hero {
    padding: 90px 0 40px;
    min-height: auto;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  /* color: #1e293b !important; */
  color: #ffffff !important;
  text-align: left;
  padding: 2rem 0;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  color: var(--text-light);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-card img {
  transition: all 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  color: var(--text-light);
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .text-muted {
  color: var(--text-muted) !important;
}

/* About Stats */
.about-stat {
  flex: 1;
  padding: 15px;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 22px;
  margin-bottom: 10px;
}



.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
}

/* Form Controls */
.form-control {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}

.form-control:focus {
  background-color: var(--input-bg);
  border-color: var(--input-focus-border);
  color: var(--input-text);
  box-shadow: 0 0 0 0.25rem rgba(77, 132, 255, 0.25);
}

.form-control::placeholder {
  color: var(--input-placeholder);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  z-index: 99;
  background-color: var(--primary);
  color: white;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
}

/* Animation Delays */
.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* Case Study Styles */
.case-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  height: 100%;
}

.case-item img {
  transition: .5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-item:hover img {
  transform: scale(1.2);
}

.case-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(9, 19, 36, 0), var(--darker-bg));
  z-index: 1;
}

.case-overlay small {
  display: inline-block;
  padding: 3px 15px;
  color: #ffffff;
  background: rgba(9, 19, 36, 0.7);
  border-radius: 25px;
  margin-bottom: 15px;
}

.case-overlay span.btn:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: #ffffff;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-outline-light:hover {
  color: var(--dark-bg);
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Card Styles */
.card {
  background-color: var(--card-bg);
  color: var(--text-light);
  height: 100%;
}

/* Navbar Styles */
.navbar-dark {
  background-color: var(--darker-bg) !important;
  padding: 10px 0;
}

/* Footer Styles */
footer {
  background-color: var(--darker-bg);
  width: 100%;
}

footer a:hover {
  color: var(--primary) !important;
}

/* FAQs Styles */
.accordion .accordion-item {
  border: none;
  margin-bottom: 15px;
  background-color: var(--card-bg);
}

.accordion .accordion-button {
  background: var(--card-bg);
  color: var(--text-light);
  border-radius: 2px;
}

.accordion .accordion-button:not(.collapsed) {
  color: #ffffff;
  background: var(--primary);
  box-shadow: none;
}

.accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-body {
  padding: 15px 0 0 0;
  color: var(--text-light);
}

/* Override Bootstrap bg-light */
.bg-light {
  background-color: var(--darker-bg) !important;
}

/* Map container */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  width: 100%;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background-color: var(--darker-bg);
  width: 100%;
}

.stats .stats-item {
  padding: 30px;
  width: 100%;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 20px;
}

.stats .stats-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stats .stats-item span {
  font-size: 48px;
  display: block;
  color: var(--primary);
  font-weight: 700;
}

.stats .stats-item p {
  color: var(--text-muted);
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

/*** Services Styles Start ***/

.services .services-item {
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  padding: 10px 0;
  position: relative;
  margin-bottom: 30px;
}

.services-content::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(77, 132, 255, 0.8);
  transition: .5s;
}

.services-content::after {
  top: 0;
  bottom: auto;
  border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
  height: 100%;
  opacity: 1;
  transition: .5s;
}

.services-item:hover .services-content-icon {
  position: relative;
  z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon h4,
.services-item .services-content-icon p {
  transition: .5s;
}

.services-item:hover .services-content-icon i {
  color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon h4,
.services-item:hover .services-content-icon p {
  color: var(--text-light);
}

.services-item:hover .btn-secondary {
  background-color: var(--text-light);
  color: var(--primary) !important;
  border-color: var(--text-light);
}

.btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

/*** Services Styles End ***/

/* Team Styles */
.team-item {
  border-top: 30px solid var(--bs-secondary) !important;
  background: rgba(22, 42, 71, 0.8);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.team-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-content::before {
  height: 200px;
  display: block;
  content: "";
  position: relative;
  top: -101px;
  background: var(--bs-secondary);
  clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0% 50%);
  padding: 60px;
  opacity: 1;
  width: 100%;
}

.team-img-icon {
  position: relative;
  margin-top: -200px;
  padding: 30px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.team-img {
  border: 15px solid var(--text-light);
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto;
}

.team-img img {
  border: 10px solid var(--bs-secondary);
  transition: .5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-item:hover h4 {
  color: var(--primary);
  transition: .5s;
}

.team-item:hover .team-img img {
  transform: scale(1.05);
  border: 10px solid var(--primary);
}

.team-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.team-carousel .owl-item {
  display: flex;
  height: auto;
}

.team-carousel .owl-nav {
  position: absolute;
  top: -100px;
  right: 50px;
  display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
  width: 56px;
  height: 56px;
  border-radius: 56px;
  margin-left: 15px;
  background: var(--bs-secondary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: var(--text-light);
}

.team-name {
  width: 100%;
  padding: 15px 0;
}

.team-icon {
  width: 100%;
  padding-bottom: 20px;
}

/* Page Header Styles */
.page-header {
  background-image: linear-gradient(rgba(9, 19, 36, 0.8), rgba(9, 19, 36, 0.9)), url("assets/img/aibackground.gif");
  background-size: cover;
  background-position: center;
  padding-top: 120px;
  padding-bottom: 60px;
  margin-bottom: 0;
  width: 100%;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  width: 100%;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  clear: both;
}

.timeline-item:after, .timeline-item:before {
  content: " ";
  display: table;
}

.timeline-item:after {
  clear: both;
}

.timeline-item .timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-item.left .timeline-content {
  float: right;
}

.timeline-item.right .timeline-content {
  float: left;
}

.timeline-item .timeline-content:before {
  content: "";
  position: absolute;
  top: 26px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item.left .timeline-content:before {
  left: -20px;
  border-right-color: var(--card-bg);
}

.timeline-item.right .timeline-content:before {
  right: -20px;
  border-left-color: var(--card-bg);
}

.timeline-date {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  background-image: linear-gradient(rgba(9, 19, 36, 0.9), rgba(9, 19, 36, 0.9));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
}

/* Contact Card Styles */
.contact-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  color: var(--text-light);
  height: 100%;
  margin-bottom: 20px;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-card .contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background-color: var(--primary);
}

.contact-card:hover .contact-icon i {
  color: var(--text-light) !important;
}

/* Form Floating Labels */
.form-floating > .form-control,
.form-floating > .form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating > label {
  color: var(--input-placeholder);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary);
  opacity: 1;
}

/* Modal Styles */
.modal-content {
  background-color: var(--card-bg);
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

/* Footer links: black by default, primary blue on hover */
.footer-links-box a {
  color: #000 !important;
  transition: color 0.2s;
}
.footer-links-box a:hover,
.footer-links-box a:focus {
  color: #0d6efd !important; /* Bootstrap 5 primary blue */
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form Check */
.form-check-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 0.25rem rgba(77, 132, 255, 0.25);
}

/* Technology Page Styles */
.tech-stats {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.tech-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
}

.tech-list {
  list-style: none;
  padding-left: 0;
}

.tech-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tech-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.tech-image-container img {
  transition: all 0.5s ease;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.tech-image-container:hover img {
  transform: scale(1.05);
}

.tech-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(22, 42, 71, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Platform Card Styles */
.platform-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  margin-bottom: 30px;
}

.platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.platform-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.platform-card:hover .platform-icon i {
  transform: scale(1.2);
}

.platform-skills .badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 5px;
  display: inline-block;
}

/* Service Page Styles */
.service-stats {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.service-image-container img {
  transition: all 0.5s ease;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.service-image-container:hover img {
  transform: scale(1.05);
}

.service-icon-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(22, 42, 71, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.approach-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.approach-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.approach-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.approach-card:hover .approach-icon {
  background-color: var(--primary);
}

.approach-card:hover .approach-icon i {
  color: var(--text-light) !important;
}

.industry-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.industry-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 132, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
  background-color: var(--primary);
}

.industry-card:hover .industry-icon i {
  color: var(--text-light) !important;
}

/* Fix for extra space on mobile */
section, 
header, 
footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Make sure images don't cause overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix any width issues in columns */
.col, 
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-md, .col-lg, .col-xl,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  padding-right: 15px;
  padding-left: 15px;
  max-width: 100%;
}

/* Ensure responsive behavior */
@media (max-width: 767px) {
  body {
    padding-top: 66px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .col, 
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm, .col-md, .col-lg, .col-xl,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Core Values Section - Mobile First Approach */
.core-values {
  padding: 2.5rem 0;
  width: 100%;
  max-width: 100%;
}

.core-values .card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 25px;
  width: 100%;
}

.core-values .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.core-values .card-body {
  padding: 1.5rem;
}

.core-values .card i {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.core-values .card:hover i {
  transform: scale(1.1);
}

.core-values .card-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.core-values .card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
  .core-values {
    padding: 3rem 0;
  }
  
  .core-values .card-body {
    padding: 2rem;
  }
  
  .core-values .card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }
  
  .core-values .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .core-values {
    padding: 4rem 0;
  }
}

/* Fix navbar */
.navbar-collapse {
  max-height: none !important;
  overflow: visible !important;
}

/* Fix any other potential scroll issues */
.testimonial-card,
.service-card,
.product-card,
.contact-info,
.approach-card,
.industry-card,
.team-item {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Add viewport meta tag to HTML if not already present */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> */

/* Responsive Styles - Mobile First Approach */
@media (max-width: 1199px) {
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 991px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .navbar-collapse {
    background-color: var(--darker-bg);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: none;
    overflow: visible;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
    border-radius: 5px;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgba(77, 132, 255, 0.15);
  }
}

@media (max-width: 767px) {
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  h3, .h3 {
    font-size: 1.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .page-header {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  
  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .techfusion-logo {
    width: 150px;
  }
  
  footer .techfusion-logo {
    width: 150px;
    margin-bottom: 15px;
  }
  
  .about-stat {
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .about-stat h3 {
    font-size: 1.5rem;
  }
  
  .col-lg-6.animate__animated {
    margin-bottom: 30px;
  }
  
  .timeline:before {
    left: 20px;
  }
  
  .timeline-item .timeline-content {
    width: calc(100% - 40px);
    float: right;
    margin-left: 40px;
  }
  
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    float: right;
  }
  
  .timeline-item.left .timeline-content:before,
  .timeline-item.right .timeline-content:before {
    left: -20px;
    right: auto;
    border-right-color: var(--card-bg);
    border-left-color: transparent;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  footer h5 {
    margin-top: 20px;
  }
  
  footer .col-lg-2, 
  footer .col-lg-4 {
    margin-bottom: 20px;
  }
  
  footer .text-md-end {
    text-align: left !important;
    margin-top: 10px;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
  }
  
  .team-img {
    width: 150px;
    height: 150px;
  }
  
  .service-image-container img,
  .tech-image-container img {
    height: 250px;
  }
  
  .service-icon-overlay,
  .tech-logo {
    width: 60px;
    height: 60px;
  }
  
  .service-icon-overlay i,
  .tech-logo i {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575px) {
  .team-img {
    width: 120px;
    height: 120px;
  }
  
  .team-content::before {
    height: 150px;
    top: -76px;
  }
  
  .team-img-icon {
    margin-top: -150px;
  }
  
  .platform-skills .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .tech-list li {
    font-size: 0.9rem;
  }
  
  .service-image-container img,
  .tech-image-container img {
    height: 200px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content .d-flex {
    justify-content: center;
  }
  
  .stats .stats-item span {
    font-size: 36px;
  }
  
  .stats .stats-item p {
    font-size: 13px;
  }
}

/* Fix for owl carousel on mobile */
@media (max-width: 767px) {
  .team-carousel .owl-nav {
    top: -85px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-left: -15px;
  }
  
  .team-carousel .owl-nav .owl-prev,
  .team-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
  }
}

/* Fix for case items on mobile */
@media (max-width: 767px) {
  .case-item {
    height: 300px;
  }
  
  .case-overlay h5 {
    font-size: 1.1rem;
  }
}

/* Fix for services section on mobile */
@media (max-width: 767px) {
  .services .services-item {
    margin-bottom: 20px;
  }
  
  .services-content-icon i {
    font-size: 4rem !important;
  }
}

iframe {
  max-width: 100%;
}
