/* ===========================
   Audio Intel — Sophisticated Earthy Design System
   Modern, professional theme:
   teal, sage green, deep navy with elegant accents
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@400;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */

:root {
  /* LIGHT THEME (Nature-inspired Green & Teal Palette) */
  --primary: #3D8D7A;
  --primary-light: #A3D1C6;
  --primary-dark: #2D6B5E;
  --primary-rgb: 61, 141, 122;
  --primary-light-rgb: 163, 209, 198;

  --accent: #B3D8A8;
  --accent-light: #D5E5D5;
  --accent-dark: #8FC479;
  --accent-rgb: 179, 216, 168;

  --warm: #C7D9DD;
  --warm-light: #EEF1DA;
  --warm-rgb: 199, 217, 221;

  --bg-dark: #FBFFE4;
  --bg-dark-rgb: 251, 255, 228;
  --bg-card: #ffffff;
  --bg-card-rgb: 255, 255, 255;
  --bg-card-hover: #f5fbe6;
  --bg-surface: #fdfde8;
  --bg-input: #ffffff;

  --glass: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(var(--primary-rgb), 0.15);

  --text: #3D8D7A;
  --text-secondary: #A3D1C6;
  --text-muted: #8fa89f;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --primary-glow: rgba(61, 141, 122, 0.2);
  --leaf-grain: repeating-linear-gradient(92deg,
      transparent, transparent 3px,
      rgba(var(--primary-rgb), 0.03) 3px, rgba(var(--primary-rgb), 0.03) 6px);
}

body.dark-theme {
  /* DARK THEME (Sage Green) */
  --primary: #E8F0E8;
  --primary-light: #D4E5D4;
  --primary-dark: #C0D9C0;
  --primary-rgb: 232, 240, 232;
  --primary-light-rgb: 212, 229, 212;

  --accent: #91AC8F;
  --accent-light: #A8C9A5;
  --accent-dark: #7A9478;
  --accent-rgb: 145, 172, 143;

  --warm: #C4B5A0;
  --warm-light: #D9CCBD;
  --warm-rgb: 196, 181, 160;

  --bg-dark: #4B5945;
  --bg-dark-rgb: 75, 89, 69;
  --bg-card: #66785F;
  --bg-card-rgb: 102, 120, 95;
  --bg-card-hover: #7A8A72;
  --bg-surface: #5A6D51;
  --bg-input: #66785F;

  --glass: rgba(102, 120, 95, 0.92);
  --glass-border: rgba(145, 172, 143, 0.2);

  --text: #E8F0E8;
  --text-secondary: #D4E5D4;
  --text-muted: #A8C9A5;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --primary-glow: rgba(145, 172, 143, 0.25);
  --leaf-grain: repeating-linear-gradient(92deg,
      transparent, transparent 3px,
      rgba(var(--primary-rgb), 0.03) 3px, rgba(var(--primary-rgb), 0.03) 6px);
}


/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  background-image:
    var(--leaf-grain),
    radial-gradient(ellipse at 20% 50%, rgba(var(--primary-light-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Bangla text support */
[lang="bn"],
.bn {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ---------- Animated Background orbs ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.bg-glow .orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  top: -10%;
  left: -5%;
  animation-duration: 16s;
}

.bg-glow .orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--accent-light);
  bottom: -10%;
  right: -5%;
  animation-duration: 11s;
  animation-delay: 2s;
}

.bg-glow .orb:nth-child(3) {
  width: 320px;
  height: 320px;
  background: var(--warm);
  top: 40%;
  left: 50%;
  animation-duration: 18s;
  animation-delay: 5s;
  opacity: .10;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, -25px) scale(1.08);
  }

  100% {
    transform: translate(-18px, 18px) scale(.94);
  }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 75vw;
  max-width: 1200px;
  border-radius: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 28px;
  background: rgba(var(--bg-card-rgb), 0.65);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(var(--primary-rgb), 0.05);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  animation: slideDown .8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: .02em;
}

.navbar .logo .logo-icon {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, var(--accent-light), var(--primary));
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow:
    0 4px 12px rgba(var(--primary-rgb), 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.navbar .logo span {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(var(--primary-rgb), 0.04);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(var(--primary-rgb), 0.06);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-links a {
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary-dark);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  letter-spacing: .02em;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.06);
}

.nav-links a.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}

.nav-links a.active::after {
  display: none;
}

/* Enhancing the injected icon toggles to match this premium feel */
#themeToggle,
#langToggle {
  background: rgba(var(--primary-rgb), 0.05) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary-dark) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

#themeToggle:hover,
#langToggle:hover {
  background: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3) !important;
  border-color: var(--primary) !important;
}

@media (max-width: 900px) {
  .navbar {
    width: 95%;
    padding: 8px 16px;
    top: 16px;
  }
}


