/* =====================================================
   Cloud Techies — Custom Visual Enhancements v2
   ===================================================== */

:root {
  --ct-blue:   #0a6ead;
  --ct-cyan:   #31afe4;
  --ct-dark:   #061728;
  --ct-navy:   #0b2d52;
  --ct-green:  #47f0b1;
  --ct-glow:   rgba(49,175,228,.35);
}

/* ─────────────────────────────────────────────────────
   HEADER — glassmorphism on scroll
───────────────────────────────────────────────────── */
.index-page.scrolled .header {
  background: rgba(6,23,40,.80) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(49,175,228,.18);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

/* ─────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────── */
.hero.section.dark-background {
  background: linear-gradient(135deg, #061728 0%, #0b2d52 50%, #0a5a8a 100%) !important;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* particle canvas */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(49,175,228,.12);
  border: 1px solid rgba(49,175,228,.35);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #31afe4;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #47f0b1;
  box-shadow: 0 0 8px #47f0b1;
  animation: dotPulse 1.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .6; }
}

/* headline + typewriter */
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-typewriter {
  background: linear-gradient(90deg, #31afe4, #47f0b1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 3px solid #31afe4;
  animation: blink .75s step-end infinite;
  padding-right: 4px;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* subtext */
.hero-sub {
  color: rgba(255,255,255,.75) !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  margin: 20px 0 8px !important;
}

/* buttons */
.btn-get-started {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0a6ead, #31afe4) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 13px 30px !important;
  border-radius: 50px !important;
  box-shadow: 0 6px 24px rgba(49,175,228,.4);
  transition: all .35s ease !important;
  font-size: .95rem;
  text-decoration: none;
}
.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(49,175,228,.6) !important;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff !important;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: all .35s ease;
  font-size: .95rem;
  text-decoration: none;
}
.btn-explore:hover {
  background: rgba(49,175,228,.2);
  border-color: #31afe4;
  transform: translateY(-3px);
}

/* hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.hero-stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-item > span:nth-child(2) {
  color: #31afe4;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  display: inline;
}
.hero-stat-item .stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
  margin: 0 28px 0 0;
}

/* hero image */
.hero-img-wrap {
  position: relative;
  display: inline-block;
}
.hero-img-wrap img {
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(49,175,228,.3));
  max-width: 100%;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* AI chip labels */
.ai-chip {
  position: absolute;
  background: rgba(10,30,60,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(49,175,228,.35);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: chipFloat 4s ease-in-out infinite;
}
.ai-chip i { color: #31afe4; }
.chip-1 { top: 10%; right: -10%; animation-delay: 0s; }
.chip-2 { bottom: 20%; right: -12%; animation-delay: 1.5s; }
.chip-3 { bottom: 8%;  left: 5%;   animation-delay: .8s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255,255,255,.5);
  font-size: 1.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
  text-decoration: none;
  transition: color .3s;
}
.hero-scroll a:hover { color: #31afe4; }
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ─────────────────────────────────────────────────────
   HEADER BUTTON
───────────────────────────────────────────────────── */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: linear-gradient(135deg, #0a6ead, #31afe4) !important;
  border: none;
  box-shadow: 0 2px 14px rgba(49,175,228,.4);
  transition: all .3s ease !important;
}
.header .btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(49,175,228,.55) !important;
}

/* ─────────────────────────────────────────────────────
   SECTION TITLES
───────────────────────────────────────────────────── */
.section-title h2 {
  background: linear-gradient(135deg, var(--ct-blue) 0%, var(--ct-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────────────── */
.about-list {
  list-style: none;
  padding: 0; margin: 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(49,175,228,.08);
  font-weight: 500;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i {
  color: #31afe4;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(49,175,228,.5));
}

/* ─────────────────────────────────────────────────────
   AI FEATURES SECTION
───────────────────────────────────────────────────── */
.ai-features {
  background: #f0f6fc !important;
}

.ai-card {
  background: #fff;
  border: 1px solid rgba(49,175,228,.15);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.ai-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, #31afe4, transparent);
  transition: left .55s ease;
}
.ai-card:hover::before { left: 100%; }
.ai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(10,110,173,.14), 0 0 0 1px rgba(49,175,228,.3);
  border-color: rgba(49,175,228,.4);
}

/* featured card */
.ai-card-featured {
  background: linear-gradient(145deg, #061728 0%, #0b2d52 100%);
  border-color: rgba(49,175,228,.35);
  color: #fff;
}
.ai-card-featured h4,
.ai-card-featured p,
.ai-card-featured .demo-note { color: rgba(255,255,255,.85); }

.ai-card-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
}

.ai-card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10,110,173,.12), rgba(49,175,228,.18));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.ai-card-icon i {
  font-size: 1.7rem;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-card-featured .ai-card-icon {
  background: rgba(49,175,228,.15);
}
.ai-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ai-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: #666;
  margin-bottom: 18px;
}

/* demo areas */
.ai-demo-area {
  background: rgba(240,246,252,.7);
  border: 1px solid rgba(49,175,228,.12);
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}
.ai-card-featured .ai-demo-area {
  background: rgba(255,255,255,.07);
  border-color: rgba(49,175,228,.2);
}

/* progress bars */
.ai-demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  margin-bottom: 8px;
  color: #555;
}
.ai-card-featured .ai-demo-bar { color: rgba(255,255,255,.7); }
.demo-bar {
  flex: 1;
  height: 8px;
  background: rgba(49,175,228,.12);
  border-radius: 50px;
  overflow: hidden;
}
.demo-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1.5s ease;
}
.fill-red   { background: linear-gradient(90deg, #e74c3c, #ff7675); }
.fill-green { background: linear-gradient(90deg, #00b894, #47f0b1); }
.demo-val   { font-weight: 700; min-width: 30px; }
.demo-val.before { color: #e74c3c; }
.demo-val.after  { color: #00b894; }
.demo-note {
  font-size: .78rem;
  margin: 8px 0 0;
  color: #555;
}

/* sparkline */
.ai-sparkline-wrap { margin-bottom: 8px; }
.ai-sparkline { width: 100%; height: 60px; }
.spark-legend {
  display: flex;
  gap: 16px;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}
.leg-actual span, .leg-pred span {
  display: inline-block;
  width: 20px; height: 2px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}
.leg-actual span { background: #31afe4; }
.leg-pred span   { background: #47f0b1; }

/* NLP demo */
.ai-nlp-demo .nlp-input,
.ai-nlp-demo .nlp-output { margin-bottom: 10px; }
.nlp-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  font-weight: 700;
  margin-bottom: 4px;
}
.nlp-text {
  font-size: .82rem;
  color: #444;
  background: rgba(49,175,228,.06);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.5;
}
.nlp-text em { color: #0a6ead; font-style: normal; font-weight: 700; }
.nlp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.tag-blue   { background: rgba(10,110,173,.12); color: #0a6ead; }
.tag-green  { background: rgba(71,240,177,.15);  color: #00b894; }
.tag-purple { background: rgba(155,89,182,.12);  color: #8e44ad; }

/* Computer Vision demo */
.cv-demo { text-align: center; }
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.cv-cell {
  height: 44px;
  border-radius: 8px;
  background: rgba(49,175,228,.07);
  border: 1.5px solid rgba(49,175,228,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #00b894;
  transition: all .3s;
}
.cv-cell.detected {
  background: rgba(71,240,177,.12);
  border-color: #47f0b1;
  animation: cvPulse 2s ease-in-out infinite;
}
@keyframes cvPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(71,240,177,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(71,240,177,0); }
}
.cv-label { font-size: .78rem; color: #555; margin: 0; }

/* Mini chat */
.mini-chat { display: flex; flex-direction: column; gap: 8px; }
.mini-msg {
  font-size: .8rem;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.4;
}
.mini-msg.user {
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.mini-msg.bot {
  background: rgba(49,175,228,.09);
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.bot-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Recommendation items */
.rec-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #444;
}
.rec-item i { color: #00b894; flex-shrink: 0; }
.rec-score {
  margin-left: auto;
  font-weight: 700;
  color: #0a6ead;
  background: rgba(10,110,173,.1);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: .75rem;
}

/* ─────────────────────────────────────────────────────
   WHY US
───────────────────────────────────────────────────── */
.faq-item.faq-active {
  border-left: 3px solid var(--ct-cyan);
  box-shadow: -4px 0 20px rgba(49,175,228,.15);
}
.faq-item h3 span { color: var(--ct-cyan); }

/* ─────────────────────────────────────────────────────
   SKILLS progress bars
───────────────────────────────────────────────────── */
.skills .progress-bar {
  background: linear-gradient(90deg, var(--ct-blue), var(--ct-cyan)) !important;
  box-shadow: 0 0 10px rgba(49,175,228,.5);
  border-radius: 6px;
}

/* ─────────────────────────────────────────────────────
   SERVICES cards
───────────────────────────────────────────────────── */
.service-item {
  background: #fff;
  border: 1px solid rgba(49,175,228,.15);
  border-radius: 18px;
  padding: 30px 24px !important;
  transition: all .4s ease !important;
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ct-cyan), transparent);
  transition: left .5s ease;
}
.service-item:hover::before { left: 100%; }
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10,110,173,.15), 0 0 0 1px rgba(49,175,228,.25);
  border-color: rgba(49,175,228,.4);
}
.service-item .icon i {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px rgba(49,175,228,.4));
  transition: transform .3s ease;
}
.service-item:hover .icon i { transform: scale(1.2) rotate(-5deg); }

/* ─────────────────────────────────────────────────────
   WORK PROCESS
───────────────────────────────────────────────────── */
.steps-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .4s ease, box-shadow .4s ease;
  background: #fff;
}
.steps-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(10,110,173,.14);
}
.steps-content .steps-number {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.steps-content .feature-item i { color: var(--ct-cyan); }

/* ─────────────────────────────────────────────────────
   CALL TO ACTION
───────────────────────────────────────────────────── */
#call-to-action {
  background: linear-gradient(135deg, #061728 0%, #0b2d52 50%, #0a6ead 100%) !important;
  position: relative;
  overflow: hidden;
}
#call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(49,175,228,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-btn {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan)) !important;
  border-radius: 50px !important;
  padding: 14px 38px !important;
  font-weight: 600 !important;
  letter-spacing: .5px !important;
  box-shadow: 0 4px 20px rgba(49,175,228,.4) !important;
  transition: all .4s ease !important;
}
.cta-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(49,175,228,.6) !important;
}

/* ─────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────── */
.contact .info-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10,110,173,.1);
}
.contact .info-item {
  padding: 24px;
  border-bottom: 1px solid rgba(49,175,228,.1);
  transition: background .3s;
}
.contact .info-item:last-of-type { border-bottom: none; }
.contact .info-item:hover { background: rgba(49,175,228,.04); }
.contact .info-item i {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px rgba(49,175,228,.35));
}

.php-email-form {
  background: #fff;
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: 0 8px 48px rgba(10,110,173,.12);
  border: 1px solid rgba(49,175,228,.12);
}
.php-email-form .form-control {
  border-radius: 12px;
  border: 1.5px solid rgba(49,175,228,.2);
  padding: 13px 16px;
  font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.php-email-form .form-control:focus {
  border-color: var(--ct-cyan);
  box-shadow: 0 0 0 3px rgba(49,175,228,.13);
  outline: none;
}
.php-email-form label {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ct-blue);
}
.php-email-form button[type=submit] {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 48px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .35s ease;
  box-shadow: 0 4px 20px rgba(49,175,228,.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.php-email-form button[type=submit]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(49,175,228,.55);
}

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ct-blue), var(--ct-cyan), var(--ct-blue)) 1;
}
.footer .social-links a {
  transition: all .3s ease;
}
.footer .social-links a:hover {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan));
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(49,175,228,.4);
}

/* ─────────────────────────────────────────────────────
   SCROLL TOP
───────────────────────────────────────────────────── */
.scroll-top {
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-cyan)) !important;
  box-shadow: 0 4px 16px rgba(49,175,228,.45);
}

