/* American IT Support - Custom Styles */

/* Patriotic Color Variables */
:root {
  --american-red: #DC143C;
  --american-blue: #002868;
  --american-white: #FFFFFF;
  --star-blue: #0A3161;
  --eagle-gold: #FFD700;
}

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

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

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

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

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Patriotic Gradient Backgrounds */
.patriotic-gradient {
  background: linear-gradient(135deg, var(--american-blue) 0%, var(--american-red) 50%, var(--american-white) 100%);
}

.flag-gradient {
  background: linear-gradient(90deg, 
    var(--american-red) 0%, 
    var(--american-white) 25%, 
    var(--american-blue) 50%, 
    var(--american-white) 75%, 
    var(--american-red) 100%);
}

/* Service Card Hover Effects */
.service-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--american-red);
  box-shadow: 0 10px 25px rgba(220, 20, 60, 0.2);
}

/* Team Card Effects */
.team-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: scale(1.05);
}

.team-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;
}

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

/* Button Styles */
.btn-patriotic {
  background: linear-gradient(45deg, var(--american-red), var(--american-blue));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-patriotic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 40, 104, 0.3);
}

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

.btn-patriotic:active::after {
  width: 300px;
  height: 300px;
}

/* Eagle Wing Animation */
@keyframes wingFlap {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(15deg); }
}

.eagle-wing {
  animation: wingFlap 3s ease-in-out infinite;
}

/* Star Sparkle Effect */
@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.star-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--american-white);
}

::-webkit-scrollbar-thumb {
  background: var(--american-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--american-blue);
}

/* Loading Animation */
.loading-spinner {
  border: 3px solid var(--american-white);
  border-top: 3px solid var(--american-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Form Styles */
.form-input {
  border: 2px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--american-blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

/* Security Badge Pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.security-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Navigation Underline Effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--american-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}