@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #ff5864;
  --secondary: #fe3c72;
  --dark: #2e2e2e;
  --light: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--light);
  overflow-x: hidden;
}

.card-container {
  perspective: 1000px;
}

.card {
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.card.swipe-left {
  transform: translateX(-1000px) rotate(-30deg);
  opacity: 0;
}

.card.swipe-right {
  transform: translateX(1000px) rotate(30deg);
  opacity: 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gradient-bg {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-bar {
  width: 80%;
  max-width: 400px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e94560, #ff7b54);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.loading-message {
  color: white;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
  min-height: 20px;
}

.logo-3d {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255, 88, 100, 0.7);
  transform: rotateY(0deg);
  animation: rotate3d 8s infinite linear;
}

@keyframes rotate3d {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.match-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.match-modal.active {
  opacity: 1;
  pointer-events: all;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #000000, #2e2e2e);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: opacity 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255, 88, 100, 0.8);
}

.splash-text {
  color: white;
  font-size: 1.5rem;
  opacity: 0.8;
}

.heart-beat {
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.profile-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.profile-badge i {
  margin-right: 5px;
}

.profile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-bio {
  font-size: 14px;
  opacity: 0.9;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
  transform: scale(0.95);
}

.like-btn {
  background: white;
  color: var(--primary);
}

.dislike-btn {
  background: white;
  color: var(--dark);
}

.super-like-btn {
  background: white;
  color: #1da1f2;
}

.nav-item {
  position: relative;
  padding: 10px 0;
  color: #888;
  transition: color 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.video-control {
  position: absolute;
  bottom: 80px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}