/* Complete redesign to match dark premium aesthetic */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background-color: #000;
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Custom serif font for headings */
.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

/* Dark minimalist scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Premium focus states with subtle white glow */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Smooth fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

/* Glass morphism effect for cards */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* Service card interactive states */
.service-card {
  position: relative;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-details {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Case card hover effects */
.case-card {
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-card:hover::after {
  opacity: 1;
}

.case-extra {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Team member grayscale to color transition */
.team-member img {
  transition: all 0.5s ease;
}

/* Stat counter styling */
.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* Cookie popup animation */
#cookiePopup {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile menu smooth transition */
#mobileMenu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image loading skeleton removed for dark theme */
img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Print styles for dark theme */
@media print {
  body {
    background-color: white;
    color: black;
  }

  header,
  footer,
  #cookiePopup,
  button {
    display: none;
  }
}

/* Accessibility improvements for dark theme */
.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* High contrast mode for dark theme */
@media (prefers-contrast: high) {
  body {
    background-color: #000;
  }

  .text-white\/70 {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Reduced motion support */
@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;
  }
}

/* Custom text selection color */
::selection {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

::-moz-selection {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Smooth gradient overlays */
.bg-gradient-to-t,
.bg-gradient-to-b,
.bg-gradient-to-br {
  background-size: 100% 100%;
  transition: background-size 0.3s ease;
}

/* Premium border styling */
.border-white\/5 {
  border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/30 {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Premium background styling */
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Letter spacing for premium feel */
.tracking-widest {
  letter-spacing: 0.15em;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

/* Line height adjustments */
.leading-tight {
  line-height: 1.15;
}

.leading-relaxed {
  line-height: 1.7;
}

/* Smooth opacity transitions */
.opacity-0 {
  opacity: 0;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Transform utilities */
.translate-y-4 {
  transform: translateY(1rem);
}

/* Rounded corners consistency */
.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

/* Max height transitions */
.max-h-0 {
  max-height: 0;
  overflow: hidden;
}
