:root {
  --primary: #52575d;
  --secondary: #3a3e42;
  --accent: #7a7f85;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  height: 75px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary);
}

nav {
  order: 2;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  order: 3;
}

.mobile-menu-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Products Tabs */
.products-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 3px solid #ddd;
  transition: border-color 0.3s, color 0.3s;
  color: var(--dark);
}

.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-btn:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tab-btn span {
  margin-right: 8px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.product-content p {
  color: var(--gray);
  margin-bottom: 15px;
}

.product-formula {
  font-style: italic;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 10px;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

/* Industries Section */
.industries-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.tabs-vertical {
  display: flex;
  flex-direction: column;
  width: 250px;
}

.tab-vertical {
  background: transparent;
  border: none;
  padding: 15px 20px;
  text-align: left;
  cursor: pointer;
  border-left: 3px solid #ddd;
  transition: border-color 0.3s, background-color 0.3s;
  font-size: 1rem;
  color: var(--dark);
}

.tab-vertical.active {
  border-left-color: var(--primary);
  background-color: #f0f0f0;
  color: var(--primary);
}

.tab-vertical:hover {
  background-color: #e9ecef;
}

.tab-content-vertical {
  flex: 1;
}

.content {
  display: none;
  gap: 20px;
  align-items: flex-start;
}

.content.active {
  display: flex;
}

.content img {
  width: 50%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.details {
  flex: 1;
}

.details h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.details p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-icon {
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--light);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 10px 0;
    width: 100%;
  }

  nav ul li a {
    padding: 10px 20px;
    display: block;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .products-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    margin: 5px 0;
  }

  .industries-container {
    flex-direction: column;
  }

  .tabs-vertical {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .tab-vertical {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid #ddd;
    padding: 10px 15px;
  }

  .tab-vertical.active {
    border-bottom-color: var(--primary);
    border-left: none;
    background-color: transparent;
  }

  .content img {
    height: 200px;
  }

  .details h3 {
    font-size: 1.5rem;
  }

  .details p {
    font-size: 1rem;
  }

  .content {
    flex-direction: column;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  footer {
    padding: 40px 0 20px;
  }

  .footer-container {
    gap: 30px;
  }

  .footer-col h3 {
    font-size: 1.1rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}
