/* ===================================
   CORE SERVICES OVERVIEW SECTION
   =================================== */

.services-overview {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

/* Background Decorative Shapes */
.services-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.bg-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--brick), var(--navy));
  top: -150px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}

.bg-shape.shape-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--navy), var(--brick));
  bottom: -100px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.bg-shape.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--brick);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Section Header */
.section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}

.section-label {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(
    135deg,
    rgba(146, 47, 22, 0.1),
    rgba(146, 47, 22, 0.05)
  );
  border: 1px solid rgba(146, 47, 22, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.section-label:hover::before {
  left: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--navy), #1a1f4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 18px;
  line-height: 1.7;
  color: #4a5568;
  max-width: 650px;
  margin: 0 auto;
}

/* ===================================
   SERVICES GRID
   =================================== */

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ===================================
   SERVICE CARDS
   =================================== */

.service-card {
  position: relative;
  height: 100%;
  min-height: 420px;
  perspective: 1000px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  padding: 15px;
}


.service-card:hover .service-card-inner {
  transform: translateY(-10px);
}

.service-front {
  position: relative;
  height: 100%;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 14, 41, 0.08);
  overflow: hidden;
  z-index: 1;
}

.service-card:hover .service-front {
  box-shadow: 0 20px 60px rgba(146, 47, 22, 0.15);
  border-color: var(--brick);
}

/* Hover Effect Overlay */
.service-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(146, 47, 22, 0.05),
    rgba(10, 14, 41, 0.02)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover .service-hover-effect {
  opacity: 1;
}

/* Icon Wrapper */
.service-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
}

.service-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(146, 47, 22, 0.1),
    rgba(146, 47, 22, 0.05)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brick);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.icon-bg-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: var(--brick);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0.1;
}

.service-card:hover .service-icon {
  background: var(--brick);
  color: white;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(146, 47, 22, 0.3);
}

.service-card:hover .icon-bg-circle {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Service Title */
.service-front h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.service-card:hover .service-front h3 {
  color: var(--brick);
}

/* Service Description */
.service-front p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Feature Badges */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.feature-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(10, 14, 41, 0.05);
  border: 1px solid rgba(10, 14, 41, 0.1);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.3s ease;
}

.service-card:hover .feature-badge {
  background: rgba(146, 47, 22, 0.1);
  border-color: var(--brick);
  color: var(--brick);
  transform: translateY(-2px);
}

/* Service Link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brick);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.service-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brick);
  transition: width 0.3s ease;
}

.service-link:hover::after {
  width: calc(100% - 28px);
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-link:hover svg {
  transform: translateX(5px);
}

/* ===================================
   FEATURED CTA CARD
   =================================== */

.featured-cta-card {
  background: linear-gradient(135deg, var(--brick), #a83a20);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.featured-cta-card .service-front {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 50px 40px;
  text-align: center;
}

.featured-content {
  position: relative;
  z-index: 2;
  color: white;
}

.featured-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.featured-cta-card:hover .featured-icon {
  transform: scale(1.1) rotate(10deg);
  background: rgba(255, 255, 255, 0.25);
}

.featured-content h3 {
  color: var(--brick);
  font-size: 24px;
  margin-bottom: 15px;
}

.featured-content p {
  /* color: rgba(255, 255, 255, 0.9); */
  color: var(--navy); 
  margin-bottom: 30px;
}

.featured-decoration {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

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

/* CTA Button in Featured Card */
.featured-content .btn {
  background: white;
  color: var(--brick);
  border: none;
}

.featured-content .btn:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brick), #a83a20);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(146, 47, 22, 0.3);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 14, 41, 0.2);
}

/* ===================================
   SERVICES CTA
   =================================== */

.services-cta {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.03;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.05;
  }
}

/* Card Entrance Animation */
@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: cardSlideUp 0.6s ease backwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

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

@media (max-width: 1024px) {
  .services-overview {
    padding: 100px 0;
  }

  .section-title {
    font-size: 40px;
  }

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

  .service-card {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .services-overview {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-description {
    font-size: 16px;
  }

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

  .service-card {
    min-height: 380px;
  }

  .service-front {
    padding: 35px 25px;
  }

  .service-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-front h3 {
    font-size: 20px;
  }

  .service-front p {
    font-size: 14px;
  }

  .bg-shape.shape-1 {
    width: 300px;
    height: 300px;
  }

  .bg-shape.shape-2 {
    width: 250px;
    height: 250px;
  }

  .featured-cta-card .service-front {
    padding: 40px 30px;
  }
}

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

  .section-label {
    font-size: 11px;
    padding: 6px 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-description {
    font-size: 15px;
  }

  .service-card {
    min-height: 360px;
  }

  .service-front {
    padding: 30px 20px;
  }

  .service-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .service-icon svg {
    width: 32px;
    height: 32px;
  }

  .service-front h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .service-front p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .feature-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .service-link {
    font-size: 14px;
  }

  .featured-content h3 {
    font-size: 20px;
  }

  .featured-content p {
    font-size: 14px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.service-card:focus-within {
  outline: 3px solid var(--brick);
  outline-offset: 5px;
}

.service-link:focus {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-icon,
  .feature-badge,
  .bg-shape,
  .featured-decoration {
    animation: none !important;
    transition: none !important;
  }
}
