/* Custom styles for SEID Global Consulting */

/* Global animations and transitions */
* {
  transition: all 0.3s ease;
}

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

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Quantum particles animation */
@keyframes quantumFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
    opacity: 0.8;
  }
  66% {
    transform: translateY(20px) translateX(-15px) rotate(240deg);
    opacity: 0.5;
  }
}

.quantum-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.quantum-particles::before,
.quantum-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #06b6d4, #6366f1);
  border-radius: 50%;
  animation: quantumFloat 8s ease-in-out infinite;
}

.quantum-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.quantum-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: 4s;
}

/* Hover effects for cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom gradient backgrounds */
.gradient-bg-blue {
  background: linear-gradient(135deg, #2E86DE 0%, #00D2D3 100%);
}

.gradient-bg-seid {
  background: linear-gradient(135deg, #2E86DE 0%, #0ABDE3 25%, #00D2D3 50%, #FF9F43 75%, #EE5A6F 100%);
}

.gradient-bg-quantum {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #2E86DE 0%, #00D2D3 100%);
  box-shadow: 0 4px 15px rgba(46, 134, 222, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 134, 222, 0.6);
}

.btn-quantum {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.btn-quantum:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Scroll animations */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Custom form styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  outline: none;
}

/* Loading states */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile menu styles */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  .dark-mode-ready {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

/* Focus styles for accessibility */
.focus-visible:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-quantum {
    border: 2px solid currentColor;
  }
}

/* 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;
  }
  
  .particle-element,
  .animate-gradient-x,
  .animate-tilt {
    animation: none !important;
  }
}

/* Custom utilities */
.text-gradient {
  background: linear-gradient(135deg, #2E86DE, #0ABDE3, #00D2D3, #FF9F43);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seid-gradient {
  background: linear-gradient(135deg, #2E86DE, #0ABDE3, #00D2D3, #FF9F43, #EE5A6F, #FFD32A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quantum-gradient {
  background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.shadow-glow-hover:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Intersection observer styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Modern design enhancements */
@keyframes gradient-x {
  0%, 100% {
    transform: translateX(0%);
  }
  50% {
    transform: translateX(100%);
  }
}

@keyframes tilt {
  0%, 50%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.5deg);
  }
  75% {
    transform: rotate(-0.5deg);
  }
}

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

.animate-tilt {
  animation: tilt 10s infinite linear;
}

/* Enhanced glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.glass-card-dark {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Advanced hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced gradient borders */
.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #2E86DE, #00D2D3, #FF9F43) border-box;
  border: 2px solid transparent;
}

.gradient-border-animated {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #2E86DE, #00D2D3, #FF9F43, #2E86DE) border-box;
  border: 2px solid transparent;
  background-size: 400% 400%;
  animation: gradient-x 4s ease infinite;
}

/* Modern loading animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Advanced text animations */
@keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

.text-focus-in {
  animation: text-focus-in 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

/* Enhanced particle effects */
@keyframes particle-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translate3d(30px, -30px, 0) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translate3d(-20px, 20px, 0) rotate(240deg);
    opacity: 0.5;
  }
}

/* Quantum-specific Font Awesome animations */
@keyframes quantum-spin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes quantum-pulse-glow {
  0%, 100% { 
    opacity: 0.6; 
    filter: brightness(1) drop-shadow(0 0 5px currentColor);
  }
  50% { 
    opacity: 1; 
    filter: brightness(1.3) drop-shadow(0 0 15px currentColor);
  }
}

@keyframes quantum-orbit {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* Quantum icon enhancements */
.quantum-icon-spin {
  animation: quantum-spin 4s linear infinite;
}

.quantum-icon-glow {
  animation: quantum-pulse-glow 2s ease-in-out infinite;
}

.quantum-icon-orbit {
  animation: quantum-orbit 8s linear infinite;
}

/* Quantum Diagonal Cuts - Simple & Effective */
.diagonal-cut-right {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

.diagonal-cut-left {  
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
}

/* Quantum Logo Enhancements */
.quantum-logo {
  transition: all 0.3s ease;
}

.quantum-logo:hover {
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  transform: scale(1.05);
}

.quantum-logo-glow {
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.particle-element {
  animation: particle-float 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.particle-element:nth-child(2) {
  animation-delay: 2s;
}

.particle-element:nth-child(3) {
  animation-delay: 4s;
}

/* Modern card hover effects */
.modern-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.modern-card:hover::before {
  left: 100%;
}

/* Advanced responsive patterns */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .modern-card {
    margin-bottom: 2rem;
  }
}

/* Performance optimizations */
.transform-gpu {
  transform: translateZ(0);
  will-change: transform;
}

/* Accessibility enhancements */
.focus-ring {
  position: relative;
}

.focus-ring:focus-visible::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #2E86DE;
  border-radius: inherit;
  opacity: 1;
  z-index: 1;
}

/* Custom scrollbar for modern browsers */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #2E86DE #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2E86DE, #00D2D3);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00D2D3, #FF9F43);
}

/* Sidebar menu styles */
#sidebar-menu {
    background-color: white !important;
}

#sidebar-menu .bg-white {
    background-color: white !important;
}

#sidebar-menu .bg-gray-100 {
    background-color: #f3f4f6 !important;
}

#sidebar-menu .hover\:bg-gray-100:hover {
    background-color: #f3f4f6 !important;
}

/* Overlay styles */
#sidebar-overlay {
    backdrop-filter: blur(4px);
}

/* Sidebar transition */
#sidebar-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu .hover\\:bg-quantum-cyan:hover {
    background-color: #06b6d4 !important;
}

#mobile-menu .hover\\:bg-quantum-blue:hover {
    background-color: #3b82f6 !important;
}