/* Additional CSS for static export */

/* Custom colors */
:root {
  --primary: hsl(209, 61%, 16%);
  --secondary: hsl(26, 94%, 54%);
  --accent: hsl(250, 45%, 37%);
  --slate-custom: hsl(215, 16%, 47%);
}

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

.text-secondary {
  color: var(--secondary);
}

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

.text-slate-custom {
  color: var(--slate-custom);
}

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

.bg-secondary {
  background-color: var(--secondary);
}

.bg-accent {
  background-color: var(--accent);
}

.border-secondary {
  border-color: var(--secondary);
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
}

/* Glass effect */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

/* Image hover effects */
.image-hover-effect img {
  transition: transform 0.3s ease;
}

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

/* Before/After Slider Styles */
.before-after-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  max-width: 100%;
}

.before-after-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  cursor: ew-resize;
  z-index: 10;
  transition: left 0.2s ease-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.before-after-handle::before,
.before-after-handle::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.before-after-handle::before {
  border-right: 8px solid #666;
  left: 8px;
}

.before-after-handle::after {
  border-left: 8px solid #666;
  right: 8px;
}

.after-image {
  transition: clip-path 0.2s ease-out;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scroll animations */
.animated-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-section[data-animation="zoom"] {
  transform: scale(0.8);
}

.animated-section[data-animation="zoom"].visible {
  transform: scale(1);
}

.animated-section[data-animation="fadeLeft"] {
  transform: translateX(-60px);
}

.animated-section[data-animation="fadeLeft"].visible {
  transform: translateX(0);
}

.animated-section[data-animation="fadeRight"] {
  transform: translateX(60px);
}

.animated-section[data-animation="fadeRight"].visible {
  transform: translateX(0);
}

/* Modal styles */
.modal-open {
  overflow: hidden;
}

/* Button styles */
button {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* Form styles */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-gradient h1 {
    font-size: 2rem !important;
  }
  
  .hero-gradient p {
    font-size: 1rem !important;
  }
  
  .before-after-container {
    aspect-ratio: 4/3;
  }
  
  #photo-modal .flex {
    flex-direction: column;
  }
  
  #photo-modal .w-80 {
    width: 100% !important;
    max-height: 200px;
  }

  .h-96 {
    height: auto !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* fix горизонтального скролла */
}

/* Images always responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
