/* ==========================================================================
   Nurani Digital (NUDI) — Company Profile
   Palette: #0D182A / #18263B / #2563EB / #38BDF8 / #F3F6FA / #FFFFFF
   Font: Poppins
   ========================================================================== */

:root {
  --navy-950: #0D182A;
  --navy-800: #18263B;
  --blue-600: #2563EB;
  --sky-400: #38BDF8;
  --gray-50: #F3F6FA;
  --white: #FFFFFF;

  --ink: #0D182A;
  --muted: #5B6B85;
  --muted-light: rgba(243, 246, 250, .72);
  --border: #E4EAF3;

  --grad-blue: linear-gradient(135deg, var(--sky-400), var(--blue-600));
  --grad-dark: linear-gradient(160deg, var(--navy-800), var(--navy-950));

  --shadow-sm: 0 2px 10px rgba(13, 24, 42, .06);
  --shadow-md: 0 12px 30px rgba(13, 24, 42, .10);
  --shadow-lg: 0 24px 60px rgba(13, 24, 42, .18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
  transition: transform .25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .42);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blue-600);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 24, 42, .0);
  transition: background .35s ease, box-shadow .35s ease, height .3s ease;
}

.site-header.scrolled {
  background: rgba(13, 24, 42, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(13, 24, 42, .18);
  height: 68px;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: .02em;
}

.brand-text strong {
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.nav-link {
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: color .2s ease, background .2s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, .35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, .25), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 42px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-400);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .2);
}

.eyebrow-dark {
  color: var(--blue-600);
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--muted-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

.hero-stats strong::after {
  content: '+';
}

.hero-stats span {
  color: var(--muted-light);
  font-size: .85rem;
}

.hero-media {
  position: relative;
}

.hero-illustration {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 100px;
  z-index: 1;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--sky-400);
  border-radius: 4px;
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% {
    opacity: 1;
    top: 8px;
  }

  70% {
    opacity: 0;
    top: 22px;
  }

  100% {
    opacity: 0;
    top: 8px;
  }
}

/* ---------- Brand / slogan section ---------- */
.brand-section {
  background: var(--gray-50);
  padding: 90px 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 22px;
}

.brand-lockup-mark {
  width: 100px;
  height: 100px;
}

.brand-nudi {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -.02em;
  margin: 0;
}

.brand-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
}

.brand-divider {
  width: 1px;
  height: 150px;
  background: var(--border);
  justify-self: center;
}

.slogan-block h2 {
  font-size: 2rem;
  color: var(--navy-950);
  margin-bottom: 16px;
}

.slogan-block p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy-950);
  margin: 14px 0 14px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.section-head .eyebrow {
  justify-content: center;
}

/* ---------- Services ---------- */
.services {
  padding: 100px 0;
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

.service-card:hover p {
  color: var(--muted-light);
}

.service-card:hover .service-link {
  color: var(--sky-400);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--grad-blue);
  color: #fff;
  margin-bottom: 22px;
  transition: transform .3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon-alt {
  background: linear-gradient(135deg, #8b7bd8, #6b5fc4);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy-950);
  margin-bottom: 10px;
  transition: color .3s ease;
}

.service-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  transition: color .3s ease;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap .25s ease, color .3s ease;
}

.service-link:hover {
  gap: 10px;
}

/* ---------- About / Why ---------- */
.about {
  background: var(--gray-50);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy-950);
  margin: 14px 0 18px;
}

.about-copy>p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-950);
  font-weight: 500;
  font-size: .94rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
}

.about-points li svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

.why-card {
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 26px;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.why-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 20px 18px;
  transition: background .25s ease, transform .25s ease;
}

.why-stat:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-3px);
}

.why-stat svg {
  width: 24px;
  height: 24px;
  color: var(--sky-400);
  margin-bottom: 10px;
}

.why-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
}

.why-stat strong::after {
  content: '+';
}

.why-stat strong[data-suffix]::after {
  content: '';
}