/* ---------- Nav User Badge ---------- */
.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.nav-user-name {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-logout-btn {
  padding: 7px 16px !important;
  font-size: .85rem !important;
}

@media (max-width: 768px) {
  .nav-user-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 0;
    padding: 8px 12px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: .04em;
  cursor: pointer;
}

/* Glossy sheen overlay */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 51%,
      rgba(var(--primary-rgb), 0.06) 100%);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity var(--transition);
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: linear-gradient(180deg,
      var(--accent) 0%,
      var(--primary) 40%,
      var(--primary-dark) 80%,
      var(--primary-dark) 100%);
  color: var(--bg-card);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 4px 14px rgba(var(--primary-rgb), 0.35),
    0 2px 4px rgba(var(--primary-rgb), 0.20),
    0 0 20px rgba(var(--primary-rgb), 0.20);
  border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
  background: linear-gradient(180deg,
      var(--warm) 0%,
      var(--primary-light) 40%,
      var(--primary-dark) 80%,
      var(--primary-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.10),
    0 6px 20px rgba(var(--primary-rgb), 0.45),
    0 0 28px rgba(var(--primary-rgb), 0.30);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.20),
    0 1px 4px rgba(var(--primary-rgb), 0.20);
}

.btn-outline {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.90) 0%,
      rgba(240, 250, 244, 0.80) 50%,
      rgba(220, 244, 230, 0.60) 100%);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.40);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(var(--primary-rgb), 0.10),
    0 4px 12px rgba(var(--primary-rgb), 0.10);
}

.btn-outline:hover {
  background: linear-gradient(180deg,
      rgba(var(--primary-rgb), 0.10) 0%,
      rgba(var(--primary-rgb), 0.04) 50%,
      rgba(255, 255, 255, 0.60) 100%);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 6px 18px rgba(var(--primary-rgb), 0.15),
    0 0 20px rgba(var(--primary-rgb), 0.15);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .88rem;
}

.btn-lg {
  padding: 17px 42px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* ---------- Glass Card → Light Panel ---------- */
.glass-card {
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(245, 252, 248, 0.99) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(var(--primary-rgb), 0.06),
    0 8px 32px rgba(var(--primary-rgb), 0.10),
    0 2px 8px rgba(var(--primary-rgb), 0.07);
}

/* ---------- Section Helpers ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(var(--primary-rgb), 0.10);
}

.section-title .gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--warm-light) 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(var(--primary-rgb), 0.15));
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 {
  transition-delay: .15s;
}

.fade-up.delay-2 {
  transition-delay: .3s;
}

.fade-up.delay-3 {
  transition-delay: .45s;
}

.fade-up.delay-4 {
  transition-delay: .6s;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: .88rem;
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: linear-gradient(180deg,
      var(--bg-surface) 0%,
      var(--bg-card) 40%,
      #f8fdfb 100%);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  box-shadow:
    inset 0 2px 6px rgba(var(--primary-rgb), 0.06),
    inset 0 1px 2px rgba(var(--primary-rgb), 0.04),
    0 1px 0 rgba(255, 255, 255, 0.90);
  caret-color: var(--primary);
}

.form-input:focus {
  border-color: rgba(var(--primary-rgb), 0.50);
  box-shadow:
    inset 0 2px 6px rgba(var(--primary-rgb), 0.06),
    inset 0 0 0 1px rgba(var(--primary-rgb), 0.20),
    0 0 12px rgba(var(--primary-rgb), 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 48px;
  background: linear-gradient(180deg,
      var(--bg-card-hover) 0%,
      #f8fce0 100%);
  border-top: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
  color: var(--text-muted);
  font-size: .9rem;
}

.footer a {
  color: var(--primary);
  transition: var(--transition);
  text-shadow: none;
}

.footer a:hover {
  color: var(--primary-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 18px;
    height: 60px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 11px;
    font-size: .83rem;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 14px 30px;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-card-hover);
  border-left: 1px solid rgba(var(--primary-rgb), 0.12);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #A3D1C6 0%, #3D8D7A 100%);
  border-radius: 2px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--warm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hamburger menu for mobile ---------- */
.nav-toggle {
  display: none;
  background: linear-gradient(180deg, var(--bg-card-hover), #f8fce0);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 2px 6px rgba(var(--primary-rgb), 0.12);
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    position: relative;
    z-index: 10000;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-card);
    flex-direction: column;
    padding: 100px 30px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    border-radius: 0;
    border: none;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    border-left: none;
    border-right: none;
    border-top: none;
  }
}

/* ---------- 3D HERO DASHBOARD ---------- */
.hero-3d-showcase {
  margin-top: 64px;
  width: 100%;
  max-width: 860px;
  perspective: 2000px;
  /* Crucial for 3D effect */
  position: relative;
  z-index: 10;
}

