:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #059669;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
}

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

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

ai-img::after {
  content: '\f030';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.4;
  font-size: 1.2rem;
  color: #64748b;
}

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

ai-img.card-img-top {
  border-radius: 0.5rem 0.5rem 0 0;
}

ai-img.hero-img {
  min-height: 500px;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  font-size: 0.9rem;
}

/* Top Bar */
.top-bar {
  font-size: 0.85rem;
}

.top-bar a {
  text-decoration: none;
  transition: opacity 0.3s;
}

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

/* Navigation */
.navbar {
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.hero-section .carousel-item {
  min-height: 550px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.6));
}

.hero-content {
  /*position: relative;*/
  /*z-index: 2;*/
}

/* Stats Section */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Product Cards */
.card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.card ai-img {
  height: 220px;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

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

/* Section Titles */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Solutions Section */
.solution-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

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

.solution-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Certifications */
.cert-logo {
  height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

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

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

/* Forms */
.form-control,
.form-select {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

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

/* Footer */
footer {
  background: var(--bg-dark);
}

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

footer ul {
  list-style: none;
  padding: 0;
}

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

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

footer ai-img {
  height: 45px;
  width: 150px;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.floating-buttons .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

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

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

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

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-banner h1 {
  color: white;
  font-weight: 700;
}

.page-banner .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.page-banner .breadcrumb-item a {
  color: #94a3b8;
}

.page-banner .breadcrumb-item.active {
  color: white;
}

/* Filter Sidebar */
.filter-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

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

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

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

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

/* Blog */
.blog-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

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

.blog-card ai-img {
  height: 200px;
  width: 100%;
}

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

/* Author Card */
.author-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Modal */
.modal-header {
  border-bottom: none;
}

.modal-content {
  border-radius: 1rem;
  border: none;
}

/* 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;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section .carousel-item {
    min-height: 400px;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .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 forwards;
}

/* Industry Tabs */
.industry-tabs .nav-link {
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  background: #f1f5f9;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.industry-tabs .nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* Sustainability */
.eco-stat {
  text-align: center;
  padding: 2rem;
}

.eco-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

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

/* Case Study Card */
.case-study-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.case-study-card ai-img {
  height: 200px;
  width: 100%;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-stat {
  display: inline-block;
  background: #f0fdf4;
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
