/* ============================
   LoveJoin — Custom Styles
   Blue-Pink Heart Theme
   ============================ */

:root {
  --lj-pink: #EC4899;
  --lj-pink-dark: #DB2777;
  --lj-pink-light: #F9A8D4;
  --lj-pink-soft: #FDF2F8;
  --lj-blue: #3B82F6;
  --lj-blue-dark: #2563EB;
  --lj-blue-light: #93C5FD;
  --lj-dark: #1E1B4B;
  --lj-dark-light: #312E81;
  --lj-accent: #FBBF24;
  --lj-bg-light: #FDF2F8;
  --lj-text-muted: #6B7280;
  --lj-radius: 1.25rem;
  --lj-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
  --lj-shadow-hover: 0 14px 40px rgba(236, 72, 153, 0.15);
  --lj-gradient: linear-gradient(135deg, #EC4899 0%, #3B82F6 100%);
  --lj-gradient-dark: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  --lj-gradient-pink: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--lj-dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

::selection {
  background: var(--lj-pink);
  color: #fff;
}

/* ---------- Bootstrap Overrides ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--lj-pink);
  border-color: var(--lj-pink);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--lj-pink-dark);
  border-color: var(--lj-pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.btn-outline-primary {
  color: var(--lj-pink);
  border-color: var(--lj-pink);
}

.btn-outline-primary:hover {
  background: var(--lj-pink);
  border-color: var(--lj-pink);
}

.btn-outline-dark:hover {
  transform: translateY(-2px);
  border-color: var(--lj-blue);
  color: var(--lj-blue);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
}

/* ---------- Color Helpers ---------- */
.bg-primary-soft { background: rgba(236, 72, 153, 0.1) !important; }
.bg-pink-soft { background: rgba(236, 72, 153, 0.1) !important; }
.bg-success-soft { background: rgba(25, 135, 84, 0.1) !important; }
.bg-info-soft { background: rgba(59, 130, 246, 0.1) !important; }
.bg-warning-soft { background: rgba(251, 191, 36, 0.15) !important; }
.bg-danger-soft { background: rgba(220, 53, 69, 0.1) !important; }
.bg-blue-soft { background: rgba(59, 130, 246, 0.1) !important; }

.text-primary { color: var(--lj-pink) !important; }
.text-pink { color: var(--lj-pink) !important; }
.text-blue { color: var(--lj-blue) !important; }
.text-light-secondary { color: rgba(255, 255, 255, 0.65); }

.bg-dark-custom {
  background: var(--lj-gradient-dark);
}

.text-gradient {
  background: var(--lj-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-pink {
  background: var(--lj-gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(236, 72, 153, 0.06);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(236, 72, 153, 0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lj-dark);
}

.brand-text {
  letter-spacing: -0.5px;
  background: var(--lj-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-custom .nav-link {
  font-weight: 600;
  color: var(--lj-dark);
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--lj-pink);
  background: rgba(236, 72, 153, 0.06);
}

.nav-cta .btn {
  font-size: 0.875rem;
  padding: 0.45rem 1.1rem;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at top right, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(236, 72, 153, 0.15);
  border-radius: var(--lj-radius);
  z-index: -1;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 60%;
  height: 60%;
  background: var(--lj-gradient);
  border-radius: var(--lj-radius);
  z-index: -2;
  opacity: 0.1;
}

.hero-image-wrapper img {
  max-width: 100%;
  border-radius: var(--lj-radius);
}

/* ---------- Client Logos Section ---------- */
.client-logo-section {
  padding: 1.5rem 0;
}

.client-logo {
  max-height: 110px;
  max-width: 200px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.35s ease;
  padding: 10px;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* ---------- Feature Cards ---------- */
.feature-card {
  border: none;
  border-radius: var(--lj-radius);
  box-shadow: var(--lj-shadow);
  transition: all 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--lj-shadow-hover);
}

.feature-card img {
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.feature-card:hover img {
  transform: scale(1.03);
}

/* ---------- Icon Circle ---------- */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto;
}

/* ---------- Story Cards ---------- */
.story-card {
  border: none;
  border-radius: var(--lj-radius);
  box-shadow: var(--lj-shadow);
  transition: all 0.35s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lj-shadow-hover);
}

.story-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lj-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.test-quote {
  font-size: 2.5rem;
  color: var(--lj-pink-light);
  opacity: 0.5;
}

.test-author {
  color: var(--lj-accent) !important;
  font-style: italic;
  font-weight: 600;
  text-align: right;
  margin-top: 1rem;
}

.carousel-indicators-custom {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.carousel-indicators-custom button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators-custom button.active {
  background: var(--lj-pink);
  width: 30px;
  border-radius: 5px;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: linear-gradient(180deg, #fff 0%, var(--lj-pink-soft) 100%);
}

.contact-wrapper {
  align-items: stretch;
}

.contact-info-panel {
  background: var(--lj-gradient);
  border-radius: var(--lj-radius);
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-social-links {
  position: relative;
  z-index: 1;
}

.contact-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-social:hover {
  background: #fff;
  color: var(--lj-pink);
  transform: translateY(-3px);
}

.contact-form-panel {
  background: #fff;
  border-radius: var(--lj-radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(236, 72, 153, 0.1);
  height: 100%;
}

.contact-form-panel .form-floating > label {
  color: var(--lj-text-muted);
  font-size: 0.9rem;
}

.contact-form-panel .form-control {
  border: 2px solid #f0f0f5;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.contact-form-panel .form-control:focus {
  border-color: var(--lj-pink);
  box-shadow: 0 0 0 0.2rem rgba(236, 72, 153, 0.1);
}

.contact-form-panel textarea.form-control {
  height: 140px !important;
}

.btn-contact {
  background: var(--lj-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
  color: #fff;
}

/* ---------- Footer ---------- */
.footer-section {
  background: linear-gradient(135deg, var(--lj-dark) 0%, #0a0820 100%);
  padding: 0 0 1.5rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

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

.footer-links a:hover {
  color: var(--lj-pink-light);
  padding-left: 5px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--lj-pink);
  color: #fff;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.back-to-top {
  border-radius: 50px;
  font-size: 0.85rem;
}

.back-to-top:hover {
  background: var(--lj-pink);
  border-color: var(--lj-pink);
}

/* ---------- Stats / CTA Banner ---------- */
.stats-section {
  background: var(--lj-gradient);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.stat-item {
  padding: 1.5rem 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-number i {
  font-size: 1.5rem;
  color: var(--lj-accent);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }

  .navbar-custom .nav-link {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-section .row {
    min-height: auto !important;
    padding-top: 6rem;
  }

  .display-3 {
    font-size: 2.2rem;
  }

  .hero-image-wrapper::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 1.9rem;
  }

  .icon-circle {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}
