@keyframes swayLR {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -10px, 0);
  }

  70% {
    transform: translate3d(0, -5px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(22, 40, 75, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(22, 40, 75, 0.6), 0 0 30px rgba(22, 40, 75, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(22, 40, 75, 0.3);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slideUpScale {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wiggle {

  0%,
  7% {
    transform: rotateZ(0);
  }

  15% {
    transform: rotateZ(-15deg);
  }

  20% {
    transform: rotateZ(10deg);
  }

  25% {
    transform: rotateZ(-10deg);
  }

  30% {
    transform: rotateZ(6deg);
  }

  35% {
    transform: rotateZ(-4deg);
  }

  40%,
  100% {
    transform: rotateZ(0);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideInFromCenter {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 40px;
    opacity: 0.8;
  }
}

@keyframes sparkle {
  0% {
    transform: rotate(0deg) scale(0);
    opacity: 0;
  }

  50% {
    transform: rotate(180deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: rotate(360deg) scale(0);
    opacity: 0;
  }
}

@keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes jello {

  from,
  11.1%,
  to {
    transform: translate3d(0, 0, 0);
  }

  22.2% {
    transform: skewX(-12.5deg) skewY(-12.5deg);
  }

  33.3% {
    transform: skewX(6.25deg) skewY(6.25deg);
  }

  44.4% {
    transform: skewX(-3.125deg) skewY(-3.125deg);
  }

  55.5% {
    transform: skewX(1.5625deg) skewY(1.5625deg);
  }

  66.6% {
    transform: skewX(-0.78125deg) skewY(-0.78125deg);
  }

  77.7% {
    transform: skewX(0.390625deg) skewY(0.390625deg);
  }

  88.8% {
    transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
  }
}

@keyframes rollIn {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDownBig {
  from {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes up-down {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

/* Apply animations to elements */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-slide-in {
  animation: slideInFromTop 0.6s ease-out;
}

/* Portfolio Section */
.portfolio {
  background: #ffffff;
}

.portfolio .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio .section-header h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.portfolio .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Simple Portfolio Tabs */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  background: linear-gradient(
    135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      var(--accent-color) 100%
      );
  border-radius: 25px;
  padding: 8px;
  max-width: min(95%, 420px);
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(22, 40, 75, 0.2);
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  position: relative;
  text-align: center;
}

.tab-btn i {
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(22, 40, 75, 0.2), 0 0 15px rgba(85, 96, 127, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateY(-2px);
}

.tab-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
      transparent,
      rgba(22, 40, 75, 0.1),
      rgba(85, 96, 127, 0.1),
      rgba(136, 144, 170, 0.1),
      transparent
      );
  transition: left 0.6s ease;
}

.tab-btn.active:hover::before {
  left: 100%;
}

.tab-btn.active:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(22, 40, 75, 0.4);
  box-shadow: 0 15px 35px rgba(22, 40, 75, 0.3), 0 0 20px rgba(85, 96, 127, 0.2);
  transform: translateY(-3px) scale(1.02);
}

/* Portfolio Content */
.portfolio-content {
  margin-top: 40px;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Simple Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Simple Project Cards */
.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
  /* Change: Remove fixed height and use aspect-ratio for a consistent shape */
  aspect-ratio: 16 / 10;
  /* Change: Match top corners of the card */
  border-radius: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero {
  background: linear-gradient(
    135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      #1a237e 100%
      );
  position: relative;
  overflow: hidden;
}

/* Floating Circles Animation for Hero Section */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 30%,
      rgba(37, 99, 235, 0.15) 0%,
      transparent 40%
      ),
    radial-gradient(
      circle at 80% 70%,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 40%
      ),
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 30%
      );
  animation: backgroundPulse 8s ease-in-out infinite;
  z-index: 0;
}

.hero .container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.hero .container::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite reverse;
  z-index: 1;
}

.hero .cta-content::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 40px;
  height: 40px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 50%;
  animation: bounce 3s ease-in-out infinite;
  z-index: 1;
}

.hero .cta-content::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 15%;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* --- ADDED RESPONSIVE CSS --- */
@media (max-width: 768px) {
  .project-grid {
    /* Adjust card minimum width for tablets */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 576px) {

  /* Stack the filter tabs vertically on small screens */
  .portfolio-tabs {
    flex-direction: column;
    gap: 4px;
  }

  .tab-btn {
    padding: 10px 16px;
  }

  /* Force a single column for project cards on mobile */
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.view-project {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.view-project:hover {
  /* background: var(--secondary-color); */
  transform: translateY(-2px);
  color: white;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.project-info p {
  color: var(--text-light);
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-tech span {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Enhanced Project Card Styles */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.project-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.rating-stars {
  color: #ffd700;
  font-size: 1rem;
}

.rating-value {
  color: var(--text-light);
  font-weight: 500;
}

.project-description {
  margin: 8px 0;
}

.project-description p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.project-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.project-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.project-stats .stat-item i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Base Styles */
:root {
  --primary-color: #16284b;
  /* dark navy from logo */
  --secondary-color: #55607f;
  /* medium slate from logo */
  --accent-color: #8890aa;
  /* light slate from logo */
  --text-color: #1f2937;
  --text-light: #6b7280;
  --light-bg: #f3f4f6;
  --white: #ffffff;
  --dark-bg: #111827;
  --dark-color: #1f2937;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0;
}

section {
  padding: 50px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 10px;
  color: var(--text-light);
  /* text-align: left !important; */
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6em 1.6em;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.06rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons .btn-primary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .btn-primary:hover {
  background: var(--white);
  color: var(--primary-color);
}


.hero-buttons .btn-secondary {
  background: var(--white);
  color: var(--primary-color);
}

.hero-buttons .btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/*     CTA   */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.cta-buttons .btn-secondary {
  background: var(--white);
  color: var(--primary-color);
}

.cta-buttons .btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}


/* buttion wight */
.btn-thirdary {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--white);
  min-height: 44px;
  /* good touch target */
  padding-inline: 1.6em;
  margin: 0 auto;
  /* centers the button horizontally */
}

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

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

.btn-light:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease;
  background: var(--light-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0;
}

.header.scrolled {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Subtle bottom-only header highlight */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  /* minor height */
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  opacity: 0.16;
  /* very subtle */
  pointer-events: none;
  transition: opacity 0.2s ease, height 0.2s ease;
}

/* --- Main Header Container --- */
.header {
  background-color: #fff;
  /* Assuming a white background */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  /* KEY: Adds padding top and bottom for spacing */
  transition: padding 0.3s ease, background-color 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* --- Header state when scrolled --- */
.header.scrolled {
  padding: 5px 0;
  /* Reduces padding for a slimmer header on scroll */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Navigation Bar --- */
/* This is the main flex container that aligns everything */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* KEY: This vertically centers the logo, links, and button */
  width: 100%;
  position: relative;
}

/* --- Logo & Custom Icon Styling --- */
/* Your existing logo styles are great, no major changes needed here. */
.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.custom-logo {
  display: flex;
  align-items: center;
  /* gap: 8px;  */
  /* Slightly increased gap for clarity */
  transition: transform 0.3s ease;
}

.icon-circle {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.line {
  height: 5px;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.line-1 {
  background: var(--primary-color);
  width: 35px;
  height: 10px;
}

.line-2 {
  background: var(--secondary-color);
  width: 35px;
  height: 10px;
}

.line-3 {
  background: var(--accent-color);
  width: 35px;
  height: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.company-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.5px;
  transition: font-size 0.3s ease;
}

.company-type {
  font-size: 17px;
  font-weight: 500;
  color: var(--primary-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
  transition: font-size 0.3s ease;
}

/* Header size adjustments on scroll */
.header.scrolled .custom-logo {
  transform: scale(0.9);
}

.header.scrolled .company-name {
  font-size: 24px;
}

.header.scrolled .company-type {
  font-size: 15px;
}

/* --- Navigation Links --- */
.nav-links {
  display: flex;
  align-items: center;
  /* KEY: Ensures links and button are vertically aligned with each other */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
  /* MODERN WAY: This is better than margin-left for spacing items */
}

/* Individual link styles and hover effects */
/* I removed the '!important' tags as they are bad practice */
.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 10px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Your existing Get in Touch button styles are fine */
.nav-links .btn {
  display: flex;
  padding: 9px 25px !important;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-bg);
  background-color: #566082;
}

.nav-links .btn:hover {
  color: white;
  background-color: var(--primary-color);
}

/* --- Hamburger Menu (for mobile) --- */
/* This should be hidden on desktop and shown on mobile via media queries */
.hamburger {
  display: none;
  /* Hidden by default on large screens */
  cursor: pointer;
  /* Your other hamburger styles are fine */
}

/* Hamburger bars */
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease,
    background-color 0.25s ease;
}

/* Mobile nav */
@media (max-width: 992px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    /* add this */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    border-radius: 0 0 12px 12px;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin-left: auto;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Enhanced Hero Section */
.hero {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      var(--accent-color) 100%);
  position: relative;
  overflow: hidden;
}

/* Services Overview Section */
.services-overview {
  background: var(--white);
}

.services-overview .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-overview .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Why Choose Us Section */
.why-choose-us {
  background: white;
}

.why-choose-us .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Statistics Section */
.statistics {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.stat-label {
  font-size: 1.1rem;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.4;
}

/* Technologies Section */
.technologies {
  background: var(--light-bg);
}

.technologies .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 40px;
  margin-top: 50px;
}

.tech-category {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tech-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
}

.tech-category:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  transition: all 0.3s ease;
}

.tech-category:hover .tech-icon {
  transform: rotateY(180deg);
}

.tech-category h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-color);
}

.aligned-list {
  color: var(--text-light);
  line-height: 1.6;
}

.aligned-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.aligned-list li::before {
  content: "→";
  margin-right: 10px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
  background: var(--light-bg);
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: serif;
  opacity: 0.3;
}

.testimonial-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 30px;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  margin: 0;
  color: var(--text-color);
  font-weight: 600;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* <!-- CTA Section --> */
.cta {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-actions .btn-primary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.cta-actions .btn-secondary {
  background: var(--white);
  color: var(--primary-color);
}

.cta-actions .btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 30%),
    radial-gradient(circle at 70% 70%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 30%);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.hero .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 0 0 55% !important;
  order: 1 !important;
  padding-right: 30px !important;
  text-align: left !important;
}

.hero-content h1 {
  text-align: center !important;
}

.hero-content h2 {
  text-align: left !important;
  font-size: 3.7rem;
  color: white;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: white;
  /* max-width: 600px; */
  text-align: center !important;
}

.hero-content p.text-primary {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: white;
  /* max-width: 600px; */
  text-align: left !important;
}

.hero-image {
  flex: 0 0 40% !important;
  order: 2 !important;
  margin-top: 0 !important;
  text-align: right !important;
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

.hero-image img {
  display: block !important;
  margin-left: auto !important;
  max-width: 90% !important;
  height: auto !important;
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* Enhanced Services Section */
/* Services Section */
.services {
  background-color: var(--white);
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow);
}

.service-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--text-color);
}

.service-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.read-more::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.service-card:hover .read-more::after {
  width: 100%;
}

.read-more i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.read-more:hover i {
  transform: translateX(8px);
  animation: bounce 0.6s ease;
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--light-bg) 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 90% 80%,
      rgba(147, 51, 234, 0.05) 0%,
      transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--light-bg) 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 90% 80%,
      rgba(147, 51, 234, 0.05) 0%,
      transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* About Hero Section */
.about-hero {
  margin-bottom: 80px;
}

.about-hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-color);
  white-space: normal;
  word-wrap: break-word;
}

/* Single line text styling */
.single-line-text {
  white-space: nowrap;
  display: inline-block;
}

/* Responsive: Allow breaking on smaller screens */
@media (max-width: 1200px) {
  .single-line-text {
    white-space: normal;
    word-wrap: break-word;
  }
}

.about-text .highlight {
  color: var(--primary-color);
  position: relative;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* About stats — bordered button style with matching inside tint */
.about-stats-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  margin: 18px 0 !important;
  flex-wrap: wrap;
}

/* Unified badge sizing: border + soft tint inside */
.stat-badge,
.award-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  height: 56px !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Primary (years) badge: border + tint */
.stat-badge {
  border: 2px solid var(--primary-color, #2563eb) !important;
  background: rgba(37, 99, 235, 0.06) !important;
}

/* Award (amber) badge: border + tint */
.award-badge {
  border: 2px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.06) !important;
  color: #7c2d12 !important;
}

/* Center the numeric circle and make it visually prominent */
.stat-badge .stat-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  background: var(--primary-color, #2563eb) !important;
  /* solid primary circle */
  color: #ffffff !important;
  /* white number inside the circle */
  box-shadow: 0 3px 8px rgba(2, 6, 23, 0.06) !important;
}

/* Text next to number */
.stat-badge .stat-text {
  font-size: 0.95rem !important;
  color: var(--text-color, #374151) !important;
  font-weight: 600 !important;
}

/* Award icon: circular colored icon matching the border */
.award-badge i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background: #f59e0b !important;
  /* solid amber circle */
  color: #ffffff !important;
  /* white icon inside */
  font-size: 1rem !important;
  box-shadow: 0 3px 8px rgba(2, 6, 23, 0.04) !important;
}

/* Award text color */
.award-badge span {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #7c2d12 !important;
}

/* subtle hover lift */
.stat-badge:hover,
.award-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.08);
}

/* Responsive: slightly smaller badges on narrow screens */
@media (max-width: 480px) {

  .stat-badge,
  .award-badge {
    height: 48px !important;
    min-height: 48px !important;
    padding: 6px 12px !important;
  }

  .stat-badge .stat-number {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 1rem !important;
  }

  .award-badge i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 0.95rem !important;
  }
}

