/* Professional Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.nav__logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav__logo:hover img {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #197373 0%, #0e3f70 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: #197373;
  transform: translateY(-1px);
}

/* Dropdown Menu */
.dropdown__item {
  position: relative;
}

.dropdown__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.dropdown__arrow {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  color: #64748b;
}

.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
  color: #197373;
}

.dropdown__container {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  min-width: 300px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
}

.dropdown__item:hover .dropdown__container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown__link {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown__link:hover {
  background: linear-gradient(
    90deg,
    rgba(25, 115, 115, 0.08) 0%,
    rgba(14, 63, 112, 0.08) 100%
  );
  color: #197373;
  border-left-color: #197373;
  transform: translateX(5px);
}

/* Language Switcher */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.btn-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-lang:hover {
  background: linear-gradient(135deg, #197373 0%, #0e3f70 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 115, 115, 0.3);
}

.btn-lang img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.lang-divider {
  color: #94a3b8;
  font-weight: 300;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, #197373 0%, #0e3f70 100%);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav__toggle:hover span {
  background: linear-gradient(90deg, #0e3f70 0%, #197373 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: flex-start;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .dropdown__container {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown__item.active .dropdown__container {
    max-height: 500px;
  }

  .dropdown__link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown__link:hover {
    transform: none;
    background: rgba(25, 115, 115, 0.05);
  }

  .nav__lang {
    margin: 2rem 0 0 0;
    gap: 1rem;
  }

  .btn-lang {
    width: 44px;
    height: 44px;
  }

  .btn-lang img {
    width: 24px;
    height: 24px;
  }
}

/* Service Cards */
.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--primary-light) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.icon-consultancy::before {
  content: "⚙️";
}
.icon-implementation::before {
  content: "🏭";
}
.icon-support::before {
  content: "🛠️";
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Industry Cards */
.industry-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.industry-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.industry-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card:hover .industry-image {
  transform: scale(1.05);
}

.industry-content {
  padding: 1.5rem;
}

.industry-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.industry-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.industry-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.industry-card:hover .industry-link {
  gap: 1rem;
}

/* Footer */
.footer {
  position: relative;
  width: 100%;
  bottom: 0;
  background: var(--primary-dark);
  padding: 100px 0 30px;
  font-size: 13px;
  line-height: 20px;
  color: #fff;
}

.footer .row {
  width: 85%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.footer .col {
  flex-basis: 25%;
  padding: 10px;
}

.footer .logo {
  width: 80px;
  margin-bottom: 25px;
}

.footer h3 {
  margin-bottom: 25px;
}

.footer h4 {
  margin-bottom: 12px;
}

.footer .email-id {
  width: fit-content;
  border-bottom: 1px solid #ccc;
  margin: 12px 0;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #00b0b0 !important;
}

.footer hr {
  width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
}

.footer .copyright {
  text-align: center;
}

.footer iframe {
  width: 300px;
  height: 200px;
  border: 0;
  margin-top: 12px;
}

/* Machine Category Dropdown Styles */
.machine-category-dropdown {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}

.machine-category-dropdown input[type="checkbox"] {
  display: none;
}

.category-dropdown-label {
  display: block;
  padding: 1.5rem 2rem;
  background: var(--primary-dark);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  position: relative;
  user-select: none;
}

.category-dropdown-label:hover {
  background: var(--accent);
}

.category-dropdown-label::after {
  content: "+";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.machine-category-dropdown
  input[type="checkbox"]:checked
  + .category-dropdown-label::after {
  transform: translateY(-50%) rotate(45deg);
}

.machines-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-light);
}

.machine-category-dropdown
  input[type="checkbox"]:checked
  ~ .machines-dropdown-content {
  max-height: 1000px;
  padding: 2rem;
}

/* Machine Table Styles */
.machines-table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}

.machine-table-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  background: var(--primary-dark);
  color: white;
}

.machine-table-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--border-light);
}

.machine-table-row:last-child {
  border-bottom: none;
}

.machine-table-row:nth-child(even) {
  background: var(--bg-section);
}

.table-cell {
  padding: 1rem;
  display: flex;
  align-items: center;
}

.header-cell {
  font-weight: 600;
  color: white;
  background: var(--primary-dark);
}

.number-cell {
  background: rgba(0, 176, 176, 0.1);
  font-weight: 600;
  justify-content: center;
  color: var(--text-primary);
}

.machine-table-header .table-cell.header-cell:first-child {
  background: var(--accent);
}

.name-cell {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-dropdown-label {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .category-dropdown-label::after {
    right: 1.5rem;
  }

  .machine-table-header,
  .machine-table-row {
    grid-template-columns: 60px 1fr;
  }

  .table-cell {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .category-dropdown-label {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .category-dropdown-label::after {
    right: 1rem;
    font-size: 1.2rem;
  }

  .table-cell {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}
