/* ===========================
   RESET & BASE
=========================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ===========================
   THEME VARIABLES
=========================== */

/* Light mode default */
:root {
  --bg: #f3f4f6;
  --bg-alt: #e5e7eb;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --text-soft: #6b7280;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --accent: #22d3ee;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Dark mode override */
body.dark-mode {
  --bg: #020617;
  --bg-alt: #020617;
  --surface: #020617;
  --surface-soft: #020617;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --accent: #22d3ee;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
}

/* ===========================
   UTILITIES
=========================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--surface-soft);
}

body.dark-mode .section.alt {
  background: #020617;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-header p {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* GRID SYSTEM */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* CARDS */

.card {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.3);
}

.card.compact {
  padding: 1.25rem;
}

/* CARD ICONS */

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card-icon.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.card-icon.cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}

.card-icon.navy {
  background: rgba(15, 23, 42, 0.08);
  color: #1e293b;
}

body.dark-mode .card-icon.navy {
  color: #e5e7eb;
}

.card-icon.soft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-primary-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-primary-outline:hover {
  background: var(--primary-soft);
}

.full-width {
  width: 100%;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* CHIPS / FILTER BUTTONS */

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-soft);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* TAGS */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.tags span {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

body.dark-mode .tags span {
  background: rgba(15, 23, 42, 0.8);
}

/* ===========================
   NAVBAR
=========================== */
.logo-img {
  height: 38px;   /* Adjust size as needed */
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* makes it a perfect circle */
  object-fit: cover; /* crops the image neatly */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  background: #fff; /* helps if logo has transparent parts */
  transition: 0.3s ease;
}

.logo-circle:hover {
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.9);
  scale: 1.05;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.88);
  border-bottom-color: rgba(30, 64, 175, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  font-family: "Space Grotesk", system-ui;
  font-size: 1.1rem;
}

.logo-mark.small {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-soft);
  padding-bottom: 2px;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* THEME TOGGLE */

.theme-toggle {
  border: none;
  background: var(--surface-soft);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-soft);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

/* HAMBURGER */

.hamburger {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===========================
   HERO
=========================== */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 30rem;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.87rem;
  color: var(--text-soft);
}

.hero-meta span i {
  margin-right: 0.4rem;
  color: var(--primary);
}

/* HERO VISUAL */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-orbit {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.4), transparent),
              radial-gradient(circle at 70% 100%, rgba(37, 99, 235, 0.5), transparent);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.4rem;
}

.orbit-core i {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0ea5e9;
}

