/* ZOLX.bio - Definitive Dark Theme Stylesheet v6.0 (Azolla R&D only) */
/* © 2025 ZOLX Inc. */

/* ───────────── 1. Root & Design System ───────────── */
:root {
  --c-background: #0D1117;
  --c-surface: #161B22;
  --c-primary: #30E0A1;
  --c-primary-hover: #40FAC0;
  --c-text-primary: #E6EDF3;
  --c-text-secondary: #8B949E;
  --c-border: #30363D;
  --c-border-accent: rgba(48, 224, 161, 0.6);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.08, 0.82, 0.17, 1);
}

/* ───────────── 2. Base & Reset ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text-primary);
  background-color: var(--c-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; color: var(--c-text-secondary); }
a { color: var(--c-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--c-primary-hover); }
img { max-width: 100%; display: block; }

/* ───────────── 3. Layout & Reusable Components ───────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--c-border);
}
section:last-of-type { border-bottom: none; }
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}
.section__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--c-text-primary);
  margin-bottom: 1rem;
}
.section__subtitle {
  font-size: 1.125rem;
  max-width: 750px;
  margin: 0 auto;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background-color: var(--c-primary);
  color: #0D1117;
}
.btn:hover {
  background-color: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(48, 224, 161, 0.2);
  color: #0D1117;
}

/* ───────────── 4. Header & Navigation ───────────── */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1.25rem 0;
  background-color: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo img {
  height: 40px;
  width: 40px;
  transition: var(--transition);
}
.header__logo:hover img {
  filter: drop-shadow(0 0 8px rgba(48, 224, 161, 0.7));
}
.header__nav-wrapper { display: flex; align-items: center; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__nav-link {
  font-weight: 500;
  color: var(--c-text-secondary);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.header__nav-link:hover {
  color: var(--c-text-primary);
  border-bottom-color: var(--c-primary);
}
.header__nav-link.btn {
  border: 1px solid var(--c-primary);
  background-color: transparent;
  color: var(--c-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}
.header__nav-link.btn:hover {
  background-color: var(--c-primary);
  color: var(--c-background);
  border-color: var(--c-primary);
}

/* Mobile toggle */
.header__toggle { display: none; }

/* ───────────── 5. Hero Section ───────────── */
.hero {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,17,23,0.4) 0%, rgba(13,17,23,0.95) 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--c-text-primary);
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--c-text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

/* ───────────── 6. Content Sections Styling ───────────── */
.process__image-wrapper {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background-color: var(--c-surface);
  padding: 2.5rem 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: center;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-border-accent);
  box-shadow: var(--shadow-lg);
}
.product-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--c-primary);
}

/* ───────────── 7. Chat Section ───────────── */
.chat-container {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chatbox__log {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--c-background);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bubble { padding: 0.85rem 1.25rem; border-radius: var(--radius-lg); max-width: 85%; }
.bubble.user {
  background-color: #21262D;
  color: var(--c-text-primary);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.bubble.assistant {
  background-color: var(--c-surface);
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.bubble.assistant strong { color: var(--c-primary); }
@keyframes dots { 0%, 20% { content: '●'; } 40% { content: '●●'; } 60% { content: '●●●'; } }
.bubble.assistant.loading { color: var(--c-text-secondary); }
.bubble.assistant.loading::after {
  content: '●';
  display: inline-block;
  animation: dots 1.4s infinite;
  margin-left: 6px;
}
.chatbox__input-row { display: flex; gap: 0.75rem; padding: 1rem; border-top: 1px solid var(--c-border); }
#userMsg {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  background-color: var(--c-background);
  color: var(--c-text-primary);
  transition: var(--transition);
}
#userMsg:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(48, 224, 161, 0.2);
}
#sendBtn { flex-shrink: 0; padding: 0.75rem 1.5rem; }

/* ───────────── 8. Footer ───────────── */
.footer {
  padding: 4rem 0;
  background-color: var(--c-background);
  color: var(--c-text-secondary);
  border-top: 1px solid var(--c-border);
}
.footer .container { text-align: center; }
.footer__logo {
  height: 48px;
  width: 48px;
  margin: 0 auto 2rem auto;
  opacity: 0.7;
  transition: var(--transition);
}
.footer__logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(48, 224, 161, 0.5));
}
.footer__nav { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.footer__nav a { color: var(--c-text-secondary); }
.footer__nav a:hover { color: var(--c-primary); }

/* ───────────── 9. Responsive Design ───────────── */
/* Using 800px as the breakpoint for the nav toggle for better tablet support */
@media (max-width: 800px) {
  /* ===== MOBILE HEADER & HAMBURGER MENU ===== */
  .header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
  }
  .header__toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--c-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }
  .header.nav-open .header__toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .header.nav-open .header__toggle span:nth-child(2) {
    opacity: 0;
  }
  .header.nav-open .header__toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .header__nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--c-background);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
  }
  .header.nav-open .header__nav-wrapper { transform: translateX(0); }
  .header__nav {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .header__nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-text-primary);
  }
  .header__nav-link.btn {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
  }

  /* General mobile layout adjustments */
  .container { padding: 0 20px; }
  .section { padding: 4rem 0; }
  .hero { min-height: 70vh; padding: 5rem 0; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero__subtitle { font-size: 1.1rem; }
  .chatbox__log { max-height: 60vh; height: auto; padding: 1rem; }
  .footer__nav { flex-direction: column; gap: 1.5rem; }
}
