/* digital-consulting.css - Shared styles for all digital consulting pages */

/* Reset and Prevent Horizontal Scroll */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-wrapper {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Hero Section */
.hero-2 .btn-primary {
  display: inline-block !important;
  width: auto !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* Capability Cards */
.capability-card.static-card {
  height: auto;
  perspective: none;
  position: relative;
}

.capability-card.static-card .card-content {
  transform: none !important;
  height: 100%;
}

/* Capabilities Grid - No Scroll */
.capabilities-showcase {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

/* For medium screens (tablet) */
@media (max-width: 992px) and (min-width: 769px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* For mobile screens */
@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Sign Items */
.signs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.sign-item {
  flex: 0 1 220px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: white;
  border-radius: 60px;
  padding: 2rem 1rem 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(225, 27, 34, 0.1);
  cursor: default;
}

.sign-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 30px -12px rgba(225, 27, 34, 0.2);
  border-color: #E01A22 !important;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: #16469D;
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #16469D;
}

.accordion-item {
  overflow: hidden;
}

/* Why SolidPro Cards */
.solidpro-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.solidpro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
  border-color: #E01A22 !important;
}

/* Geometric Approach Shapes */
.geometric-approach {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.geo-shapes .shape {
  position: absolute;
  opacity: 0.1;
}

.geo-shapes .circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #E01A22;
  top: -100px;
  right: -100px;
}

.geo-shapes .triangle {
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 260px solid #E01A22;
  bottom: -100px;
  left: -100px;
}

.geo-shapes .square {
  width: 200px;
  height: 200px;
  background: #E01A22;
  bottom: 50px;
  right: 50px;
}

.geo-shapes .line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E01A22, transparent);
  top: 50%;
}

/* Integration Blueprint */
.integration-blueprint {
  background: linear-gradient(135deg, #f0f5ff 0%, #e9f0fa 100%);
  position: relative;
  overflow-x: hidden !important;
  width: 100% !important;
}

/* Card Number Styling */
.card-number {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: #E01A22;
  opacity: 0.3;
}

/* Hero Title Animation */
.hero-title {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix for any overflowing elements */
img, video, iframe, svg {
  max-width: 100% !important;
  height: auto;
}

/* What We Deliver Section Cards */
.capability-card .card-front {
  transition: all 0.3s ease;
}

.capability-card .card-front:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
}

/* Case Studies Cards */
.bg-light {
  transition: all 0.3s ease;
}

.bg-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.15);
}

/* Fix for any overflow from swiper */
.swiper-container, .swiper-wrapper, .swiper-slide {
  overflow: hidden !important;
}

.hero-slider-2 {
  overflow: hidden !important;
}

.hero-inner {
  overflow: hidden !important;
}

/* Additional mobile fixes */
@media (max-width: 576px) {
  .capabilities-grid {
    gap: 0.8rem;
  }
  
  .sign-item {
    flex: 0 1 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  h1.hero-title {
    font-size: 1.8rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
}