/* Complete redesign with modern minimalist aesthetic, warm gradients, and smooth animations */

* {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandIn {
  from {
    opacity: 0;
    max-height: 0;
    transform: scaleY(0.8);
  }
  to {
    opacity: 1;
    max-height: 1000px;
    transform: scaleY(1);
  }
}

@keyframes expandOut {
  from {
    opacity: 1;
    max-height: 1000px;
    transform: scaleY(1);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: scaleY(0.8);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes cardPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #a3a3a3;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #737373;
}

/* Header styles */
header {
  transition: all 0.3s ease;
}

/* Mobile menu transition */
#mobileMenu {
  transition: all 0.3s ease;
}

#mobileMenu.hidden {
  display: none;
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input[type="checkbox"] {
  cursor: pointer;
  accent-color: #f97316;
}

/* Button styles */
button,
a.button {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:active,
a.button:active {
  transform: scale(0.98);
}

/* Service cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card.expanded {
  transform: scale(1.02);
}

.service-details {
  transform-origin: top;
}

/* Expandable sections */
.expandable-icon {
  transition: transform 0.3s ease;
}

/* Team cards */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

/* Cookie popup */
#cookiePopup {
  transition: all 0.3s ease;
}

#cookiePopup.hidden {
  display: none;
}

/* Image hover effects */
img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

/* Form error states */
.border-red-500 {
  border-color: #ef4444 !important;
}

/* Placeholder styles */
::placeholder {
  color: #a3a3a3;
  opacity: 1;
}

/* Link transitions */
a {
  transition: all 0.3s ease;
}

/* Gradient backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  header {
    backdrop-filter: blur(10px);
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Smooth color transitions */
* {
  transition-property: color, background-color, border-color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Override for elements that need specific transitions */
button,
a,
input,
textarea,
.service-card,
.team-card,
img {
  transition: all 0.3s ease;
}

/* SVG icon transitions */
svg {
  transition: all 0.3s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Disabled state */
button:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading state */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}
