/* ================================
   BLUE EXCELLENT PAINTING STYLES
   Modern painting contractor website
   ================================ */

/* CSS Variables */
:root {
  /* Colors based on Blue Excellent Painting brand */
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #fbbf24;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  
  /* Text Colors */
  --text-dark: #1f2937;
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  --bg-dark: #111827;
  --bg-darker: #030712;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --container-max-width: 1320px;
  --section-padding: 5rem 0;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Section Styles */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: white;
}

.section-alt {
  background: var(--bg-light);
}

.section-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  position: relative;
  overflow: hidden;
}

.section-cta::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="paint-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paint-pattern)"/></svg>') repeat;
  opacity: 0.1;
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  background: rgba(17, 24, 39, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.98) !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white !important;
}

.navbar-brand i {
  color: var(--accent-color);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .cta-link {
  background: var(--accent-color) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  margin-left: 1rem;
}

.navbar-nav .cta-link:hover {
  background: #f59e0b !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.8));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-stats-mobile {
  margin: 2rem 0;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-compact {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-separator {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: bold;
}

.stat-tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #f59e0b;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background: white;
  color: var(--text-dark);
  border-color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-accent {
  background: var(--accent-color);
  color: var(--text-dark);
  border: none;
}

.btn-accent:hover {
  background: #f59e0b;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Service Cards */
.services-grid {
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.service-card-horizontal {
  flex-direction: row;
  align-items: center;
  padding: 2rem;
}

.service-card-horizontal .service-content {
  margin-left: 1.5rem;
  flex: 1;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--text-medium);
}

.service-features i {
  color: var(--success-color);
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

/* Gallery Section */
.gallery-container {
  margin-top: 3rem;
}

.before-after-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.before-after-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.before-after-container {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-image,
.after-image {
  position: relative;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.before-after-card:hover .gallery-image {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
}

.before-label {
  left: 1rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.after-label {
  right: 1rem;
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.project-details {
  padding: 2rem;
}

.project-details h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.project-details p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
}

/* About Section */
.owner-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.owner-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.owner-badge {
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-story h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.owner-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.credential-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.credential-item div strong {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
}

.credential-item div span {
  color: var(--text-light);
  font-size: 0.875rem;
}

.owner-contact {
  margin-top: 2rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #e5e7eb;
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.25rem;
}

.feature-card h5 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Testimonials */
.testimonials-grid {
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  border: 1px solid #e5e7eb;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

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

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: var(--accent-color);
  font-size: 1rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Process Timeline */
.process-timeline {
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #e5e7eb;
  height: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
}

.process-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  color: white;
  font-size: 1.5rem;
}

.process-step h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.process-step p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Contact Section */
.contact-methods {
  margin: 3rem 0;
}

.contact-method {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-method i {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-method h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-method p {
  margin-bottom: 0.25rem;
}

.contact-method a {
  color: white;
  font-weight: 500;
  font-size: 1.125rem;
}

.contact-method a:hover {
  color: var(--accent-color);
}

.contact-method small {
  display: block;
  margin-top: 0.25rem;
}

/* Quote Form */
.quote-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

.quote-form-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-floating {
  margin-bottom: 1rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-control:focus {
  background: white;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

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

.form-check {
  margin: 1.5rem 0;
}

.form-check-label {
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Contact Guarantee */
.contact-guarantee {
  margin-top: 3rem;
}

.guarantee-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-dark) !important;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-brand h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-contact p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Google Reviews CTA */
.google-reviews-cta {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-reviews-cta h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.google-reviews-cta p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal-content {
  border-radius: var(--radius-xl);
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--primary-color);
  color: white;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1rem;
  left: 10%;
  right: 10%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .stat-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-compact {
    padding: 0.75rem 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-card-horizontal {
    flex-direction: column;
    text-align: center;
  }
  
  .service-card-horizontal .service-content {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .before-after-container {
    height: 250px;
  }
  
  .owner-credentials {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .owner-contact {
    text-align: center;
  }
  
  .owner-contact .btn {
    display: block;
    margin: 0.5rem auto;
    max-width: 200px;
  }
  
  .guarantee-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .quote-form-container {
    padding: 2rem 1rem;
  }
  
  .contact-methods {
    margin: 2rem 0;
  }
  
  .process-timeline .row {
    gap: 2rem;
  }
  
  .navbar-nav .cta-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .row {
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-stats-mobile {
    margin: 1.5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .before-after-container {
    height: 200px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .process-step {
    padding: 1.5rem 1rem;
  }
  
  .quote-form-container {
    padding: 1.5rem 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .owner-image {
    max-width: 300px;
    height: 300px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-slow);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-slow);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-slow);
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  .footer {
    display: none;
  }
  
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  * {
    color: #000 !important;
    background: white !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #000080;
    --accent-color: #ffa500;
    --text-dark: #000000;
    --text-light: #333333;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-video {
    display: none;
  }
  
  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.5);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error States */
.error {
  color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-message {
  color: var(--success-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

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

/* Selection Styles */
::selection {
  background: var(--accent-color);
  color: var(--text-dark);
}

::-moz-selection {
  background: var(--accent-color);
  color: var(--text-dark);
}

/* Smooth Scroll */
html {
  scroll-padding-top: 100px;
}

/* Text Selection Prevention for UI Elements */
.btn,
.navbar-brand,
.process-number,
.badge-item {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Hover States for Touch Devices */
@media (hover: none) {
  .service-card:hover,
  .before-after-card:hover,
  .testimonial-card:hover,
  .feature-card:hover,
  .process-step:hover {
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background: var(--bg-dark);
    color: white;
  }
  
  .form-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .form-floating > label {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Performance Optimizations */
.hero-video,
.gallery-image,
.owner-image,
.author-image {
  will-change: transform;
}

.service-card,
.before-after-card,
.testimonial-card,
.feature-card {
  will-change: transform, box-shadow;
}

/* Content Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Image Lazy Loading Placeholder */
.lazy-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Additional Utility Classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.z-index-1 {
  z-index: 1;
}

.z-index-2 {
  z-index: 2;
}

.z-index-3 {
  z-index: 3;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-25 {
  opacity: 0.25;
}

/* Component-specific Media Queries */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .service-card {
    min-height: 400px;
  }
  
  .before-after-container {
    height: 350px;
  }
  
  .owner-image {
    height: 500px;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .container {
    max-width: 1320px;
  }
  
  .service-card {
    padding: 3rem 2.5rem;
  }
  
  .testimonial-card {
    padding: 2.5rem;
  }
}

@media (min-width: 1400px) {
  .hero-title {
    font-size: 5.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Thumbtack Badges */
.thumbtack-badges {
  padding: 20px 0;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.achievement-badge {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 12px 16px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.achievement-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.achievement-badge i {
  font-size: 1.1rem;
}

/* Payment Methods */
.payment-methods {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
}

.payment-methods h5 {
  color: #2563eb;
  margin-bottom: 15px;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
}

.payment-method i {
  color: #2563eb;
  font-size: 1.1rem;
}

/* Satisfaction Highlights */
.highlight-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-top: 4px solid #2563eb;
  transition: all 0.3s ease;
  height: 100%;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.highlight-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

.highlight-card h5 {
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 600;
}

.highlight-card p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.highlight-stat {
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlight-stat .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.highlight-stat .stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 4px;
}

/* Customer Quote Callout */
.quote-callout-card {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-callout-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.quote-callout-card .blockquote {
  position: relative;
  z-index: 2;
}

.quote-callout-card .blockquote p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  color: white;
}

.quote-callout-card .blockquote-footer {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.quote-callout-card .blockquote-footer strong {
  color: white;
}

.quote-rating {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #fbbf24;
}

.quote-rating i {
  margin: 0 2px;
}

/* Credentials Grid Enhancement */
.owner-credentials {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin: 25px 0;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.credential-item i {
  font-size: 1.5rem;
  color: #2563eb;
  width: 24px;
  text-align: center;
}

.credential-item div {
  display: flex;
  flex-direction: column;
}

.credential-item strong {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
}

.credential-item span {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Enhanced Owner Badge */
.owner-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(251, 191, 36, 0.6);
  }
}

.owner-badge i {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .badge-group {
    justify-content: center;
    gap: 8px;
  }
  
  .achievement-badge {
    font-size: 0.8rem;
    padding: 10px 14px;
  }
  
  .payment-icons {
    justify-content: center;
    gap: 12px;
  }
  
  .payment-method {
    font-size: 0.85rem;
  }
  
  .highlight-card {
    padding: 25px 15px;
  }
  
  .highlight-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .highlight-stat .stat-number {
    font-size: 1.6rem;
  }
  
  .quote-callout-card {
    padding: 30px 20px;
  }
  
  .quote-callout-card .blockquote p {
    font-size: 1rem;
  }
  
  .quote-icon {
    font-size: 2.5rem;
  }
  
  .owner-credentials {
    padding: 20px 15px;
  }
  
  .credential-item {
    padding: 12px;
  }
  
  .credential-item i {
    font-size: 1.3rem;
  }
  
  .owner-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 10px auto;
    display: inline-flex;
  }
}

@media (max-width: 576px) {
  .badge-group {
    flex-direction: column;
    align-items: center;
  }
  
  .achievement-badge {
    min-width: 200px;
    justify-content: center;
  }
  
  .owner-credentials .row {
    --bs-gutter-x: 0.75rem;
  }
  
  .credential-item {
    margin-bottom: 10px;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .achievement-badge {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #f9fafb;
    border-color: #6b7280;
  }
  
  .highlight-card {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .highlight-card h5 {
    color: #f9fafb;
  }
  
  .payment-methods {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .credential-item {
    background: #374151;
    color: #f9fafb;
  }
  
  .credential-item strong {
    color: #f9fafb;
  }
}

/* Print styles */
@media print {
  .achievement-badge,
  .highlight-card,
  .quote-callout-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .owner-badge {
    position: static;
    display: inline-block;
    margin: 10px 0;
  }
}

/* Achievement Badge Links */
.achievement-badge-link {
  text-decoration: none;
  color: inherit;
}

.achievement-badge-link:hover {
  text-decoration: none;
  color: inherit;
}

.achievement-badge-link .achievement-badge {
  cursor: pointer;
  transition: all 0.3s ease;
}

.achievement-badge-link .achievement-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Stat Links in Hero */
.stat-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.stat-link:hover {
  color: inherit;
  text-decoration: none;
  transform: scale(1.05);
}

.stat-link:hover .stat-number,
.stat-link:hover .stat-label {
  color: #fbbf24;
}

/* Review Button Enhancements */
.review-buttons .btn {
  position: relative;
  overflow: hidden;
}

.review-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.review-buttons .btn:hover::before {
  left: 100%;
}

/* Social Links Enhancement */
.social-links a {
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-links a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px) scale(1.1);
}
/* Author Avatar Icons (replacing photos) */
.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  border: 2px solid #2196f3;
}

.author-avatar i {
  color: #1976d2;
  font-size: 1.4rem;
}

/* Testimonial author layout */
.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Alternative avatar color variations */
.testimonial-card:nth-child(1) .author-avatar {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c8);
  border-color: #4caf50;
}

.testimonial-card:nth-child(1) .author-avatar i {
  color: #2e7d32;
}

.testimonial-card:nth-child(2) .author-avatar {
  background: linear-gradient(135deg, #fff3e0, #ffcc80);
  border-color: #ff9800;
}

.testimonial-card:nth-child(2) .author-avatar i {
  color: #ef6c00;
}

.testimonial-card:nth-child(3) .author-avatar {
  background: linear-gradient(135deg, #f3e5f5, #ce93d8);
  border-color: #9c27b0;
}

.testimonial-card:nth-child(3) .author-avatar i {
  color: #7b1fa2;
}

.testimonial-card:nth-child(4) .author-avatar {
  background: linear-gradient(135deg, #e0f2f1, #80cbc4);
  border-color: #009688;
}

.testimonial-card:nth-child(4) .author-avatar i {
  color: #00695c;
}

.testimonial-card:nth-child(5) .author-avatar {
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  border-color: #e91e63;
}

.testimonial-card:nth-child(5) .author-avatar i {
  color: #ad1457;
}

.testimonial-card:nth-child(6) .author-avatar {
  background: linear-gradient(135deg, #e3f2fd, #90caf9);
  border-color: #2196f3;
}

.testimonial-card:nth-child(6) .author-avatar i {
  color: #1565c0;
}

/* Hover effects for testimonial cards */
.testimonial-card:hover .author-avatar {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .author-avatar {
    width: 45px;
    height: 45px;
    margin-right: 12px;
  }
  
  .author-avatar i {
    font-size: 1.2rem;
  }
  
  .author-info strong {
    font-size: 0.95rem;
  }
  
  .author-info span {
    font-size: 0.8rem;
  }
}

/* Additional icon variations (optional) */
.testimonial-card:nth-child(odd) .author-avatar i::before {
  content: "\f007"; /* fa-user */
}

.testimonial-card:nth-child(even) .author-avatar {
  background: linear-gradient(135deg, #f0f4ff, #c7d8ff);
  border-color: #4f46e5;
}

.testimonial-card:nth-child(even) .author-avatar i {
  color: #3730a3;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .author-info strong {
    color: #f9fafb;
  }
  
  .author-info span {
    color: #d1d5db;
  }
  
  .testimonial-author {
    border-top-color: #374151;
  }
}

.decimal-point {
  font-weight: 700;
  color: inherit;
  font-size: 1em;
}

/* Fix oversized owner badge */
.owner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.75rem;
  box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
  z-index: 10;
  /* CRITICAL - constrain the size */
  max-width: 100px;
  max-height: 30px;
  white-space: nowrap;
  overflow: hidden;
}

.owner-badge i {
  font-size: 0.9rem;
}

/* Ensure the image container doesn't get stretched */
.owner-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.owner-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .owner-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 10px auto 0;
    display: inline-flex;
    max-width: none;
  }
}

.owner-badge-external {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  margin-top: 15px;
  width: fit-content;
}

/* Emergency badge fix */
.owner-badge {
  width: auto !important;
  height: auto !important;
  max-width: 120px !important;
  max-height: 35px !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 20 !important;
}

/* Clean, professional testimonial styling */
.author-avatar {
  background: #f8f9fa !important;
  border: 2px solid #dee2e6 !important;
}

.author-avatar i {
  color: #495057 !important;
}

.testimonial-card .author-info strong {
  color: #212529 !important;
  font-weight: 600 !important;
}

.testimonial-card .author-info span {
  color: #6c757d !important;
}

.testimonial-card blockquote {
  color: #495057 !important;
}

/* Project showcase cards (for single before/after images) */
.project-showcase-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.project-showcase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.gallery-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-showcase-card:hover .gallery-image-full {
  transform: scale(1.05);
}

/* Project overlay and badge */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.6));
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-showcase-card:hover .project-overlay {
  opacity: 1;
}

.project-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-showcase-card:hover .project-badge {
  transform: translateY(0);
}

/* Keep existing before-after-card styles for exterior */
.before-after-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.before-after-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.before-after-container {
  position: relative;
  height: 300px;
  display: flex;
  overflow: hidden;
}

.before-image,
.after-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.before-image img,
.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.before-after-card:hover .before-image img,
.before-after-card:hover .after-image img {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  z-index: 10;
}

.before-label {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.after-label {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

/* Project details styling */
.project-details {
  padding: 25px;
}

.project-details h4 {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.project-details p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Project tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #bfdbfe;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .project-image-container,
  .before-after-container {
    height: 250px;
  }
  
  .project-details {
    padding: 20px;
  }
  
  .project-details h4 {
    font-size: 1.1rem;
  }
  
  .project-details p {
    font-size: 0.9rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
}

/* Mobile Hero Section Fixes */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 80px 0 40px; /* Account for navbar */
  }
  
  .hero-content {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    padding: 0 10px;
  }
  
  /* Mobile Stats Card */
  .hero-stats-mobile {
    margin: 25px 15px !important;
    padding: 20px 15px !important;
    border-radius: 15px !important;
  }
  
  .stat-row {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center;
  }
  
  .stat-compact {
    min-width: auto !important;
    width: 100%;
    max-width: 200px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
  }
  
  .stat-number {
    font-size: 1.6rem !important;
    margin-bottom: 5px;
  }
  
  .stat-label {
    font-size: 0.8rem !important;
    line-height: 1.2;
  }
  
  .stat-separator {
    display: none !important;
  }
  
  .stat-tagline {
    font-size: 0.85rem !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    line-height: 1.3;
    text-align: center;
  }
  
  /* Mobile Buttons */
  .hero-buttons {
    margin-top: 30px !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 20px;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  
  .hero-stats-mobile {
    margin: 20px 10px !important;
    padding: 15px 10px !important;
  }
  
  .stat-compact {
    padding: 12px 15px;
  }
  
  .stat-number {
    font-size: 1.4rem !important;
  }
  
  .stat-label {
    font-size: 0.75rem !important;
  }
  
  .stat-tagline {
    font-size: 0.8rem !important;
  }
}

/* Fix navbar on mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0 !important;
    text-align: center;
  }
}

/* Fix promotion banner on mobile */
@media (max-width: 768px) {
  .promotion-section {
    padding: 15px 0 !important;
  }
  
  .promotion-content {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
    font-size: 0.9rem !important;
  }
  
  .promotion-content .btn {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
  }
}

/* Ensure content doesn't get cut off */
.hero-section .container {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Add this CSS for the hero image */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide error notifications */
.notification-toast.alert-error {
  display: none !important;
}

/* Or hide all notifications temporarily */
.notification-toast {
  display: none !important;
}