/* Custom Theme Styles for Vandelay Industrial AI */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

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

/* Header & Navigation */
header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

header .logo:hover {
  color: #4CAF50;
}

header .header-icon {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 101;
}

header .duck-icon {
  width: 40px;
  height: 40px;
  animation: float 3s ease-in-out infinite;
}

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

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

header nav a:hover {
  color: #4CAF50;
}

/* Main Content */
main {
  padding: 2rem 0;
}

/* Articles */
article {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a1a2e 0%, #4CAF50 50%, #1a1a2e 100%);
}

article h1 {
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

article .article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  color: #666;
  font-size: 0.9rem;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .meta-item span {
  color: #4CAF50;
  font-weight: 500;
}

.article-meta .meta-item .author {
  color: #1a1a2e;
  font-weight: 600;
}

article .content {
  line-height: 1.8;
  color: #333;
}

article .content h2 {
  color: #1a1a2e;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

article .content h3 {
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

article .content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

article .content ul, article .content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

article .content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

article .content strong {
  color: #1a1a2e;
  font-weight: 700;
}

article .content a {
  color: #4CAF50;
  text-decoration: none;
  border-bottom: 2px solid #4CAF50;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

article .content a:hover {
  color: #45a049;
  border-bottom-color: #45a049;
  background: rgba(76, 175, 80, 0.05);
  padding-left: 4px;
  padding-right: 4px;
}

article .content blockquote {
  border-left: 4px solid #1a1a2e;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  color: #555;
  font-style: italic;
  background: linear-gradient(90deg, rgba(26, 26, 46, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-radius: 0 8px 8px 0;
}

article .content pre {
  background: #1a1a2e;
  color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}

article .content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

article .content pre code {
  color: inherit;
}

article .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

article .content th, article .content td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #e0e0e0;
}

article .content th {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: white;
  font-weight: 600;
}

article .content tr:nth-child(even) {
  background: #f9f9f9;
}

article .content tr:hover {
  background: #f0f0f0;
}

article .content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

article .content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #4CAF50 50%, transparent 100%);
  margin: 2.5rem 0;
}

/* List Items (for News/Blog listings) */
.list {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.8);
}

.list-item {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
  border-radius: 2px 0 0 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.list-item:hover {
  border-color: #4CAF50;
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.15);
  transform: translateX(4px);
}

.list-item:hover::before {
  opacity: 1;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item h2 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.list-item:hover h2 {
  color: #4CAF50;
}

.list-item .summary {
  color: #666;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.list-item .meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #888;
}

.list-item .meta .date {
  color: #4CAF50;
  font-weight: 500;
}

.list-item .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.list-item .tag {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.list-item .tag:hover {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  transform: translateY(-2px);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 2px solid #4CAF50;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent;
}

.read-more:hover {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

.read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Footer */
footer {
  background: #1a1a2e;
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer .container {
  text-align: center;
}

footer p {
  opacity: 0.8;
  margin: 0.5rem 0;
}

/* Quick Links Section */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quick-link-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quick-link-card h3 {
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.quick-link-card p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quick-link-card .card-link {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.quick-link-card .card-link:hover {
  color: #45a049;
  text-decoration: underline;
}

footer .footer-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

footer .footer-contact strong {
  font-size: 1.1rem;
  color: #4CAF50;
}

footer .footer-contact a {
  color: #4CAF50;
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-contact a:hover {
  color: #45a049;
  text-decoration: underline;
}

/* Employee Profiles */
.employee-profile {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}

.employee-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
  flex-wrap: wrap;
}

.employee-header-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4CAF50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  flex-shrink: 0;
}

.employee-header-info {
  flex: 1;
  min-width: 300px;
}

.employee-header h1 {
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.employee-role {
  color: #4CAF50;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.employee-location {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.employee-email {
  color: #1a1a2e;
  font-weight: 500;
}

.employee-email a {
  color: #4CAF50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.employee-email a:hover {
  color: #45a049;
}

.employee-content {
  display: grid;
  gap: 2rem;
}

.employee-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #f0f0f0;
}

.employee-section h2 {
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.expertise-tag {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.expertise-tag:hover {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.hobbies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hobby-tag {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hobby-tag:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2);
}

.employee-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border: 2px solid #f0f0f0;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.employee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
  border-radius: 2px 0 0 2px;
}

.employee-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.15);
  transform: translateY(-4px);
}

.employee-card:last-child {
  margin-bottom: 0;
}

.employee-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #1a1a2e;
}

.employee-card .employee-role {
  color: #4CAF50;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.employee-card .employee-location {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.employee-card .employee-bio {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.employee-card .employee-expertise {
  margin-bottom: 1.5rem;
}

.employee-card .employee-expertise h3 {
  color: #1a1a2e;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.employee-card .expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.employee-card .employee-hobbies {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.employee-card .employee-hobbies h3 {
  color: #1a1a2e;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.employee-card .hobby-tag {
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  article, .list {
    padding: 1.5rem;
  }

  .employee-header {
    flex-direction: column;
    text-align: center;
  }

  .employee-header-avatar {
    width: 120px;
    height: 120px;
  }

  .employee-header-info {
    min-width: 100%;
  }

  .employee-section {
    padding: 1.25rem;
  }
}

/* Research Page Specific Styles */
.research-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #4CAF50;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.research-overview, .research-archive, .approaches, .collaboration {
  margin: 3rem 0;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.archive-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.archive-date {
  font-weight: bold;
  color: #4CAF50;
}

.archive-title {
  flex: 1;
  margin: 0 2rem;
}

.archive-status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.archive-status.coming-soon {
  background: #e0e0e0;
  color: #666;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.approach-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #4CAF50;
  transition: transform 0.3s;
}

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

.approach-number {
  font-size: 3rem;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.approach-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.approach-status {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  display: inline-block;
}

.collaboration-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.collaboration-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
}

.bot-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
}

.bot-c {
  background: #2196F3;
}

.bot-a {
  background: #FF9800;
}

.bot-b {
  background: #9C27B0;
}

.bot-info {
  flex: 1;
}

.bot-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.bot-role {
  color: #666;
  font-size: 0.9rem;
}

.realtime-conversation {
  margin-top: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4CAF50;
  font-weight: bold;
  font-size: 0.9rem;
}

.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.conversation-time {
  color: #666;
  font-size: 0.9rem;
}

.bot-conversation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bot-message {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.bot-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 2px;
}

.bot-message.bot-c::before {
  background: #2196F3;
}

.bot-message.bot-a::before {
  background: #FF9800;
}

.bot-message.bot-b::before {
  background: #9C27B0;
}

.bot-message.bot-c {
  background: rgba(33, 150, 243, 0.05);
  border-left: 4px solid #2196F3;
}

.bot-message.bot-a {
  background: rgba(255, 152, 0, 0.05);
  border-left: 4px solid #FF9800;
}

.bot-message.bot-b {
  background: rgba(156, 39, 176, 0.05);
  border-left: 4px solid #9C27B0;
}

.bot-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.bot-message.bot-c .bot-avatar {
  background: #2196F3;
}

.bot-message.bot-a .bot-avatar {
  background: #FF9800;
}

.bot-message.bot-b .bot-avatar {
  background: #9C27B0;
}

.bot-content {
  flex: 1;
  line-height: 1.6;
}

.bot-content strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.bot-content p {
  margin: 0;
  color: #333;
}

.conversation-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 4px;
  color: #2e7d32;
  font-weight: 500;
}

.status-icon {
  font-size: 1.2rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.highlight {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
  color: #2e7d32;
  font-weight: bold;
}

.view-all-archives {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.view-all-archives:hover {
  background: #45a049;
}

.archive-intro, .archive-info {
  margin: 3rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.info-card p {
  color: #666;
  line-height: 1.6;
}