html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #fcfcfc;
  color: #333333;
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
  line-height: 1.7;
}

/* Clean hero image styling */
.hero-image {
  border-radius: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.spin-slow {
  animation: spin 15s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Typography styles matching the clean aesthetic */
h1 {
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

p {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Chat Widget Styling */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
}

.chat-prompt {
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  border: 1px solid #e5e7eb;
  animation: floatPrompt 3s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-window.active ~ .chat-prompt {
  opacity: 0;
}

@keyframes floatPrompt {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.chat-button {
  width: 4rem;
  height: 4rem;
  background-color: #4f46e5; /* Indigo 600 */
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-button:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #4338ca; /* Indigo 700 */
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

.chat-window {
  display: none;
  position: absolute;
  bottom: 7.5rem; /* Increased to account for larger avatar widget */
  right: 0;
  width: 24rem;
  max-width: calc(100vw - 4rem);
  height: 32rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background-color: #f9fafb;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.bot {
  align-self: flex-start;
  background-color: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 0.25rem;
}

.message.user {
  align-self: flex-end;
  background-color: #111827;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: #9ca3af;
}

.chat-send {
  background-color: #111827;
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-send:hover {
  background-color: #374151;
}
.content-link {
  color: #d946ef;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.content-link:hover {
  border-bottom-color: #d946ef;
}
