/* Complete redesign with new color palette and enhanced styling */

/* Custom styles for BlueRiver KZ - Step 2 Redesign */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-pulse-slow {
  animation: pulse 4s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Custom gradient backgrounds with new palette */
.gradient-primary {
  background: linear-gradient(135deg, #1bc9c9 0%, #0ea5e9 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, #ffb347 0%, #f59e0b 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.gradient-overlay {
  background: linear-gradient(135deg, rgba(27, 201, 201, 0.1) 0%, rgba(255, 179, 71, 0.1) 100%);
}

/* Enhanced hover effects */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(27, 201, 201, 0.25);
}

/* Form styling enhancements with new colors */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  border-color: #1bc9c9;
  box-shadow: 0 0 0 4px rgba(27, 201, 201, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 1);
}

.form-input:invalid {
  border-color: #ef4444;
}

.form-input:valid {
  border-color: #10b981;
}

/* Button enhancements with new palette */
.btn-primary {
  background: linear-gradient(135deg, #1bc9c9 0%, #0ea5e9 100%);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(27, 201, 201, 0.4);
}

/* Enhanced card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 201, 201, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-hover:hover::before {
  opacity: 1;
}

.card-hover:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Team member cards with enhanced effects */
.team-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
  transform: translateY(-15px);
}

.team-card .team-avatar {
  transition: all 0.4s ease;
  position: relative;
}

.team-card:hover .team-avatar {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 25px 50px rgba(27, 201, 201, 0.4);
}

/* Navigation enhancements */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1bc9c9, #ffb347);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.active {
  max-height: 400px;
}

/* Loading animation for images with new effects */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #1bc9c9 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
  border-radius: 16px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced image containers with new styling */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-container img {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-container:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Custom scrollbar with new colors */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1bc9c9, #ffb347);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0ea5e9, #f59e0b);
}

/* Cookie notice animation */
.cookie-notice {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.cookie-notice.show {
  transform: translateY(0);
}

/* Map container styling with enhanced effects */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.map-wrapper:hover {
  box-shadow: 0 20px 45px rgba(27, 201, 201, 0.2);
  transform: translateY(-2px);
}

.map-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(27, 201, 201, 0.05) 0%, rgba(255, 179, 71, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Statistics counter animation */
.counter {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: linear-gradient(135deg, #1bc9c9, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced section dividers */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1bc9c9 25%, #ffb347 75%, transparent 100%);
}

/* FAQ Accordion styling */
.faq-item {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-item:hover {
  border-color: rgba(27, 201, 201, 0.2);
  box-shadow: 0 8px 25px rgba(27, 201, 201, 0.1);
}

.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(27, 201, 201, 0.05), rgba(255, 179, 71, 0.05));
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* FAQ Filter buttons */
.faq-filter {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.faq-filter:hover::before {
  left: 100%;
}

.faq-filter.active {
  background: linear-gradient(135deg, #1bc9c9, #0ea5e9);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 201, 201, 0.3);
}

/* Form validation styles */
.form-group {
  position: relative;
}

.form-error {
  position: absolute;
  bottom: -25px;
  left: 0;
  color: #ef4444;
  font-size: 13px;
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.form-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* Success message styling */
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner with new colors */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header scroll effect */
#main-header {
  transition: all 0.3s ease;
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Decorative elements */
.decorative-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.decorative-blob:nth-child(2) {
  animation-delay: -2s;
}

.decorative-blob:nth-child(3) {
  animation-delay: -4s;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
    color: #000;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .gradient-primary,
  .gradient-accent,
  .gradient-blue {
    background: #1bc9c9 !important;
    color: white !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #000000 !important;
  }

  .bg-gray-50 {
    background-color: #ffffff !important;
  }

  .border-gray-300 {
    border-color: #000000 !important;
  }

  .gradient-primary,
  .gradient-accent {
    background: #000000 !important;
    color: #ffffff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hover-lift:hover {
    transform: none;
  }

  .card-hover:hover {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #ffffff;
  }

  .bg-white {
    background-color: #2a2a2a !important;
    color: #ffffff;
  }

  .text-gray-900 {
    color: #ffffff !important;
  }

  .text-gray-600 {
    color: #cccccc !important;
  }

  .border-gray-300 {
    border-color: #444444 !important;
  }
}

/* Enhanced focus styles for accessibility */
*:focus {
  outline: 3px solid #1bc9c9;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 3px solid #1bc9c9;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(27, 201, 201, 0.2);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: #1bc9c9;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 10px;
  box-shadow: 0 4px 15px rgba(27, 201, 201, 0.4);
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom media queries for better responsive design */
@media (max-width: 480px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hover-lift:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .card-hover:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* Advanced gradient text effects */
.gradient-text-primary {
  background: linear-gradient(135deg, #1bc9c9, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #ffb347, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced button states */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Improved accessibility for screen readers */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom selection colors */
::selection {
  background: rgba(27, 201, 201, 0.3);
  color: #1a1a1a;
}

::-moz-selection {
  background: rgba(27, 201, 201, 0.3);
  color: #1a1a1a;
}
