/* ===== WATER TREATMENT CHEMICALS STYLES ===== */

/* Global Variables */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #c0392b;
  --info: #2980b9;
  --light: #ecf0f1;
  --dark: #2c3e50;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 100px 0;
  color: white;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text h2 {
  color: white;
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-text .usp {
  color: #ecf0f1;
  font-size: 22px;
  margin-bottom: 25px;
}

.capacity {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: inline-block;
}

.capacity strong {
  color: #3498db;
}

.capacity span {
  color: white;
  font-size: 20px;
}

.features-highlight {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.features-highlight span {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-highlight i {
  color: #3498db;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Categories */
.chemical-categories .categories {
  background: #f8f9fa;
  padding: 80px 0;
}

.chemical-categories .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.chemical-categories .category-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border-top: 4px solid #3498db;
}

.chemical-categories .category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.chemical-categories .category-icon {
  width: 70px;
  height: 70px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.chemical-categories .category-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 22px;
}

.chemical-categories .category-card p {
  color: #7f8c8d;
  margin-bottom: 15px;
}

.chemical-count {
  background: #e8f4fc;
  color: #3498db;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

/* Chemical Sections */
.chemical-section {
  padding: 80px 0;
  background: white;
}

.chemical-section.alt {
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  background: #e74c3c;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: #7f8c8d;
  font-size: 18px;
  max-width: 700px;
  margin: 20px auto 0;
}

/* Chemical Grid */
.chemical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.chemical-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.chemical-section.alt .chemical-card {
  background: white;
}

.chemical-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.chemical-header {
  background: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chemical-header h3 {
  margin: 0;
  font-size: 18px;
}

.chemical-form {
  background: #3498db;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.chemical-body {
  padding: 25px;
}

.chemical-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.chemical-specs span {
  color: #2c3e50;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chemical-specs i {
  color: #3498db;
  width: 16px;
}

.chemical-body p {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.safety-label {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.safety-label.danger {
  background: #ffebee;
  color: #c0392b;
  border: 1px solid #ef9a9a;
}

.safety-label.warning {
  background: #fff3e0;
  color: #f39c12;
  border: 1px solid #ffcc80;
}

.packing-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.packing-info span {
  background: #e8f4fc;
  color: #3498db;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* Applications Table */
.applications {
  background: white;
  padding: 80px 0;
}

.application-table {
  overflow-x: auto;
}

.application-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.application-table th {
  background: #2c3e50;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.application-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
}

.application-table tr:nth-child(even) {
  background: #f8f9fa;
}

.application-table tr:hover {
  background: #e8f4fc;
}

/* Safety Section */
.safety {
  background: #f8f9fa;
  padding: 80px 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.safety-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.safety-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
}

.safety-icon.danger {
  background: #e74c3c;
}

.safety-icon.warning {
  background: #f39c12;
}

.safety-icon.info {
  background: #3498db;
}

.safety-icon.emergency {
  background: #9b59b6;
}

.safety-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 20px;
}

.safety-card ul {
  list-style: none;
  padding: 0;
}

.safety-card li {
  padding: 8px 0;
  color: #7f8c8d;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-card li:last-child {
  border-bottom: none;
}

.safety-card li:before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
}

/* Support Services */
.support {
  background: white;
  padding: 80px 0;
}

.support-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.service-card:hover {
  background: #2c3e50;
  color: white;
  transform: translateY(-10px);
}

.service-card:hover i,
.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-card i {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 22px;
  transition: color 0.3s;
}

.service-card p {
  color: #7f8c8d;
  line-height: 1.6;
  transition: color 0.3s;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-text h2 {
    font-size: 36px;
  }

  .hero-content {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-image {
    flex: none;
    width: 100%;
  }

  .features-highlight {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-text h2 {
    font-size: 30px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .category-grid,
  .chemical-grid,
  .safety-grid,
  .support-services {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .application-table {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text .usp {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .features-highlight {
    flex-direction: column;
    align-items: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Add animations to cards */
.category-card,
.chemical-card,
.safety-card,
.service-card {
  opacity: 0;
}
