/* ==========================================================================
   ASTROLOGER & ASTROLOGY CONSULTANCY WEBSITE STYLESHEET (astrologer.css)
   Style: Divine Celestial / Vedic Gold / Spiritual Luxury
   ========================================================================== */

:root {
  --primary: #4C1D95;
  --primary-dark: #3B0764;
  --primary-light: #F3E8FF;
  --secondary: #7C3AED;
  --secondary-light: #DDD6FE;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --bg-main: #FFFDF7;
  --bg-spiritual-light: #FFFBF0;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --text-light-muted: #D1D5DB;
  --border-light: #F3E8FF;
  --border-gold: rgba(245, 158, 11, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(76, 29, 149, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(245, 158, 11, 0.1);
  --shadow-lg: 0 20px 35px -10px rgba(76, 29, 149, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

strong, b {
  font-weight: 700;
  color: var(--primary);
}

.bg-purple-gradient strong,
.bg-purple-gradient b,
.text-white strong,
.text-white b,
.text-light strong,
.text-light b,
.footer-theme strong,
.footer-theme b {
  color: inherit !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Spacing & Utilities */
.section-padding {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 40px 0;
  }
}

.bg-spiritual-light {
  background-color: var(--bg-spiritual-light);
}

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

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

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

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

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

.border-purple-border {
  border-color: rgba(124, 58, 237, 0.2) !important;
}

/* Animations */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 35s linear infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-pulse {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}

/* Header & Navigation */
.navbar-theme {
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition);
  padding: 10px 0;
}

.brand-logo-img {
  max-height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  object-fit: contain;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  font-size: 0.88rem;
  padding: 6px 10px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.btn-book-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.3);
  border: none;
  transition: var(--transition);
}

.btn-book-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 29, 149, 0.45);
}

@media (min-width: 992px) and (max-width: 1250px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 4px 6px !important;
  }
  .btn-book-nav {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .navbar-nav {
    gap: 0px !important;
  }
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  padding-top: 140px;
  padding-bottom: 70px;
  background-color: var(--bg-main);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hero-mandala-overlay {
  position: absolute;
  right: -100px;
  top: 50px;
  width: 500px;
  height: 500px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L52 20 L58 5 L58 23 L67 10 L64 27 L75 18 L70 32 L81 27 L73 39 L85 37 L75 46 L87 47 L75 52 L86 58 L73 60 L83 67 L70 68 L78 77 L65 74 L71 83 L58 78 L61 88 L52 80 L50 90 L48 80 L39 88 L42 78 L29 83 L35 74 L22 77 L30 68 L17 67 L27 60 L14 58 L25 52 L13 47 L25 46 L15 37 L27 39 L19 27 L30 32 L25 18 L36 27 L33 10 L42 23 L42 5 L48 20 Z' fill='%23f59e0b' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  opacity: 0.8;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-tagline {
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  color: var(--text-dark);
}

.hero-image-frame {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-image-frame {
    width: 250px;
    height: 250px;
    margin-top: 20px;
  }
}

.cosmic-circle-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  animation: spin-slow 60s linear infinite;
}

.frame-zodiac-signs {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(76, 29, 149, 0.08);
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

.hero-profile-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-light);
  border: 6px solid #fff;
}

