body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f4f7f9;
  color: #222;
}

/* ===== Shared Header Styles ===== */
header {
  background: #ffffff;
  border-bottom: 2px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Logo Wrapper Styles */
.logo {
  display: flex;
  align-items: center;
  max-height: 80px;
  max-width: 180px;
  overflow: hidden;
}

.logo img {
  height: 100%;
  width: auto;
  max-height: 80px;
}

/* Responsive Logo for Small Screens */
@media (max-width: 500px) {
  .logo {
    max-height: 60px;
    max-width: 140px;
  }

  .logo img {
    max-height: 60px;
  }
}

nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* ===== Homepage Cards ===== */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0077cc;
}

.card p {
  font-size: 0.95rem;
  color: #444;
}

/* ===== CTA Button ===== */
.cta {
  text-align: center;
  margin: 3rem 0;
}

.cta a {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta a:hover {
  background: #005fa3;
  transform: scale(1.05);
}


/* ===== Footer ===== */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem;
  color: #888;
}



/* ===== Page-Specific Styles ===== */

/* Case Studies Page */
body.case-studies .case-studies {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
  gap: 1rem;
}

body.case-studies .card {
  width: 100%;
  max-width: 700px;
}

/* About Page */
body.about main {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.7;
}

body.about h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

body.about h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

body.about ul {
  padding-left: 1.2rem;
}

body.about li {
  margin-bottom: 0.4rem;
}

/* Contact Page */
body.contact main {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.6;
}

body.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

body.contact input,
body.contact textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  width: 100%;
  font-family: inherit;
}

body.contact button {
  background-color: #0077cc;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
}

body.contact button:hover {
  background-color: #005fa3;
}

body.contact label {
  font-weight: 500;
}

body.contact .success {
  color: green;
  margin-top: 0.5rem;
  font-weight: bold;
}


/* Scroll Reveal Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

#lab-chat-root {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 18px; /* Space between beaker and chat */
}

/* Floating beaker button */
#lab-beaker-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
#lab-beaker-btn img { width: 56px; height: 56px; }

/* Chat window */
#lab-chat-window {
  position: static;
  width: 350px;
  max-width: 92vw;
  background: rgba(255,255,255,0.88);
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.17);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}
#lab-chat-window.hidden { display: none; }

/* Header */
.chat-header {
  background: rgba(247,250,252,0.92);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eaeaea;
}
.chat-header img { width: 32px; height: 32px; }
#lab-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Chat log */
.chat-log {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  padding: 16px;
  background: transparent;
  font-size: 1rem;
}

/* Input bar */
.chat-input-bar {
  display: flex;
  border-top: 1px solid #eaeaea;
  background: transparent;
  padding: 12px;
  gap: 8px;
}
#lab-chat-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#lab-send-btn {
  background: #13a0b2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
#lab-send-btn:hover { background: #0c7185; }

#lab-chat-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#lab-send-btn {
  background: #13a0b2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
#lab-send-btn:hover { background: #0c7185; }
