/* Креативні стилі для сайту ФітОдеса */

/* Загальні стилі і змінні */
:root {
  --primary-color: #ff5722;
  --secondary-color: #2196f3;
  --accent-color: #4caf50;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #ff5722, #ff9800);
  --gradient-secondary: linear-gradient(135deg, #2196f3, #03a9f4);
  --gradient-accent: linear-gradient(135deg, #4caf50, #8bc34a);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --animation-speed: 0.3s;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Креативний хедер з анімацією */
.navbar {
  transition: all 0.4s ease;
  padding: 1rem 0;
  background: rgba(33, 37, 41, 0.9) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-brand img,
.navbar-brand svg {
  transition: transform 0.4s ease;
}

.navbar-brand:hover img,
.navbar-brand:hover svg {
  transform: rotate(10deg) scale(1.1);
}

.nav-link {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Креативна герой-секція */
.hero-section {
  position: relative;
  background: var(--dark-color);
  padding: 8rem 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(255, 87, 34, 0.2), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(33, 150, 243, 0.2), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.1), transparent 60%);
  z-index: 1;
}

.hero-section .overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transform: rotate(2deg);
  transition: all 0.5s ease;
  box-shadow: var(--box-shadow);
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(33, 150, 243, 0.3));
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.hero-image-container:hover {
  transform: rotate(0) scale(1.02);
}

.hero-image-container:hover::before {
  opacity: 0.7;
}

.hero-section h1 {
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-section h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 4px;
}

.hero-section .lead {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.btn {
  border-radius: 30px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.btn-outline-light {
  border: 2px solid white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Секції з креативним оформленням */
section {
  position: relative;
  padding: 5rem 0;
}

section.bg-light {
  background: #f6f9fc !important;
}

.section-heading {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading h2 {
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
  border-radius: 3px;
}

.section-heading p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* Креативні картки */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
}

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

.card-body {
  padding: 2rem;
}

.card-img-top {
  transition: all 0.5s ease;
  height: 220px;
  object-fit: cover;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.feature-icon svg {
  fill: white;
}

/* Креативні відгуки */
.testimonial-card {
  position: relative;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--primary-color);
  transition: all 0.4s ease;
}

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

.testimonial-card .stars {
  color: #ffc107;
  margin-bottom: 1rem;
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-card .quote::before {
  content: """;
  font-size: 3rem;
  position: absolute;
  left: -5px;
  top: -20px;
  color: rgba(0, 0, 0, 0.1);
  font-family: Georgia, serif;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--light-color);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Креативний футер */
footer {
  background-color: var(--dark-color);
  padding: 5rem 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(255, 87, 34, 0.1), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(33, 150, 243, 0.1), transparent 30%);
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand img,
.footer-brand svg {
  height: 40px;
  width: auto;
}

footer h4 {
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Cookie Consent */
.cookie-consent {
  background: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* Анімовані елементи та трансформації */
.animated-element {
  transition: all 0.5s ease;
}

.animated-element:hover {
  transform: translateY(-5px);
}

.shape-divider {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
  z-index: 2;
}

.shape-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
  transform-origin: center;
  transition: all 1s ease;
}

.shape-divider:hover svg {
  transform: scale(1.05);
}

.shape-divider .shape-fill {
  fill: #FFFFFF;
}

/* Адаптивність */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Анімації для елементів сторінки */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s ease;
}

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

.fadeIn {
  animation: fadeIn 1s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Специфічні елементи інтерфейсу */
.price-box {
  background: linear-gradient(135deg, #f6f9fc, #edf2f7);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.price-item {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.price-item:hover {
  transform: translateY(-10px) scale(1.02);
}

.contact-form .form-control {
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  background: #f1f5f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control:focus {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}