/* Main CSS file for OpsHunt website */

/* Base Styles */
:root {
  --primary-color: #4f46e5; /* indigo-600 */
  --primary-dark: #4338ca; /* indigo-700 */
  --primary-light: #e0e7ff; /* indigo-100 */
  --secondary-color: #9333ea; /* purple-600 */
  --text-color: #1f2937; /* gray-800 */
  --text-light: #6b7280; /* gray-500 */
  --bg-light: #f9fafb; /* gray-50 */
  --white: #ffffff;
  --black: #000000;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Custom Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
  opacity: 0;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
  opacity: 0;
}

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

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

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

/* Button Animations */
.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(79, 70, 229, 0.1), transparent);
  transition: height 0.3s ease;
  z-index: 0;
}

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

.service-card .icon-wrapper {
  position: relative;
  transition: transform 0.3s ease;
  z-index: 1;
}

.service-card:hover .icon-wrapper {
  transform: translateY(-5px);
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
  z-index: 1;
}

/* Back to Top Button */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern.svg');
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header, footer, #back-to-top {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
}
