/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h1 {
  color: #fff;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #f39c12;
}

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

.hamburger span {
  background: #fff;
  height: 3px;
  margin: 4px 0;
  width: 25px;
}

/* Hero */
.hero {
  background: url('../assets/hero.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
}

.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* Content Sections */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 2rem auto;
}

.flex {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.flex img {
  max-width: 400px;
  border-radius: 8px;
}

.services {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.service-card {
  flex: 1;
  text-align: center;
}

.service-card img {
  width: 100%;
  border-radius: 8px;
}

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

/* Responsive */
@media(max-width: 768px) {
  .flex {
    flex-direction: column;
    text-align: center;
  }
  .services {
    flex-direction: column;
  }
  .hamburger {
    display: flex;
  }
  .navbar ul {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
  }
  .navbar ul.show {
    display: flex;
  }
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form .btn:hover {
  background: #0056b3;
}

/* Error message styling */
.error-message {
  color: #d9534f;
  font-size: 14px;
  display: none;
  margin-top: 5px;
}

/* Show error if input invalid */
input:invalid ~ .error-message,
textarea:invalid ~ .error-message {
  display: block;
}

input:invalid,
textarea:invalid {
  border-color: #d9534f;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-form {
    padding: 15px;
  }
}

#form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  display: none;
}

#form-message.success {
  background: #e0ffe0;
  color: #2e7d32;
}

#form-message.error {
  background: #ffe0e0;
  color: #c62828;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}