.about-image {
  flex: 1;
}

.about-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-main-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Vision Mission Values */
.vmv-section {
  margin-bottom: 80px;
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vmv-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 2px solid #f1f5f9;
}

.vmv-tab {
  padding: 15px 30px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.vmv-tab.active {
  color: var(--primary-color);
}

.vmv-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.vmv-tab:hover {
  color: var(--primary-color);
}

.vmv-content {
  padding: 20px 0;
}

.vmv-tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.vmv-tab-content.active {
  display: block;
}

.vmv-tab-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.value-item {
  text-align: center;
  padding: 20px;
}

.value-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.value-item h4 i {
  font-size: 1.5rem;
}

.value-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .vmv-section {
    padding: 30px 20px;
    margin-bottom: 60px;
  }

  .vmv-tabs {
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
  }

  .vmv-tab {
    padding: 12px 20px;
    font-size: 1rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
  }

  .vmv-tab.active::after {
    display: none;
  }

  .vmv-tab-content p {
    font-size: 0.98rem;
    text-align: left;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-item {
    text-align: left;
    padding: 15px;
  }

  .value-item h4 {
    justify-content: flex-start;
  }
}

/* Journey Timeline */
.journey-section {
  margin-bottom: 80px;
}

.journey-section .section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(22, 40, 75, 0.4), 0 0 15px rgba(85, 96, 127, 0.3);
  transition: all 0.3s ease;
}