.dot-1 { top: 22px; left: 40px; }
.dot-2 { right: 36px; bottom: 40px; background: #22c55e; }
.dot-3 { left: 50%; bottom: 18px; transform: translateX(-50%); background: #f97316; }

/* ===========================
   PAGE HEADER
=========================== */

.page-header {
  padding: 3.5rem 0 1rem;
}

.page-header h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.page-header p {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* FILTER ROW */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

/* PROJECT & NOTES GRIDS */

.project-card img {
  width: 100%;
  border-radius: 0.9rem;
  margin-bottom: 0.8rem;
  object-fit: cover;
  max-height: 180px;
}

.card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* NOTES SEARCH */

.notes-toolbar {
  margin-bottom: 1.8rem;
}

.search-wrapper {
  position: relative;
  max-width: 320px;
  margin-bottom: 1rem;
}

.search-wrapper input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: var(--surface);
  padding: 0.55rem 1rem 0.55rem 2.3rem;
  font-size: 0.9rem;
  color: var(--text);
}

.search-wrapper i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.link-download {
  display: inline-flex;
  align-items: center;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
}

.link-download i {
  margin-right: 0.4rem;
}

/* ABOUT */

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
}

.about-text h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.about-text p {
  margin-bottom: 0.8rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.bullet-list {
  list-style: none;
  margin-top: 0.4rem;
}

.bullet-list li {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 1rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* TIMELINE */

.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(148, 163, 184, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-dot {
  position: absolute;
  left: -0.05rem;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.timeline-content {
  padding-left: 1rem;
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* PRICING DASHBOARD */

.pricing-header {
  padding-bottom: 0.5rem;
}

.pricing-dashboard {
  position: relative;
  overflow: hidden;
}

.pricing-grid,
.pricing-grid-secondary {
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 1.1rem;
}

.pricing-list {
  list-style: none;
  margin-top: 0.8rem;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: var(--text-soft);
}

.pricing-list span {
  max-width: 70%;
}

.pricing-list strong {
  font-weight: 600;
  color: var(--text);
}

.pricing-info p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

/* Floating icons */
.floating-bg-icon {
  position: absolute;
  font-size: 2.3rem;
  opacity: 0.14;
  pointer-events: none;
}

.icon-1 { top: 40px; right: 10%; }
.icon-2 { bottom: 40px; left: 10%; }
.icon-3 { top: 55%; right: 20%; }

/* Floating home button */

.floating-home {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.48);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.48); }
  50% { transform: scale(1.05); box-shadow: 0 18px 60px rgba(37, 99, 235, 0.7); }
  100% { transform: scale(1); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.48); }
}

/* CONTACT */

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  align-items: flex-start;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.25rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.form-response {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hidden {
  display: none;
}

.contact-info {
  font-size: 0.95rem;
}

.bot-bubble {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-links {
  list-style: none;
  margin: 1rem 0;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.contact-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
}

.contact-note {
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* FOOTER */

.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.footer-social a {
  color: var(--text-soft);
  margin: 0 0.35rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 4rem 0 auto 0;
    background: rgba(243, 244, 246, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    display: none;
  }

  body.dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .page-header {
    padding-top: 3rem;
  }

  .floating-home {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    flex-direction: column;
  }

  .card {
    padding: 1.2rem;
  }
}

/* ==========================================
   FLOATING ACTION BUTTON
========================================== */
/* ==========================================================
   ATTACHTOTECH — PROFESSIONAL AI CHATBOT (REFINED VERSION)
   - Reduced glow
   - Soft gradients
   - Wake animation enabled
========================================================== */

:root {

  --texts: #b7e8ff;      /* Holographic readable blue */
  --bubble-user: rgba(30,200,255,0.9);
  --bubble-bot: rgba(90,60,180,0.28);
  --bg1: #050a1e;
  --bg2: #101a38;
  --border: rgba(30,200,255,0.25);
  --soft-glow: 0 0 14px rgba(30,200,255,0.18);
}

/* Wake animation keyframes */
@keyframes wakePulse {
  0% { transform: scale(1); box-shadow: var(--soft-glow); }
  50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(30,200,255,0.35); }
  100% { transform: scale(1); box-shadow: var(--soft-glow); }
}

/* Floating button */
#chatbot-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 26px;
  background: linear-gradient(145deg, var(--secondary), var(--primary));
  color: var(--texts);
  transition: 0.35s;
  box-shadow: var(--soft-glow);
  z-index: 999;
}

/* wake mode class added by JS */
#chatbot-btn.wake-active {
  animation: wakePulse 2.8s infinite ease-in-out;
}

#chatbot-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 22px rgba(30,200,255,0.4);
}

/* CHAT WINDOW */
#chatbot {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 360px;
  height: 455px;
  display: none;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-glow);
  animation: popup .35s ease;
  z-index: 999;
}

@keyframes popup {
  from { transform: translateY(40px) scale(.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* HEADER */
#chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  color: var(--texts);
}

/* Logo refined */
.chatbot-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: .3s;
}
.chatbot-logo:hover { transform: scale(1.08); }

/* Theme selector */
#theme-selector {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  color: var(--texts);
  font-size: 12px;
}

#chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary);
  cursor:pointer;
  transition:.25s;
}
#chatbot-close:hover { color: var(--accent); transform: scale(1.2); }

/* MESSAGES */
#chatbot-messages {
  padding: 14px;
  height: 260px;
  overflow-y: auto;
  color: var(--texts);
  scrollbar-width: thin;
}

/* BUBBLES */
.message {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  animation: fade .25s ease;
}

