/* FinPlan Strategy KZ - Dark Theme Redesign */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
  overflow-x: hidden;
}

/* Smooth transitions */
a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Case Card Flip Effect */
.case-card {
  position: relative;
  min-height: 400px;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.case-card.flipped .case-card-front {
  transform: rotateY(180deg);
}

.case-card.flipped .case-card-back {
  transform: rotateY(0deg);
}

.case-card-front,
.case-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
}

.case-card-front {
  transform: rotateY(0deg);
}

.case-card-back {
  transform: rotateY(-180deg);
}

/* Accordion Styles */
.accordion-item {
  transition: all 0.3s ease;
}

.accordion-content {
  transition: max-height 0.5s ease-in-out;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(90deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Hover Effects */
button,
.btn {
  position: relative;
  overflow: hidden;
}

button::before,
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before,
.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Selection styles */
::selection {
  background: #f97316;
  color: #000000;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    color: #ffffff;
    background: #000000;
  }

  a {
    text-decoration: underline;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-card {
    min-height: 350px;
  }
}

/* Accessibility enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 3px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Text balance */
.text-balance {
  text-wrap: balance;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