.dashboard-window {
  width: 100%;
  height: auto;
  min-height: 480px;
  background: rgba(var(--bg-card-rgb), 0.85);
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  box-shadow:
    -20px 40px 80px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 40px rgba(var(--primary-rgb), 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  /* Initial dramatic tilt */
  transform: rotateX(12deg) rotateY(-16deg) rotateZ(3deg) scale(0.95);
  transform-style: preserve-3d;

  /* Continuous floating animation */
  animation: float3DWindow 8s ease-in-out infinite alternate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes float3DWindow {
  0% {
    transform: rotateX(12deg) rotateY(-16deg) rotateZ(3deg) scale(0.95) translateY(0);
  }

  100% {
    transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg) scale(1) translateY(-15px);
  }
}

/* For mobile, flatten the 3D to maintain readability */
@media(max-width: 768px) {
  .hero-3d-showcase {
    perspective: none;
  }

  .dashboard-window {
    transform: none !important;
    animation: floatBadge 4s ease-in-out infinite alternate !important;
    min-height: 400px;
  }
}

.dash-header {
  height: 48px;
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.dash-dots {
  display: flex;
  gap: 8px;
}

.dash-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.dash-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.dash-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

.chat-row {
  display: flex;
  width: 100%;
}

.user-row {
  justify-content: flex-end;
}

.ai-row {
  justify-content: flex-start;
}

.chat-bubble {
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* Starting state for animation */
  opacity: 0;
  transform: translateY(10px) translateZ(20px);
  animation: popIn BubblePopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-bubble.user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-bottom-left-radius: 4px;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) translateZ(20px);
    /* Keeps it popping out slightly in 3D */
  }
}

/* Sequence timing */
.user-row {
  animation-delay: 1.5s;
}

/* Initial wait */
.loader-row .chat-bubble {
  animation-delay: 3s;
}

.loader-row {
  animation: hideLoader 0.1s forwards;
  animation-delay: 5s;
}

/* Hide loader when result comes */
.result-row .chat-bubble {
  animation-delay: 5.1s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes hideLoader {
  to {
    display: none;
    opacity: 0;
    position: absolute;
    visibility: hidden;
  }
}

/* Typing effect for the user text */
.typing-anim {
  overflow: hidden;
  white-space: nowrap;
  /* Instead of pure typing, we already pop it in, let's keep it simple to avoid text cutting early on mobile */
  /* We rely purely on the popIn delay */
}

/* Bouncing loader dots */
.dot-bounce {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  margin: 0 3px;
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.dot-bounce:nth-child(1) {
  animation-delay: -0.32s;
}

.dot-bounce:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounceDot {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mini Product Cards */
.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px) translateZ(30px);
  animation: cascadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mini-card:hover {
  background: rgba(var(--primary-rgb), 0.08);
  transform: translateY(-2px) translateZ(40px) !important;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.1);
}

.mc-1 {
  animation-delay: 5.5s;
}

.mc-2 {
  animation-delay: 5.8s;
}

.mc-3 {
  animation-delay: 6.1s;
}

@keyframes cascadeIn {
  to {
    opacity: 1;
    transform: translateY(0) translateZ(30px);
  }
}

.mini-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.mc-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text);
}

.mc-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}


/* ---------- 3D HERO COMPOSITION ELEMENTS ---------- */
.hero-3d-showcase {
  /* Update perspective context to contain all the child elements properly */
  perspective: 2500px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 860px;
  margin: 64px auto 0;
  min-height: 500px;
}

/* Ensure the main window remains central */
.dashboard-window {
  position: relative;
  z-index: 15;
  width: 90%;
}

/* The massive floating headphone overlapping the window */
.floating-hero-product {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 400px;
  max-width: 50vw;
  z-index: 25;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.3));
  transform: translateZ(100px) rotateY(-15deg) rotateX(5deg);
  animation: floatProduct 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatProduct {
  from {
    transform: translateZ(150px) rotateY(-15deg) rotateX(5deg) translateY(0);
  }

  to {
    transform: translateZ(150px) rotateY(-15deg) rotateX(5deg) translateY(-25px);
  }
}

/* 3D Floating Badges */
.float-3d {
  position: absolute;
  transform-style: preserve-3d;
  animation: floatBadge3D 5s ease-in-out infinite alternate;
}

.float-3d.left {
  bottom: 20px;
  left: -50px;
  transform: translateZ(80px) rotateY(10deg);
  animation-delay: 0.5s;
}

.float-3d.right {
  top: 40px;
  right: auto;
  left: 60%;
  transform: translateZ(60px) rotateY(-10deg);
  animation-delay: 1.2s;
}

@keyframes floatBadge3D {
  from {
    transform: translateZ(80px) rotateY(10deg) translateY(0);
  }

  to {
    transform: translateZ(80px) rotateY(10deg) translateY(-15px);
  }
}

.float-3d.right {
  animation: floatBadge3D2 4s ease-in-out infinite alternate;
}

@keyframes floatBadge3D2 {
  from {
    transform: translateZ(60px) rotateY(-10deg) translateY(0);
  }

  to {
    transform: translateZ(60px) rotateY(-10deg) translateY(-10px);
  }
}

/* Abstract Tech Rings */
.abstract-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
  z-index: 1;
  pointer-events: none;
}

.ring-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg) translateZ(-100px);
  animation: spinRing 30s linear infinite;
}

