:root {
  --primary-color: #003DA5;
  --secondary-color: #00A3E0;
  --accent-color: #6CC24A;
  --metallic-silver: #C0C0C0;
  --dark-blue: #001F3F;
  --light-gray: #F5F5F5;
}

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

ai-img {
  display: block;
  background: linear-gradient(135deg, #e9ecef 0%, #C0C0C0 100%);
  position: relative;
  border-radius: 4px;
}
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;
}
ai-img::after {
  content: '📷';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
}
ai-img.rounded-circle { border-radius: 50%; }
ai-img.card-img-top { border-radius: 8px 8px 0 0; }

.promo-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
  font-weight: 500;
}

.top-bar {
  background-color: var(--dark-blue) !important;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.8rem 0;
}

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

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px 2px 0 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 61, 165, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.4);
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.8), rgba(0, 61, 165, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.stats-section {
  background: linear-gradient(135deg, var(--light-gray), #fff);
  padding: 4rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s;
}

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

.stat-card h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

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

.card-title {
  color: var(--dark-blue);
  font-weight: 600;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

.bg-sustainability {
  background: linear-gradient(135deg, var(--accent-color), #5AB03A);
  color: white;
}

.author-card {
  border-left: 4px solid var(--primary-color);
  background: white;
  transition: box-shadow 0.3s;
}

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

footer {
  background: linear-gradient(135deg, var(--dark-blue), #000D1F);
}

footer h5 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer a {
  transition: color 0.3s;
}

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

.floating-buttons .btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

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

#backToTop {
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

#backToTop.visible {
  opacity: 1;
}

#backToTop:hover {
  transform: scale(1.1);
}

.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

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

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.quote-icon {
  color: var(--secondary-color);
  font-size: 3rem;
  opacity: 0.3;
}

.certification-logo {
  filter: grayscale(100%);
  transition: filter 0.3s;
  opacity: 0.7;
}

.certification-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.product-filter {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  margin: 0.25rem;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

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

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

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

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
