:root {
  /* Main colors */
  --dark-bg: #fef5d6; /* Dark background for headers, footer, buttons */
  --accent-red: #e91b28; /* Main accent color */
  --accent-red-dark: #e91b28; /* Darker red for hover states */
  --light-bg: #f5f5f5; /* Light background for content sections */
  --white: #2d2d2d; /* Main background, section headers */
  --text-primary: #2d2d2d; /* Main text color */
  --text-secondary: #7a7a7a; /* Secondary text color */
  --border-color: #e4e4e4; /* Borders, dividers, form backgrounds */

  /* Utility colors */
  --shadow-color: rgba(30, 28, 28, 0.1);
  --overlay: rgba(30, 28, 28, 0.9);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3;
  display: block;
  background: #f3f4f6;
}

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

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Input group styles */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group select,
.input-group input {
  width: 100%;
  padding: 1rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: white;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
}

.input-group select:focus,
.input-group input:focus {
  border-color: var(--accent-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 27, 40, 0.1);
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-secondary);
  background: white;
  padding: 0 0.5rem;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

/* Style for when select has a value */
.input-group select:focus + label,
.input-group input:focus + label,
.input-group select.has-value + label,
.input-group input:not(:placeholder-shown) + label,
.input-group.has-value label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-red);
  background: white;
  z-index: 2;
}

.input-group select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.gallery-item div {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Modal Styles */
#imageModal {
  transition: opacity 0.3s ease;
  opacity: 0;
}

#imageModal.flex {
  opacity: 1;
}

#imageModal img {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
}

#closeModal {
  transition: color 0.2s ease;
  outline: none;
}

#closeModal:hover {
  color: #9ca3af;
}

#closeModal:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Hero Section */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#home img[alt="ikony"] {
  max-width: 500px; 
  margin: 0 auto 2rem; 
  display: block; 
  padding-bottom: 2rem;
}

.hero-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  #home img[alt="ikony"] {
    max-width: 90%;
    padding: 0 1rem;
  }
  
  .gallery-item {
    aspect-ratio: 1/1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-item {
    aspect-ratio: 1/1;
  }

  /* Mobile navigation styles */
  .navbar-sticky {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-sticky .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .navbar-sticky img {
    max-height: 3.5rem;
    width: auto;
  }

  .md\:hidden {
    display: block;
  }

  .md\:flex {
    display: none;
  }

  /* Ensure content doesn't overflow on small screens */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-water {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2626 100%);
}

.gradient-water-light {
  background-color: var(--light-bg);
}

.hero-animation {
  position: relative;
  overflow: hidden;
}

.hero-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: cleaning-wave 3s infinite;
}

@keyframes cleaning-wave {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.floating-btn {
  position: fixed;
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  right: 20px;
  bottom: 80px;
  background: #25d366;
}

.phone-btn {
  right: 20px;
  bottom: 20px;
  background: var(--accent-red);
}

.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.before-after-slider {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.before-img,
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-img {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.3s ease;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--accent-red);
  cursor: ew-resize;
  z-index: 10;
}

.navbar-sticky {
  background-color: var(--dark-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--white);
  transition: all 0.3s ease;
}

.navbar-sticky a {
  color: var(--white);
  transition: all 0.2s ease;
}

.navbar-sticky a:hover {
  color: var(--accent-red);
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-btn {
    right: 15px;
    bottom: 70px;
  }

  .phone-btn {
    right: 15px;
    bottom: 15px;
  }
}

.testimonial-bubble {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.testimonial-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.price-calculator {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 41, 58, 0.1);
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group select:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: var(--accent-red);
  background: white;
  padding: 0 5px;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.success-message {
  color: var(--accent-red);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: var(--accent-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 41, 58, 0.3);
}

/* Update focus states for better accessibility */
button:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 41, 58, 0.3);
  border-radius: 6px;
}

/* Update call-to-action elements */
.phone-btn {
  background: var(--accent-red);
}

.phone-btn:hover {
  background: var(--accent-red-dark);
}

/* Add red accent to active navigation items */
nav a:hover,
nav a:focus,
nav a.active {
  color: var(--accent-red);
  transition: all 0.2s ease;
}

/* Responsive logo size */
.navbar-sticky .h-24 {
  display: flex;
  align-items: center;
}

.navbar-sticky img {
  max-height: 100%;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: left center;
}

#rotating-text {
  display: inline-block;
  transition: opacity 0.5s ease-in-out;
  min-width: 150px; /* Prevents layout shift during text change */
}

@media (max-width: 767px) {
  .navbar-sticky .h-24 {
    height: 7rem;
    display: flex;
    align-items: center;
  }

  .navbar-sticky img {
    max-height: 100%;
    width: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: left center;
  }
}
