/* VisionBridge KZ - Cartoon Style CSS */

/* Custom Color Palette */
:root {
  --green-primary: #22c55e;
  --green-light: #86efac;
  --green-dark: #15803d;
  --brown-primary: #a16207;
  --brown-light: #fde68a;
  --brown-dark: #78350f;
  --blue-primary: #3b82f6;
  --blue-light: #93c5fd;
  --blue-dark: #1e40af;
}

/* Base Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive, sans-serif;
  line-height: 1.7;
  background-color: #f0fdf4;
}

/* Cartoon Typography */
.bubble-text {
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

/* Bubble Card Component */
.bubble-card {
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.bubble-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bubble-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.bubble-card:nth-child(even):hover {
  transform: rotate(0deg) scale(1.02);
}

/* Wobbly Outline Effect */
.wobbly-outline {
  position: relative;
}

.wobbly-outline::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--green-primary), var(--blue-primary), var(--brown-primary));
  border-radius: inherit;
  z-index: -1;
  filter: blur(1px);
}

/* Speech Bubble Component */
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid white;
}

/* Stone Block Effect */
.stone-block {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.stone-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(161, 98, 7, 0.1) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

/* Wavy Section Dividers */
.wavy-top {
  position: relative;
}

.wavy-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23F0FDF4'%3E%3C/path%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
  z-index: 1;
}

.wavy-bottom {
  position: relative;
}

.wavy-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23F0FDF4'%3E%3C/path%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
  z-index: 1;
}

/* Cartoon Button Styles */
.cartoon-button {
  position: relative;
  transform: translateY(0);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

.cartoon-button:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.cartoon-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* Image Styles */
.polaroid-style {
  position: relative;
  background: white;
  padding: 15px 15px 50px 15px;
  transform: rotate(-2deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.polaroid-style::after {
  content: "Наша команда в действии! 📸";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #666;
  font-family: "Comic Sans MS", cursive;
}

.rounded-mask {
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.rounded-mask::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: conic-gradient(
    from 0deg,
    var(--green-primary),
    var(--blue-primary),
    var(--brown-primary),
    var(--green-primary)
  );
  border-radius: inherit;
  z-index: -1;
}

.filter-style {
  filter: saturate(1.2) contrast(1.1) brightness(1.05);
  transition: filter 0.3s ease;
}

.filter-style:hover {
  filter: saturate(1.4) contrast(1.2) brightness(1.1);
}

/* Team Card Animations */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px) rotate(1deg);
}

/* FAQ Accordion */
.faq-button {
  transition: all 0.3s ease;
}

.faq-button:hover {
  background-color: rgba(34, 197, 94, 0.05);
}

.faq-content {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.faq-content.show {
  max-height: 500px;
  display: block !important;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(45deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f0fdf4;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--green-primary), var(--blue-primary));
  border-radius: 10px;
  border: 2px solid #f0fdf4;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--green-dark), var(--blue-dark));
}

/* Cartoon Link Styles */
.cartoon-link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cartoon-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--green-primary), var(--blue-primary));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.cartoon-link:hover::after {
  width: 100%;
}

/* Header Enhancements */
header {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
#mobileMenu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--green-primary);
  border-radius: 0 0 20px 20px;
}

/* Form Enhancements */
input,
textarea {
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Cookie Notice */
#cookieNotice {
  backdrop-filter: blur(10px);
  border-radius: 20px 20px 0 0;
}

/* Animations */
@keyframes bounce-in {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.9) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes wiggle {
  0%,
  7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%,
  100% {
    transform: rotateZ(0);
  }
}

.animate-bounce-in {
  animation: bounce-in 0.8s ease-out forwards;
}

.animate-wiggle {
  animation: wiggle 2s ease-in-out infinite;
}

/* Hover Effects */
.hover-wiggle:hover {
  animation: wiggle 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bubble-text {
    font-size: 2rem;
    line-height: 1.2;
  }

  .bubble-card {
    transform: rotate(0deg);
    margin-bottom: 1rem;
  }

  .polaroid-style {
    transform: rotate(0deg);
    padding: 10px 10px 30px 10px;
  }

  .wavy-top::before,
  .wavy-bottom::after {
    height: 30px;
  }
}

/* Print Styles */
@media print {
  .bubble-card,
  .cartoon-button,
  .wobbly-outline {
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .wavy-top::before,
  .wavy-bottom::after {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .bubble-card {
    border: 3px solid #000;
  }

  .cartoon-button {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bubble-card,
  .team-card {
    transform: none !important;
  }
}

/* Custom Utility Classes */
.text-brown-800 {
  color: #78350f;
}
.text-brown-700 {
  color: #92400e;
}
.text-brown-600 {
  color: #a16207;
}
.bg-brown-800 {
  background-color: #78350f;
}
.bg-brown-700 {
  background-color: #92400e;
}
.bg-brown-600 {
  background-color: #a16207;
}
.bg-brown-50 {
  background-color: #fffbeb;
}
.bg-brown-100 {
  background-color: #fef3c7;
}
.border-brown-400 {
  border-color: #d97706;
}
.border-brown-600 {
  border-color: #a16207;
}

.bg-green-50 {
  background-color: #f0fdf4;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.bg-blue-50 {
  background-color: #eff6ff;
}
.bg-blue-100 {
  background-color: #dbeafe;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--green-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Selection Styles */
::selection {
  background-color: var(--green-primary);
  color: white;
}

::-moz-selection {
  background-color: var(--green-primary);
  color: white;
}
