/* Base Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cookie Popup Styles */
.cookie-popup-cc7ae {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: bottom 0.4s ease-in-out;
}

.cookie-popup-cc7ae.show-cc7ae {
  bottom: 0;
}

.cookie-popup-content-cc7ae {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .cookie-popup-content-cc7ae {
    padding: 2rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Service Cards */
.service-card-cc7ae {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card-front-cc7ae {
  backface-visibility: hidden;
}

/* Flip Card Styles */
.flip-card-cc7ae {
  perspective: 1000px;
}

.flip-card-inner-cc7ae {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-front-cc7ae,
.flip-card-back-cc7ae {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back-cc7ae {
  transform: rotateY(180deg);
}

/* Glassmorphism Effects */
.backdrop-blur-sm-cc7ae {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00dd77;
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

/* Form Error States */
input.border-red-500-cc7ae,
textarea.border-red-500-cc7ae {
  border-color: #ef4444 !important;
}

/* Loading State for Forms */
form.submitting-cc7ae {
  opacity: 0.6;
  pointer-events: none;
}

/* Gradient Text Effect */
.gradient-text-cc7ae {
  background: linear-gradient(135deg, #fff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover Glow Effect */
.hover-glow-cc7ae:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Animated Underline */
.animated-underline-cc7ae {
  position: relative;
}

.animated-underline-cc7ae::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ff88;
  transition: width 0.3s ease;
}

.animated-underline-cc7ae:hover::after {
  width: 100%;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-cc7ae {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Image Filters */
.grayscale-cc7ae {
  filter: grayscale(100%);
}

.contrast-125-cc7ae {
  filter: contrast(125%);
}

.brightness-75-cc7ae {
  filter: brightness(75%);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .cookie-popup-content-cc7ae {
    padding: 1.5rem 1rem;
  }

  .cookie-popup-content-cc7ae h3 {
    font-size: 1.125rem;
  }

  .cookie-popup-content-cc7ae p {
    font-size: 0.875rem;
  }
}

/* Geometric Decorations Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.absolute-cc7ae[class*="bg-[#00ff88]"]:not(.pointer-events-none-cc7ae) {
  animation: float 6s ease-in-out infinite;
}

/* Selection Color */
::selection {
  background-color: #00ff88;
  color: #000;
}

::-moz-selection {
  background-color: #00ff88;
  color: #000;
}

/* Button Hover Effects */
button,
a[class*="bg-"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Shadow */
[class*="hover:shadow"] {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Smooth Image Loading */
img {
  transition: filter 0.3s ease, transform 0.5s ease;
}

/* Grid Layout Enhancements */
.grid-cc7ae {
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-cc7ae {
    gap: 1.5rem;
  }
}

/* Border Animations */
@keyframes borderPulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(0, 255, 136, 0.5);
  }
}

[class*="border-white/10"]:hover {
  animation: borderPulse 2s ease-in-out infinite;
}

/* Text Balance */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .cookie-popup-cc7ae {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* Accessibility: Reduced Motion */
@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;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .border-white-cc7ae\/10 {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .text-white-cc7ae\/60 {
    color: rgba(255, 255, 255, 0.9);
  }
}
