/* ============================================================
   OneStackDA — style.css
   ============================================================ */

/* ────────────── RESET & BASE ────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
  line-height: 1.5;
}

.container { max-width: 1200px; width: 100%; }

/* ────────────── HEADER ────────────── */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  flex-wrap: nowrap;
}

.logo img { width: 40px; height: auto; }

header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
  white-space: nowrap;
  gap: 8px;
}

header .logo .logo-one { color: #ffffff; }
header .logo .logo-stack { color: #f5a623; }
header .logo .logo-da { color: #ffffff; }

header nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

header nav > a,
header nav .nav-dropdown > button {
  color: #9a9a9a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
  font-size: 0.95rem;
  letter-spacing: 0.1px;
  position: relative;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header nav > a:hover,
header nav .nav-dropdown > button:hover,
header nav .nav-dropdown.open > button {
  color: #ffffff;
}

header nav > a::after,
header nav .nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #f5a623;
  transition: width 0.25s ease;
}

header nav > a:hover::after,
header nav .nav-dropdown:hover > button::after,
header nav .nav-dropdown.open > button::after {
  width: 100%;
}

header nav .nav-dropdown > button .caret {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

header nav .nav-dropdown:hover > button .caret,
header nav .nav-dropdown.open > button .caret {
  transform: rotate(180deg);
}

/* ─── MEGA MENU DROPDOWN ─── */
.nav-dropdown { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  width: 780px;
  max-width: 90vw;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  overflow: hidden;
  color: #1a1a1a;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.mega-menu-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.mega-menu-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.mega-menu-header p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding: 24px 32px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.mega-item:hover { background: #ececec; }

.mega-item .mega-icon {
  width: 44px;
  height: 44px;
  background: #e4e4e4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2c2c2c;
  font-size: 1.15rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-item:hover .mega-icon {
  background: #f5a623;
  color: #0a0a0a;
}

.mega-item .mega-text { flex: 1; }

.mega-item .mega-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.mega-item .mega-text span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.mega-menu-footer {
  padding: 20px 32px;
  border-top: 1px solid #e5e5e5;
  background: #f0f0f0;
}

.mega-menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8860b;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: gap 0.25s ease;
}

.mega-menu-footer a:hover { gap: 16px; }
.mega-menu-footer a i { font-size: 0.85rem; }

/* ─── CTA in nav ─── */
header nav a.cta-nav {
  color: #0a0a0a;
  background: #f5a623;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

header nav a.cta-nav::after { display: none; }

header nav a.cta-nav:hover {
  background: #ffb84d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.25);
  color: #0a0a0a;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 101;
}

.hamburger:hover { color: #f5a623; }

/* ────────────── HERO ────────────── */
.hero {
  padding: 70px 32px 50px;
  border-bottom: 1px solid #222;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content { text-align: left; }

.hero .badge {
  display: inline-block;
  background: #171717;
  color: #f5a623;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid #2a2a2a;
  margin-bottom: 24px;
}

.hero .badge i { margin-right: 8px; }

.hero h1 {
  font-size: 2.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero .highlight {
  color: #f5a623;
  -webkit-text-fill-color: #f5a623;
}

.hero p {
  font-size: 1.08rem;
  color: #a0a0a0;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero p strong { color: #f5a623; }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  background: #f5a623;
  color: #0a0a0a;
  padding: 15px 32px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: scale(1.03);
  background: #ffb84d;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
}

.cta-btn i { margin-right: 8px; }

.cta-btn-outline {
  background: transparent;
  border: 2px solid #f5a623;
  color: #f5a623;
}

.cta-btn-outline:hover {
  background: #f5a623;
  color: #0a0a0a;
}

.hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  background: #141414;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-image .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px;
  font-size: 0.85rem;
  color: #ccc;
}

.hero-image .image-caption strong { color: #f5a623; }

/* ────────────── TRUSTED BY ────────────── */
.trusted-section {
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.trusted-section h2 {
  font-size: 0.95rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 28px;
  font-weight: 400;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 24px;
}

.client-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: #aaa;
  border: 1px solid #222;
  padding: 9px 20px;
  border-radius: 40px;
  background: #111;
  transition: all 0.3s ease;
}

.client-item:hover {
  border-color: #f5a623;
  color: #fff;
  background: #1a1a1a;
}

.client-item .fa-check-circle {
  color: #f5a623;
  margin-right: 8px;
  font-size: 0.85rem;
}

/* ────────────── SECTIONS SHARED ────────────── */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.section-header h2 span { color: #f5a623; }

.section-header p {
  color: #888;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ────────────── SOLUTIONS ────────────── */
.solutions-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.solution-card {
  background: #141414;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid #222;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.solution-card:hover {
  border-color: #f5a623;
  transform: translateY(-5px);
  background: #1a1a1a;
}

.solution-card .icon {
  font-size: 2.2rem;
  color: #f5a623;
  margin-bottom: 20px;
  display: block;
}

.solution-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
}

.solution-card p {
  color: #b0b0b0;
  line-height: 1.65;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.solution-card .card-link {
  color: #f5a623;
  font-weight: 600;
  font-size: 0.88rem;
}

.solution-card .card-link i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.solution-card:hover .card-link i { transform: translateX(4px); }

/* ────────────── PROCESS ────────────── */
.process-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.process-step {
  background: #141414;
  padding: 26px 20px;
  border-radius: 16px;
  border: 1px solid #222;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: #f5a623;
  background: #1a1a1a;
  transform: translateY(-4px);
}

.process-step .step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f5a623;
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.process-step p {
  color: #b0b0b0;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ────────────── PORTFOLIO ────────────── */
.portfolio-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  border-color: #f5a623;
  transform: translateY(-5px);
  background: #1a1a1a;
}

.portfolio-card .image-wrap {
  height: 200px;
  background: #0a0a0a;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.portfolio-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  aspect-ratio: 4 / 3;
}

.portfolio-card .body { padding: 26px; }

.portfolio-card .body .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.1);
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid rgba(245, 166, 35, 0.15);
  margin-bottom: 12px;
}

.portfolio-card .body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.portfolio-card .body p {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.portfolio-card .body .view-link {
  color: #f5a623;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.portfolio-card .body .view-link:hover { color: #ffb84d; }

.portfolio-card .body .view-link i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .view-link i { transform: translateX(4px); }

/* ────────────── WHY US ────────────── */
.why-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: #141414;
  padding: 32px 22px;
  border-radius: 16px;
  border: 1px solid #222;
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: #f5a623;
  transform: translateY(-4px);
  background: #1a1a1a;
}

.why-card i {
  font-size: 2rem;
  color: #f5a623;
  margin-bottom: 14px;
  display: block;
}

.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: #b0b0b0;
  line-height: 1.65;
}

/* ────────────── PRICING ────────────── */
.pricing-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: #141414;
  padding: 36px 26px;
  border-radius: 16px;
  border: 1px solid #222;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

.pricing-card:hover {
  border-color: #f5a623;
  transform: translateY(-5px);
  background: #1a1a1a;
}

.pricing-card.featured {
  border-color: #f5a623;
  background: #1a1a1a;
}

.pricing-card .plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #f5a623;
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: #f5a623;
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-card .price-note {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 22px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 26px;
}

.pricing-card ul li {
  color: #b0b0b0;
  font-size: 0.88rem;
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card ul li i {
  color: #f5a623;
  font-size: 0.8rem;
  margin-top: 4px;
}

.pricing-card .cta-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  font-size: 0.9rem;
}

/* ────────────── WHAT WE TRACK ────────────── */
.track-section {
  background: #111;
  border-radius: 20px;
  padding: 50px 30px;
  margin: 40px 20px;
  border: 1px solid #2a2a2a;
  text-align: center;
}

.track-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.track-section h2 span { color: #f5a623; }

.track-section > p {
  color: #b0b0b0;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 38px;
  line-height: 1.65;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.track-item {
  background: #141414;
  padding: 26px 18px;
  border-radius: 12px;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.track-item:hover {
  border-color: #f5a623;
  background: #1a1a1a;
}

.track-item i {
  font-size: 1.6rem;
  color: #f5a623;
  margin-bottom: 12px;
  display: block;
}

.track-item h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
}

.track-item p {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.55;
}

/* ────────────── TESTIMONIAL ────────────── */
.testimonial-section {
  padding: 70px 32px;
  border-bottom: 1px solid #222;
}

.testimonial-inner {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-inner .quote-icon {
  font-size: 2.5rem;
  color: #f5a623;
  opacity: 0.3;
}

.testimonial-inner blockquote {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.65;
  margin: 22px 0;
}

.testimonial-inner .attribution {
  color: #888;
  font-size: 0.95rem;
}

.testimonial-inner .attribution strong { color: #fff; }

/* ────────────── CONTACT CTA ────────────── */
.contact-cta {
  background: linear-gradient(135deg, #1a1205 0%, #0a0a0a 100%);
  border: 2px solid #f5a623;
  border-radius: 20px;
  padding: 55px 32px;
  margin: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "START";
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(245, 166, 35, 0.04);
  pointer-events: none;
  transform: rotate(15deg);
}

.contact-cta h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.contact-cta h2 span { color: #f5a623; }

.contact-cta p {
  max-width: 600px;
  margin: 0 auto 28px;
  color: #b0b0b0;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-cta .cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .small-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 22px;
}

/* ────────────── FOOTER ────────────── */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #222;
  margin-top: 40px;
  color: #666;
  font-size: 0.9rem;
}

footer a { color: #f5a623; text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .footer-links { font-size: 0.82rem; margin-top: 8px; }
footer .footer-links a { color: #666; text-decoration: none; }
footer .footer-links a:hover { color: #f5a623; text-decoration: underline; }

/* ============================================================
   CHAT WIDGET — Custom OneStackDA widget (bottom-LEFT)
   Tawk.to lives on bottom-RIGHT
   ============================================================ */

.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  top: auto;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #c99a1f;
  border: none;
  color: #1a1a1a;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 154, 31, 0.45);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: scale(1.08);
  background: #d9aa2a;
}

.chat-toggle .icon-chat,
.chat-toggle .icon-close {
  position: absolute;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-toggle .icon-close {
  opacity: 0;
  transform: scale(0.6);
}

.chat-toggle.active .icon-chat {
  opacity: 0;
  transform: scale(0.6);
}

.chat-toggle.active .icon-close {
  opacity: 1;
  transform: scale(1);
}

.chat-toggle .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e63946;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ─── Panel ─── */
.chat-panel {
  position: absolute;
  bottom: 78px;
  left: 0;
  right: auto;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  color: #1a1a1a;
  z-index: 9998;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ─── Header ─── */
.chat-panel-header {
  background: #c9821f;
  color: #1a1a1a;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.chat-back,
.chat-menu {
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
  border-radius: 6px;
}

.chat-back:hover,
.chat-menu:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.chat-menu.active {
  background: rgba(0, 0, 0, 0.12);
}

.chat-agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5dfb1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6810;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-agent-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-agent-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}

.chat-agent-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.chat-agent-info span {
  font-size: 0.72rem;
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
}

/* ─── Body ─── */
.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-panel-body::-webkit-scrollbar { width: 6px; }
.chat-panel-body::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 6px;
}

.chat-section-label {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
}

.chat-msg.agent { align-self: flex-start; }

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg.agent .chat-msg-bubble {
  background: #c9821f;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
  background: #ececec;
  color: #1a1a1a;
  border-bottom-right-radius: 4px;
}

.chat-msg-bubble .wave {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
}

.chat-quick-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.chat-quick-btn {
  background: #ececec;
  color: #1a1a1a;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-end;
}

.chat-quick-btn:hover {
  background: #dcdcdc;
  transform: translateY(-1px);
}

/* ─── Footer (input row) ─── */
.chat-panel-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  padding: 8px 4px;
  font-family: inherit;
  color: #1a1a1a;
  background: transparent;
  min-width: 0;
}

.chat-input::placeholder { color: #999; }

.chat-icon-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  border-radius: 50%;
}

.chat-icon-btn:hover {
  color: #c99a1f;
  background: rgba(201, 154, 31, 0.1);
}

/* ─── Emoji picker ─── */
.chat-emoji-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-top: 1px solid #eee;
  max-height: 140px;
  overflow-y: auto;
}

.emoji-opt {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.emoji-opt:hover {
  background: rgba(201, 154, 31, 0.15);
  transform: scale(1.15);
}

.chat-msg-bubble .chat-file-preview {
  display: block;
  max-width: 180px;
  max-height: 140px;
  border-radius: 10px;
  margin-top: 6px;
}

.chat-msg-bubble .chat-file-name {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #0a0a0a;
  opacity: 0.75;
  word-break: break-all;
}

/* ─── Powered-by strip ─── */
.chat-powered {
  background: #f5f5f5;
  text-align: center;
  padding: 8px;
  font-size: 0.72rem;
  color: #999;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.chat-powered strong { color: #666; font-weight: 600; }

/* ─── Chat header dropdown menu ─── */
.chat-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 8px;
  margin-top: 4px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 10000;
}

.chat-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: #d0d0d0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-menu-item i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #f5a623;
  flex-shrink: 0;
}

.chat-menu-item:hover {
  background: rgba(245, 166, 35, 0.1);
  color: #fff;
}

.chat-menu-item.danger i { color: #ff5a5a; }

.chat-menu-item.danger:hover {
  background: rgba(255, 90, 90, 0.12);
  color: #ff8080;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 24px 40px;
    text-align: center;
  }

  .hero-content { text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero-cta-row { justify-content: center; }
  .hero-image { max-width: 100%; }
}

@media (max-width: 768px) {
  .header-container { padding: 16px 20px; }
  .hamburger { display: block; }

  header nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0a0a0a;
    padding: 24px 0;
    border-top: 1px solid #222;
    gap: 14px;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  header nav.open { display: flex; }

  header nav > a,
  header nav .nav-dropdown > button {
    font-size: 1.05rem;
    padding: 8px 0;
  }

  header nav a.cta-nav { padding: 12px 28px; }

  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown > button { justify-content: center; width: 100%; }
  .nav-dropdown::after { display: none; }

  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 92%;
    margin: 8px auto 0;
    max-width: none;
    display: none;
    box-shadow: none;
    border-radius: 14px;
  }

  .nav-dropdown.open .mega-menu { display: block; }
  .nav-dropdown:hover .mega-menu { transform: none; }

  .mega-menu-header { padding: 20px 20px 14px; }
  .mega-menu-header h3 { font-size: 1.15rem; }
  .mega-menu-header p { font-size: 0.85rem; }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    padding: 16px 16px;
    gap: 4px;
  }

  .mega-menu-footer { padding: 16px 20px; }

  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }

  .process-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr 1fr; }
  .client-item { font-size: 0.85rem; padding: 7px 16px; }

  /* Chat widget — mobile */
  .chat-widget {
    bottom: 16px;
    left: 16px;
    right: auto;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    height: calc(80vh - 100px);
    max-height: calc(100vh - 120px);
    bottom: 74px;
    left: 0;
    right: auto;
    border-radius: 14px;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .chat-panel-header { padding: 12px 14px; }
  .chat-panel-body { padding: 16px 14px; }
  .chat-msg-bubble { font-size: 0.85rem; padding: 10px 14px; }
  .chat-quick-btn { font-size: 0.82rem; padding: 9px 16px; }
}

@media (max-width: 480px) {
  .header-container { padding: 12px 16px; }
  header .logo { font-size: 1.3rem; }
  .hero { padding: 40px 18px 30px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.92rem; }
  .cta-btn { padding: 13px 24px; font-size: 0.88rem; }
  .section-header h2 { font-size: 1.5rem; }
  .contact-cta { padding: 35px 20px; }
  .contact-cta h2 { font-size: 1.3rem; }
  .track-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .client-grid { gap: 8px; }
  .client-item { font-size: 0.75rem; padding: 5px 12px; }
  .testimonial-inner blockquote { font-size: 1.05rem; }

  /* Chat widget — small mobile */
  .chat-widget {
    bottom: 12px;
    left: 12px;
    right: auto;
  }

  .chat-panel {
    left: 0;
    right: auto;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    bottom: 68px;
  }
}