/* Dart Container Custom Styles */

:root {
  --primary-color: #003366;
  --secondary-color: #FF6B35;
  --dark-color: #1a1a1a;
  --light-gray: #f8f9fa;
  --text-muted: #6c757d;
}

/* Override Bootstrap Primary */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
  background-color: #00244d;
  border-color: #00244d;
}

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

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

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

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
}

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

/* Responsive AI Image Heights */
ai-img[size="1920x600"] {
  height: 600px;
}

ai-img[size="1920x700"] {
  height: 700px;
}

ai-img[size="400x300"],
ai-img[size="400x280"] {
  height: 300px;
}

ai-img[size="600x400"] {
  height: 400px;
}

ai-img[size="120x120"] {
  height: 120px;
}

ai-img[size="80x80"] {
  height: 80px;
  width: 80px;
}

ai-img[size="150x150"] {
  height: 150px;
  width: 150px;
}

ai-img[size="180x50"],
ai-img[size="150x45"] {
  height: 50px;
}

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

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

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

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

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

/* Promo Bar */
.promo-bar {
  font-size: 14px;
  font-weight: 500;
}

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

.carousel-caption {
  background: rgba(0, 51, 102, 0.85);
  padding: 2rem;
  border-radius: 10px;
  bottom: 10%;
}

.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stat-card {
  transition: transform 0.3s ease;
}

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

.stat-card h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.product-card .card-body,
.solution-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Certifications */
.cert-badge {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cert-badge:hover {
  transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.stars i {
  font-size: 1.5rem;
}

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

.author-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

/* Timeline (About Page) */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Forms */
.quote-form .form-label {
  color: var(--dark-color);
  font-weight: 500;
}

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

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

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

#backToTop {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* Page Banner */
.page-banner {
  padding: 3rem 0;
}

.page-banner h1 {
  color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
}

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

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

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Case Study Cards (Solutions Page) */
.case-study-card {
  border-left: 4px solid var(--secondary-color);
}

.case-study-stats {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.case-study-stats .stat-item {
  text-align: center;
}

.case-study-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.case-study-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sustainability Metrics */
.metric-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Contact Info Cards */
.contact-info-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s ease;
}

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

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

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

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

/* Blog */
.blog-card {
  height: 100%;
  transition: transform 0.3s ease;
}

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

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-meta i {
  margin-right: 0.5rem;
}

.blog-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 1rem;
  }

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

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

  .stat-card h3 {
    font-size: 2rem;
  }

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

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2.5rem;
  }
}

@media (max-width: 576px) {
  ai-img[size="1920x600"],
  ai-img[size="1920x700"] {
    height: 300px;
  }

  .floating-buttons {
    margin-bottom: 1rem !important;
    margin-right: 1rem !important;
  }

  .floating-buttons .btn {
    width: 45px;
    height: 45px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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;
  }
}