.timeline-year:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(22, 40, 75, 0.5), 0 0 20px rgba(85, 96, 127, 0.4);
}

/* Services Page Specific Styles */
.services-hero {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      #1a237e 100%);
  position: relative;
  overflow: hidden;
}

/* .services-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 10px 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
} */

/* .services-hero .hero-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
} */

/* .services-hero .hero-badge i {
  color: var(--accent-color);
  font-size: 1rem;
} */

/* .services-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: white !important;
} */

/* .services-hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: white;
} */

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
}

.hero-stats .stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-stats .stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.hero-stats .stat-item:hover::before {
  left: 100%;
}

.hero-stats .stat-item:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-stats .stat-label {
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.4;
}

/* Service Categories */
.service-categories {
  background: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.category-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(37, 99, 235, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.category-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* background: var(--white); */
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: rotateY(180deg);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.category-card p {
  margin-bottom: 25px;
  color: var(--text-light);
}

.service-list {
  /* list-style: none;
  padding: 0; */
  text-align: left;
  color: var(--text-light);
  line-height: 1.6;
}

.service-list li {
  padding: 8px 0;
  color: var(--text-light);
  /* border-bottom: 1px solid #f0f0f0; */
  position: relative;
  padding-left: 20px;
}

.service-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-list li:last-child {
  border-bottom: none;
}

/* Enhanced Service Cards */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.feature-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Service Process */
.service-process {
  background: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 30px 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.step-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.step-features {
  list-style: none;
  padding: 0;
}

.step-features li {
  padding: 5px 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.step-features li:before {
  content: "→";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 8px;
}

/* Service Packages */
.service-packages {
  background: var(--light-bg);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.package-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.package-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.package-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.package-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.package-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.package-price {
  margin-bottom: 30px;
}

.package-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.package-price .period {
  color: var(--text-light);
  font-size: 0.9rem;
}

.package-features ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.package-features li {
  padding: 10px 0;
  color: var(--text-light);
  /* border-bottom: 1px solid #f0f0f0; */
  text-align: left;
}

.package-features li:before {
  content: "→";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

.package-features li:last-child {
  border-bottom: none;
}

/* Service Benefits */
.service-benefits {
  padding: 100px 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  background: var(--primary-color);
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Mobile Responsive Styles for Services Page */
@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2.5rem;
  }

  .services-hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .package-card.featured {
    transform: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 100px 0 60px;
  }

  .services-hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .tech-stack-visual {
    width: 200px;
    height: 200px;
  }

  .stack-layer {
    width: 50px;
    height: 50px;
  }

  .stack-layer i {
    font-size: 1.2rem;
  }

  .solution-category {
    padding: 30px 20px;
  }

  .tech-category {
    padding: 30px 20px;
  }

  .industry-card {
    padding: 30px 20px;
  }

  .step-content {
    padding: 30px 20px;
  }

  .cta-stats {
    grid-template-columns: 1fr;
  }

  .cta-stats .stat-number {
    font-size: 2.5rem;
  }
}

/* ================ SOLUTIONS PAGE STYLES ================ */

/* Solutions Hero */
.solutions-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
  position: relative;
  overflow: hidden;
}

.solutions-hero::before {
  content: "→";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.solutions-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solutions-hero .hero-content {
  position: relative;
  z-index: 2;
}

.solutions-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.solutions-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.solutions-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 500;
}

.feature-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-stack-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.stack-layer {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.stack-layer:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.stack-layer:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

.stack-layer:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3s;
}

.stack-layer:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 4.5s;
}

.stack-layer i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

/* Solutions Overview */
.solutions-overview {
  background: #f8f9ff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* --- Card Container --- */
.solution-category {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Crucial for the new gloss effect */
  border: 1px solid transparent;
  padding: 0;
}

/* --- NEW: Gloss Hover Effect --- */
/* This pseudo-element is the sweeping light effect */
.solution-category::before {
  content: "→";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  /* Slower transition for a smooth sweep */
  z-index: 1;
}

/* --- Clickable Link Wrapper --- */
.solution-card-link {
  display: block;
  padding: 40px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  /* UPDATED: Ensures content stays above the gloss effect */
  z-index: 2;
  /* UPDATED: Stacks content on top of the pseudo-element */
}

.solution-card-link:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* --- All-Over Hover Effects --- */
/* .solution-category:hover { */
/* transform: translateY(-10px); */
/* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); */
/* border-color: var(--primary-color); */
/* } */

/* UPDATED: Triggers the sweep animation on hover */
.solution-category:hover::before {
  left: 50%;
}

.solution-category:hover .category-icon {
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

/* .solution-category:hover h3 {
  color: var(--primary-color);
} */

/* --- Card Elements --- */
.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  transition: all 0.4s ease;
}

.solution-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.solution-category > a > p {
  color: var(--text-light);
  line-height: 1.6;
}

.solution-features {
  list-style: none;
  margin-bottom: 25px;
}

.solution-features li {
  color: var(--text-light);
  line-height: 1.6;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-features i {
  color: var(--primary-color);
  content: "→";
  font-size: 12px;
}

/* --- Technology Stack Section --- */
.technology-stack {
  background: var(--white);
}

/* --- Grid for Tech Categories --- */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* --- Main Category Card --- */
.tech-category {
  background: var(--white);
  padding: clamp(30px, 5vw, 40px) clamp(20px, 4vw, 30px);
  border-radius: 15px;
  border: 1px solid #eef2f9;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tech-category:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-main-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.category-main-icon i {
  font-size: 32px;
  color: var(--white);
}

.tech-category:hover .category-main-icon {
  transform: rotateY(180deg);
}

.tech-category h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 14px;
}

/* --- Grid for Individual Tech Items --- */
/* --- CHANGE: Updated to a strict 2-column grid as requested --- */
.tech-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  text-align: left;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #eef2f9;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.tech-item i {
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgb(67 80 112);
  text-fill-color: transparent;
  margin-top: 2px;
}

.tech-item span {
  font-weight: 600;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.03);
  background: var(--primary-color);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
  border-color: var(--primary-color);
}

.tech-item:hover i,
.tech-item:hover span {
  color: var(--white);
}

.tech-item:hover i {
  background: none;
  -webkit-text-fill-color: inherit;
  text-fill-color: inherit;
}

/* --- Responsive CSS for Tablets and Mobiles --- */
@media (max-width: 768px) {
  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .tech-categories {
    grid-template-columns: 1fr;
  }

  .tech-category h3 {
    font-size: 1.2rem;
  }
}

/* Solution Architecture */
.solution-architecture {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.architecture-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.architecture-diagram {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.arch-layer {
  background: #f8f9ff;
  border: 2px solid #e0e7ff;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.arch-layer:hover {
  border-color: var(--primary-color);
  background: rgba(74, 144, 226, 0.05);
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.layer-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.layer-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.layer-components {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.layer-components span {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.architecture-benefits h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.benefit-item p {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Industry Solutions */
.industry-solutions {
  background: var(--light-bg);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.industry-card {
  background: #f8f9ff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--accent-color));
  opacity: 0;
  transition: all 0.3s ease;
}

.industry-card:hover {
  /* transform: translateY(-10px); */
  color: white;
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card > * {
  position: relative;
  z-index: 2;
}

.industry-icon {
  width: 80px;
  height: 80px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
  background: rgba(255, 255, 255, 0.2);
}

.industry-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon i {
  color: white;
}

.industry-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.industry-card:hover h3 {
  color: white;
}

.industry-card p {
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.industry-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.industry-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.industry-features span {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-features span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Solution Process */
.solution-process {
  background: #f8f9ff;
}

.process-timeline {
  margin-top: 60px;
  position: relative;
}

.process-timeline::before {
  content: "→";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
      var(--primary-color),
      var(--accent-color));
  transform: translateX(-50%);
}

.process-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.process-step:nth-child(odd) .step-content {
  grid-column: 3;
  grid-row: 1;
}

.process-step:nth-child(even) .step-content {
  grid-column: 1;
  grid-row: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--accent-color));
  border: 4px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.step-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

.step-content::before {
  content: "→";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  transform: translateY(-50%);
}

.process-step:nth-child(odd) .step-content::before {
  right: -20px;
}

.process-step:nth-child(even) .step-content::before {
  left: -20px;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.step-content p {
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.step-content ul {
  list-style: none;
}

.step-content li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.step-content li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Solutions CTA */
.solutions-cta {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      #1a237e 100%);
  position: relative;
  overflow: hidden;
}

.solutions-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

/* Animated Background Elements */
.solutions-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%,
      rgba(37, 99, 235, 0.15) 0%,
      transparent 40%),
    radial-gradient(circle at 80% 70%,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 40%),
    radial-gradient(circle at 50% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 30%);
  animation: backgroundPulse 8s ease-in-out infinite;
  z-index: 0;
}

/* Floating Circles Animation */
.solutions-cta .container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.solutions-cta .container::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite reverse;
  z-index: 1;
}

/* Additional floating elements */
.solutions-cta .cta-content::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 40px;
  height: 40px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 50%;
  animation: bounce 3s ease-in-out infinite;
  z-index: 1;
}

.solutions-cta .cta-content::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 15%;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes backgroundPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.solutions-cta .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.cta-text h2 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* .cta-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
} */

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.cta-stats .stat-item {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* .cta-stats .stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
} */

/* .cta-stats .stat-item:hover::before {
  left: 100%;
} */

.cta-stats .stat-item:hover {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-stats .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.cta-stats .stat-item:hover .stat-number {
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.cta-stats .stat-label {
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.4;
}

/* Solutions Page Responsive */
@media (max-width: 768px) {
  .solutions-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .solutions-hero h1 {
    font-size: 2.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tech-stack-visual {
    width: 250px;
    height: 250px;
  }

  .stack-layer {
    width: 60px;
    height: 60px;
  }

  .stack-layer i {
    font-size: 1.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tech-categories {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tech-items {
    grid-template-columns: 1fr;
  }

  .architecture-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .process-step:nth-child(even) .step-content {
    grid-column: 1;
  }

  .step-content::before {
    display: none;
  }

  .cta-text h2 {
    font-size: 2rem;
  }

  .cta-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 100px 0 60px;
  }

  .services-hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .tech-stack-visual {
    width: 200px;
    height: 200px;
  }

  .stack-layer {
    width: 50px;
    height: 50px;
  }

  .stack-layer i {
    font-size: 1.2rem;
  }

  .solution-category {
    padding: 30px 20px;
  }

  .tech-category {
    padding: 30px 20px;
  }

  .industry-card {
    padding: 30px 20px;
  }

  .step-content {
    padding: 30px 20px;
  }

  .cta-stats {
    grid-template-columns: 1fr;
  }

  .cta-stats .stat-number {
    font-size: 2.5rem;
  }
}

/* ================ COMPREHENSIVE RESPONSIVE DESIGN ================ */

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }
}

/* Large Devices (Desktops) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

.hero {
  padding: 25px 0;
}

.hero .container {
  flex-direction: column;
  text-align: center;
}

.hero-content {
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  font-weight: bold;
}

.features-grid {
  grid-template-columns: 1fr;
  gap: 25px;
}

.tech-grid {
  grid-template-columns: 1fr;
  gap: 25px;
}

.footer-content {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .section-header p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 25px;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 20px;
  }

  .tech-category {
    padding: 25px;
    text-align: center;
  }

  .tech-icon {
    margin: 0 auto 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-map iframe {
    height: 250px;
  }

  .header {
    padding: 15px 0;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575px) {
  .container {
    padding: 0 10px;
  }

  section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .feature-card,
  .tech-category {
    padding: 15px;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .footer-map iframe {
    height: 200px;
  }
}

/* Ultra Small Devices */
@media (max-width: 479px) {
  .container {
    padding: 0 5px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .feature-card,
  .tech-category {
    padding: 15px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .footer-map iframe {
    height: 180px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  section {
    padding: 40px 0;
  }
}

/* Responsive footer map wrapper - keep iframe fluid and maintain max-height */
.footer-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.footer-map .map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
}

.footer-map .map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .hero-image img,
  .feature-icon,
  .tech-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {

  .header,
  .footer,
  .btn,
  .cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .hero-content h1 {
    font-size: 24pt;
  }

  .section-header h2 {
    font-size: 18pt;
  }
}

/* --- SEPARATE BORDER ANIMATION FOR BUTTON --- */

/* The main style for the animated button */
.btn-animated-border {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;
  letter-spacing: 4px;
  overflow: hidden;
  background: transparent;
  border-radius: 5px;
}

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

.btn-animated-border span {
  position: absolute;
  display: block;
}

/* --- The 4 sides of the animation --- */
.btn-animated-border span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-bg));
  animation: animate1 1s linear infinite;
}

.btn-animated-border span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--light-bg));
  animation: animate2 1s linear infinite;
  animation-delay: 0.25s;
}

.btn-animated-border span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, var(--light-bg));
  animation: animate3 1s linear infinite;
  animation-delay: 0.5s;
}

.btn-animated-border span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, var(--light-bg));
  animation: animate4 1s linear infinite;
  animation-delay: 0.75s;
}

/* --- KEYFRAMES (These do not need to change) --- */

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

  50%,
  100% {
    left: 100%;
  }
}

