/* Custom styles for AdVio website */

/* Override Bootstrap variables where needed */
:root {
  --advio-primary: #0d6efd;
  --advio-secondary: #6c757d;
  --advio-success: #198754;
  --advio-info: #0dcaf0;
  --advio-warning: #ffc107;
  --advio-danger: #dc3545;
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navigation enhancements */
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--bs-primary) !important;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

/* Card hover effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Button enhancements */
.btn {
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Form styles */
.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Accordion customization */
.accordion-button {
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
}

.accordion-button:not(.collapsed) {
  background-color: var(--bs-primary);
  color: white;
}

/* Stats section animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-animate {
  animation: countUp 0.6s ease forwards;
}

/* Social media icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
}

/* Process section numbering */
.process-number {
  position: relative;
  z-index: 1;
}

.process-number::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--bs-primary), transparent);
  transform: translateY(-50%);
  z-index: -1;
}

.process-number:last-child::after {
  display: none;
}

/* Footer enhancements */
footer {
  position: relative;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--bs-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh !important;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }
}

/* Loading animation for form submission */
.btn.loading {
  position: relative;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

/* Text selection styling */
::selection {
  background-color: var(--bs-primary);
  color: white;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Performance optimization */
.img-fluid {
  object-fit: cover;
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .social-icons {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none !important;
  }
}
