/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0D1117;
}

::-webkit-scrollbar-thumb {
  background: #3BFFA6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6FFFB8;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 3s ease-in-out infinite 0.5s;
}

/* Glow Effect */
.glow-effect {
  box-shadow: 0 0 20px rgba(59, 255, 166, 0.3);
}

/* Custom Gradient Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* Pulse Animation */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(59, 255, 166, 0.3);
  border-top: 3px solid #3BFFA6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 255, 166, 0.2);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #3BFFA6 0%, #6FFFB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Ripple Effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple-effect:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .flex-row {
  flex-direction: row-reverse;
}

/* Hero Section Background Animation */
.hero-bg {
  background: linear-gradient(135deg, #0D1117 0%, #0A2463 50%, #0D1117 100%);
  background-size: 200% 200%;
  animation: gradient-shift 20s ease infinite;
}

/* Cybersecurity Grid Pattern */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(59, 255, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 255, 166, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Glowing Border Animation */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(59, 255, 166, 0.3);
    box-shadow: 0 0 10px rgba(59, 255, 166, 0.2);
  }
  50% {
    border-color: rgba(59, 255, 166, 0.8);
    box-shadow: 0 0 20px rgba(59, 255, 166, 0.5);
  }
}

.animate-border-glow {
  animation: border-glow 2s ease-in-out infinite;
}

/* Progress Bar Animation */
@keyframes progress-load {
  0% {
    width: 0%;
  }
}

.progress-animate {
  animation: progress-load 2s ease-out forwards;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #3BFFA6;
  outline-offset: 2px;
}

/* Mobile Menu Animation */
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu {
  animation: slide-down 0.3s ease-out;
}

/* Loading State */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 255, 166, 0.3);
  border-top-color: #3BFFA6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #0A2463;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-bottom: 5px;
}

.tooltip:hover::before {
  opacity: 1;
}

/* Print Styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }
}

/* 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;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .bg-cyber-dark {
    background: #000000;
  }
  
  .text-gray-400 {
    color: #FFFFFF;
  }
}

/* Dark Mode (default) */
body {
  background-color: #0D1117;
  color: #FFFFFF;
}

/* Selection Color */
::selection {
  background-color: #3BFFA6;
  color: #0D1117;
}

::-moz-selection {
  background-color: #3BFFA6;
  color: #0D1117;
}
