/* Custom styles to complement Tailwind */

/* Ardela Edge Local Font */
@font-face {
  font-family: 'Ardela Edge';
  src: url('../fonts/ArdelaEdge-Regular.otf') format('opentype');
}


input:focus, textarea:focus {
    outline: none;
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.text-accent {
  color: var(--accent-color); 
}

#main-nav {
  transition: all 0.3s ease;
}

/* Enhanced Color System - Moore AI Brand Colors */
:root {
  /* Brand Colors */
  --burgundy: #831925;
  --red-ncs: #BE1E2D;
  --antiflash-white: #EDEDED;
  --alabaster: #F0EADE;
  --night: #0A0A0A;
  
  /* Semantic Color Mapping */
  --primary-red: var(--burgundy);
  --primary-red-light: var(--red-ncs);
  --primary-red-dark: #6B1520;
  --accent-color: var(--red-ncs);
  --bg-primary: var(--night);
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: var(--antiflash-white);
  --text-secondary: var(--alabaster);
  --text-muted: #b8b8b8;
  --border-color: #404040;
  --border-accent: var(--red-ncs);
}

/* Improved Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #c41e3a);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(190, 30, 45, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(190, 30, 45, 0.4);
  background: linear-gradient(135deg, #c41e3a, var(--accent-color));
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  padding: 12px 24px;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Enhanced Form Styles */
.form-input {
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(234, 63, 68, 0.1);
  outline: none;
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color);
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Accessibility Improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* 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) {
  .service-card {
    border: 2px solid var(--accent-color);
  }
  
  .team-photo {
    border-width: 3px;
  }
}

/* Improved Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--night) 0%, var(--burgundy) 50%, var(--red-ncs) 100%);
}

.gradient-secondary {
  background: linear-gradient(45deg, var(--burgundy) 0%, var(--red-ncs) 100%);
}

.gradient-tertiary {
  background: linear-gradient(180deg, var(--night) 0%, var(--burgundy) 100%);
}

/* FAQ Accordion Styles */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-color);
}

.faq-question {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-primary);
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Team Photo Improvements */
.team-photo {
  width: 150px;
  height: 150px;
  border: 4px solid var(--accent-color);
  box-shadow: 0 8px 25px rgba(190, 30, 45, 0.3);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(190, 30, 45, 0.4);
}

/* Subtle GitHub Links */
.github-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.github-link:hover {
  text-decoration: none;
  color: var(--accent-color);
}

.github-link:hover .team-photo {
  border-color: var(--cream);
}

/* Enhanced Card Styles */
.service-card {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(190, 30, 45, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(190, 30, 45, 0.2);
}

.service-card i {
  transition: all 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1);
  color: var(--cream) !important;
}

/* Card Hover Animation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Enhanced text animations */
.text-glow {
  text-shadow: 0 0 10px currentColor;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px currentColor;
  }
  to {
    text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* Smooth Page Transitions */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Hover Animations */
nav a {
  position: relative;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(190, 30, 45, 0.3), transparent);
  transition: left 0.5s ease;
}

nav a:hover:before {
  left: 100%;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--burgundy));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover:after {
  width: 80%;
}

nav a:hover {
  background: rgba(190, 30, 45, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 30, 45, 0.2);
  color: var(--cream);
}

/* Animated word effects */
.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(190, 30, 45, 0.5);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(190, 30, 45, 0.8), 0 0 30px rgba(190, 30, 45, 0.6);
    transform: scale(1.05);
  }
}
