:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --secondary-color: #1976D2;
  --accent-green: #388E3C;
  --dark-color: #212121;
  --light-bg: #F5F5F5;
  --border-color: #E0E0E0;
}

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

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #757575;
  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.3;
  font-size: 20px;
}

ai-img[size="1920x700"],
ai-img[size="1920x600"] {
  aspect-ratio: 1920 / 600;
}

ai-img[size="600x400"] {
  aspect-ratio: 600 / 400;
}

ai-img[size="400x300"] {
  aspect-ratio: 400 / 300;
}

ai-img[size="300x200"] {
  aspect-ratio: 300 / 200;
}

ai-img[size="180x50"],
ai-img[size="150x45"] {
  aspect-ratio: 180 / 50;
  max-width: 180px;
}

ai-img[size="80x80"],
ai-img[size="60x60"],
ai-img[size="150x150"] {
  aspect-ratio: 1;
}

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

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

ai-img.cert-badge {
  max-width: 80px;
  aspect-ratio: 1;
}

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

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Top Bar */
.top-bar a:hover {
  opacity: 0.8;
}

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

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

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

/* Hero Carousel */
.carousel-item {
  position: relative;
  height: 600px;
}

.carousel-item ai-img {
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 10px;
  bottom: 10%;
  left: 10%;
  right: 10%;
}

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

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

/* Product Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

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

.product-category-card {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

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

.btn-danger:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline-danger {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

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

/* Certifications */
.certification-logos ai-img {
  display: inline-block;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Floating Buttons */
.floating-buttons .btn {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

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

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

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

/* Forms */
.inquiry-form .form-control,
.inquiry-form .form-select {
  border-radius: 5px;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

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

/* Product Filter Section */
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

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

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #757575;
}

/* Testimonial Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Footer */
footer a {
  transition: color 0.3s ease;
}

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

/* Modal */
.modal-header.bg-danger {
  background-color: var(--primary-color) !important;
}

/* Badge Custom Colors */
.badge {
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.bg-purple {
  background-color: #9c27b0 !important;
}

/* Author Section */
.author-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
}

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

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

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

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

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

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

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

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-in-out;
}

/* Link Underline Effect */
.text-danger:hover {
  text-decoration: underline;
}
