/* Existing styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

/* Header and Navbar */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

body.dark-mode header {
  background-color: #1f1f1f;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.logo {
  width: 90vw;
}

.logo a {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #4CAF50;
}

body.dark-mode .logo a {
  color: #81C784;
}

.language-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

body.dark-mode .nav-links a {
  color: #f0f0f0;
}

.nav-links a:hover {
  color: #4CAF50;
}

body.dark-mode .nav-links a:hover {
  color: #81C784;
}

.database-link {
  font-size: 1.2rem;
  cursor: pointer;
}

.database-link:hover {
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin-bottom: 4px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

body.dark-mode .hamburger span {
  background: #f0f0f0;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Google Translate Widget Styles */
#google_translate_element {
  display: inline-block;
}

body.dark-mode #google_translate_element select {
  background-color: #4c4c4c;
  color: #f0f0f0;
}

#google_translate_element img {
  display: none !important; /* Hide the Google logo */
}

#google_translate_element .goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
}

#google_translate_element select {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #333;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode #google_translate_element select {
  background-color: #4c4c4c;
  color: #f0f0f0;
  border: 1px solid #555;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #f0f4f8;
  animation: fadeIn 2s ease-in-out;
  transition: background-color 0.3s ease;
}

body.dark-mode .hero-section {
  background-color: #1e1e1e;
}

.hero-content {
  flex: 1 1 500px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

body.dark-mode .hero-content h1 {
  color: #f0f0f0;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

body.dark-mode .hero-content p {
  color: #ccc;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.hero-svg {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Use Cases Section */
.use-cases-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
  animation: slideIn 2s ease-in-out;
  transition: background-color 0.3s ease;
}

body.dark-mode .use-cases-section {
  background-color: #2c2c2c;
}

.use-cases-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

body.dark-mode .use-cases-section h2 {
  color: #f0f0f0;
}

.use-cases-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.use-case {
  background-color: #f9f9f9;
  border-radius: 10px;
  width: 300px;
  margin: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .use-case {
  background-color: #3a3a3a;
}

.use-case:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.use-case-icon {
  margin-bottom: 1rem;
}

.use-case h3 {
  margin-bottom: 1rem;
  color: #333;
}

body.dark-mode .use-case h3 {
  color: #f0f0f0;
}

.use-case ul {
  list-style: none;
}

.use-case ul li {
  margin-bottom: 0.5rem;
  color: #555;
}

body.dark-mode .use-case ul li {
  color: #ccc;
}

/* Video Section */
.video-section {
  padding: 4rem 2rem;
  background-color: #f0f4f8;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
  transition: background-color 0.3s ease;
}

body.dark-mode .video-section {
  background-color: #1e1e1e;
}

.video-section h2 {
  margin-bottom: 2rem;
  color: #333;
}

body.dark-mode .video-section h2 {
  color: #f0f0f0;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.video-item {
  width: 300px;
  height: 200px;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

body.dark-mode .video-item {
  border-color: #555;
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Styles for Video Section */
@media (max-width: 768px) {
  .video-item {
    width: 100%;
    max-width: 500px;
  }
}

/* Workflow Section */
.workflow-section {
  padding: 4rem 2rem;
  background-color: #f0f4f8;
  animation: fadeIn 2s ease-in-out;
  transition: background-color 0.3s ease;
}

body.dark-mode .workflow-section {
  background-color: #1e1e1e;
}

.workflow-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

body.dark-mode .workflow-section h2 {
  color: #f0f0f0;
}

.workflow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflow-step {
  background-color: #ffffff;
  border-left: 5px solid #4CAF50;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  width: 80%;
  position: relative;
  animation: slideUp 1s ease-in-out;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .workflow-step {
  background-color: #2c2c2c;
  border-left: 5px solid #81C784;
}

.workflow-step::before {
  content: attr(data-step);
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4CAF50;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

body.dark-mode .workflow-step::before {
  background-color: #81C784;
}

.workflow-step h3 {
  margin-bottom: 1rem;
  color: #333;
}

body.dark-mode .workflow-step h3 {
  color: #f0f0f0;
}

.workflow-step p {
  color: #555;
}

body.dark-mode .workflow-step p {
  color: #ccc;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
  animation: slideIn 2s ease-in-out;
  transition: background-color 0.3s ease;
}

body.dark-mode .contact-section {
  background-color: #2c2c2c;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

body.dark-mode .contact-section h2 {
  color: #f0f0f0;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode #contact-form {
  background-color: #3a3a3a;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group label i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  color: #4CAF50;
}

body.dark-mode .form-group label i {
  color: #6DCF73;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: #4c4c4c;
  color: #f0f0f0;
  border-color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
}

/* Dark mode footer */
body.dark-mode footer {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .logo {
    width: 100%;
    text-align: center;
  }
  
  .language-tools {
    width: 100%;
    justify-content: center;
  }
  
  .nav-links {
    position: absolute;
    top: 8rem;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0;
  }

  body.dark-mode .nav-links {
    background: #1f1f1f;
    border-color: #444;
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: center;
    width: 100%;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 1rem;
  }

  .hero-svg {
    margin-top: 2rem;
  }

  .use-cases-container {
    flex-direction: column;
    align-items: center;
  }

  .workflow-step {
    width: 100%;
  }

  .video-item {
    width: 100%;
    max-width: 500px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#processingMessage {
  display: none;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  animation: colorChange 2s infinite;
}

body.dark-mode #processingMessage {
  animation: colorChangeDark 2s infinite;
}

@keyframes colorChange {
  0% { color: #4CAF50; } /* Green */
  25% { color: #2196F3; } /* Blue */
  50% { color: #FFC107; } /* Yellow/Gold */
  75% { color: #E91E63; } /* Pink */
  100% { color: #4CAF50; } /* Back to green */
}

@keyframes colorChangeDark {
  0% { color: #81C784; } /* Light Green */
  25% { color: #64B5F6; } /* Light Blue */
  50% { color: #FFD54F; } /* Light Yellow */
  75% { color: #F48FB1; } /* Light Pink */
  100% { color: #81C784; } /* Back to light green */
}
