/* Custom CSS using design tokens */
:root {
  --primary-color: #0891b2;
  --secondary-color: #6366f1;
  --text-color: #4b5563;
  --light-bg: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
}

/* Global Styles */
body {
  font-family: "Montserrat";
  line-height: 1.6;
  color: var(--text-color);
}


/* Added top contact bar styling */
.top-contact-bar {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact-bar .social-links a {
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.top-contact-bar .social-links a:hover {
  color: #dc2626 !important;
}

@media (max-width: 768px) {
  .top-contact-bar {
    text-align: center;
  }

  .top-contact-bar .col-md-8,
  .top-contact-bar .col-md-4 {
    text-align: center !important;
    margin-bottom: 0.5rem;
  }

  .top-contact-bar .d-flex {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
  /* Removed fixed-top positioning */
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Enhanced hero section with carousel support */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Reduced overlay opacity to make images clearer */
  /* background: linear-gradient(135deg, rgba(8, 145, 178, 0.4), rgba(99, 102, 241, 0.3)); */
  display: flex;
  align-items: center;
}

/* Added carousel animations and controls styling */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.8s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* Added hero text animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.animate-fade-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.animate-fade-up-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0e7490;
  border-color: #0e7490;
  transform: translateY(-2px);
}

/* Added pulse animation for CTA button */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(8, 145, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
  }
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

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

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

/* Added paint samples section styling */
.paint-samples-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.paint-sample-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.paint-sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.color-swatch::after {
  content: attr(data-color);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.color-swatch:hover::after {
  opacity: 1;
}

.finish-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.finish-card:hover {
  transform: translateY(-3px);
}

.finish-icon {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
  height: 250px;
  overflow: hidden;
}

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

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

.service-content {
  padding: 2rem;
}

/* Gallery */
.gallery-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  /* Added cursor pointer for clickable gallery */
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* Added gallery modal styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.gallery-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-gallery-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.modal-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.modal-gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Added slideshow modal styles */
.slideshow-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.slideshow-modal.show {
  display: block;
}

.slideshow-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
}

.slideshow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: white;
}

.slideshow-content {
  position: relative;
  height: 70vh;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide-image.active {
  display: block;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.slide-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

.slide-prev {
  left: 1rem;
}

.slide-next {
  right: 1rem;
}

.slide-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
}

.slide-info {
  padding: 1.5rem;
  text-align: center;
}

/* Updated testimonials styling to be more compact */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card-compact {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.testimonial-card-compact:hover {
  transform: translateY(-3px);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.stars i {
  font-size: 1.2rem;
}

/* Added client card styling for the new clients section */
.client-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.client-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.client-card:hover .client-image img {
  transform: scale(1.05);
}

.client-info {
  padding: 1.5rem;
}

.client-info h5 {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.client-info p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.client-info small {
  font-weight: 500;
  font-size: 0.85rem;
}

/* Mobile responsive styles for client cards */
@media (max-width: 768px) {
  .client-image {
    height: 180px;
  }

  .client-info {
    padding: 1.25rem;
  }

  .client-info h5 {
    font-size: 1rem;
  }
}

/* Contact Form */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

/* Social Links */
.social-links a {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color) !important;
}

/* Added WhatsApp floating button styling */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .service-content {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  /* Mobile responsive paint samples */
  .color-swatches {
    justify-content: center;
  }

  .color-swatch {
    width: 40px;
    height: 40px;
  }

  .paint-sample-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

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

/* Section Spacing */
section {
  scroll-margin-top: 80px;
}

/* Added project modal styles for multi-image project galleries */
.project-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.project-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: white;
}

.project-slideshow {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.project-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.project-slide.active {
  opacity: 1;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.project-prev {
  left: 1rem;
}

.project-next {
  right: 1rem;
}

.project-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.95);
}

.project-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 145, 178, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-indicator.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.project-indicator:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

.project-info {
  padding: 1.5rem;
  text-align: center;
  background: var(--light-bg);
}

/* Mobile responsive styles for project modal */
@media (max-width: 768px) {
  .project-modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .project-slideshow {
    height: 50vh;
  }

  .project-nav {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  .project-prev {
    left: 0.5rem;
  }

  .project-next {
    right: 0.5rem;
  }

  .project-slide-caption {
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1rem;
  }

  .project-indicators {
    padding: 0.8rem;
  }

  .project-indicator {
    width: 10px;
    height: 10px;
  }
}

.text-white {
  color: white !important;
}
