/* Complete dark theme redesign with glassmorphism and interactive effects */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: #020617;
  color: #f1f5f9;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -300px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(6, 182, 212, 0.2);
  z-index: 9999;
  transition: bottom 0.4s ease;
  border-top: 1px solid rgba(6, 182, 212, 0.3);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Form Styles */
input:focus,
textarea:focus {
  outline: none;
}

input[type="checkbox"]:checked {
  accent-color: #22d3ee;
}

/* Button Hover Effects */
button,
a {
  transition: all 0.3s ease;
}

/* Image Lazy Loading */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Service Card Flip Animation */
.service-card {
  perspective: 1000px;
  cursor: pointer;
  height: 600px;
  background: transparent;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  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%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.6);
  overflow: hidden;
}

.service-card-back {
  transform: rotateY(180deg);
}

/* Case Card Flip Animation */
.case-card {
  perspective: 1000px;
  cursor: pointer;
  height: 700px;
  background: transparent;
}

.case-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.case-card.flipped .case-card-inner {
  transform: rotateY(180deg);
}

.case-card-front,
.case-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.6);
  overflow: hidden;
}

.case-card-back {
  transform: rotateY(180deg);
}

/* Team Card Flip Animation */
.team-card {
  perspective: 1000px;
  cursor: pointer;
  height: 500px;
  background: transparent;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.team-card.flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.6);
  overflow: hidden;
}

.team-card-back {
  transform: rotateY(180deg);
}

/* Grid pattern background */
.bg-grid-pattern {
  background-image: linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .service-card,
  .case-card,
  .team-card {
    height: auto;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #22d3ee;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Fade in animation for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Print Styles */
@media print {
  .cookie-popup,
  header,
  footer {
    display: none;
  }
}

/* Accessibility */
.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;
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

/* Glow effects */
.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.glow-cyan:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
