/* Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Custom CSS Variables */
:root {
  --primary-blue: #2563eb;
  --primary-purple: #9333ea;
  --accent-orange: #f59e0b;
  --text-gray: #374151;
  --light-gray: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Navbar Styles */
.navbar-glassy {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-light .navbar-logo {
  color: #2563eb;
}

.navbar-dark .navbar-logo {
  color: #f59e0b;
}

.navbar-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
  background: rgba(30, 64, 175, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-logo-container,
.navbar-dark button,
.navbar-dark a {
  color: white !important;
}

/* Hero Section Animations */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) translateX(-15px) rotate(240deg);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(25px) translateX(-20px) rotate(-120deg);
  }
  66% {
    transform: translateY(-20px) translateX(15px) rotate(-240deg);
  }
}

@keyframes float-diagonal {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-40px) translateX(40px) scale(1.1);
  }
}

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

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

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

/* Fade In Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out;
}

.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-1000 {
  animation-delay: 1s;
}
.delay-1200 {
  animation-delay: 1.2s;
}
.delay-1400 {
  animation-delay: 1.4s;
}

/* Moving Road Background */
.moving-road-bg {
  background: linear-gradient(
    45deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(147, 51, 234, 0.05) 25%,
    rgba(37, 99, 235, 0.05) 50%,
    rgba(147, 51, 234, 0.05) 75%,
    rgba(37, 99, 235, 0.05) 100%
  );
  background-size: 200px 200px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200px 200px;
  }
}

/* Service Card Hover Effects */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-12px) rotateX(5deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 15px 35px rgba(37, 99, 235, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Premium Card Gradients */
.card-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.card-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Glassy Effect for Modal */
.glass-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Service Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

/* Service Item Cards in Modal */
.service-item-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* Floating Action Buttons */
.floating-phone-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-phone-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* Form Input Styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

/* Contact Form Glass Effect */
.contact-form-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Success/Error Messages */
.alert-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  backdrop-filter: blur(10px);
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  backdrop-filter: blur(10px);
}

/* Feature Icons */
.feature-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

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

.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .service-item-card {
    margin-bottom: 1rem;
  }
}

/* Performance Optimizations */
* {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Enhanced Shadow Effects */
.shadow-glow {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3), 0 0 40px rgba(37, 99, 235, 0.2),
    0 0 80px rgba(37, 99, 235, 0.1);
}

.shadow-glow-orange {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.2),
    0 0 80px rgba(245, 158, 11, 0.1);
}

/* Text Gradients */
.text-gradient-blue {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility Classes */
.will-change-transform {
  will-change: transform;
}

.backdrop-blur-glass {
  backdrop-filter: blur(15px) saturate(180%);
}

/* Enhanced Card Patterns */
.card-pattern {
  background-image: radial-gradient(
      circle at 20px 20px,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 0
    ),
    radial-gradient(
      circle at 40px 40px,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 0
    );
  background-size: 60px 60px;
}

/* Modern Border Radius */
.rounded-modern {
  border-radius: 1.5rem;
}

.rounded-xl-modern {
  border-radius: 2rem;
}

/* Z-index Management */
.z-modal {
  z-index: 1000;
}
.z-overlay {
  z-index: 999;
}
.z-dropdown {
  z-index: 100;
}
.z-fixed {
  z-index: 50;
}