@keyframes animate2 {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

@keyframes animate3 {
  0% {
    right: -100%;
  }

  50%,
  100% {
    right: 100%;
  }
}

@keyframes animate4 {
  0% {
    bottom: -100%;
  }

  50%,
  100% {
    bottom: 100%;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 70%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 50%);
  animation: floating 8s ease-in-out infinite;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.footer-about h3,
.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  animation: slideInFromLeft 0.8s ease-out;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  animation: slideInFromCenter 1s ease-out 0.5s forwards;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.footer-social {
  display: flex;
  gap: 15px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  animation: pulse 0.6s ease-in-out;
}

.footer-social a:hover::before {
  transform: scale(1);
}

.footer-social a i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.footer-social a:hover i {
  animation: wiggle 0.6s ease-in-out;
}

.footer-links a,
.footer-services a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
  position: relative;
  padding-left: 0;
  line-height: 2;
}

.footer-links a:before,
.footer-services a:before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition);
  color: var(--light-bg);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--light-bg);
  padding-left: 20px;
}

.footer-links a:hover:before,
.footer-services a:hover:before {
  opacity: 1;
  left: 0;
}

.footer-address h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-address h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 2px;
}

.address-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.address-icon {
  width: 45px;
  height: 45px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.address-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.address-icon:hover::before {
  transform: scale(1);
}

.address-details p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom p a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.footer-bottom p a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  background-color: var(--lite-bg);
}

