:root {
  --primary-color: #0056b3;
  --secondary-color: #f4f4f4;
  --text-color: #333;
  --bg-color: #fff;
  --accent-color: #007bff;
  --font-family: system-ui, -apple-system, sans-serif;
}

.icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

[data-aos] {
  transition-duration: 0.5s;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

/* Header */
header {
  background: var(--bg-color);
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: var(--secondary-color);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #004494;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Sections */
section {
  padding: 4rem 0;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Grid for Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

[data-aos] {
  transition-duration: 0.5s;
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--accent-color);
  margin-top: 0;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Chat widget */
.chat-widget {
  max-width: 550px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.chat-title {
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.2px;
}

.chat-subtitle {
  margin-top: 4px;
  color: #666;
  font-size: 0.95rem;
}

.chat-messages {
  height: 240px;
  overflow: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.chat-row {
  display: flex;
  gap: 10px;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-row.user .chat-bubble {
  background: rgba(0, 123, 255, 0.08);
  border-color: rgba(0, 123, 255, 0.2);
}

.chat-row.assistant .chat-bubble {
  background: #f8f8f8;
}

.chat-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #777;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px 0 18px;
}

.chat-chip {
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #333;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.08s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-chip:hover {
  border-color: rgba(0, 123, 255, 0.5);
  background: rgba(0, 123, 255, 0.05);
}

.chat-chip:active {
  transform: translateY(1px);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}

.chat-form input[type="text"] {
  min-height: 44px;
}

.chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 14px 18px;
}

.chat-hint {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .chat-messages {
    height: 280px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.checkbox-group input {
  margin-right: 10px;
  width: auto;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin-right: 15px;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.menu-toggle.mobile-open span:nth-child(2) {
  opacity: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 80px 20px 40px;
    box-sizing: border-box;
  }
  
  .nav-links.mobile-open {
    display: flex;
  }
  
  .nav-links a {
    margin: 15px 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .nav-links a:hover {
    background-color: var(--secondary-color);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

