.comparison-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0.25rem;
  user-select: none;
}

.comparison-slider:not(.lightbox-active) {
  cursor: zoom-in;
}

.comparison-slider.lightbox-active {
  cursor: ew-resize;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.comparison-image.after {
  clip-path: inset(0 0 0 50%);
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.comparison-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.comparison-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(19, 96, 239, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.comparison-button svg {
  width: 24px;
  height: 24px;
}

.comparison-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(19, 96, 239, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease;
}

.comparison-zoom:hover {
  transform: scale(1.1);
  background: rgba(19, 96, 239, 1);
}

.comparison-zoom svg {
  width: 20px;
  height: 20px;
}

.comparison-label {
  position: absolute;
  bottom: 15px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  z-index: 15;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-label-before {
  left: 15px;
}

.comparison-label-after {
  right: 15px;
}

.comparison-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comparison-lightbox.active {
  display: flex;
}

.comparison-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  aspect-ratio: 16/9;
}

.comparison-lightbox .comparison-slider {
  height: 100%;
  cursor: ew-resize;
  border-radius: 0.5rem;
  overflow: hidden;
}

.comparison-lightbox .comparison-image {
  background-size: contain;
}

.comparison-slider-lightbox {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  border-radius: 0.5rem;
  overflow: hidden;
}

.comparison-slider-lightbox .comparison-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.comparison-slider-lightbox .comparison-img.before {
  position: relative;
}

.comparison-slider-lightbox .comparison-img-wrapper.after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 50%);
}

.comparison-slider-lightbox .comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  pointer-events: auto;
}

.comparison-slider-lightbox .comparison-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.comparison-slider-lightbox .comparison-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(19, 96, 239, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.comparison-slider-lightbox .comparison-button svg {
  width: 24px;
  height: 24px;
}

.comparison-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.comparison-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.comparison-lightbox-close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .comparison-slider {
    height: 300px;
  }
  
  .comparison-button {
    width: 40px;
    height: 40px;
  }
  
  .comparison-zoom {
    width: 36px;
    height: 36px;
  }
  
  .comparison-zoom svg {
    width: 18px;
    height: 18px;
  }
  
  .comparison-lightbox-content {
    max-height: 80vh;
  }
  
  .comparison-lightbox-close {
    top: -45px;
  }
}

.featured-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
  background: #fff;
}

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

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(19, 96, 239, 0.4);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

#contact-form input[type="file"] {
  padding: 0.75rem;
}

#contact-form input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  background-color: #1360ef;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form input[type="file"]::file-selector-button:hover {
  background-color: #0d4cbd;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

@media (max-width: 768px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

.form-control:focus {
  border-color: #1360ef;
  box-shadow: 0 0 0 0.2rem rgba(19, 96, 239, 0.25);
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.footer-logo:hover {
  opacity: 0.9;
}

.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 120px;
  transition: transform 0.3s ease;
}

.clients-logo:hover {
  transform: scale(1.1);
}

.clients-logo img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.clients-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .clients-logo {
    height: 100px;
    padding: 15px;
  }
  
  .clients-logo img {
    max-height: 50px;
  }
}

#contact-form .messages {
  margin-bottom: 1.5rem;
}

#contact-form .alert {
  margin-bottom: 0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

#contact-form .form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8L6.2 9l-.4-.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#contact-form .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


#contact-form .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

#contact-form .form-check-input.is-invalid {
  border-color: #dc3545;
}

#contact-form .form-check-input.is-invalid:checked {
  border-color: #dc3545;
  background-color: #dc3545;
}

#contact-form .form-check-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  line-height: 1.5;
}

#contact-form .form-check-label a {
  color: #1360ef;
  text-decoration: underline;
  font-weight: 500;
}

#contact-form .form-check-label a:hover {
  color: #0d4cbd;
}

#contact-form #InputNote {
  min-height: 120px;
  resize: vertical;
}

.cookie-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-box.is-visible {
  transform: translateY(0);
}

.cookie-box .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-box__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9375rem;
  color: #495057;
  margin: 0;
}

.cookie-box__text a {
  color: #1360ef;
  text-decoration: underline;
}

.cookie-box__text a:hover {
  color: #0d4cbd;
}

.cookie-box__btn {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.375rem;
  background: #1360ef;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-box__btn:hover {
  background: #0d4cbd;
}
