/* ===================================
   SECTION HEADER STYLES
   =================================== */
.ps-header {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  position: relative;
}

.ps-title {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 20px 0;
  color: #1DBFA7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ps-description {
  font-size: 16px;
  line-height: 1.8;
  color: #000000;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   SERVICES CARDS (01.html)
   =================================== */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

@keyframes borderShift {
  0% {
    border-bottom-color: #1DBFA7;
  }
  33% {
    border-bottom-color: #FF1493;
  }
  66% {
    border-bottom-color: #FFA500;
  }
  100% {
    border-bottom-color: #1DBFA7;
  }
}

.card {
  position: relative;
  min-height: 450px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  transform-style: preserve-3d;
  perspective: 1200px;
  border-bottom: 4px solid #1DBFA7;
  animation: borderShift 4s ease-in-out infinite;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 1;
  border-radius: 16px;
}

.card:nth-child(1)::before {
  background-image: url('service-pco.jpg');
}

.card:nth-child(2)::before {
  background-image: url('service-avia.jpg');
}

.card:nth-child(3)::before {
  background-image: url('service-accommodation.jpg');
}

.card:nth-child(4)::before {
  background-image: url('service-transfers.jpg');
}

.card:nth-child(5)::before {
  background-image: url('service-excursions.jpg');
}

.card:nth-child(6)::before {
  background-image: url('service-vip.jpg');
}

.card:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(-5deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35), 0 0 30px rgba(29, 191, 167, 0.3);
}

.card:hover::before {
  transform: scale(1.08);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0) 60%);
  z-index: 2;
  transition: opacity 0.5s ease;
}

.card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 5%, rgba(0,0,0,0) 70%);
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  width: 100%;
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.card a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  opacity: 0.85;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.card:hover a {
  opacity: 1;
  transform: translateX(5px);
}

.card a span {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.card:hover a span {
  transform: translateX(5px);
}

/* ===================================
   FEATURES BOXES (02.html)
   =================================== */
.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 50px;
}

@keyframes topBorderShift {
  0% {
    border-top-color: #1DBFA7;
    box-shadow: 0 -3px 15px rgba(29, 191, 167, 0.3);
  }
  33% {
    border-top-color: #FF1493;
    box-shadow: 0 -3px 15px rgba(255, 20, 147, 0.3);
  }
  66% {
    border-top-color: #FFA500;
    box-shadow: 0 -3px 15px rgba(255, 165, 0, 0.3);
  }
  100% {
    border-top-color: #1DBFA7;
    box-shadow: 0 -3px 15px rgba(29, 191, 167, 0.3);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glowRing {
  0%, 100% {
    box-shadow: 0 0 20px rgba(29, 191, 167, 0.3), 0 0 40px rgba(29, 191, 167, 0.2), 0 0 60px rgba(29, 191, 167, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(29, 191, 167, 0.5), 0 0 60px rgba(29, 191, 167, 0.3), 0 0 90px rgba(29, 191, 167, 0.2);
  }
}

.feature-box {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 30, 40, 1) 50%, rgba(25, 25, 35, 0.95) 100%);
  backdrop-filter: blur(15px);
  color: #ffffff;
  padding: 0;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  perspective: 1500px;
  border-top: 5px solid #1DBFA7;
  overflow: hidden;
  animation: topBorderShift 4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(29, 191, 167, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowRing 3s ease-in-out infinite;
  display: none;
}

.feature-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  border-radius: 20px 20px 0 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
  transition: all 0.5s ease;
}

.feature-box:nth-child(1)::after {
  background-image: url('feature-dmc.jpg');
}

.feature-box:nth-child(2)::after {
  background-image: url('feature-mice.jpg');
}

.feature-box:nth-child(3)::after {
  background-image: url('feature-fullservice.jpg');
}

.feature-box:nth-child(4)::after {
  background-image: url('feature-partners.jpg');
}

.feature-box:nth-child(5)::after {
  background-image: url('feature-clientfocus.jpg');
}

.feature-box:nth-child(6)::after {
  background-image: url('feature-excellence.jpg');
}

.feature-box:hover {
  transform: translateY(-15px) scale(1.02);
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.95) 0%, rgba(35, 35, 45, 1) 50%, rgba(30, 30, 40, 0.95) 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(29, 191, 167, 0.2);
}

.feature-box:hover::after {
  opacity: 1;
  transform: scale(1.08);
}

.feature-content {
  padding: 190px 30px 35px;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 191, 167, 0.1), transparent 70%);
  animation: iconPulse 2s ease-in-out infinite;
  z-index: -1;
}

.icon-3d {
  font-size: 28px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  transform-style: preserve-3d;
  background: linear-gradient(145deg, #1DBFA7 0%, #17a092 50%, #15a391 100%);
  color: white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 
              0 8px 15px rgba(0,0,0,0.3),
              inset -3px -3px 10px rgba(0,0,0,0.4), 
              inset 3px 3px 10px rgba(255,255,255,0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.icon-3d::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
  filter: blur(8px);
}

.feature-box:hover .icon-3d {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 0 0 4px rgba(29, 191, 167, 0.4),
              0 0 0 8px rgba(29, 191, 167, 0.2),
              0 0 20px rgba(29, 191, 167, 0.5),
              0 20px 45px rgba(0,0,0,0.6),
              inset -4px -4px 12px rgba(0,0,0,0.5), 
              inset 4px 4px 12px rgba(255,255,255,0.15);
}

.feature-box h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.feature-box p {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 2;
  text-shadow: none;
}

/* ===================================
   TABLET RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .card {
    min-height: 400px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card-content {
    padding: 25px;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
  }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .ps-header {
    margin-bottom: 25px;
  }

  .ps-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .ps-description {
    font-size: 14px;
  }

  .card-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .card {
    min-height: 350px;
  }

  .card h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
  }

  .card-content {
    padding: 20px;
  }

  .card a {
    font-size: 14px;
  }

  .card:hover {
    transform: translateY(-10px);
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
  }

  .feature-box {
    padding: 45px 25px 30px;
  }

  .icon-wrapper {
    top: -55px;
  }

  .icon-3d {
    font-size: 48px;
    width: 105px;
    height: 105px;
  }

  .feature-box h3 {
    font-size: 15px;
    margin: 10px 0 15px 0;
  }

  .feature-box p {
    font-size: 13px;
  }
}

/* ===================================
   REFERENCES SECTION
   =================================== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.reference-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.reference-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(29, 191, 167, 0.15);
  border-color: #1DBFA7;
}

.reference-logo {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.reference-item:hover .reference-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.reference-description {
  text-align: center;
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
}

/* ===================================
   REFERENCES RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .references-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .reference-item {
    padding: 20px;
  }

  .reference-logo {
    height: 70px;
  }

  .reference-description {
    font-size: 12px;
  }
}