.why-stat span {
  font-size: .82rem;
  color: var(--muted-light);
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding: 100px 0;
  background: #fff;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: all .25s ease;
}

.filter-btn:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.filter-btn.active {
  background: var(--grad-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
  background: var(--navy-950);
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 22px;
  background: #fff;
}

.portfolio-info .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37, 99, 235, .1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.portfolio-info h3 {
  font-size: 1.05rem;
  color: var(--navy-950);
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--gray-50);
  padding: 100px 0;
}

.testi-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform .5s ease;
}

.testi-card {
  flex: 0 0 100%;
  margin: 0;
  padding: 44px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.testi-card p {
  font-size: 1.1rem;
  color: var(--navy-950);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
}

.testi-card figcaption strong {
  display: block;
  color: var(--navy-950);
  font-size: .95rem;
}

.testi-card figcaption span {
  color: var(--muted);
  font-size: .85rem;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testi-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}

.testi-dots button.active {
  background: var(--blue-600);
  transform: scale(1.3);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad-blue);
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
  max-width: 520px;
}

.cta-inner p {
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy-950);
  margin: 14px 0 16px;
}

.contact-info>p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 420px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy-950);
  font-weight: 500;
}

.icon-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--blue-600);
}

.icon-badge svg {
  width: 19px;
  height: 19px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy-950);
  transition: all .25s ease;
}

.social-row a svg {
  width: 18px;
  height: 18px;
}

.social-row a:hover {
  background: var(--grad-blue);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.form-note {
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-600);
  min-height: 1.2em;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #fff;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand p {
  color: var(--muted-light);
  margin-top: 14px;
  font-size: .92rem;
}

.footer-col h4 {
  font-size: .95rem;
  margin-bottom: 18px;
  color: #fff;
}

.footer-col p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-light);
  font-size: .88rem;
  margin-bottom: 12px;
}

.footer-col p svg {
  color: var(--sky-400);
  flex-shrink: 0;
}

.footer-col .social-row a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: #fff;
}

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom-inner {
  text-align: center;
  color: var(--muted-light);
  font-size: .82rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating actions (WhatsApp + AI chat) ---------- */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
}

.fab svg {
  width: 27px;
  height: 27px;
}

.fab-wa {
  background: #25D366;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
}

.fab-ai {
  background: var(--grad-blue);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .45);
}

.fab-ai::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, .5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.92);
    opacity: .9;
  }

  80% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ---------- AI Chat window ---------- */
.ai-chat {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 1300;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
  border: 1px solid var(--border);
}

.ai-chat.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-header {
  background: var(--grad-dark);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-title img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.ai-chat-title strong {
  display: block;
  font-size: .92rem;
}

.ai-chat-title span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--muted-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  opacity: .8;
}

.ai-chat-close:hover {
  opacity: 1;
}

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--gray-50);
}

.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.5;
}

.msg-bot {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--grad-blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-replies button {
  background: #fff;
  border: 1.5px solid var(--blue-600);
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 100px;
  transition: all .2s ease;
}

.quick-replies button:hover {
  background: var(--blue-600);
  color: #fff;
}

.typing {
  display: flex;
  gap: 4px;
  padding: 12px 15px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: .2s;
}

.typing span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.ai-chat-input {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.ai-chat-input input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 11px 16px;
  font-size: .87rem;
  outline: none;
  transition: border-color .2s ease;
}

.ai-chat-input input:focus {
  border-color: var(--blue-600);
}

.ai-chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-media {
    order: 1;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand-lockup {
    justify-content: center;
  }

  .brand-divider {
    width: 100%;
    height: 1px;
  }

  .slogan-block p {
    margin-left: auto;
    margin-right: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-points {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13, 24, 42, .98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 26px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .35s ease, opacity .3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 10px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }

  .floating-actions {
    right: 16px;
    bottom: 16px;
  }

  .ai-chat {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 88px;
  }

  .fab {
    width: 52px;
    height: 52px;
  }
}