/* General Services Pages Styling - For AI Development, Web Development, etc. */

/* Hero Image Responsive Sizing - Common for all service pages */
.hero-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* Desktop - Large image */
@media (min-width: 992px) {
  .hero-image {
    max-width: 600px;
    max-height: 450px;
  }
}

/* Tablet - Much smaller image to prevent cutoff */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-image {
    max-width: 300px;
    max-height: 250px;
    margin: 0 auto;
  }

  .service-hero {
    min-height: 550px;
    padding: 40px 0;
  }

  /* Reduce gap between button and image */
  .hero-image-container {
    padding: -2.5rem;
    margin-top: -2.5rem;
  }

  /* Reduce spacing between text and image columns */
  .service-hero .col-lg-6:last-child {
    margin-top: -1.5rem;
  }

  /* Bring image closer to text content */
  .service-hero .col-lg-6:first-child {
    padding-right: -0.5rem;
  }

  .service-hero .col-lg-6:last-child {
    padding-left: -0.5rem;
  }
}

/* Mobile - Small image for better visibility */
@media (max-width: 767px) {
  .hero-image {
    max-width: 280px;
    max-height: 220px;
  }

  .service-hero {
    min-height: 550px;
    padding: 40px 0;
  }

  /* Reduce gap between button and image */
  .hero-image-container {
    padding: -2.5rem;
    margin-top: -2.5rem;
  }

  /* Reduce spacing between text and image columns */
  .service-hero .col-lg-6:last-child {
    margin-top: -1.5rem;
  }

  /* Bring image closer to text content */
  .service-hero .col-lg-6:first-child {
    padding-right: -0.5rem;
  }

  .service-hero .col-lg-6:last-child {
    padding-left: -0.5rem;
  }
}

/* Extra small mobile */
@media (min-width: 320px) and (max-width: 576px) {
  .hero-image {
    max-width: 240px;
    max-height: 180px;
  }

  .service-hero {
    min-height: 600px;
    padding: 40px 0;
  }

  /* Reduce gap between button and image */
  .hero-image-container {
    padding: -2.5rem;
    margin-top: -2.5rem;
  }

  /* Reduce spacing between text and image columns */
  .service-hero .col-lg-6:last-child {
    margin-top: -1.5rem;
  }

  /* Bring image closer to text content */
  .service-hero .col-lg-6:first-child {
    padding-right: -0.5rem;
  }

  .service-hero .col-lg-6:last-child {
    padding-left: -0.5rem;
  }
}

/* Mobile responsive override for all service heroes */
@media (max-width: 768px) {
  .service-hero {
    background-attachment: scroll !important; /* Better performance on mobile */
    padding-top: 50px !important; /* Move text lower from top */
  }

  /* Additional spacing for text content */
  .service-hero .col-lg-6:first-child {
    padding-top: 2rem;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .service-hero {
    padding-top: 40px !important; /* Slightly less padding on very small screens */
  }

  .service-hero .col-lg-6:first-child {
    padding-top: 1.5rem;
  }
}

/* -------------------- */
/* How We Work Section */
/* ------------------ */
#how-we-work {
  background: #ffffff;
  padding: 80px 0;
}

/* Section heading */
#how-we-work h2 {
  color: #2c2c2c;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Breaker line styling */
.breaker-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(135deg, #3caefc 0%, #7d25cd 100%);
  border-radius: 2px;
  margin: 0 auto;
}

.breaker-line.white {
  /* background: linear-gradient(135deg, #ffffff 0%, #f8f1e3 50%, #48dbfb 100%); */
  background: white;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

/* Step number badge */
.step-number {
  position: relative;
  z-index: 3;
}

.step-number .badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, #3caefc 50%, #7d25cd 100%) !important;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(60, 174, 252, 0.3);
  position: relative;
  z-index: 3;
}

/* Single Row Layout Adjustments */
#how-we-work .service-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  padding: 1.5rem 1rem;
  height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

#how-we-work .service-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Ensure all columns have same width */
#how-we-work .col-lg-2 {
  flex: 0 0 auto;
  width: 18.5%;
  max-width: 18.5%;
  padding: 0 0.5rem;
}

/* Icon styling - match services */
#how-we-work .service-wrapper .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3caefc 50%, #7d25cd 100%);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Title styling - match services */
#how-we-work .service-wrapper .title {
  color: #2c2c2c;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  min-height: 2.6rem; /* FIXED HEIGHT for titles */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0; /* Prevent title from shrinking */
}

/* Content container with fixed height */
#how-we-work .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-height: 120px; /* FIXED MINIMUM HEIGHT for content */
}

