@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  background: #f7f9fb;
  color: #222;
  line-height: 1.8;
}

header.hero {
  background: linear-gradient(rgba(0,0,50,0.6), rgba(0,0,70,0.6)), url('header.jpg') center/cover;
  height: 90vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

header .overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header .overlay p {
  font-size: 1rem;
  margin-bottom: 25px;
}

.btn {
  background: #0077ff;
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #005ccc;
}

section {
  padding: 60px 15%;
  text-align: center;
}

h2 {
  color: #0044aa;
  margin-bottom: 20px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 280px;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.card h3 {
  color: #0077ff;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

form button {
  background: #0077ff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
form button:hover {
  background: #005ccc;
}

footer {
  background: #0044aa;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* چت آنلاین */
.chatbox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  font-size: 0.9rem;
}

.chat-header {
  background: #0077ff;
  color: white;
  padding: 10px;
  cursor: pointer;
}

.chat-body {
  display: none;
  flex-direction: column;
  height: 300px;
}

.messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

#userInput {
  width: calc(100% - 70px);
  border: none;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-body button {
  width: 60px;
  border: none;
  background: #0077ff;
  color: white;
  cursor: pointer;
}

@media (max-width: 600px) {
  section {
    padding: 40px 10%;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}
