* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-primary: #0a0a0f;
  --dark-secondary: #13131a;
  --accent-lime: #d4ff00;
  --accent-cyan: #00e5ff;
  --accent-pink: #ff006e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: var(--dark-primary);
}

.bg-dark-primary {
  background-color: var(--dark-primary);
}

.bg-dark-secondary {
  background-color: var(--dark-secondary);
}

.text-accent-lime {
  color: var(--accent-lime);
}

.text-accent-cyan {
  color: var(--accent-cyan);
}

.text-accent-pink {
  color: var(--accent-pink);
}

.bg-accent-lime {
  background-color: var(--accent-lime);
}

.bg-accent-cyan {
  background-color: var(--accent-cyan);
}

.bg-accent-pink {
  background-color: var(--accent-pink);
}

.border-accent-lime {
  border-color: var(--accent-lime);
}

.border-accent-cyan {
  border-color: var(--accent-cyan);
}

.border-accent-pink {
  border-color: var(--accent-pink);
}

.shadow-glow-lime {
  box-shadow: 0 0 30px rgba(212, 255, 0, 0.3);
}

.shadow-glow-cyan {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.shadow-glow-pink {
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

/* Glass Morphism */
.glass-card {
  background: rgba(19, 19, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(19, 19, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* Gradient Mesh Background */
.gradient-mesh {
  background: radial-gradient(at 20% 30%, rgba(212, 255, 0, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(0, 229, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 0, 110, 0.15) 0px, transparent 50%);
  filter: blur(80px);
}

/* Service Cards with Flip Effect */
.service-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 400px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: rgba(19, 19, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card-back {
  transform: rotateY(180deg);
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Feature Cards with Expand */
.feature-card {
  background: rgba(19, 19, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 255, 0, 0.1), rgba(0, 229, 255, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.feature-card.expanded {
  transform: scale(1.05);
  border-color: rgba(212, 255, 0, 0.3);
  box-shadow: 0 20px 60px rgba(212, 255, 0, 0.2);
}

.feature-card.expanded::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg) scale(1.1);
}

/* Case Cards */
.case-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.case-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Team Cards */
.team-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.team-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Glow Effect */
.glow-effect {
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.glow-effect::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(212, 255, 0, 0.2), transparent 40%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

.glow-effect:hover::before {
  opacity: 1;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -400px;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cookie-popup {
    bottom: -300px;
    left: 2rem;
    right: auto;
    max-width: 450px;
  }

  .cookie-popup.show {
    bottom: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 255, 0, 0.3);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 255, 0, 0.5);
}

/* Selection */
::selection {
  background: var(--accent-lime);
  color: var(--dark-primary);
}

::-moz-selection {
  background: var(--accent-lime);
  color: var(--dark-primary);
}
