/* Base Styles and Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa;
}

html {
  -webkit-overflow-scrolling: touch;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #00539C;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #006E7F;
}

p {
  margin-bottom: 20px;
}

/* Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00539C;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

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

.nav-links a:hover {
  color: #00539C;
}

/* Language Switcher Styles */
.language-switcher {
  margin-left: 20px;
}

#languageSelector {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  color: #00539C;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#languageSelector:hover {
  border-color: #00539C;
}

#languageSelector:focus {
  outline: none;
  border-color: #00539C;
  box-shadow: 0 0 0 2px rgba(0, 83, 156, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #00539C;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-color: #00539C;
  color: white;
  text-align: center;
  padding: 80px 0;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  background-color: #3cb371; /* Medium sea green */
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #2e8b57; /* Sea green */
}

/* Services Section */
.services {
  background-color: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: #e6f7ff; /* Very light blue */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid #00539C;
}

.service-card:nth-child(even) {
  background-color: #e6fff2; /* Very light green */
  border-top: 3px solid #3cb371;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Automation Tools Section */
.automation-tools {
  background-color: #f0f8ff; /* Alice blue */
}

.tool-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.tool {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid #00539C;
}

.tool:nth-child(even) {
  border-bottom: 3px solid #3cb371;
}

.tool-demo {
  margin-top: 20px;
}

textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: none; /* Disable manual resizing */
  overflow-y: auto; /* Show scrollbar when needed */
  height: 120px; /* Fixed height instead of min-height */
  margin-bottom: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #00539C;
  box-shadow: 0 0 0 3px rgba(0, 83, 156, 0.1);
}

.process-button {
  background-color: #00539C;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.process-button:hover {
  background-color: #003d73;
}

.result-area {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  min-height: 100px;
  border: 1px solid #ddd;
}

/* Contact Section */
.contact {
  background-color: #e6fff2; /* Light green background */
}

form {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #00539C;
  box-shadow: 0 0 0 3px rgba(0, 83, 156, 0.1);
}

.submit-button {
  background-color: #3cb371; /* Medium sea green */
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  margin-top: 20px;
}

.submit-button:hover {
  background-color: #2e8b57; /* Sea green */
}

/* Footer */
footer {
  background-color: #00539C;
  color: white;
  text-align: center;
  padding: 30px 0;
}

footer .container {
  padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Show hamburger menu */
  .mobile-menu-toggle {
      display: flex;
  }
  
  /* Modified nav-links styling for mobile */
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 75%;
      height: 100%;
      background-color: white;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 80px 40px 40px;
      transition: right 0.3s ease;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      z-index: 100;
      display: flex; /* Override the display: none */
  }
  
  /* When menu is open */
  .nav-links.active {
      right: 0;
  }
  
  .nav-links li {
      margin: 0 0 20px 0;
      width: 100%;
  }
  
  .nav-links a {
      display: block;
      font-size: 1.2rem;
      padding: 10px 0;
  }
  
  /* Language switcher adjustments */
  .language-switcher {
      margin-left: 0;
  }
  
  #languageSelector {
      width: 100%;
      padding: 10px;
  }
  
  .hero h1 {
      font-size: 2.2rem;
  }
  
  .container {
      padding: 30px 15px;
  }
  
  .service-grid,
  .tool-container {
      grid-template-columns: 1fr;
  }
  
  /* Improved touch targets for buttons */
  .cta-button, 
  .process-button, 
  .submit-button {
      padding: 15px 20px;
      min-height: 50px;
  }
  
  /* Form adjustments */
  input, textarea, select {
      font-size: 16px; /* Prevents iOS zoom on focus */
      padding: 15px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .hero h1 {
      font-size: 1.8rem;
  }
  
  .hero p {
      font-size: 1rem;
  }
  
  h2 {
      font-size: 1.6rem;
  }
  
  h3 {
      font-size: 1.3rem;
  }
}
