/* TruPro Mobile Detailing - Custom Styles */

:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --secondary-blue: #1e40af;
  --accent-blue: #3b82f6;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --border-blue: #1e3a8a;
  --text-blue: #93c5fd;
  --text-blue-light: #dbeafe;
}

/* Base Styles */
body {
  background-color: var(--dark-bg);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Utilities */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

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

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

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
}

.btn-outline-primary {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

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

/* Header */
.navbar-custom {
  background-color: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-blue);
}

.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

/* Plain Black Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000000;
  background-image: none;
}

/* Option 2: Modern Gradient Mesh */
.hero-bg.gradient-mesh {
  background-image: none !important;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
}

/* Option 3: Subtle Car Texture */
.hero-bg.car-texture {
  background-image: 
    linear-gradient(45deg, rgba(59, 130, 246, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(59, 130, 246, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(147, 197, 253, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(147, 197, 253, 0.06) 75%) !important;
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Option 4: Professional Hexagon Pattern */
.hero-bg.hexagon-pattern {
  background-image: none !important;
  opacity: 1 !important;
  background: 
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 30%, transparent 60%),
    radial-gradient(circle at 25% 25%, rgba(147, 197, 253, 0.3) 0%, rgba(147, 197, 253, 0.1) 40%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%) !important;
  background-size: 60px 60px, 90px 90px, 75px 75px;
  background-position: 0 0, 30px 30px, 15px 45px;
}

/* Option 5: Clean Reflective Surface */
.hero-bg.reflective {
  background-image: none !important;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(37, 99, 235, 0.18) 25%,
    rgba(29, 78, 216, 0.10) 50%,
    rgba(59, 130, 246, 0.15) 75%,
    rgba(147, 197, 253, 0.08) 100%
  ) !important;
}

/* Option 6: Dynamic Wave Pattern - BOLD VERSION */
.hero-bg.wave-pattern {
  background-image: none !important;
  opacity: 1 !important;
  background: 
    repeating-linear-gradient(
      45deg,
      #3b82f6 0px,
      #3b82f6 10px,
      transparent 10px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      #93c5fd 0px,
      #93c5fd 8px,
      transparent 8px,
      transparent 35px
    ) !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
}

.hero-image-container {
  position: relative;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: white;
  color: black;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Badges Section */
.badges-section {
  background-color: var(--dark-bg);
  border-bottom: 1px solid var(--border-blue);
}

.badge-card {
  background-color: rgba(30, 64, 175, 0.2);
  border: 1px solid var(--border-blue);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--text-blue);
}

.badge-card i {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

/* Service Cards */
.service-card {
  background-color: rgba(30, 64, 175, 0.2);
  border: 1px solid var(--border-blue);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Pricing Section */
.pricing-section {
  background-color: var(--dark-bg);
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
}

.pricing-card {
  background-color: var(--darker-bg);
  border: 1px solid var(--border-blue);
  border-radius: 1rem;
  padding: 2rem;
}

.pricing-card-popular {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px var(--primary-blue);
}

/* Fleet CTA */
.fleet-cta-card {
  background-color: var(--secondary-blue);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Process Section */
.process-section {
  background-color: var(--dark-bg);
}

.process-step {
  color: white;
}

.process-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  color: white;
}

/* Testimonials */
.testimonial-card {
  background-color: rgba(30, 64, 175, 0.2);
  border: 1px solid var(--border-blue);
  border-radius: 1rem;
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Testimonial Carousel Styling */
#testimonialsCarousel .carousel-indicators {
  bottom: -50px;
}

#testimonialsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(37, 99, 235, 0.3);
  border: 2px solid var(--primary-blue);
}

#testimonialsCarousel .carousel-indicators button.active {
  background-color: var(--primary-blue);
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 5%;
  color: var(--primary-blue);
  opacity: 0.8;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  opacity: 1;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
  background-color: rgba(37, 99, 235, 0.8);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

#testimonialsCarousel .carousel-item {
  transition: transform 0.6s ease;
  padding-bottom: 4rem;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--dark-bg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img.flipped {
  transform: scaleX(-1) rotate(90deg) rotate(180deg);
}

.gallery-item img.rotated-90 {
  transform: rotate(90deg);
}

/* Uncropped display for detailed interior images */
.gallery-item.uncropped-interior img {
  object-fit: contain; /* Show full image without cropping */
  background-color: rgba(15, 23, 42, 0.8); /* Dark background to match theme */
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover img.flipped {
  transform: scaleX(-1) rotate(90deg) rotate(180deg) scale(1.05);
}

.gallery-item.uncropped-interior:hover img {
  transform: rotate(90deg) scale(1.03); /* Gentler zoom for uncropped images */
}

/* Special styling for less cropped display */
.gallery-item.less-cropped {
  aspect-ratio: auto;
  height: 300px;
}

.gallery-item.less-cropped img {
  object-fit: contain;
  background-color: rgba(15, 23, 42, 0.5);
}

/* Social Media Styles */
.btn-social {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.btn-social:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.social-links-footer a {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-links-footer a:hover {
  background-color: var(--primary-blue);
  color: white !important;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  background-color: var(--darker-bg);
}

.contact-form {
  background-color: rgba(30, 64, 175, 0.1);
  border: 1px solid var(--border-blue);
  border-radius: 1rem;
  padding: 2rem;
}

.form-control {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-blue);
  color: white;
}

.form-control:focus {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: var(--primary-blue);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-label {
  color: var(--text-blue);
  font-weight: 500;
}

.form-select {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-blue);
  color: white;
}

.form-select:focus {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: var(--primary-blue);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Footer */
.footer-section {
  background-color: var(--dark-bg);
  border-top: 1px solid var(--border-blue);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-badge {
    display: none !important;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
}

/* Alert customization */
.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #86efac;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}

/* Gallery Page Styles */
.gallery-hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  position: relative;
  overflow: hidden;
}

.gallery-hero-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 20"><path d="M0 20 Q25 0 50 10 Q75 20 100 0 V20 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x;
  background-size: 100px 20px;
  animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25px); }
}

.main-gallery-section {
  background: var(--bg-dark);
  min-height: 60vh;
}

/* Gallery Filter Tabs */
#gallery-tabs .nav-link {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin: 0 0.25rem;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

#gallery-tabs .nav-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

#gallery-tabs .nav-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Gallery Coming Soon */
.gallery-coming-soon {
  padding: 3rem 0;
}

.gallery-coming-soon .fa-camera {
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Services Preview Cards */
.service-preview-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.service-preview-card i {
  transition: all 0.3s ease;
}

.service-preview-card:hover i {
  transform: scale(1.1);
}

/* Gallery Grid (for future use when images are added) */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: var(--bg-light);
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  border-color: var(--primary);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 15px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

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

.gallery-item .overlay-content {
  text-align: center;
  color: white;
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
  .gallery-hero-section {
    padding: 3rem 0;
  }
  
  #gallery-tabs .nav-link {
    margin: 0.25rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .service-preview-card {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Gallery Call to Action */
.gallery-cta {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
}

.gallery-cta .btn {
  min-width: 160px;
}
