/* Complete redesign with soft, elegant aesthetic matching reference */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: #292524;
}

/* Typography */
.font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #fafaf9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #fb923c, #f97316);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f97316, #ea580c);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Smooth Transitions */
button,
a,
input,
textarea,
select {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Animation */
#mobileMenu {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Hover Effects */
img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Card Interactive Effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.05), rgba(249, 115, 22, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* Case Card Flip Effect */
.case-card {
  position: relative;
  perspective: 1000px;
}

.case-card:hover {
  transform: translateY(-8px);
}

/* Team Card Effects */
.team-card {
  position: relative;
}

.team-card:hover {
  transform: translateY(-5px);
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #fb923c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(12px);
  }
}

/* Selection Color */
::selection {
  background-color: #fed7aa;
  color: #292524;
}

/* Button Ripple Effect */
button,
a[class*="bg-gradient"],
a[class*="bg-orange"] {
  position: relative;
  overflow: hidden;
}

button::after,
a[class*="bg-gradient"]::after,
a[class*="bg-orange"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after,
a[class*="bg-gradient"]:active::after,
a[class*="bg-orange"]:active::after {
  width: 300px;
  height: 300px;
}

/* Loading State for Form */
form.loading button[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

form.loading button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Shadow on Scroll */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Accessibility - Focus Visible */
*:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  header,
  footer,
  #cookiePopup,
  button {
    display: none !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
