@import url("../css2-1");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
}

:root {
  --primary-theme: #001d3d;
  --primary-clr: #3d52a0;
  --secondary-clr: #7091e6;
  --white-clr: #fff;
  --gray-clr: #8697c4;
  --light-gray-clr: #adbbda;
  --light-white-clr: #ede8f5;
  --dark-clr: #00173c;
  --black-clr: #000000;
  --yellow-clr: #f8a501;
  --orange-clr: #ff7c69;
}

.smo_services {
  /* border: 1px solid red; */
}

.smo_services_wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flip-card-container {
  perspective: 1000px;
  overflow: hidden;
  width: 300px;
  height: 300px;
  border-radius: 5px;
  cursor: pointer;
}

.flip-card {
  /* background-color: transparent; */
  width: 100%;
  height: 100%;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;

  border-radius: 10px;
  padding: 30px;
}

@keyframes borderAnim {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.flip-card-front {
  background-color: #ededed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.flip-card-front img {
  width: 200px;
  height: 200px;
  /* border: 1px solid #ededed; */
}

.flip-card-back {
  background-color: var(--dark-clr);
  color: white;
  transform: rotateY(180deg);
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.flip-card-back p {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Number of lines to display */
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white !important;  
  
}

/* Slide-in animation */
@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Apply animation to flip cards */
.flip-card {
  animation: slideIn 0.6s ease-out forwards;
}

/* Staggered animation for multiple cards */
.flip-card:nth-child(1) {
  animation-delay: 0.2s;
}

.flip-card:nth-child(2) {
  animation-delay: 0.4s;
}

.flip-card:nth-child(3) {
  animation-delay: 0.6s;
}

.flip-card:nth-child(4) {
  animation-delay: 0.8s;
}

/* Responsive layout voor kleinere schermen */

@media only screen and (max-width: 1200px) {
  .container {
    margin-top: 3rem;
    /* justify-content: left; */
    gap: 1.5rem;
  }
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  .container {
    margin-top: 3rem;
    justify-content: center;
    gap: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .container {
    margin-top: 3rem;
    justify-content: center;
    gap: 1rem;
  }

  .flip-card {
    transform: translateX(-100%);
  }
}
