/* 
===============================================
   SoulMate Premium Matrimonial CSS (Bootstrap 5)
=============================================== 
*/

/* --- Variables & Core Settings --- */
:root {
  --primary: #FF6F91;
  --secondary: #FF9671;
  --accent: #F9C74F;
  --accent-light: rgba(249, 199, 79, 0.2);
  --cream: #FFF8F0;
  --charcoal: #2E2E2E;
}

body {
  overflow-x: hidden;
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* Custom Selection */
::selection {
  background-color: var(--primary);
  color: white;
}

/* Typography Helpers */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-cream {
  background-color: var(--cream) !important;
}

.bg-charcoal {
  background-color: var(--charcoal) !important;
}

.bg-accent-light {
  background-color: var(--accent-light) !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.ls-tight {
  letter-spacing: -0.04em !important;
}

.ls-wider {
  letter-spacing: 0.1em !important;
}

.lh-lg {
  line-height: 1.8 !important;
}

.hover-primary:hover {
  color: var(--primary) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Gradient Utilities --- */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-size: 200% auto;
  border: none;
  transition: all 0.4s ease;
}

.btn-gradient:hover {
  background-position: right center;
  color: white !important;
}

/* --- Shadow Utilities --- */
.shadow-soft {
  box-shadow: 0 10px 40px -10px rgba(255, 111, 145, 0.25) !important;
}

.shadow-card {
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.06) !important;
}

.shadow-floating {
  box-shadow: 0 30px 60px -15px rgba(255, 111, 145, 0.15) !important;
}

/* hover helpers */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1) !important;
}

/* --- Navbar --- */
.custom-pill {
  border-radius: 20px !important;
}

@media (max-width: 991.98px) {
  .custom-pill {
    border-radius: 20px !important;
  }

  .navbar-collapse {
    background-color: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 15px;
    box-shadow: 0 15px 40px -10 rgba(0, 0, 0, 0.1);
  }
}

.navbar {
  background: transparent;
  height: 85px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center;
}

.nav-scrolled {
  /* background: rgba(255, 255, 255, 0.98) !important; */
  /* backdrop-filter: blur(10px); */
  /* box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); */
  height: 85px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Responsive Footer --- */
@media (max-width: 767.98px) {
  footer .row>div {
    text-align: start;
  }

  footer .d-flex {
    justify-content: start !important;
  }
}

/* --- Forms Settings --- */
.form-input {
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  color: var(--charcoal);
  box-shadow: none !important;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.15) !important;
  background-color: #FFFFFF;
}

.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232E2E2E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.h-input {
  height: calc(3rem + 2px);
}

.error-input {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
}

.error-input:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* --- Hero Blobs & Elements --- */
.blob {
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 111, 145, 0.15);
  right: -100px;
  top: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 150, 113, 0.15);
  left: -100px;
  bottom: -100px;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(249, 199, 79, 0.1);
  left: 0;
}

.blob-white {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
}

.avatar-group .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  margin-left: -15px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.floating-badge {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: max-content;
  z-index: 5;
}

/* --- Quick Search --- */
.quick-search {
  margin-top: -3rem;
}

/* --- Stats Icons --- */
.icon-circle-lg {
  width: 80px;
  height: 80px;
}

/* --- Swiper Customize --- */
.swiper-pagination {
  position: relative !important;
  margin-top: 2rem !important;
}

.swiper-pagination-bullet {
  background: var(--secondary) !important;
  opacity: 0.4 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 10px !important;
}

.swiper-slide .zoom-hover {
  object-position: 0px -35px;
  transition: object-position 0.3s ease;
}

/* .card:hover .zoom-hover {
  object-position: 0px 0px;
} */

/* Fix Swiper Equal Height */
.testimonialSwiper .swiper-slide {
  height: auto;
}

.testimonialSwiper .swiper-slide>div {
  height: 100%;

}

.profileSwiper .card .position-relative {
  height: 420px !important;
}