#how-we-work .content p {
  color: #666;
  line-height: 1.5;
  font-size: 0.75rem;
  margin-bottom: 0;
  text-align: center;
  /* overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  line-clamp: 4; 
  -webkit-box-orient: vertical; */
  flex-grow: 1;
}

/* Big background icon - match services */
#how-we-work .service-wrapper .big-icon {
  position: absolute;
  bottom: -15px;
  right: -15px;
  font-size: 120px;
  color: rgba(60, 174, 252, 0.05);
  z-index: 1;
}

/* Process arrows */
.process-arrow {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px; /* Match card height */
}

.process-arrow .service-process-arrow {
  color: #3caefc !important;
  text-shadow: 0 2px 4px rgba(60, 174, 252, 0.3);
  font-size: 2rem !important;
}

/* Responsive design */
@media (max-width: 1199px) {
  #how-we-work .service-wrapper {
    min-height: 300px;
    padding: 1.2rem 0.8rem;
  }

  #how-we-work .service-wrapper .title {
    font-size: 0.95rem;
    min-height: 2.8rem;
  }

  .process-arrow {
    height: 300px; /* Match card height */
  }

  .process-arrow .service-process-arrow {
    font-size: 1.3rem !important;
  }
}

/* @media (max-width: 991px) {
  #how-we-work .row {
    justify-content: center;
  }

  #how-we-work .col-lg-2 {
    flex: 0 0 auto;
    width: 45%;
    margin-bottom: 2rem;
  }

  .process-arrow {
    display: none;
  }

  #how-we-work .service-wrapper {
    min-height: 260px;
    padding: 1.5rem;
  }

  #how-we-work .service-wrapper .icon {
    width: 60px;
    height: 60px;
  }

  #how-we-work .service-wrapper .title {
    font-size: 1.1rem;
    min-height: 2.5rem;
  }

  #how-we-work .content {
    min-height: 100px;
  }

  #how-we-work .content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 4; 
    line-clamp: 4;
  }
} */

@media (max-width: 991px) {
  #how-we-work .service-wrapper {
    min-height: 380px;
    padding: 1.2rem 0.8rem;
  }

  #how-we-work .service-wrapper .title {
    font-size: 0.95rem;
    min-height: 2.8rem;
  }

  .process-arrow {
    height: 300px; /* Match card height */
  }

  .process-arrow .service-process-arrow {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 768px) {
  #how-we-work .col-lg-2 {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
  }

  #how-we-work .service-wrapper {
    min-height: 240px;
    padding: 1.5rem;
  }

  .step-number .badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #how-we-work .service-wrapper .title {
    font-size: 1rem;
    min-height: 2.2rem;
  }

    #how-we-work .content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  #how-we-work h2 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  #how-we-work .service-wrapper {
    height: 260px;
    padding: 1.2rem;
  }

  #how-we-work .service-wrapper .title {
    font-size: 1rem;
    min-height: 2rem;
  }

  #how-we-work .content {
    min-height: 80px;
  }

  #how-we-work .content p {
    font-size: 0.9rem;
  }
}

#how-we-work .service-wrapper .step-number {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

#how-we-work .service-wrapper .icon {
  flex-shrink: 0;
  margin-bottom: 0.8rem;
}

/* Ensure text doesn't overflow */
#how-we-work .service-wrapper {
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* ---------------------------------------------------------------- */
/* Service Content Section Styling - Generic for all service pages */
/* -------------------------------------------------------------- */
.service-content-section {
  background: #ffffff;
  padding: 80px 0;
}

/* Section heading */
.service-content-section h2 {
  color: #2c2c2c;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Service Cards - Match Services Section Styling */
.service-content-section .service-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* min-height: 320px; */
}

.service-content-section .service-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Icon styling - company theme colors */
.service-content-section .service-wrapper .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-content-section .service-wrapper:hover .icon {
  transform: scale(1.1);
  background: #0062ff !important;
}

/* Title styling - company theme colors */
.service-content-section .service-wrapper .title {
  color: #2c2c2c;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.service-content-section .service-wrapper:hover .title {
  color: #3caefc;
}