/* Quick Actions Bar */
.action-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.quick-action-link:hover .action-icon-wrapper {
  transform: translateY(-4px);
  background-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* Universal Cards & Spiritual Goal Cards */
.universal-card, .spiritual-goal-card, .highlight-item-card, .astrology-img-card, .gallery-item-card, .video-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-bottom: 3px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.universal-card:hover, .spiritual-goal-card:hover, .highlight-item-card:hover, .astrology-img-card:hover, .gallery-item-card:hover, .video-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.spiritual-goal-card .goal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Section tags & headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Services Page Customizations */
.service-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.service-img-wrapper img {
  transition: var(--transition);
}

.universal-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

/* Gallery Hover Layout */
.gallery-overlay {
  position: relative;
  display: block;
}

.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(76, 29, 149, 0.7);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.gallery-item-card:hover .gallery-overlay-hover {
  opacity: 1;
}

/* Swiper Testimonials Slider */
.swiper-testimonials {
  position: relative;
  padding-bottom: 50px !important;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.swiper-button-prev, .swiper-button-next {
  color: var(--primary) !important;
  width: 44px !important;
  height: 44px !important;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

/* Accordion FAQ styles */
.accordion-item {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.accordion-button {
  background-color: transparent !important;
  color: var(--text-dark) !important;
  box-shadow: none !important;
  padding: 20px !important;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234C1D95'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}

.accordion-body {
  padding: 0 20px 24px 20px !important;
  color: var(--text-muted);
}

/* Business Hours Gradient Card */
.bg-purple-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}

.bg-purple-gradient .read-more-btn {
  color: rgba(255, 255, 255, 0.8) !important;
}

.bg-purple-gradient .read-more-btn:hover {
  color: #FFFFFF !important;
}

.bg-purple-gradient::before {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* Contact Person & Form layout */
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon, .footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon:hover, .footer-social-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.bg-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.bg-facebook { background: #3b5998; }
.bg-twitter { background: #000000; }
.bg-youtube { background: #ff0000; }
.bg-linkedin { background: #0077b5; }
.bg-telegram { background: #0088cc; }

/* Dynamic Form input fields */
.form-theme .form-control, .form-theme .form-select {
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-theme .form-control:focus, .form-theme .form-select:focus {
  border-color: var(--secondary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.3);
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 29, 149, 0.45);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--accent) 0%, #D97706 100%);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: var(--transition);
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-outline-purple {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-purple:hover {
  background-color: var(--primary);
  color: #fff !important;
}

.btn-outline-gold {
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-gold:hover {
  background-color: var(--accent);
  color: #fff !important;
}

/* Footer layout */
.footer-theme {
  background: #1E1B4B;
  color: var(--text-light-muted);
  padding: 60px 0 30px 0;
  border-top: 3px solid var(--accent);
}

.text-light-muted {
  color: #94A3B8 !important;
}

.footer-theme .text-primary-custom {
  color: var(--accent) !important; /* Vedic gold contrast */
  transition: color 0.2s ease;
}
.footer-theme .text-primary-custom:hover {
  color: #FBBF24 !important;
}

.footer-social-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-icon:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Floating buttons */
.floating-ctas {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 1050;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: none;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
}

.wa-float { background: #25d366; }
.call-float { background: #0ea5e9; }
.book-float { background: var(--accent); }
.scroll-top-float {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
}

.scroll-top-float.show {
  opacity: 1;
  visibility: visible;
}

/* Bottom Mobile Bar */
.bottom-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  z-index: 1040;
  box-shadow: 0 -4px 15px rgba(76, 29, 149, 0.08);
}

.bottom-bar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  transition: var(--transition);
}

.bottom-bar-link i {
  color: var(--primary);
  transition: var(--transition);
}

.bottom-bar-link:hover {
  color: var(--primary);
}

.bottom-bar-link.main-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff !important;
}

.bottom-bar-link.main-action i {
  color: #fff !important;
}

/* List Centering Alignment */
.row.justify-content-center > .col-md-6,
.row.justify-content-center > .col-lg-4,
.row.justify-content-center > .col-12 {
  display: flex;
  justify-content: center;
}
.row.justify-content-center > .col-md-6 > *,
.row.justify-content-center > .col-lg-4 > *,
.row.justify-content-center > .col-12 > * {
  width: 100%;
}

/* Read More / Read Less styles */
.read-more-content {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
  width: 100%;
}

.read-more-content.expanded {
  max-height: none !important;
}

.read-more-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 0;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  text-align: inherit;
  width: 100%;
}

.read-more-btn:hover {
  color: var(--accent);
}

/* Ensure GLightbox navigation arrows are visible on mobile */
.glightbox-mobile .gprev,
.glightbox-mobile .gnext {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* Pinterest-style Masonry Gallery Grid */
.pinterest-grid {
  column-count: 4;
  column-gap: 1rem;
}

.pinterest-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.pinterest-item img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pinterest-item img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .pinterest-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .pinterest-grid {
    column-count: 2;
    column-gap: 0.75rem;
  }
  .pinterest-item {
    margin-bottom: 0.75rem;
  }
}