@keyframes fade { from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.user-msg {
  margin-left: auto;
  background: var(--bubble-user);
  color: #04303f;
  font-weight: 600;
  border-bottom-right-radius: 0;
}

.bot-msg {
  background: var(--bubble-bot);
  border-bottom-left-radius: 0;
  border: 1px solid var(--border);
}

/* TYPING INDICATOR */
#chatbot-typing {
  font-size: 12px;
  margin-left: 12px;
  color: var(--primary);
}
#chatbot-typing::before {
  content: "🤖 typing...";
}

/* QUICK REPLY BUTTONS */
#quick-options {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 6px;
}

#quick-options button {
  background: transparent;
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--texts);
  transition: .25s;
}

#quick-options button:hover {
  background: var(--primary);
  color: #032c38;
}

/* INPUT AREA */
#chatbot-input-area {
  display:flex;
  gap:6px;
  padding:12px;
  border-top:1px solid var(--border);
}

#chatbot-input {
  flex:1;
  padding:10px;
  background: rgba(255,255,255,0.07);
  border:1px solid var(--border);
  border-radius:10px;
  color: var(--texts);
}

#voice-btn, #chatbot-send {
  background: transparent;
  border:1px solid var(--accent);
  border-radius: 10px;
  padding:10px 14px;
  cursor:pointer;
  color: var(--accent);
  transition:.25s;
}

#chatbot-send:hover, #voice-btn:hover {
  background: var(--accent);
  color:#013320;
}

/* MOBILE */
@media(max-width:500px){
  #chatbot { width:92%; right:4%; }
  #chatbot-btn { width:55px; height:55px; font-size:22px; }
}

.footer-social a:hover {
  transform: scale(1.15);
  transition: 0.25s ease;
}


/* ------------------------------
   DARK MODE SUPPORT FOR PRICING
------------------------------ */

body.dark-mode .pricing-dashboard {
  background: #0d1b2a !important;
}

body.dark-mode .pricing-dashboard h2,
body.dark-mode .pricing-dashboard p,
body.dark-mode .pricing-dashboard h3 {
  color: #e9f1ff !important;
}

body.dark-mode .pricing-dashboard article {
  background: #1b263b !important;
  border-color: #264b76 !important;
  box-shadow: 0 6px 20px rgba(0, 142, 255, 0.15) !important;
}

body.dark-mode .pricing-dashboard ul li {
  border-color: #2b3f5d !important;
  color: #ccddff !important;
}

body.dark-mode .pricing-dashboard strong {
  color: #4da3ff !important;
}

body.dark-mode .pricing-dashboard button {
  background: #4da3ff !important;
  color: #001b35 !important;
}

body.dark-mode .pricing-dashboard button:hover {
  background: #6fc1ff !important;
}

/* Highlighted middle card */
body.dark-mode .pricing-dashboard article[style*="transform:scale"] {
  border-color: #4da3ff !important;
  box-shadow: 0 0 25px rgba(77, 163, 255, 0.45) !important;
}

/* Add-ons + info text */
body.dark-mode .pricing-dashboard li,
body.dark-mode .pricing-dashboard p {
  color: #d7e6ff !important;
}


/* --------------------------------------
   DARK MODE — PROJECT ESTIMATOR SECTION
--------------------------------------- */

body.dark-mode section[style*="background:#f4f7ff"] {
  background: #0d1b2a !important;
}

/* Form + Result Cards */
body.dark-mode #priceEstimator,
body.dark-mode #resultBox,
body.dark-mode section[style] article,
body.dark-mode div[style*="box-shadow"][style*="background:white"] {
  background: #1b263b !important;
  border-color: #2c3e55 !important;
  color: #e6f1ff !important;
}



/* Inputs + Selects + Textareas */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #0f172a !important;
  color: #e2eeff !important;
  border: 1px solid #2a3f5e !important;
}

/* Labels */
body.dark-mode label {
  color: #e8f3ff !important;
}

/* Step Breadcrumb */
body.dark-mode #stepLabel {
  color: #cfe4ff !important;
}
body.dark-mode div[style*="background:#f1f5f9"] {
  background: #142033 !important;
  color: #e2edff !important;
}

/* Buttons */
body.dark-mode button {
  border-radius: 999px !important;
}

