:root {
  --primary-color: #0056b3;
  --secondary-color: #ff8c00;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #003d82;
  border-color: #003d82;
}

.btn-warning {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-warning:hover {
  background-color: #e67e00;
  border-color: #e67e00;
  color: white;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0077cc 100%);
}

/* AI Image Placeholder */
ai-img {
  display: block;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  position: relative;
  width: 100%;
  min-height: 100px;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 12px;
  text-align: center;
  padding: 1rem;
  max-width: 90%;
  word-wrap: break-word;
}

ai-img::after {
  content: '📦';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
  font-size: 24px;
}

ai-img[logo="true"]::after {
  content: '🏢';
}

ai-img.rounded-circle {
  border-radius: 50%;
  aspect-ratio: 1;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
  aspect-ratio: 4/3;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand ai-img {
  height: 50px;
  width: 180px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

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

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

.hero-section ai-img {
  height: 600px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 3rem;
  border-radius: 10px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: 10%;
  right: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 50%;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
}

.stat-item h2 {
  font-size: 3rem;
  font-weight: 800;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

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

.product-card .card-img-wrapper {
  overflow: hidden;
}

.product-card ai-img {
  transition: transform 0.3s ease;
  height: 300px;
}

.product-card:hover ai-img {
  transform: scale(1.05);
}

.product-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

/* Solution Cards */
.solution-card {
  transition: all 0.3s ease;
  border-radius: 10px;
}

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

.solution-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e9f5ff 0%, #d4ebff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Certification Badges */
.cert-badge {
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-badge ai-img {
  height: 80px;
  width: 100px;
  margin: 0 auto;
}

/* Testimonials */
.testimonial-card {
  border-radius: 10px;
}

.testimonial-card .bi-star-fill {
  font-size: 1.5rem;
}

/* Forms */
.form-wrapper {
  border-radius: 10px;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid {
  border-color: var(--success-color);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
}

.page-banner ai-img {
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Filter Section */
.filter-section select {
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #212529 !important;
}

.footer ai-img[logo="true"] {
  height: 50px;
  width: 180px;
}

.footer a:hover {
  color: var(--secondary-color) !important;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Floating Buttons */
.floating-buttons .btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
}

#backToTop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
}

/* Modal */
.modal-content {
  border-radius: 10px;
  border: none;
}

.modal-header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Timeline (for about page) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 45%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

/* Author Card */
.author-card {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.author-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.author-card ai-img {
  width: 150px;
  height: 150px;
}

.author-card .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* Blog Cards */
.blog-card {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

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

.blog-card ai-img {
  height: 250px;
}

/* Contact Cards */
.contact-card {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: var(--primary-color) !important;
  color: white !important;
}

.contact-card:hover i {
  color: white !important;
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Map */
.map-container {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container ai-img {
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 1.5rem;
    left: 5%;
    right: 5%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.75rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .hero-section ai-img {
    height: 400px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .stat-item h2 {
    font-size: 2rem;
  }
}

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

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

/* Print Styles */
@media print {
  .navbar,
  .floating-buttons,
  .promo-bar,
  .top-bar,
  footer {
    display: none;
  }
}
