/* Body Background */
body {
  background-color: #020024;
  color: white;
}

/* Services Section Layout */
.services-section {
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 36px;
  color: white;
  margin-bottom: 40px;
}

.section-title .highlight {
  color: #1e90ff;
}

/* Service Cards Container */
.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Flip Card Container */
.service-card {
  perspective: 1200px;
  width: 300px;
  height: 300px;
  margin: 20px 0;
  border-radius: 20px;
  position: relative;
  transition: transform 0.5s;
  background: transparent;
}

/* Flip Inner */
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 20px;
}

.service-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Front and Back Shared Styles */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Front Side */
.flip-front {
  background-color: #0d0d2b;
  color: white;
  transition: 0.3s ease-in-out;
}

/* Back Side */
.flip-back {
  background: linear-gradient(135deg, #1e90ff, #001f54);
  color: white;
  transform: rotateY(180deg);
}

/* Icons */
.flip-front .icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #1e90ff;
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.2) rotate(10deg);
}

/* Back List */
.flip-back ul {
  padding-left: 20px;
  list-style-type: square;
}

.flip-back ul li {
  margin: 8px 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .service-card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .service-card {
    width: 90%;
  }
}

/* Flip Back Side - Luxurious Look */
.flip-back {
  background: linear-gradient(135deg, #111c44, #1e90ff);
  color: #fff;
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.4);
  padding: 30px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: all 0.6s ease;
}

/* Glowing heading on back */
.flip-back h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 6px #1e90ff;
}

/* Back side list */
.flip-back ul {
  padding-left: 20px;
  list-style-type: none;
}

.flip-back ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #e0e0e0;
  font-weight: 500;
}

.flip-back ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #00ffd5;
  font-size: 14px;
}

/* Hover transition glow */
.service-card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), 0 0 80px rgba(30, 144, 255, 0.2);
}

@media (max-width: 1000px) {
  .service-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .service-card {
    width: 90%;
  }
}
