/* Custom Styles for ByteWave KZ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Custom gradient backgrounds */
.gradient-bg-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Hover effects for buttons */
button,
.btn {
  transition: all 0.3s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* Form input focus effects */
input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Custom checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2563eb;
}

/* Loading spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Hero section background pattern */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Team section icon animations */
.team-icon {
  transition: all 0.3s ease;
}

.team-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Footer link hover effects */
footer a {
  position: relative;
  transition: color 0.3s ease;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Cookie popup animation */
#cookiePopup {
  transition: transform 0.3s ease-in-out;
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease;
}

/* Image loading effect */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Section spacing */
section {
  position: relative;
}

/* Custom text selection */
::selection {
  background-color: #2563eb;
  color: white;
}

::-moz-selection {
  background-color: #2563eb;
  color: white;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Card grid responsive adjustments */
@media (max-width: 640px) {
  .grid {
    gap: 1rem;
  }
}

/* Navigation link active state */
nav a.active {
  color: #2563eb;
  font-weight: 600;
}

/* Form error states */
.border-red-500 {
  border-color: #ef4444 !important;
}

input.border-red-500:focus,
textarea.border-red-500:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button loading state */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}

/* Social media icons hover */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* Map container */
iframe {
  display: block;
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  button,
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here */
}

/* Custom utility classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Container max-width adjustments */
.container {
  max-width: 1280px;
}

/* Custom spacing utilities */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Image aspect ratio preservation */
img[src*="placeholder.svg"] {
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Form field groups */
.form-group {
  margin-bottom: 1.5rem;
}

/* Success message styling (for future use) */
.success-message {
  background-color: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Error message styling (for future use) */
.error-message {
  background-color: #ef4444;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Loading overlay (for future use) */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Tooltip styling (for future use) */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem;
  background-color: #1f2937;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #2563eb;
  color: white;
}

/* Divider styling */
.divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 2rem 0;
}

/* Custom focus visible styles */
*:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Added space theme background */
.bg-space-black {
  background-color: #050510;
}

/* Added HUD frame utility */
.hud-frame {
  background: rgba(0, 229, 255, 0.05);
  border: 2px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1);
  position: relative;
}

.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #00e5ff;
}

.hud-frame::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hud-frame::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Added holographic text utility */
.holo-text {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.5), 0 0 30px rgba(0, 229, 255, 0.3);
  animation: holo-pulse 3s ease-in-out infinite;
}

@keyframes holo-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.5), 0 0 30px rgba(0, 229, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 229, 255, 1), 0 0 30px rgba(0, 229, 255, 0.7), 0 0 45px rgba(0, 229, 255, 0.5);
  }
}

/* Added neon outline utility */
.neon-outline {
  border: 2px solid #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.neon-outline:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.8), inset 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Added plasma border utility */
.plasma-border {
  border: 2px solid #7c4dff;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.5), inset 0 0 10px rgba(124, 77, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.plasma-border::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(124, 77, 255, 0.3), transparent);
  animation: plasma-rotate 4s linear infinite;
}

@keyframes plasma-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Added console panel utility */
.console-panel {
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

/* Added console button styles */
.console-btn {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.console-btn:hover {
  color: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.1);
}

.console-btn-footer {
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  display: inline-block;
}

.console-btn-footer:hover {
  color: #00e5ff;
  padding-left: 0.5rem;
}

/* Added scan grid utility */
.scan-grid-container {
  position: relative;
  overflow: hidden;
}

.scan-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.scan-grid-container:hover .scan-grid {
  opacity: 1;
  animation: scan-move 2s linear infinite;
}

@keyframes scan-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

/* Added warp animation utility */
.warp-anim {
  animation: warp-in 0.3s ease-out;
}

@keyframes warp-in {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Added radar ping utility */
.radar-ping {
  animation: radar-pulse 2s ease-in-out infinite;
}

@keyframes radar-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.radar-ping-bg {
  position: relative;
}

.radar-ping-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: radar-ring 2s ease-out infinite;
}

@keyframes radar-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }
  100% {
    width: 150%;
    height: 150%;
    opacity: 0;
  }
}

/* Added planet orbit utility */
.planet-orbit img {
  transition: transform 0.05s linear;
}

/* Added holographic card styles */
.holo-card {
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.holo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.3);
  border-color: #00e5ff;
}

/* Added speech hologram styles */
.speech-holo {
  background: rgba(0, 229, 255, 0.05);
  border-left: 3px solid #00e5ff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.speech-holo::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #00e5ff, #7c4dff);
  animation: speech-scan 3s linear infinite;
}

@keyframes speech-scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Added team card flip styles */
.team-card-flip {
  perspective: 1000px;
  cursor: pointer;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card-flip.flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.team-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-card-flip:hover .team-card-front,
.team-card-flip:hover .team-card-back {
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
  border-color: #00e5ff;
}

/* Added plasma line animation for footer */
.plasma-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00e5ff, #7c4dff, #00ffc2, transparent);
  animation: plasma-flow 3s linear infinite;
}

@keyframes plasma-flow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Added HUD grid background for footer */
.hud-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Added neon glow for focused inputs */
.focus\:shadow-neon-cyan:focus {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Added holographic burger menu */
.holo-burger svg {
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5));
}

.holo-burger:hover svg {
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
}

/* Reduced motion support for animations */
@media (prefers-reduced-motion: reduce) {
  .holo-text,
  .radar-ping,
  .plasma-border::before,
  .plasma-line,
  .speech-holo::before,
  .scan-grid {
    animation: none !important;
  }

  .team-card-inner {
    transition: none !important;
  }
}
