/* Lomash Chemicals - Custom Animations & Effects */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hover lift effect for cards */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient text helper */
.text-gradient {
  background: linear-gradient(135deg, #14919B, #FF7A45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Table styles for product pages */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}
.spec-table thead th {
  background: #0D7377;
  color: #ffffff;
  padding: 14px 20px;
  font-weight: 600;
  text-align: left;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spec-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
  color: #1A2332;
}
.spec-table tbody tr:last-child td {
  border-bottom: none;
}
.spec-table tbody tr:nth-child(even) {
  background: #F4F6F8;
}
.spec-table tbody tr:hover {
  background: #e0f7fa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F4F6F8;
}
::-webkit-scrollbar-thumb {
  background: #0D7377;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #14919B;
}

/* Animated underline for links */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E85D26;
  transition: width 0.3s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* Timeline styles for about page */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #E85D26;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #E85D26;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  width: 2px;
  height: calc(100% - 16px);
  background: #e5e7eb;
}
.timeline-item:last-child::after {
  display: none;
}

/* Form input focus styles */
.form-input:focus {
  outline: none;
  border-color: #14919B;
  box-shadow: 0 0 0 3px rgba(20, 145, 155, 0.15);
}

/* Logo treatments */
.logo-header {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-footer {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2);
}
/* Dark mode media query - auto switch logos */
@media (prefers-color-scheme: dark) {
  .logo-auto {
    content: url('../img/logo-variants/logo-white.svg');
  }
}

/* Download card hover */
.download-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}
.download-card:hover {
  border-color: #14919B;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.12);
}
