:root {
  --primary: #2D6A6A;
  --primary-dark: #1F4A4A;
  --secondary: #F4A989;
  --accent: #C9DCD2;
  --light-bg: #FBF8F5;
  --white: #FFFFFF;
  --text: #2A2A28;
  --text-light: #7B7670;
  --border: #E8E1D8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.6;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }
}

/* Hero Section */
.hero {
  margin-top: 70px;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--accent) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(45, 106, 106, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 106, 106, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smile-icon {
  font-size: 200px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .smile-icon {
    font-size: 120px;
  }
}

/* Services Section */
.services {
  padding: 100px 20px;
  background: white;
}

.services h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: 16px;
}

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

.service-card {
  background: var(--light-bg);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(45, 106, 106, 0.15);
  border-color: var(--primary);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.about h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.feature p {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat p {
  color: var(--text-light);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
  padding: 100px 20px;
  background: white;
}

.contact h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-form h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* AI Assistant Floating Button */
.ai-assistant-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: auto;
  height: 56px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 106, 106, 0.35);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.ai-assistant-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 106, 106, 0.45);
}

.ai-assistant-btn:active {
  transform: translateY(-1px);
}

.ai-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
}

.ai-label {
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  height: 80vh;
  max-height: 800px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ccc;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chat Container */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.loading-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.chat-messages {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--light-bg);
}

.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.msg.bot {
  background: white;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--border);
}

.msg.typing {
  background: white;
  color: var(--text-light);
  align-self: flex-start;
  font-style: italic;
  border: 1px solid var(--border);
}

.msg.error {
  background: #FBEAE5;
  color: #C0533E;
  align-self: center;
  text-align: center;
  border: 1px solid #F2CFC4;
}

/* Option Chips */
.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 86%;
  margin-top: -2px;
}

.option-chip {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 14px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.option-chip:hover {
  background: var(--primary);
  color: white;
}

.option-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Chat Input */
.chat-input {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 12px;
  gap: 8px;
  background: white;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  background: var(--light-bg);
  color: var(--text);
  min-width: 0;
  font-family: inherit;
}

.chat-input input:focus {
  border-color: var(--primary);
}

.chat-input button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 22px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
  font-family: inherit;
}

.chat-input button:hover {
  background: var(--primary-dark);
}

.chat-input button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Disclaimer */
.disclaimer {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 100%;
    height: 90vh;
    max-height: 600px;
  }

  .ai-assistant-btn {
    bottom: 20px;
    right: 20px;
    width: auto;
    height: 48px;
    padding: 0 14px;
    font-size: 13px;
  }

  .ai-icon {
    font-size: 18px;
  }

  .ai-label {
    font-size: 13px;
  }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--light-bg);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
