/* Complete redesign with dark theme, Inter font, and modern styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions */
a,
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form input focus states */
input:focus,
textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00dd77;
}

/* Hover effects for images */
img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cookie popup animation */
#cookiePopup {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fixed button hover effects - removed problematic Tailwind selector */
button:hover,
a[class*="bg-"]:hover {
  transform: translateY(-1px);
}

/* Value card flip effect */
.value-card {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
  transform: translateY(-4px);
}

/* Service position cards */
.service-position {
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-position:hover {
  transform: translateY(-2px);
}

/* Mobile menu animation */
#mobileMenu {
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for CTA */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup,
  #burgerBtn {
    display: none;
  }
}

/* Accessibility improvements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

/* Loading state for images */
img {
  background: #0f0f0f;
}

/* Responsive iframe */
iframe {
  max-width: 100%;
}

/* Selection color */
::selection {
  background: #00ff88;
  color: #0a0a0a;
}

::-moz-selection {
  background: #00ff88;
  color: #0a0a0a;
}

/* Italic font weight adjustment */
em {
  font-style: italic;
  font-weight: 300;
}

/* Typography refinements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Grid hover effects */
.grid > * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth fade in for sections */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInSection 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Card expand animation on click */
@keyframes expandCard {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.value-card:active,
.service-position:active {
  animation: expandCard 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #00ff88 0%, #00dd77 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced border on hover */
.border-hover {
  position: relative;
  overflow: hidden;
}

.border-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #00ff88, transparent);
  -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.3s;
}

.border-hover:hover::before {
  opacity: 1;
}
