:root {
  --accent-primary: #ff7518;
  --accent-secondary: #f54703;
  --bg-main: #1b1b1b;
  --bg-surface: #2f2f2f;
  --border-subtle: #464545;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: linear-gradient(
    to bottom,
    #1b1b1b,
    #2f2f2f
  );
  color: white;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
      position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 16px 40px;
  background: rgba(27, 27, 27, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-left: 60px;
}

.nav-item {
  position: relative;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    to right,
    rgba(255, 117, 24, 0.12),
    rgba(245, 71, 3, 0.12)
  );
  border: 1px solid rgba(255, 117, 24, 0.35);
  color: #ffb27a;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.nav-btn:hover {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.35);
  transform: translateY(-1px);
}

.arrow {
  font-size: 1.05rem;
  line-height: 1;
  color: #ff9a55;
  opacity: 0.9;
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 0;
  background: var(--bg-surface);
  border-radius: 12px;
  display: none;
  min-width: 210px;
  overflow: visible;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 10;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}

/* HERO */
.hero {
  padding: 90px 20px;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-logo img {
  max-width: 200px;
}

/* CHAT */
.chat-container {
  margin: 50px auto 0;
  background: var(--bg-surface);
  border-radius: 22px;
  padding: 18px;
  max-width: 520px;
  border: 1px solid var(--border-subtle);
  transition: all 0.45s cubic-bezier(.4,0,.2,1);
}

.chat-container.expanded {
  max-width: 740px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.chat-messages {
  height: 90px;
  overflow-y: hidden;
  transition: height 0.45s ease;
  margin-bottom: 12px;
}

.chat-container.expanded .chat-messages {
  height: 340px;
  overflow-y: auto;
}

.message {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  max-width: 80%;
  font-size: 0.95rem;
}

.message.ai {
  background: #3a3a3a;
}

.message.user {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
  margin-left: auto;
}

/* Typing dots */
.typing {
  display: inline-flex;
  gap: 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0.4;
  animation: blink 1.4s infinite both;
}

@keyframes blink {
  0% { opacity: .2 }
  20% { opacity: 1 }
  100% { opacity: .2 }
}

/* Suggestions */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.suggestion {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

.suggestion:hover {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* INPUT */
.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: #1e1e1e;
  color: white;
  font-size: 1rem;
}

#send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

#send-btn:hover {
  filter: brightness(1.1);
}

.send-icon {
  width: 20px;
  height: 20px;
  fill: #000;
}

.link-btn {
  text-decoration: none;
}

.dropdown {
  pointer-events: auto;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* FIX: keep dropdown open while moving mouse into it (hover bridge) */
.nav-item {
  padding-bottom: 14px; /* creates a hover-safe zone under the button */
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;         /* bridge height matches padding-bottom */
}

/* ===============================
   2nd-level dropdown (flyout)
   =============================== */

/* Each dropdown row that owns a submenu */
.dropdown-item {
  position: relative;
}

/* Hide submenus by default */
.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 6px;
  background: var(--bg-surface);
  border-radius: 12px;
  min-width: 260px;
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 20;
}

/* Show submenu ONLY when hovering its parent item */
.dropdown-item:hover > .submenu {
  display: block;
}

/* Style links inside submenus */
.submenu a {
  display: block;
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Hover state inside submenu */
.submenu a:hover {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* Make top-level dropdown links look consistent */
.dropdown-link {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hover state for top-level dropdown items */
.dropdown-link:hover {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* ===============================
   Active (current location) state
   =============================== */

/* Active top-level nav button */
.nav-btn.active {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* Active dropdown item */
.dropdown-link.active {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* Active submenu item */
.submenu a.active {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

/* ===============================
   Right arrows for submenus
   =============================== */

.dropdown-item.has-submenu > .dropdown-link {
  position: relative;
  padding-right: 34px; /* room for arrow */
}

.dropdown-item.has-submenu > .dropdown-link::after {
  content: "▶";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Arrow reacts on hover */
.dropdown-item.has-submenu:hover > .dropdown-link::after {
  opacity: 1;
}

/* =========================================
   Hover path highlight (orange trail)
   Requires :has() support (Chrome/Edge/Safari)
   ========================================= */

/* 1) Keep the top nav button orange if ANY item inside its dropdown/submenus is hovered */
.nav-item:has(.dropdown:hover) > .nav-btn,
.nav-item:has(.dropdown-item:hover) > .nav-btn,
.nav-item:has(.submenu:hover) > .nav-btn,
.nav-item:has(.submenu a:hover) > .nav-btn {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #000;
}

/* 2) Keep the 1st-level dropdown item orange when its submenu (or any of its links) is hovered */
.dropdown-item:has(.submenu:hover) > .dropdown-link,
.dropdown-item:has(.submenu a:hover) > .dropdown-link {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #000;
}

/* 3) The hovered submenu link stays orange (you likely already have this, but this ensures consistency) */
.submenu a:hover {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #000;
}

/* ======================================================
   RELIABLE MULTI-LEVEL DROPDOWN HOVER (NO FLICKER)
   ====================================================== */

/* 1) Make nav-item a larger hover container */
.nav-item {
  position: relative;
  padding-bottom: 18px; /* vertical forgiveness zone */
}

/* 2) Keep dropdown open while hovering ANY part of it */
.nav-item:hover > .dropdown,
.nav-item:has(.dropdown:hover) > .dropdown,
.nav-item:has(.submenu:hover) > .dropdown {
  display: block;
}

/* 3) Make dropdown itself forgiving */
.dropdown {
  pointer-events: auto;
  padding: 6px 0; /* increases internal hitbox */
}

/* 4) Each dropdown row becomes a solid hover target */
.dropdown-item {
  position: relative;
}

/* 5) Make dropdown links taller + easier to hit */
.dropdown-link,
.dropdown a {
  padding: 12px 20px;
}

/* 6) Submenu positioning + forgiveness */
.submenu {
  top: -6px;              /* overlap upward slightly */
  padding: 6px 0;
  pointer-events: auto;
}

/* 7) Invisible horizontal bridge between dropdown & submenu */
.dropdown-item.has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -24px;
  width: 24px;
  height: 100%;
}

/* 8) Keep submenu open while hovering parent OR submenu */
.dropdown-item.has-submenu:hover > .submenu,
.dropdown-item.has-submenu:has(.submenu:hover) > .submenu {
  display: block;
}

/* 9) Submenu links easier to hit */
.submenu a {
  padding: 12px 18px;
}

/* 10) Prevent accidental collapse on fast diagonal movement */
.dropdown,
.submenu {
  transition: opacity 0.12s ease;
}

/* JS-assisted open state */
.nav-item.open > .dropdown {
  display: block;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===============================
   Card grid layout
   =============================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

/* ===============================
   Info cards (real cards)
   =============================== */

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  min-height: 120px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Card title */
.info-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Card description */
.info-card p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.4;
}

/* ===============================
   Card hover interaction
   =============================== */

.card-link:hover .info-card {
  transform: translateY(-4px);
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* Text color correction on hover */
.card-link:hover .info-card p {
  opacity: 0.9;
}

/* ===============================
   Make links invisible
   =============================== */

.card-link {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   Sub-category cards (same behavior as links)
   ========================================= */

/* Make ALL info cards feel interactive */
.info-card {
  cursor: pointer;
}

/* Hover behavior for non-linked cards */
.info-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* Text inside sub-category cards */
.info-card:hover p {
  opacity: 0.9;
}







/* ===============================
   HERO WOW ENHANCEMENTS
   =============================== */

.hero-intro {
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  opacity: 0.75;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.hero-chat {
  margin-top: 10px;
}

.chat-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  opacity: 0.5;
}

.credibility {
  margin-top: 90px;
  font-size: 0.75rem;
  opacity: 0.35;
  text-align: center;
}

/* ===============================
   Decorative bottom-right asset
   =============================== */

.corner-accent {
  position: fixed;
  right: -40px;
  bottom: -120px;
  width: 380px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}






/* ===============================
   NAVBAR WOW UPGRADE
   =============================== */

/* Base nav button refinement */
.nav-btn {
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

/* Soft glow underline (hidden by default) */
.nav-btn::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 6px;
  width: 76%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hover lift + glow */
.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Reveal underline on hover */
.nav-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Active / open menu feels "selected" */
.nav-item.open > .nav-btn,
.nav-btn.active {
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.nav-item.open > .nav-btn::after,
.nav-btn.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Arrow animation: subtle intelligence */
.nav-btn .arrow {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-item:hover .arrow,
.nav-item.open .arrow {
  transform: rotate(180deg) translateY(-1px);
  opacity: 1;
}

/* ===============================
   DROPDOWN FEELS MORE "EXPLORABLE"
   =============================== */

.dropdown {
  animation: dropdownFade 0.18s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* First-level dropdown items feel like sections */
.dropdown-link {
  font-weight: 500;
  position: relative;
}

/* Soft left glow on hover */
.dropdown-link:hover {
  padding-left: 22px;
}

/* ===============================
   SECOND-LEVEL (SUBMENU) POLISH
   =============================== */

.submenu {
  animation: submenuSlide 0.18s ease;
}

@keyframes submenuSlide {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Make submenu items feel lighter & precise */
.submenu a {
  font-size: 0.85rem;
  opacity: 0.9;
}

.submenu a:hover {
  opacity: 1;
}


/* ===============================
   HIGH-INTENT NAV BUTTONS
   =============================== */

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );

  border: 1px solid var(--border-subtle);
  color: white;
  padding: 10px 18px;
  border-radius: 14px;

  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;

  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.25s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* subtle glow edge */
.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,117,24,0.6),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* hover = magnet + lift */
.nav-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,117,24,0.5);
}

/* glow appears */
.nav-btn:hover::before {
  opacity: 1;
}

/* arrow motion = curiosity */
.nav-btn:hover .arrow {
  transform: translateX(3px) rotate(180deg);
  opacity: 1;
}

.arrow {
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.7;
}