/* ─────────────────────────────────────────────────────
   AI CHAT WIDGET
───────────────────────────────────────────────────── */
.ai-chat-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(49,175,228,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: bubblePop .4s ease;
}
.ai-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(49,175,228,.65);
}
.ai-chat-bubble.hidden { display: none; }
@keyframes bubblePop {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.bubble-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #e74c3c;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.ai-chat-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 370px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0,0,0,.2), 0 0 0 1px rgba(49,175,228,.15);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.ai-chat-widget.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.ai-chat-header {
  background: linear-gradient(135deg, #061728, #0b2d52);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.ai-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(49,175,228,.3);
  animation: avatarGlow 2s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(49,175,228,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(49,175,228,.15); }
}
.ai-chat-title { flex: 1; }
.ai-chat-title strong { display: block; color: #fff; font-size: .95rem; }
.ai-chat-title small { color: rgba(255,255,255,.55); font-size: .75rem; }
.ai-online-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #47f0b1;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 6px #47f0b1;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.ai-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: color .3s;
}
.ai-chat-close:hover { color: #fff; }

.ai-chat-body {
  flex: 1;
  max-height: 320px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafd;
  scrollbar-width: thin;
  scrollbar-color: rgba(49,175,228,.3) transparent;
}

.ai-msg {
  display: flex;
  max-width: 88%;
}
.ai-msg span {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .86rem;
  line-height: 1.5;
}
.ai-msg.bot { align-self: flex-start; }
.ai-msg.bot span {
  background: #fff;
  color: #333;
  border: 1px solid rgba(49,175,228,.15);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ai-msg.user { align-self: flex-end; }
.ai-msg.user span {
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* typing indicator */
.typing-indicator span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px !important;
}
.typing-indicator .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #31afe4;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: .2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-8px); }
}

.ai-chat-footer {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(49,175,228,.1);
  background: #fff;
}
.ai-chat-footer input {
  flex: 1;
  border: 1.5px solid rgba(49,175,228,.2);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: .88rem;
  outline: none;
  transition: border-color .3s;
}
.ai-chat-footer input:focus { border-color: #31afe4; }
.ai-chat-footer button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6ead, #31afe4);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ai-chat-footer button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(49,175,228,.5);
}

/* ─────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.4rem; }
  .chip-1, .chip-2, .chip-3 { display: none; }
  .ai-chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .ai-chat-bubble { right: 16px; bottom: 16px; }
}
@media (max-width: 576px) {
  .php-email-form { padding: 24px 18px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-stats { gap: 12px; }
  .hero-stat-item { padding-right: 0; }
  .hero-stat-divider { display: none; }
}
