/* ===== Base Reset & Layout ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #c8b3ee, #9bc6b0);
  color: #1a1a1a;
  min-height: 100vh;
  padding: 1rem;
  scroll-behavior: smooth;
}

header, footer, .flip-card, .flip-card-front, .flip-card-back {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  text-align: center;
}

/* ===== Rotating Text ===== */
.rotating-wrapper {
  height: 2.5rem;
  overflow: hidden;
  position: relative;
}

.rotating-wrapper ul {
  list-style: none;
  animation: rotateWords 12s infinite ease-in-out;
  padding: 0;
  margin: 0;
}

.rotating-wrapper li {
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


@keyframes rotateWords {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2.5rem); }
  50% { transform: translateY(-5rem); }
  75% { transform: translateY(-7.5rem); }
}

/* ===== Flip Cards ===== */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.flip-card {
  perspective: 1000px;
  width: 280px;
  height: 180px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* ===== Decorative Liquid Animation ===== */
.animation-liquid {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #c8b3ee, #805ad5);
  border-radius: 50%;
  margin: 3rem auto;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(200, 179, 238, 0.6);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* ===== Call to Action ===== */
.cta {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #805ad5;
  color: #fff;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.btn:hover,
.btn:focus {
  background: #9f7aea;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  .flip-card {
    width: 90%;
  }

  .rotating-text {
    font-size: 1.2rem;
    height: auto;
  }
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

