/* Imperial Dade Custom Styles */

:root {
  --primary-color: #003d7a;
  --secondary-color: #ff6b35;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

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

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

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

ai-img.card-img-top {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  width: 100%;
  height: 300px;
}

ai-img[logo="true"] {
  background: transparent;
  border: 1px dashed #ddd;
}

/* Promo Bar */
.promo-bar {
  background: var(--primary-color) !important;
  font-size: 14px;
  font-weight: 500;
}

.promo-bar .btn-light {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}

/* Top Bar */
.top-bar a {
  transition: var(--transition);
}

.top-bar a:hover {
  opacity: 0.8;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
}

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

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  color: var(--text-color) !important;
}

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

.navbar .btn-primary {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
}

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

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

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border-radius: var(--border-radius);
  bottom: 10%;
  left: 10%;
  right: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002550 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-15deg);
}

/* Stats Section */
.stat-card {
  padding: 2rem;
  transition: var(--transition);
}

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

.stat-card h2 {
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
}

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

.product-category-card {
  background: #fff;
}

.product-category-card .card-body {
  padding: 2rem;
}

.product-card {
  height: 100%;
}

.product-card .badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
}

.solution-card {
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.solution-card:hover {
  border-left-color: var(--secondary-color);
  transform: translateX(5px);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(0, 61, 122, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonial */
.testimonial-card {
  border-left: 4px solid var(--secondary-color);
}

.testimonial-card ai-img {
  width: 60px;
  height: 60px;
}

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

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

.author-card ai-img {
  width: 150px;
  height: 150px;
  border: 3px solid var(--primary-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  /*content: '';*/
  /*position: absolute;*/
  /*left: 50%;*/
  /*top: 0;*/
  /*bottom: 0;*/
  /*width: 2px;*/
  /*background: var(--primary-color);*/
  /*transform: translateX(-50%);*/
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item::before {
    left: 30px;
  }

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

/* Blog Card */
.blog-card {
  border: none;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

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

.blog-meta {
  font-size: 14px;
  color: #6c757d;
}

.blog-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content h3 {
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

/* Contact Cards */
.contact-card {
  border: none;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  background: linear-gradient(to bottom, #fff, #f8f9fa);
}

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

.contact-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  transition: var(--transition);
}

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

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Buttons */
.btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: #002550;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 61, 122, 0.3);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Floating Buttons */
.floating-buttons .btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Gradient Background */
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002550 100%);
}

/* Certification Logos */
.cert-logo {
  max-width: 150px;
  height: 80px;
  margin: 0 auto;
  opacity: 0.8;
  transition: var(--transition);
}

.cert-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--dark-color) !important;
}

footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

footer a:hover {
  color: white;
  padding-left: 5px;
}

footer ai-img {
  max-width: 180px;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

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

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

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

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

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-warning {
  background-color: var(--secondary-color) !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

/* Modal */
.modal-header {
  background: var(--primary-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-content {
  border-radius: var(--border-radius);
  border: none;
}

/* Accordion */
.accordion-button {
  font-weight: 600;
  color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(0, 61, 122, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 61, 122, 0.15);
}

/* Error Pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .carousel-caption {
    padding: 1.5rem;
    bottom: 5%;
    left: 5%;
    right: 5%;
  }

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

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

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

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .stat-card h2 {
    font-size: 2.5rem;
  }

  .error-code {
    font-size: 5rem;
  }
}

/* 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 {
  .promo-bar,
  .top-bar,
  .navbar,
  .floating-buttons,
  .modal,
  footer {
    display: none !important;
  }
}