.swiper-button-next-custom,
.swiper-button-prev-custom {
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

@media screen and (max-width: 767.98px) {
  .modal-content {
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .modal-profile-img {
    min-height: 350px !important;
    max-height: 400px !important;
    object-position: 0px -10px;
  }
}

@media screen and (min-width: 768px) {
  .modal-content {
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .modal-profile-img {
    min-height: 480px;
    height: 100%;
  }
}


/* --- Cards --- */
.card-overlay {
  background: linear-gradient(to top, rgba(46, 46, 46, 0.9), transparent);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zoom-hover {
  transition: transform 0.8s ease;
}

.card:hover .zoom-hover {
  transform: scale(1.08);
}

/* --- Matches Grid --- */
.match-overlay {
  background: linear-gradient(to top, rgba(46, 46, 46, 0.9) 0%, rgba(46, 46, 46, 0.2) 50%, transparent 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.match-card:hover .match-overlay {
  opacity: 1;
}

.match-actions {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.match-card:hover .match-actions {
  max-height: 50px;
  opacity: 1;
  margin-top: 15px;
}

.match-img {
  transition: transform 0.8s ease;
}

.match-card:hover .match-img {
  transform: scale(1.1);
}

/* --- Footer --- */
.social-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Keyframes */
@keyframes beat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.beat-hover:hover {
  animation: beat 1s infinite;
}

/* --- Pricing Section --- */
.bg-secondary-subtle {
  background-color: rgba(255, 150, 113, 0.15) !important;
}

.premium-card {
  z-index: 2;
  background: #ffffff;
  transition: transform 0.3s ease;
}

/* --- Accordion Custom --- */

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: var(--primary) !important;
  box-shadow: none;
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
}

.custom-accordion .accordion-item {
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button::after {
  filter: grayscale(1);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(0.5) sepia(1) saturate(5) hue-rotate(300deg);
}

@media (min-width: 992px) {
  .premium-card {
    transform: scale(1.05);
  }
}

/* --- Custom Dropdowns Override --- */
.custom-select-dropdown .dropdown-menu {
  animation: fadeIn 0.15s ease;
}

.custom-select-dropdown .btn.dropdown-toggle-custom::after {
  display: none !important;
  /* Hide native dropdown caret if it duplicates */
}

.dropdown-item.dropdown-option:hover {
  background-color: var(--cream);
  color: var(--primary);
  font-weight: 500;
}

/* --- UI Tweaks (Shadows & Navigation) --- */
.hover-float-shadow {
  transition: all 0.3s ease;
}

.hover-float-shadow:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important; */
}

.elite-btn:hover {
  color: #fff !important;
  background-color: #9b59b6 !important;
  border-color: #9b59b6 !important;
}

#mainNav {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.match-img {
  height: 450px !important;
}

/* --- UI Tweaks (Shadows & Navigation) --- */
.hover-float-shadow {
  transition: all 0.3s ease;
}

.hover-float-shadow:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.elite-btn:hover {
  color: #fff !important;
  background-color: #9b59b6 !important;
  border-color: #9b59b6 !important;
}

#navbar {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}



@media (min-width: 992px) {
  .custom-pill {
    border-radius: 1.5rem !important;
  }
}

@media (max-width: 991.98px) {
  .custom-pill {
    border-radius: 1.5rem !important;
  }
}


/* Fix Anchor Scroll Position under navbar */
html {
  scroll-behavior: smooth;
}

*[id] {
  scroll-margin-top: 85px;
}

/* Specific offsets for Support anchors so they show contextual space */
#help,
#safety,
#privacy,
#terms,
#contact {
  scroll-margin-top: 160px;
}

/* --- Flip Animations for Forms --- */
.flip-container {
  perspective: 1000px;
}

.flipper {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
}

.flip-front,
.flip-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  width: 100%;
}

.flip-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: rotateY(180deg);
  background: white;
  border-radius: inherit;
  z-index: 1;
}

.flipper.flipped {
  transform: rotateY(180deg);
}

.contact-form {
  width: 800px;
  margin: 5px auto;
}

/* --- Custom Interactive Cursor --- */
@media (pointer: fine) {

  body,
  a,
  button,
  input,
  textarea,
  select,
  .dropdown-item {
    cursor: none !important;
  }
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  transition: background-color 0.1s ease-out;
}

.cursor-dot.cursor-hover-dot {
  background-color: rgba(160, 160, 160, 0.575) !important;
}

.cursor-outline {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 111, 145, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99998;
  pointer-events: none;
  transition: width 0.1s ease-out, height 0.1s ease-out, background-color 0.1s ease-out;
}


.cursor-hover {

  width: 65px;
  height: 65px;
  /* background-color: rgba(255, 111, 145, 0.103); */
  background-color: rgba(160, 160, 160, 0.219);
  border-color: rgba(160, 160, 160, 0.712);
}

/* --- Scroll to Top Button with Spinning Ring --- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(255, 111, 145, 0.4);
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2.5px dashed rgba(255, 111, 145, 0.8);
  border-radius: 50%;
  animation: spinSlow 8s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}