:root {
  --primary-color: #E63946;
  --secondary-color: #1D3557;
  --accent-color: #F77F00;
  --success-color: #06A77D;
  --light-bg: #F1FAEE;
  --dark-color: #1D3557;
}

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

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;
  max-width: 90%;
}

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

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

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
  aspect-ratio: 4/3;
}

ai-img[size*="1920x700"] {
  aspect-ratio: 1920/700;
}

ai-img[size*="150x45"] {
  aspect-ratio: 150/45;
  height: 45px;
  width: auto;
}

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

ai-img[size*="60x60"] {
  width: 60px;
  height: 60px;
}

ai-img[size*="800x600"] {
  aspect-ratio: 800/600;
}

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

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

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

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

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

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

.hero-section ai-img {
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 30%;
  z-index: 10;
}

.carousel-caption h1,
.carousel-caption h2 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.solution-card {
  border-top: 3px solid var(--primary-color);
}

/* Stats Section */
.stats-card {
  padding: 2rem 1rem;
}

.stats-card i {
  display: block;
}

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

/* Testimonials */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: Georgia, serif;
}

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

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

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

.btn-primary:hover {
  background-color: #0052a3;
  border-color: #0052a3;
}

/* Floating Buttons */
.floating-buttons .btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

#backToTop.visible {
  opacity: 1;
}

/* Footer */
footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

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

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

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Timeline (for About page) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Utility Classes */
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    bottom: 10%;
  }
  
  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::before {
    left: 20px;
  }
}

/* Print Styles */
@media print {
  .promo-bar,
  .top-bar,
  .navbar,
  .floating-buttons,
  footer {
    display: none;
  }
}
