/* General Styles */
html {
  scroll-padding-top: 70px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header {
  background: #333;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

#menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

#menu li {
  margin-left: 20px;
}

#menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

#menu a:hover {
  color: #ddd;
}

#close-menu-container {
  display: none;
}

/* Main Content */
main {
  padding: 20px 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

section {
  margin-bottom: 40px;
  padding-top: 70px;
  margin-top: -70px;
}

section h2 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.8rem;
}

section p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Contact Form Styles */
#contact-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #666;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

#submit-btn {
  width: 100%;
  padding: 16px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#submit-btn:hover {
  background-color: #444;
}

#submit-btn:active {
  background-color: #222;
}

#form-message {
  display: none;
  padding: 15px;
  margin-top: 20px;
  border-radius: 6px;
  font-weight: 600;
}

#form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #menu-toggle {
    display: block !important;
  }

  #menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #333;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 3;
  }

  #menu li {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
  }

  #menu.active {
    right: 0;
  }

  #close-menu-container {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    padding: 0;
  }

  #close-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
  }

  .cross-line {
    width: 24px;
    height: 3px;
    background: #fff;
    position: absolute;
    transform-origin: center;
  }

  .cross-line:first-child {
    transform: rotate(45deg);
  }

  .cross-line:last-child {
    transform: rotate(-45deg);
  }

  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
  }

  #overlay.active {
    display: block;
  }

  /* Mobile Contact Form Styles */
  

  #contact-form {
    padding: 0;
  }

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

  .form-group label {
    font-size: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 15px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  #submit-btn {
    padding: 14px;
    font-size: 16px;
  }

  #form-message {
    padding: 12px;
    font-size: 14px;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  section p {
    font-size: 0.95rem;
  }

  /* Extra Small Screen Contact Form Styles */
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
  }

  #submit-btn {
    padding: 12px;
  }
}

/* Animation for form messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#form-message {
  animation: fadeIn 0.3s ease-out;
}