/* Complete rewrite to Comic Style CSS with halftone patterns, speech bubbles, and comic effects */
/* Comic Style CSS for WorkFlow KZ */

/* Base styles with comic font stack */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  color: #000;
  background: #fff;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Comic Header Styles */
.comic-header {
  position: relative;
}

.comic-logo {
  text-shadow: 3px 3px 0px #000;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.3));
}

.comic-nav-link {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comic-nav-link:hover {
  text-shadow: 2px 2px 0px rgba(79, 70, 229, 0.3);
}

.comic-button {
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.comic-button:hover {
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
  transform: translate(2px, 2px);
}

.comic-button-small {
  border: 3px solid #000;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* Mobile menu */
.mobile-menu {
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: block !important;
}

/* Comic Section Dividers */
.comic-divider,
.comic-divider-top,
.comic-divider-bottom {
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,0 L50,30 L100,10 L150,40 L200,20 L250,35 L300,15 L350,45 L400,25 L450,30 L500,10 L550,40 L600,20 L650,35 L700,15 L750,45 L800,25 L850,30 L900,10 L950,40 L1000,20 L1050,35 L1100,15 L1150,45 L1200,25 L1200,60 L0,60 Z' fill='%23000'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 120px 60px;
}

.comic-divider-top {
  transform: rotate(180deg);
}

/* Comic Sections */
.comic-section {
  position: relative;
}

/* Comic Title Styles */
.comic-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  position: relative;
}

.comic-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #000 0px, #000 10px, transparent 10px, transparent 20px);
}

/* Speech Bubbles */
.speech-bubble {
  position: relative;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid;
  border-top-color: inherit;
  filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.3));
}

/* Comic Images */
.comic-image-hero {
  filter: contrast(1.2) saturate(1.3);
}

.comic-image-round {
  filter: contrast(1.1) saturate(1.2);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
}

.comic-image-skewed {
  transform: skew(-2deg, 1deg);
  filter: contrast(1.1) saturate(1.2);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.comic-image-polaroid {
  padding: 15px;
  background: #fff;
  filter: contrast(1.1) saturate(1.2);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
}

.comic-image-polaroid::after {
  content: "PRODUCTIVITY!";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: 12px;
  color: #000;
}

/* Service Cards */
.comic-service-card {
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.comic-service-card:hover {
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
  transform: translate(4px, 4px) rotate(0deg) !important;
}

.comic-icon {
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.3));
}

/* Comic Panels */
.comic-panel {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
  position: relative;
}

.comic-panel-header {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Explosion Bubbles */
.explosion-bubble {
  position: relative;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.explosion-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.1) 70%);
  border-radius: 50%;
  z-index: -1;
}

/* Case Cards */
.comic-case-card {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.comic-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 12px 0px rgba(0, 0, 0, 0.3);
}

.comic-result-badge {
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

/* Review Cards */
.comic-review-card {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.quote-bubble {
  position: relative;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.quote-arrow::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid;
  border-top-color: inherit;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.3));
}

/* Team Cards */
.comic-team-card {
  position: relative;
}

.comic-avatar-wrapper {
  position: relative;
}

.comic-badge {
  position: absolute;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.comic-principle {
  transition: all 0.3s ease;
}

/* FAQ Styles */
.comic-faq-item {
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.faq-question {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-chevron {
  stroke-width: 3px;
}

.faq-answer {
  border-top: 3px solid #000;
}

/* Footer */
.comic-footer {
  position: relative;
  border-top: 6px solid #fde047;
}

/* Halftone Pattern Overlay */
.halftone-overlay {
  position: relative;
}

.halftone-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 1;
}

/* Animation Enhancements */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.form-input {
  transition: all 0.3s ease;
  border-width: 3px !important;
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2) !important;
}

/* Button Animations */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

/* Loading States */
.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .comic-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .speech-bubble {
    margin: 1rem 0;
  }

  .comic-service-card {
    transform: none !important;
    margin: 1rem 0;
  }

  .explosion-bubble {
    width: 100px !important;
    height: 100px !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.focus-visible:focus {
  outline: 3px solid #fde047;
  outline-offset: 3px;
}

/* Form validation */
.form-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 700;
}

.form-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  .comic-divider,
  .comic-divider-top,
  .comic-divider-bottom {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000 !important;
    background: #fff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .comic-service-card:hover,
  .comic-case-card:hover,
  .comic-review-card:hover {
    transform: none !important;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  .comic-button,
  .form-input {
    border-width: 4px !important;
  }

  .comic-title {
    text-shadow: 2px 2px 0px #000;
  }
}
