/* Complete redesign with Point Eight style colors and effects */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Flip card animation for specialty cards */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.5rem;
  overflow: hidden;
}

.flip-card-front {
  position: relative;
}

.flip-card-back {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Service icon card hover effects */
.service-icon-card {
  transition: transform 0.3s ease;
}

.service-icon-card:hover {
  transform: translateY(-8px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation for elements appearing on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll behavior */
header.scroll-down {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

header.scroll-up {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Cookie popup animation */
#cookiePopup {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Enhanced shadows */
.shadow-custom {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

input.border-red-500 {
  border-color: #dc2626 !important;
}

input.border-green-500,
textarea.border-green-500 {
  border-color: #10b981 !important;
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
}

/* Mobile menu transition */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Image hover effects */
.group:hover img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

/* Custom scrollbar matching the design */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* Button press animation */
button:active,
a.button:active {
  transform: scale(0.98);
}

/* All transitions */
a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Gradient overlays for images */
.image-overlay {
  position: relative;
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Disable flip cards on mobile */
  .flip-card:hover .flip-card-inner {
    transform: none;
  }

  .flip-card-back {
    display: none;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup,
  #burgerMenu {
    display: none;
  }
}

/* Hover glow effect for cards */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

/* Text selection color */
::selection {
  background-color: #dc2626;
  color: white;
}

::-moz-selection {
  background-color: #dc2626;
  color: white;
}

/* Loading state for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Responsive iframe */
iframe {
  max-width: 100%;
}
