/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #0a1628 0%, #0c2340 50%, #0a1628 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glass Morphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 12px 48px 0 rgba(34, 211, 238, 0.2);
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Feature Cards */
.feature-card {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
  transform: translateY(-5px) rotateY(5deg);
}

.feature-card.flipped {
  transform: rotateY(180deg);
}

.feature-card .feature-icon {
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.15) rotate(10deg);
}

/* Service Cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
}

/* Team Members */
.team-member {
  transition: all 0.3s ease;
}

.team-photo-wrapper {
  position: relative;
  transition: all 0.4s ease;
}

.team-photo {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-member:hover {
  transform: translateY(-8px);
}

.team-member:hover .team-photo {
  box-shadow: 0 15px 45px rgba(34, 211, 238, 0.4);
  border-color: rgba(34, 211, 238, 0.6);
}

/* Project Cards */
.project-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.expanded {
  transform: scale(1.05);
  z-index: 10;
}

/* Stat Cards */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 9999;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 22, 40, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0284c7 100%);
}

/* Focus States */
input:focus,
textarea:focus,
button:focus,
select:focus {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  outline-offset: 2px;
}

/* Link Transitions */
a {
  transition: all 0.3s ease;
}

/* Image Effects */
img {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Loading Animation for Images */
img:not([src]) {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

img[src] {
  animation: none;
  background: none;
}

/* Typography */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Mobile Menu Animation */
#mobileMenu {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#mobileMenu.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  opacity: 1;
  max-height: 600px;
}

/* 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;
  }

  .glass-card {
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .cookie-popup,
  #burgerMenu {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
  }

  button,
  a {
    border: 2px solid currentColor !important;
  }
}

/* Additional Interactive Effects */
.service-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover::after {
  width: 300%;
  height: 300%;
}

/* Glow Effect on Hover */
.hover-lift:hover {
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3), 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Text Selection */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(34, 211, 238, 0.3);
  color: white;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    backdrop-filter: blur(20px);
  }

  header {
    backdrop-filter: blur(12px);
  }
}

@supports not (backdrop-filter: blur(20px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.08);
  }

  header {
    background: rgba(10, 22, 40, 0.95);
  }
}
