/* RO Plant Page Styles */
.ro-plant-page {
  font-family: "Inter", sans-serif;
  color: #1e293b;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.ro-hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.ro-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ro-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ro-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.ro-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 0.25rem;
}

.stat .label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background: white;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.btn-secondary:hover {
  background: #0066cc;
  color: white;
}

/* RO Animation */
.ro-animation {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.water-tank {
  width: 150px;
  height: 300px;
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.water-level {
  position: absolute;
  bottom: 0;
  left: 5px;
  right: 5px;
  border-radius: 10px 10px 0 0;
  animation: waterFlow 3s ease-in-out infinite alternate;
}

.dirty-water {
  background: linear-gradient(to top, #94a3b8, #64748b);
  height: 70%;
}

.clean-water {
  background: linear-gradient(to top, #60a5fa, #3b82f6);
  height: 90%;
}

.tank-label {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  color: #475569;
}

.ro-unit {
  width: 200px;
  height: 150px;
  background: white;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ro-membrane {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
  border-radius: 50%;
  position: relative;
  animation: rotate 20s linear infinite;
}

.ro-membrane::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: white;
  border-radius: 50%;
  border: 3px dashed #3b82f6;
}

.ro-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.led.green {
  background: #10b981;
  animation: blink 1s infinite;
}

.led.blue {
  background: #3b82f6;
  animation: blink 1s infinite 0.3s;
}

.led.red {
  background: #ef4444;
  animation: blink 1s infinite 0.6s;
}

.ro-label {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  color: #475569;
}

.water-flow {
  position: absolute;
  top: 50%;
  left: 150px;
  right: 150px;
  height: 10px;
  background: #3b82f6;
  border-radius: 5px;
  animation: flow 2s linear infinite;
}

.bubbles {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: bubbleRise 2s infinite;
}

.bubble:nth-child(2) {
  left: 30px;
  animation-delay: 0.5s;
}

.bubble:nth-child(3) {
  left: -30px;
  animation-delay: 1s;
}

@keyframes waterFlow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes flow {
  0% {
    background: #3b82f6;
  }
  50% {
    background: #60a5fa;
  }
  100% {
    background: #3b82f6;
  }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Technology Section */
.ro-technology-section {
  padding: 5rem 0;
  background: white;
}

.ro-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 15px;
  width: 200px;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: #0066cc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-icon {
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.process-arrow {
  font-size: 1.5rem;
  color: #94a3b8;
}

/* Products Section */
.ro-products-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.products-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
  transform: scale(1.1);
}

.nav-indicator {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.separator {
  color: #94a3b8;
}

/* Auto-Scroll Products */
.products-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.products-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: autoScroll 60s linear infinite;
  padding: 1rem;
}

.products-track:hover {
  animation-play-state: paused;
}

.product-card {
  background: white;
  border-radius: 15px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-badge.hot {
  background: #f59e0b;
}

.product-badge.new {
  background: #10b981;
}

.product-badge.eco {
  background: #84cc16;
}

.product-badge.PLC {
  background: #8b5cf6;
}

.product-image {
  height: 200px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  font-size: 4rem;
  color: #0066cc;
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.product-desc {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
}

.spec i {
  color: #0066cc;
  width: 20px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0066cc;
}

.discount {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.btn-inquire {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-inquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 4 - 2rem * 4));
  }
}

/* Features Section */
.ro-features-section {
  padding: 5rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #0066cc;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

/* Applications Section */
.ro-applications-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.application-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #0066cc;
}

.application-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .ro-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }

  .ro-animation {
    justify-content: center;
    gap: 2rem;
  }

  .features-grid,
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .ro-title {
    font-size: 1.5rem;
  }

  .ro-hero-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .ro-process {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .features-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 280px;
  }

  @keyframes autoScroll {
    100% {
      transform: translateX(calc(-280px * 4 - 2rem * 4));
    }
  }
}

@media (max-width: 480px) {
  .ro-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1rem;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .ro-animation {
    height: 300px;
  }

  .water-tank {
    width: 100px;
    height: 200px;
  }

  .ro-unit {
    width: 150px;
    height: 120px;
  }
}