.ring-2 {
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(var(--primary-rgb), 0.05);
  transform: translate(-50%, -50%) rotateX(60deg) translateZ(-200px);
  animation: spinRing 45s linear infinite reverse;
}

@keyframes spinRing {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) translateZ(-100px) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(60deg) translateZ(-100px) rotateZ(360deg);
  }
}

@media(max-width: 900px) {
  .floating-hero-product {
    width: 250px;
    right: -20px;
    top: -20px;
  }

  .float-3d {
    display: none;
  }
}


/* ---------- LAPTOP VIDEO SHOWCASE ---------- */
.laptop-showcase {
  margin-top: 64px;
  width: 100%;
  max-width: 900px;
  perspective: 2500px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.macbook-mockup {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(5deg);
  animation: floatMacbook 6s ease-in-out infinite alternate;
}

@keyframes floatMacbook {
  from {
    transform: rotateX(5deg) translateY(0);
  }

  to {
    transform: rotateX(8deg) translateY(-20px);
  }
}

.macbook-lid {
  width: 100%;
  padding-bottom: 60%;
  /* Aspect Ratio */
  background: #111;
  border-radius: 24px 24px 0 0;
  position: relative;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 -10px 20px rgba(0, 0, 0, 0.1);
  border: 4px solid #333;
  border-bottom: none;
  overflow: hidden;

  /* The lid opening animation */
  transform: rotateX(-90deg);
  animation: openLid 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

@keyframes openLid {
  0% {
    transform: rotateX(-90deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

.macbook-screen {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 0px;
  background: #000;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.macbook-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  /* Wait for lid to open before showing the video frame */
  animation: turnOnScreen 0.4s ease forwards 2.3s;
}

@keyframes turnOnScreen {
  to {
    opacity: 1;
    filter: brightness(1);
  }

  from {
    opacity: 0.5;
    filter: brightness(0);
  }
}

.macbook-base {
  width: 110%;
  height: 24px;
  background: linear-gradient(180deg, #d3d3d3 0%, #b3b3b3 100%);
  border-radius: 0 0 24px 24px;
  margin-left: -5%;
  position: relative;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 4px 6px rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
}

.macbook-notch {
  width: 120px;
  height: 8px;
  background: #a3a3a3;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media(max-width: 900px) {
  .macbook-lid {
    padding-bottom: 75%;
  }

  .macbook-base {
    width: 100%;
    margin-left: 0;
    border-radius: 0 0 12px 12px;
    height: 16px;
  }

  .laptop-showcase {
    perspective: none;
  }

  .macbook-mockup {
    transform: none;
    animation: none;
  }

  .macbook-lid {
    transform: none;
    animation: none;
  }

  .macbook-screen img {
    opacity: 1;
    animation: none;
  }
}


/* ---------- MACBOOK SCREEN INTERNALS ---------- */
.macbook-screen {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 0px;
  background: #f8faf9;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.macbook-chat-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  /* Wait for lid to open before showing the interface */
  animation: turnOnScreen 0.4s ease forwards 2.3s;
}

.dash-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: white;
  overflow: hidden;
}

.chat-row {
  width: 100%;
  display: flex;
}

.user-row {
  justify-content: flex-end;
}

.ai-row {
  justify-content: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 85%;
  opacity: 0;
  transform: translateY(10px);
  animation: popInBubble 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-bubble.user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.chat-bubble.ai {
  background: #f0f4f2;
  color: var(--text);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-bottom-left-radius: 4px;
}

@keyframes popInBubble {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base delays on top of the 2.3s screen turn on */
.user-row .chat-bubble {
  animation-delay: 3s;
}

.loader-row .chat-bubble {
  animation-delay: 4.5s;
}

.loader-row {
  animation: hideLoader 0.1s forwards;
  animation-delay: 6.5s;
}

.result-row .chat-bubble {
  animation-delay: 6.6s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

@keyframes hideLoader {
  to {
    display: none;
    opacity: 0;
    position: absolute;
    visibility: hidden;
  }
}

/* Bouncing loader dots */
.dot-bounce {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 3px;
  animation: bounceDot 1.2s infinite ease-in-out both;
}

.dot-bounce:nth-child(1) {
  animation-delay: -0.32s;
}

.dot-bounce:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounceDot {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mini Cards Output inside Macbook */
.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: cascadeInMC 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mc-1 {
  animation-delay: 7s;
}

.mc-2 {
  animation-delay: 7.2s;
}

.mc-3 {
  animation-delay: 7.4s;
}

@keyframes cascadeInMC {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-card img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.mc-info h4 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.mc-price {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--primary);
}


/* ---------- AI ORBITAL SHOWCASE ---------- */
.hero-orbital-showcase {
  margin-top: 64px;
  width: 100%;
  max-width: 800px;
  height: 500px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  pointer-events: none;
}

/* AI Core Sphere */
.ai-core-engine {
  position: absolute;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.core-sphere {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #3DD9B6, #2EB89E, #1A9B7C);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(61, 217, 182, 0.9),
    0 0 30px rgba(61, 217, 182, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: breatheCore 4s ease-in-out infinite alternate;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.core-sphere svg {
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes breatheCore {
  from {
    transform: scale(0.95);
    box-shadow: 0 0 40px rgba(61, 217, 182, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
  }

  to {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(61, 217, 182, 1), inset 0 0 30px rgba(255, 255, 255, 0.9);
  }
}

/* Pulsing Radar Waves */
.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(61, 217, 182, 0.7);
  animation: radarPulse 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  box-shadow: 0 0 12px rgba(61, 217, 182, 0.5);
}

.core-pulse.p-1 {
  animation-delay: 0s;
}

.core-pulse.p-2 {
  animation-delay: 1s;
}

.core-pulse.p-3 {
  animation-delay: 2s;
}

@keyframes radarPulse {
  0% {
    width: 80px;
    height: 80px;
    opacity: 1;
    border-width: 4px;
  }

  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
    border-width: 1px;
  }
}

/* Orbital Paths */
.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px dashed rgba(163, 209, 198, 0.5);
  transform-style: preserve-3d;
  box-shadow: 0 0 20px rgba(163, 209, 198, 0.3);
}

.orbit-1 {
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  animation: spinOrbit 20s linear infinite;
}

.orbit-2 {
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  animation: spinOrbit 30s linear infinite reverse;
}

.orbit-3 {
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  animation: spinOrbit 45s linear infinite;
}

@keyframes spinOrbit {
  0% {
    transform: rotateZ(0deg) rotateX(65deg);
  }

  100% {
    transform: rotateZ(360deg) rotateX(65deg);
  }
}

/* The Orbiting Products */
.orbit-product {
  position: absolute;
  top: -30px;
  left: 50%;
  margin-left: -30px;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(61, 217, 182, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(61, 217, 182, 0.5);
  /* Counter-rotate to stay upright! */
}

.orbit-1 .orbit-product {
  animation: counterSpin 20s linear infinite reverse;
}

.orbit-2 .orbit-product {
  animation: counterSpin 30s linear infinite;
}

.orbit-3 .orbit-product {
  animation: counterSpin 45s linear infinite reverse;
}

@keyframes counterSpin {
  0% {
    transform: rotateX(-65deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(-65deg) rotateY(-360deg);
  }
}

.orbit-product img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

/* Floating Query Tags getting pulled into the core */
.query-tag {
  position: absolute;
  background: rgba(163, 209, 198, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 15;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.q-1 {
  top: 10%;
  left: 10%;
  animation: pullIntoCore 6s ease-in-out infinite;
}

.q-2 {
  bottom: 20%;
  right: 5%;
  animation: pullIntoCore 6s ease-in-out infinite 2s;
}

.q-3 {
  bottom: 10%;
  left: 20%;
  animation: pullIntoCore 6s ease-in-out infinite 4s;
}

@keyframes pullIntoCore {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(150px, 80px) scale(0.5);
    opacity: 0;
  }

  /* Approximate center pull */
}

@media(max-width: 768px) {
  .hero-orbital-showcase {
    height: 350px;
    transform: scale(0.7);
    margin-top: 32px;
  }

  .query-tag {
    display: none;
  }
}


/* Floating Language Toggle */
.floating-lang-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-lang-toggle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.6);
  background: var(--primary-dark);
}


/* ---------- PHYSICAL THEME SWITCH ---------- */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
  margin-right: 8px;
  /* Give it space */
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(var(--primary-rgb), 0.15);
  transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.slider .icon {
  color: var(--primary);
  opacity: 0.6;
  transition: .3s;
  z-index: 1;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

input:checked+.slider {
  background-color: var(--primary);
  border-color: var(--primary-dark);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
  transform: translateX(26px);
  background-color: #fff;
}

input:checked+.slider .moon {
  opacity: 1;
  color: #fff;
}

input:not(:checked)+.slider .sun {
  opacity: 1;
}

input:checked+.slider .sun {
  opacity: 0;
}

input:not(:checked)+.slider .moon {
  opacity: 0;
}

/* ---------- MARQUEE ---------- */
.testimonial-section {
  padding: 80px 0;
  background: rgba(var(--primary-rgb), 0.02);
  overflow: hidden;
}

.marquee-wrapper {
  margin-top: 40px;
  width: 100vw;
  overflow: hidden;
  position: relative;
  /* Blur edges */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  to {
    transform: translateX(calc(-50% - 10px));
  }

  /* Move halfway */
}

.review-card {
  width: 320px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card .stars {
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.review-card span {
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--primary);
  align-self: flex-end;
}

/* ---------- PROFILE TABS ---------- */
.profile-section {
  padding: 100px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-container {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.profile-tab:hover {
  background: rgba(var(--primary-rgb), 0.03);
}

.profile-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.2);
}

.profile-content {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: rgba(var(--primary-rgb), 0.02);
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.profile-text h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}

.profile-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.prof-match {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image img {
  max-width: 250px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: rotate(-5deg);
  transition: transform 0.4s ease;
}

.profile-image:hover img {
  transform: rotate(0deg) scale(1.05);
}

@media(max-width: 900px) {
  .profile-container {
    flex-direction: column;
    padding: 24px;
  }

  .profile-image img {
    max-width: 200px;
  }
}


/* ---------- DARK THEME CARDS POLISH ---------- */
body.dark-theme .feature-card,
body.dark-theme .category-card,
body.dark-theme .mission-card,
body.dark-theme .team-card,
body.dark-theme .tech-card,
body.dark-theme .slide {
  background: rgba(102, 120, 95, 0.6);
  border: 1px solid rgba(145, 172, 143, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

body.dark-theme .feature-card:hover,
body.dark-theme .category-card:hover,
body.dark-theme .mission-card:hover,
body.dark-theme .team-card:hover,
body.dark-theme .tech-card:hover,
body.dark-theme .slide:hover {
  background: rgba(122, 138, 114, 0.8);
  border-color: rgba(145, 172, 143, 0.4);
  box-shadow: 0 12px 40px rgba(145, 172, 143, 0.15);
  transform: translateY(-8px);
}

body.dark-theme .tech-card img {
  opacity: 1;
  visibility: visible;
  display: block;
}

body.dark-theme .tech-card span {
  color: #D4E5D4;
}

body.dark-theme .tech-card:hover span {
  color: #E8F0E8;
}

body.dark-theme .category-info {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .category-info h3 {
  color: #fff;
}

body.dark-theme .category-info p {
  color: var(--text-muted);
}

/* ---------- DARK THEME NAVBAR, BUTTONS & CONTACTS ---------- */
body.dark-theme .navbar {
  background: rgba(75, 89, 69, 0.8);
  border: 1px solid rgba(145, 172, 143, 0.25);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(145, 172, 143, 0.15);
}

body.dark-theme .navbar .logo {
  color: #91AC8F;
}

body.dark-theme .navbar .logo span {
  background: linear-gradient(180deg, #A5D6A7 0%, #91AC8F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-theme .nav-links {
  background: rgba(145, 172, 143, 0.1);
  border: 1px solid rgba(145, 172, 143, 0.15);
}

body.dark-theme .nav-links a {
  color: #D4E5D4;
}

body.dark-theme .nav-links a:hover {
  background: rgba(145, 172, 143, 0.2);
  color: #E8F0E8;
}

body.dark-theme .nav-links a.active {
  background: #91AC8F;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(145, 172, 143, 0.4);
}

body.dark-theme .floating-lang-toggle {
  color: #E8F0E8;
}

body.dark-theme .floating-lang-toggle:hover {
  color: #ffffff;
}

body.dark-theme .btn-primary {
  background: linear-gradient(180deg, #91AC8F 0%, #7A9478 40%, #66785F 80%, #66785F 100%);
  color: #ffffff;
  border: 1px solid #7A9478;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    0 4px 14px rgba(145, 172, 143, 0.3);
}

body.dark-theme .btn-primary:hover {
  background: linear-gradient(180deg, #A5D6A7 0%, #91AC8F 40%, #7A9478 80%, #7A9478 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(145, 172, 143, 0.4);
  transform: translateY(-1px);
}

body.dark-theme .btn-outline {
  background: linear-gradient(180deg, rgba(145, 172, 143, 0.15) 0%, rgba(145, 172, 143, 0.08) 50%, rgba(91, 109, 81, 0.1) 100%);
  color: #A5D6A7;
  border: 1px solid rgba(145, 172, 143, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(145, 172, 143, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-theme .btn-outline:hover {
  background: linear-gradient(180deg, rgba(145, 172, 143, 0.25) 0%, rgba(145, 172, 143, 0.15) 50%, rgba(145, 172, 143, 0.08) 100%);
  border-color: #91AC8F;
  color: #E8F0E8;
  box-shadow:
    inset 0 1px 0 rgba(145, 172, 143, 0.15),
    0 6px 18px rgba(145, 172, 143, 0.2);
  transform: translateY(-1px);
}

body.dark-theme .contact-box {
  background: rgba(102, 120, 95, 0.7);
  border: 1px solid rgba(145, 172, 143, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(145, 172, 143, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .contact-box h2 {
  color: #E8F0E8;
}

body.dark-theme .contact-box>p {
  color: #D4E5D4;
}

body.dark-theme .footer {
  background: linear-gradient(180deg, #5A6D51 0%, #4B5945 100%);
  border-top: 1px solid rgba(145, 172, 143, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(145, 172, 143, 0.1),
    0 -8px 24px rgba(0, 0, 0, 0.3);
  color: #D4E5D4;
}

body.dark-theme .footer a {
  color: #A8C9A5;
  transition: var(--transition);
}

body.dark-theme .footer a:hover {
  color: #D4E5D4;
}

body.dark-theme .text-gradient,
body.dark-theme .gradient {
  background: linear-gradient(135deg, #A5D6A7 0%, #D4E5D4 50%, #91AC8F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(145, 172, 143, 0.2));
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #E8F0E8;
}

body.dark-theme .section-title {
  color: #E8F0E8;
}

body.dark-theme .section-subtitle {
  color: #D4E5D4;
}

/* =====================================================
   ADVANCED CSS ANIMATIONS & DEMO SECTION
   ===================================================== */

/* ---------- DEMO SECTION ---------- */
.demo-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--accent-rgb), 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.demo-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

/* Video Showcase */
.video-showcase {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame {
  position: relative;
  width: 95%;
  height: 95%;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {

  0%,
  100% {
    transform: rotateX(5deg) rotateY(-8deg) translateZ(0);
  }

  50% {
    transform: rotateX(8deg) rotateY(8deg) translateZ(20px);
  }
}

.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 40px rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

/* Detailed UI Demo */
.demo-ui-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 0;
  background: var(--bg-card);
}

/* Sidebar */
.demo-sidebar {
  background: linear-gradient(180deg,
      rgba(var(--primary-rgb), 0.02) 0%,
      rgba(var(--primary-rgb), 0.04) 100%);
  border-right: 1px solid rgba(var(--primary-rgb), 0.12);
  padding: 16px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 8px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-chip {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  background: transparent;
  font-size: 0.65rem;
  color: var(--text-muted);
  animation: slideIn 0.6s ease-out backwards;
}

.demo-chip.active-chip {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.demo-slider {
  width: 100%;
  height: 3px;
  background: rgba(var(--primary-rgb), 0.2);
  border-radius: 2px;
  position: relative;
  margin: 4px 0;
}

.demo-slider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--primary);
  border-radius: 2px;
  animation: slideRight 3s ease-in-out infinite;
}

@keyframes slideRight {

  0%,
  100% {
    width: 50%;
  }

  50% {
    width: 80%;
  }
}

.budget-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 4px;
  margin-top: 4px;
}

/* Chat Center */
.demo-chat-center {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-left: 1px solid rgba(var(--primary-rgb), 0.12);
  border-right: 1px solid rgba(var(--primary-rgb), 0.12);
}

.demo-messages {
  flex: 1;
  padding: 16px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
}

.demo-message {
  display: flex;
  gap: 8px;
  animation: fadeInUp 0.6s ease-out backwards;
}

.demo-message.user-message {
  justify-content: flex-end;
  animation-delay: 0.4s;
}

.demo-message.bot-message {
  justify-content: flex-start;
  animation-delay: 0.8s;
}

.demo-message.response-message {
  animation-delay: 1.4s;
}

.demo-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  animation: avatarSlide 0.5s ease-out backwards;
}

.demo-msg-avatar.user-avatar {
  background: linear-gradient(135deg, var(--warm), #d97706);
}

.demo-msg-avatar.bot-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

@keyframes avatarSlide {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.demo-msg-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: 85%;
  animation: bubbleIn 0.5s ease-out backwards;
}

.demo-msg-bubble.user-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.demo-msg-bubble.bot-bubble {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  color: var(--text);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 12px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-6px) scale(1.1);
    opacity: 1;
  }
}

.message-text {
  word-break: break-word;
}

.response-text {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.result-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--bg-surface);
  border-radius: 6px;
  align-items: center;
  animation: slideInLeft 0.5s ease-out backwards;
}

.result-item:nth-child(2) {
  animation-delay: 0.1s;
}

.result-item:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--warm));
  border-radius: 4px;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.product-price {
  font-size: 0.65rem;
  color: var(--primary-light);
  font-weight: 700;
}

/* Demo Input Bar */
.demo-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.demo-input-field {
  flex: 1;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.2);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  }
}

.demo-send-btn {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  animation: sendPulse 2s ease-in-out infinite;
}

@keyframes sendPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Right Panel Stats */
.demo-right-panel {
  background: linear-gradient(180deg,
      rgba(var(--primary-rgb), 0.04) 0%,
      rgba(var(--accent-rgb), 0.04) 100%);
  border-left: 1px solid rgba(var(--primary-rgb), 0.12);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 8px 4px;
  animation: statsAppear 0.6s ease-out backwards;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes statsAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
}

/* Floating Orbs */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbDrift 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: -50px;
  right: -100px;
  animation-duration: 8s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  bottom: -50px;
  left: -50px;
  animation-duration: 10s;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--warm);
  top: 50%;
  right: 10%;
  animation-duration: 12s;
  animation-delay: 4s;
}

@keyframes orbDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, -40px) scale(1.1);
  }

  66% {
    transform: translate(30px, 40px) scale(0.9);
  }
}

/* Pulse Ring & Glow Effect */
.pulse-ring {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  animation: expandPulse 3s ease-out infinite;
  pointer-events: none;
}

@keyframes expandPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.glow-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  border-radius: 20px;
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

/* Demo Features */
.demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-badge {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 16px;
  animation: slideInRight 0.8s ease-out both;
  transition: all 0.3s ease;
  align-items: center;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.highlight-badge:nth-child(2) {
  animation-delay: 0.2s;
}

.highlight-badge:nth-child(3) {
  animation-delay: 0.4s;
}

.highlight-badge:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.15) 100%);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

.badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
  border-radius: 10px;
  color: var(--primary);
  flex-shrink: 0;
  animation: bounceIcon 2s ease-in-out infinite;
}

.badge-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@keyframes bounceIcon {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

.badge-text h4 {
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.badge-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .demo-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-showcase {
    height: 400px;
  }

  .demo-ui-container {
    grid-template-columns: 180px 1fr 100px;
  }
}

@media (max-width: 768px) {
  .demo-section {
    padding: 40px 20px;
  }

  .demo-container {
    gap: 30px;
    padding: 20px;
  }

  .video-showcase {
    height: 300px;
  }

  .demo-ui-container {
    grid-template-columns: 120px 1fr;
  }

  .demo-right-panel {
    display: none;
  }

  .demo-features {
    gap: 12px;
  }

  .highlight-badge {
    padding: 16px;
  }
}


/* ============================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   ============================================ */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .section {
    padding: 70px 28px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-3d-showcase {
    max-width: 100%;
  }

  .floating-hero-product {
    width: 250px;
    right: -30px;
    top: -10px;
  }

  .personalized-section {
    padding: 70px 28px;
  }

  .personalized-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .personal-card {
    min-height: 340px;
  }

  .profile-section {
    padding: 70px 28px;
  }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  .section {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .navbar {
    padding: 6px 14px;
    min-width: 92vw;
    top: 12px;
  }

  .navbar .logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .navbar .logo .logo-iconBrand,
  .navbar .logo .logo-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .nav-actions {
    margin-right: 8px !important;
  }

  .theme-switch {
    width: 46px;
    height: 24px;
  }

  .slider:before {
    height: 18px;
    width: 18px;
  }

  input:checked+.slider:before {
    transform: translateX(22px);
  }

  .floating-lang-toggle {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
    bottom: 16px;
    left: 16px;
  }

  .hero-orbital-showcase {
    height: 300px;
    transform: scale(0.6);
    margin-top: 20px;
  }

  .hero-3d-showcase {
    min-height: 350px;
    margin: 32px auto 0;
  }

  .dashboard-window {
    min-height: 300px;
  }

  .floating-hero-product {
    width: 180px;
    right: -10px;
    top: -15px;
  }

  .float-3d {
    display: none;
  }

  .abstract-ring {
    display: none;
  }

  .personalized-section {
    padding: 50px 16px;
  }

  .personalized-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .personal-card {
    min-height: 280px;
  }

  .personal-info h3 {
    font-size: 1.2rem;
  }

  .personal-info p {
    font-size: 0.85rem;
  }

  .footer {
    padding: 22px 16px;
    font-size: 0.82rem;
  }

  .profile-section {
    padding: 50px 16px;
  }

  .profile-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .profile-text h3 {
    font-size: 1.4rem;
  }

  .review-card {
    width: 260px;
    padding: 18px;
  }

  .btn {
    padding: 11px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 13px 28px;
    font-size: 0.95rem;
  }
}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .section {
    padding: 40px 12px;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 36px;
  }

  .navbar {
    padding: 4px 10px;
    min-width: 94vw;
    top: 8px;
    border-radius: 60px;
  }

  .navbar .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .navbar .logo .logo-iconBrand,
  .navbar .logo .logo-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .nav-toggle {
    padding: 3px 8px;
  }

  .nav-links {
    top: 52px;
    padding: 12px;
  }

  .nav-links a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .hero-orbital-showcase {
    height: 240px;
    transform: scale(0.5);
    margin-top: 12px;
  }

  .hero-3d-showcase {
    min-height: 260px;
    margin: 20px auto 0;
  }

  .dashboard-window {
    min-height: 220px;
  }

  .dash-body {
    padding: 16px;
    gap: 14px;
  }

  .chat-bubble {
    padding: 10px 14px;
    font-size: 0.85rem;
    max-width: 95%;
  }

  .personalized-section {
    padding: 40px 12px;
  }

  .personalized-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .personal-card {
    min-height: 260px;
  }

  .personal-info {
    padding: 20px 16px;
  }

  .personal-info h3 {
    font-size: 1.15rem;
  }

  .personal-info p {
    font-size: 0.82rem;
  }

  .footer {
    padding: 18px 12px;
    font-size: 0.78rem;
  }

  .profile-section {
    padding: 40px 12px;
  }

  .profile-container {
    padding: 16px;
    gap: 16px;
  }

  .profile-text h3 {
    font-size: 1.2rem;
  }

  .review-card {
    width: 220px;
    padding: 14px;
  }

  .review-card p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

  /* Demo section */
  .demo-container {
    padding: 12px;
  }

  .video-showcase {
    height: 240px;
  }

  .demo-ui-container {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-right-panel {
    display: none;
  }

  .demo-features {
    flex-direction: column;
    gap: 10px;
  }

  .highlight-badge {
    padding: 12px;
  }
}