/*
 * AutoČistírna - Main Stylesheet
 * Glassmorphism design system with Curved Grids elements
 * Monochromatic color scheme with morphing animations
 */

:root {
  /* Primary colors - monochromatic blue scheme */
  --primary: #3a86ff;
  --primary-light: #5e9eff;
  --primary-lighter: #84b6ff;
  --primary-dark: #1a66e0;
  --primary-darker: #0a46b0;
  
  /* Background colors */
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --bg-glass: rgba(255, 255, 255, 0.25);
  
  /* Text colors */
  --text-dark: #343a40;
  --text-medium: #6c757d;
  --text-light: #f8f9fa;
  
  /* Accent colors */
  --accent: #ff9e3a;
  --accent-light: #ffb86b;
  --accent-dark: #e07d1a;
  
  /* Success, warning, error colors */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: 76px; /* Header height */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container with curved edges */
.container {
  position: relative;
  z-index: 1;
}

/* Section styles */
section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-color: inherit;
  border-radius: 50% 50% 0 0;
  z-index: -1;
}

/* Global button styles */
.btn {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

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

.btn-outline-light:hover {
  color: var(--primary-dark);
}

/* Form elements */
.form-control, .form-select {
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.25);
}

/* Card styles with glassmorphism */
.card {
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(33, 37, 41, 0.9) !important;
}

.navbar-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  color: white;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

/* Hero section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 7rem 0;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

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

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

/* Services section */
.services-section .card {
  background: white;
  border: none;
  box-shadow: var(--shadow);
}

.services-section .card:hover {
  transform: translateY(-10px);
}

.services-section .card-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.services-section .card-text {
  color: var(--text-medium);
}

/* Price list section */
.price-list-section {
  background-color: var(--bg-light);
}

.price-list-section .table {
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-list-section .table thead th {
  background-color: var(--primary-dark);
  color: white;
  font-weight: bold;
  border: none;
}

.price-list-section .table-hover tbody tr:hover {
  background-color: rgba(58, 134, 255, 0.1);
}

/* Case Studies */
.case-studies-section .card {
  border: none;
  background-color: white;
}

.case-studies-section .card-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.case-studies-section .font-italic {
  color: var(--text-medium);
  font-style: italic;
}

/* Statistics section */
.statistics-section {
  background: var(--bg-dark);
  color: white;
}

.statistics-section .stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.statistics-section .stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.statistics-section .display-4 {
  color: var(--primary-lighter);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Events section */
.events-section .card {
  overflow: hidden;
  background-color: white;
  border: none;
}

.events-section .card-image img {
  height: 350px;
  object-fit: cover;
}

.events-section .card-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.events-section strong {
  color: var(--primary-dark);
}

/* Success Stories section */
.success-stories-section {
  background-color: var(--bg-light);
}

.success-stories-section .card {
  background-color: white;
  border: none;
  margin-bottom: 2rem;
}

.success-stories-section .image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.success-stories-section .image-container img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 300px;
  width: auto;
  object-fit: cover;
}

.success-stories-section h3 {
  color: var(--primary-dark);
}

.success-stories-section .lead {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-medium);
}

/* Resources section */
.resources-section .card {
  background-color: white;
  border: none;
}

.resources-section .card-title {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.resources-section .list-group-item {
  transition: background-color var(--transition-fast);
}

.resources-section .list-group-item:hover {
  background-color: rgba(58, 134, 255, 0.1);
}

.resources-section .list-group-item a {
  display: block;
}

/* Community section */
.community-section {
  background-color: var(--bg-light);
}

.community-section .card {
  background-color: white;
  border: none;
}

.community-section .card-image img {
  height: 350px;
  object-fit: cover;
}

.community-section .card-title {
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.community-section strong {
  color: var(--primary-dark);
}

/* News section */
.news-section .card {
  background-color: white;
  border: none;
}

.news-section .card-title {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

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

.news-section .btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.news-section .card-text {
  color: var(--text-medium);
}

/* Careers section */
.careers-section {
  background-color: var(--bg-light);
}

.careers-section .card {
  background-color: white;
  border: none;
}

.careers-section h3, .careers-section h4, .careers-section h5 {
  color: var(--primary-dark);
}

.careers-section .list-group-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.careers-section .list-group-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Contact section */
.contact-section .card {
  background-color: white;
  border: none;
}

.contact-section h3, .contact-section h4 {
  color: var(--primary-dark);
}

.contact-section .social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: color var(--transition-fast);
}

.contact-section .social-links a:hover {
  color: var(--primary-dark);
}

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

.footer h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer .list-unstyled a:hover {
  color: white;
}

.footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: color var(--transition-fast);
}

.footer .social-links a:hover {
  color: white;
}

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

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Success page */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-light);
  text-align: center;
}

.success-page .card {
  max-width: 600px;
  padding: 3rem;
  margin: 2rem;
  background-color: white;
  border: none;
}

.success-page h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.success-page .btn {
  margin-top: 2rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .statistics-section .stat-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* Animation Utilities */
.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-slideUp {
  animation: slideUp 1s ease-out;
}

.animate-slideIn {
  animation: slideIn 1s ease-out;
}

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Read More links */
.read-more {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.read-more:after {
  content: "→";
  margin-left: 5px;
  transition: margin-left var(--transition-fast);
}

.read-more:hover:after {
  margin-left: 10px;
}

/* Bootstrap Icon Override */
[class^="bi-"]::before, 
[class*=" bi-"]::before {
  vertical-align: -0.125em;
  margin-right: 0.5rem;
  color: var(--primary);
}