/* Custom Styles for Psychic Soraya Website */

:root {
  --primary-color: #db9423;
  --secondary-color: #1d1d23;
  --accent-color: #e64444;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-color);
  padding-top: 60px; /* Account for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
  max-width: 100vw; /* Ensure body doesn't exceed viewport width */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Abril Fatface', cursive;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Ensure header is above other content */
}

/* Logo Styles */
.logo-container {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 10px;
  display: inline-block;
  transition: all 0.3s ease;
  z-index: 1001; /* Ensure logo is above other content */
}

.logo-container:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

/* Navigation Styles */
.navbar {
  padding: 0;
}

.navbar-nav .nav-link {
  color: white;
  margin: 0 10px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .btn-warning {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  font-weight: bold;
  padding: 8px 20px;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.navbar-nav .btn-warning:hover {
  background-color: #c88219;
  border-color: #c88219;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Unified Header Bar */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Image Header Section with Text Overlay */
.image-header-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: url('../images/image-header.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 1; /* Ensure it's below the header */
  margin-top: -60px; /* Offset the body padding-top */
  padding-top: 60px; /* Add padding to account for fixed header */
}

.header-container {
  position: relative;
  z-index: 10; /* Ensure content is above background but below header */
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.header-content h1,
.header-content h2,
.header-content h3,
.header-content p {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.header-content .lead {
  font-size: 1.25rem;
}

.header-content .btn-warning {
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Love Spells Section */
.love-spells-section {
  background-color: #f8f9fa;
}

.love-spells-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
}

/* Divine Healing Section */
.divine-healing-section h1 {
  color: var(--primary-color);
  font-size: 4rem;
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23db9423" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23db9423" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23db9423" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23db9423" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23db9423" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.testimonials-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Modern Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(219, 148, 35, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.testimonial-info {
  width: 100%;
}

.testimonial-name {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.testimonial-location {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.testimonial-rating {
  margin-top: 0.5rem;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  font-style: italic;
  margin: 0;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.3;
  font-family: 'Abril Fatface', cursive;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.testimonial-category {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-quote-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon {
  opacity: 1;
  transform: scale(1.2);
}

/* Legacy card styles for backward compatibility */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/contact-bg.jpg') center/cover no-repeat;
}

.contact-section h1 {
  color: var(--primary-color);
  font-size: 3rem;
}

.contact-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  border-radius: 50px;
  padding: 10px 20px;
}

.btn-primary:hover {
  background-color: #0a0a0f;
  border-color: #0a0a0f;
}

/* Divider Images */
img[alt="Divider"] {
  filter: brightness(0) invert(1);
}

/* Mobile-First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  body {
    padding-top: 50px;
    overflow-x: hidden;
  }
  
  header {
    padding: 0.25rem 0;
  }
  
  .image-header-section {
    height: auto;
    min-height: 100vh;
    margin-top: -50px;
    padding-top: 50px;
    padding-bottom: 2rem;
    overflow-x: hidden;
  }
  
  .header-container {
    padding: 1rem;
    max-width: 95%;
    margin: 0 5px;
    min-height: auto;
    overflow-x: hidden;
  }
  
  .header-content h1 {
    font-size: 1.8rem;
    word-wrap: break-word;
  }
  
  .header-content h2 {
    font-size: 1.2rem;
    word-wrap: break-word;
  }
  
  .header-content .lead {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }
  
  .logo-container img {
    max-height: 40px !important;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    white-space: nowrap;
  }
  
  .header-content small {
    font-size: 0.75rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }
  
  .testimonial-card {
    padding: 1rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }
  
  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
  }
  
  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.5rem;
  }
  
  /* Prevent any element from causing horizontal scroll */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    padding-top: 55px;
  }
  
  .image-header-section {
    height: auto;
    min-height: 100vh;
    margin-top: -55px;
    padding-top: 55px;
    padding-bottom: 2rem;
  }
  
  .header-content h1 {
    font-size: 2.2rem;
  }
  
  .header-content h2 {
    font-size: 1.4rem;
  }
  
  .logo-container img {
    max-height: 50px !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .image-header-section {
    height: auto;
    min-height: 100vh;
    padding-bottom: 2rem;
  }
  
  .header-container {
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .header-content h1 {
    font-size: 2.8rem;
  }
  
  .header-content h2 {
    font-size: 1.6rem;
  }
  
  .divine-healing-section h1 {
    font-size: 2.8rem;
  }
  
  .love-spells-section h2 {
    font-size: 2.2rem;
  }
  
  .testimonials-section h2 {
    font-size: 2.2rem;
  }
  
  .contact-section h1 {
    font-size: 2.2rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .header-container {
    padding: 2rem;
    max-width: 85%;
  }
  
  .header-content h1 {
    font-size: 3.5rem;
  }
  
  .header-content h2 {
    font-size: 1.8rem;
  }
  
  .divine-healing-section h1 {
    font-size: 3.5rem;
  }
  
  .love-spells-section h2 {
    font-size: 2.5rem;
  }
  
  .testimonials-section h2 {
    font-size: 2.5rem;
  }
  
  .contact-section h1 {
    font-size: 2.8rem;
  }
}

/* Common mobile adjustments */
@media (max-width: 991.98px) {
  /* Override the large min-height for mobile devices */
  .image-header-section {
    min-height: 100vh !important;
    height: auto !important;
  }
  
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo-container {
    margin-bottom: 0.5rem;
  }
  
  .navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    margin-top: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 0.5rem;
  }
  
  .testimonial-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .testimonial-category {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Global responsive fixes */
* {
  box-sizing: border-box;
}

.container, .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366; /* Official WhatsApp green */
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999; /* Higher z-index to ensure visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E; /* Darker WhatsApp green on hover */
  color: white;
  text-decoration: none;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* WhatsApp pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Mobile responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
    font-size: 28px;
    z-index: 9999;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    z-index: 9999;
  }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 360px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 8px;
    right: 8px;
    font-size: 20px;
  }
  
  .header-container {
    padding: 0.5rem;
    margin: 0 2px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

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

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

/* Form Elements */
.form-control {
  border-radius: 25px;
  padding: 10px 20px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(219, 148, 35, 0.25);
}