/* Content styling */
.service-content-section .content {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content-section .content p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 991px) {
  .service-content-section .col-lg-4 {
    flex: 0 0 auto;
    width: 45%;
    margin-bottom: 2rem;
  }

  .service-content-section .service-wrapper {
    min-height: 220px;
    padding: 1.5rem;
  }

  .service-content-section .service-wrapper .icon {
    width: 60px;
    height: 60px;
  }

  .service-content-section .service-wrapper .title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .service-content-section {
    padding: 60px 0;
  }
  .service-content-section h2 {
    font-size: 2rem;
  }

  .service-content-section .col-lg-4 {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
  }

  .service-content-section .service-wrapper {
    min-height: 200px;
    padding: 1.5rem;
  }

  .service-content-section .service-wrapper .icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .service-content-section h2 {
    font-size: 1.75rem;
  }

  .service-content-section .service-wrapper .title {
    font-size: 1rem;
  }

  .service-content-section .service-wrapper {
    min-height: 200px;
  }

  .service-content-section .content p {
    font-size: 0.9rem;
  }
}

/* --------------------------- */
/* Tech Stack Section Styling */
/* --------------------------- */
.tech-stack-section {
  background: #3caefc;
  background: linear-gradient(to right, #2a9df4, #6b1cb0);
  padding: 80px 0;
  position: relative;
}

.tech-stack-section h2 {
  color: #2c2c2c;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Tech Filter Buttons */
.tech-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tech-filter-btn {
  background: #ffffff;
  border: 2px solid #e9ecef;
  color: #6c757d;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-filter-btn:before {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, #3caefc 50%, #7d25cd 100%); */
  background: black;
  transition: left 0.3s ease;
  z-index: 1;
}

.tech-filter-btn span {
  position: relative;
  z-index: 2;
}

.tech-filter-btn.active,
.tech-filter-btn:hover {
  /* background: linear-gradient(135deg, #3caefc 50%, #7d25cd 100%);
  border-color: #3caefc; */
  background: black;
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 174, 252, 0.3);
}

.tech-filter-btn.active:before,
.tech-filter-btn:hover:before {
  left: 0;
}

/* Tech Stack Grid */
.tech-stack-grid {
  min-height: 400px;
}

.tech-item {
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.tech-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Tech Cards */
.tech-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #3caefc;
}

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

.tech-card:hover::before {
  left: 100%;
}

/* Tech Icons */
.tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tech-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Tech Names */
.tech-name {
  color: #2c2c2c;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-name {
  color: #3caefc;
}

/* Load More Button */
.load-more-tech {
  background: linear-gradient(135deg, #3caefc 50%, #7d25cd 100%);
  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.load-more-tech:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(60, 174, 252, 0.4);
  background: linear-gradient(135deg, #7d25cd 50%, #3caefc 100%);
}

/* Responsive Design */
@media (max-width: 991px) {
  .tech-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    row-gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0 15px;
  }

  .tech-filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .tech-card {
    height: 160px;
    padding: 1.5rem 0.8rem;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 60px 0;
  }

  .tech-stack-section h2 {
    font-size: 2rem;
  }

  .tech-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    row-gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0 15px;
  }

  .tech-filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 20px;
    flex: 0 0 auto;
    min-width: fit-content;
    white-space: nowrap;
  }

  .tech-stack-grid {
    justify-content: center;
    gap: 1rem;
    row-gap: 1.5rem;
  }

  .tech-card {
    height: 140px;
    padding: 1rem 0.5rem;
  }

  .tech-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
  }

  .tech-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .tech-filter-wrapper {
    gap: 0.4rem;
    row-gap: 0.6rem;
    padding: 0 10px;
  }

  .tech-filter-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    border-radius: 18px;
  }

  .tech-stack-grid {
    justify-content: center;
    gap: 0.8rem;
    row-gap: 1.2rem;
  }

  .tech-card {
    height: 120px;
    padding: 0.8rem 0.4rem;
  }

  .tech-name {
    font-size: 0.8rem;
  }
}

/* Very small devices - ultra compact */
@media (max-width: 480px) {
  .tech-filter-wrapper {
    gap: 0.3rem;
    row-gap: 0.5rem;
    padding: 0 8px;
  }

  .tech-filter-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.65rem;
    border-radius: 15px;
  }

  .tech-stack-grid {
    justify-content: center;
    gap: 0.6rem;
    row-gap: 1rem;
  }
}

/* Animation for filter transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-item.show {
  animation: fadeInUp 0.5s ease forwards;
}

/* Simple Zoom Hover Effect for Support CTA */
.support-contact-btn,
.support-call-btn {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
}

.support-contact-btn:hover,
.support-call-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.support-contact-btn:hover {
  background: white !important;
  color: #0d6efd !important;
  font-weight: bold !important;
}

.support-call-btn:hover {
  background: white !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .support-contact-btn:hover,
  .support-call-btn:hover {
    transform: scale(1.03) !important;
  }
}