/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -300px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  transition: bottom 0.4s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar with new colors */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
}

/* Focus States with new colors */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Button Hover Effects */
button,
a {
  transition: all 0.3s ease;
}

button:hover,
a:hover {
  transform: translateY(-2px);
}

/* Image Zoom on Hover */
img {
  transition: transform 0.5s ease;
}

/* Card Hover Effects */
.shadow-lg {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadow-lg:hover {
  transform: translateY(-5px);
}

/* Mobile Menu Animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .cookie-popup,
  header,
  footer {
    display: none;
  }
}

/* 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-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Custom Border Styles */
.border-gradient {
  border-image: linear-gradient(135deg, #1e3a8a, #facc15) 1;
}

/* Section Spacing */
section {
  scroll-margin-top: 80px;
  position: relative;
}

/* Team Member Card Hover */
.group:hover img {
  filter: brightness(1.1);
}

/* Service Card Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Map Responsive */
iframe {
  max-width: 100%;
}

/* Form Error State */
.border-red-500 {
  border-color: #ef4444 !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Success Message */
.success-message {
  background: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(30, 58, 138, 0.1);
  border-top-color: #1e3a8a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Service Card Flip Animation */
.service-card-flip {
  perspective: 1000px;
  height: 400px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-back {
  transform: rotateY(180deg);
}

/* Case Card Hover Effect */
.case-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Team Member Card */
.team-member-card {
  transition: transform 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
}

/* Pulse Animation for CTAs */
@keyframes pulse-orange {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

.animate-pulse-orange {
  animation: pulse-orange 2s infinite;
}

/* Glow Effect */
.glow-orange {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.glow-lime {
  box-shadow: 0 0 20px rgba(163, 230, 53, 0.5);
}