.contact-content {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.contact-form {
  flex: 1;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  flex: 1;
  padding: 40px 0;
}

.contact-info > h3 {
  margin-bottom: 24px;
}

/* Contact info horizontal layout (new classes) */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  /* vertical gap (top & bottom) */
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  margin: 0 0 6px 0;
  /* small gap between label and value */
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact section responsive tweaks - paste at end of existing <style> in contact-us.php */

/* Tablet and below: stack form and info vertically */
@media (max-width: 992px) {
  .contact-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contact-form .form-group {
    margin-bottom: 12px;
  }

  /* Make the recaptcha/send button full width on narrower screens */
  .contact-form .g-recaptcha.btn,
  .contact-form button.btn {
    width: 100%;
    display: inline-block;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* Mobile: tighter spacing and larger inputs for touch */
@media (max-width: 576px) {
  .contact-content {
    gap: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.98rem;
    padding: 10px 12px;
  }

  .contact-form textarea {
    min-height: 140px;
  }

  .contact-info .contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  /* Toast small-screen tweak */
  #form-toast {
    left: 50%;
    transform: translateX(-50%) translateY(0);
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-item .icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-item p,
.info-item a {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 18px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Company Stats */
.company-stats {
  margin-bottom: 80px;
}

.company-stats .section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.stat-card {
  background: white;
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
  margin-bottom: 50px;
}

.testimonials-section .section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 25px;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info span {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 30px;
  margin: 0 30px;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(22, 40, 75, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(22, 40, 75, 0.1),
      rgba(85, 96, 127, 0.1),
      rgba(136, 144, 170, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.timeline-content:hover::after {
  left: 100%;
}

.timeline-content:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(22, 40, 75, 0.4);
  box-shadow: 0 15px 35px rgba(22, 40, 75, 0.2), 0 0 20px rgba(85, 96, 127, 0.3);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -30px;
  border-right-color: rgba(255, 255, 255, 0.25);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -30px;
  border-left-color: rgba(255, 255, 255, 0.25);
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.timeline-content p {
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

p.text-primary {
  display: block;
  margin-bottom: 10px;
  color: var(--text-light);
  text-align: center;
}

/* =====================================================
   Font Awesome – Lighthouse font-display fix
   ===================================================== */

@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-display: swap;
}