/* Next / Submit Buttons */
body.dark-mode #nextBtn {
  background: #3b82f6 !important;
  box-shadow: 0 0 14px rgba(59,130,246,0.4) !important;
}

body.dark-mode #submitBtn {
  background: #16a34a !important;
  box-shadow: 0 0 14px rgba(22,163,74,0.4) !important;
}

/* Disabled Back Button */
body.dark-mode #backBtn {
  color: #a8c2de !important;
  border-color: #3c4f66 !important;
  background: #0f172a !important;
}

/* Estimate Result Card Highlight Area */
body.dark-mode div[style*="background:#f1f5ff"] {
  background: #16243a !important;
  border: 1px solid #375d91 !important;
  color: #e9f4ff !important;
}

/* Summary Text */
body.dark-mode #resultBox p,
body.dark-mode #resultBox ul li {
  color: #bdd4f8 !important;
}

/* Warning Text */
body.dark-mode #resultBox p[style*="color:#ef4444"] {
  color: #ff6b6b !important;
}

/* WhatsApp Button */
body.dark-mode #whatsappBtn {
  background: #22c55e !important;
  color: white !important;
  box-shadow: 0 0 14px rgba(34,197,94,0.35) !important;
}

/* Small Tag */
body.dark-mode div[style*="Fully Frontend"] {
  background: #223c62 !important;
  color: #8fc1ff !important;
}

/* Light Description Text */
body.dark-mode p,
body.dark-mode small {
  color: #d2e4ff !important;
}




/* ------------------------------
   NEXT LEVEL TESTIMONIAL DESIGN
------------------------------- */

.testimonial-section {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(135deg,#cde6ff,#f5faff);
  overflow: hidden;
}

.testimonial-title {
  text-align: center;
  font-size: 32px;
  color: #003566;
  font-weight: 700;
  margin-bottom: 40px;
}

.testimonial-container {
  max-width: 650px;
  margin: auto;
  position: relative;
  height: 350px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.8s ease;
  padding: 35px;
  text-align: center;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  border: 1.5px solid rgba(0,92,255,0.15);
  box-shadow: 0 8px 28px rgba(0,92,255,0.12);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  color: #003566;
  margin-bottom: 20px;
}

.testimonial-stars {
  font-size: 20px;
  color: #0077ff;
  margin-bottom: 12px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 17px;
  color: #0252a5;
}


/* Floating particles */
.floating-bubbles span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(0,119,255,0.18);
  border-radius: 50%;
  animation: float 6s infinite linear;
}

.floating-bubbles span:nth-child(1) { top: 20%; left: 10%; animation-duration: 7s; }
.floating-bubbles span:nth-child(2) { top: 50%; left: 85%; animation-duration: 5s; }
.floating-bubbles span:nth-child(3) { top: 70%; left: 25%; animation-duration: 9s; }
.floating-bubbles span:nth-child(4) { top: 30%; left: 75%; animation-duration: 6s; }
.floating-bubbles span:nth-child(5) { top: 85%; left: 50%; animation-duration: 10s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-25px) scale(1.3); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.6; }
}


/* DARK MODE SUPPORT */
body.dark-mode .testimonial-section {
  background: linear-gradient(135deg,#0a1227,#0d203e);
}

body.dark-mode .testimonial-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,180,255,0.25);
  color: #e9faff;
}

body.dark-mode .testimonial-text,
body.dark-mode .testimonial-author {
  color: #d9ecff;
}

body.dark-mode .testimonial-title {
  color: #e9f3ff;
}
/* Tablet */
@media (max-width: 900px) {
  .testimonial-container {
    min-height: 200px;
  }

  .testimonial-text {
    font-size: 17px;
  }
}

/* Standard Mobile */
@media (max-width: 600px) {
  .testimonial-container {
    min-height: 180px;
    padding: 10px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-text {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .testimonial-author {
    font-size: 14px;
  }

  .testimonial-stars {
    font-size: 18px;
  }
}

/* Small Phones / Compact screens */
@media (max-width: 400px) {
  .testimonial-container {
    min-height: 160px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-text {
    font-size: 14.5px;
  }

  .testimonial-author {
    font-size: 13px;
  }
}
