/* ══════════════════════════════════════════════
   TRANSMED — Luxury Medical Centre One-Pager
   ══════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #0a1628;
  --navy-light: #12243d;
  --navy-mid:   #1a3355;
  --gold:       #2ec4b6;
  --gold-light: #5eddd1;
  --gold-dark:  #1a9e92;
  --teal:       #2ec4b6;
  --teal-dark:  #1a9e92;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --gray-100:   #e8ecf1;
  --gray-200:   #d0d6df;
  --gray-500:   #7a8599;
  --gray-700:   #3d4a5c;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 8px 32px rgba(10, 22, 40, .12);
  --shadow-lg:  0 20px 60px rgba(10, 22, 40, .18);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .5em;
}

h2 em {
  color: var(--gold);
  font-style: normal;
}

h3 { font-size: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46, 196, 182, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 196, 182, .5);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── Section shared styles ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-tag::before { right: calc(100% + 12px); }
.section-tag::after  { left:  calc(100% + 12px); }

/* ═══════════════ NAVBAR ═══════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 22, 40, .95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: var(--transition);
}
.logo:hover .logo-img { transform: scale(1.05); }
.logo strong { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-right: 12px;
}
.lang-btn {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: transparent;
  color: var(--gray-500);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: .5px;
}
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}
.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, .4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════ HERO ═══════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(10,22,40,.92) 0%, rgba(18,36,61,.85) 50%, rgba(26,51,85,.8) 100%),
    url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?w=1920&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(46,196,182,.08) 0%, transparent 60%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: .6; }
  100% { opacity: 0; transform: translateY(-400px) scale(1); }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding-top: 80px;
}

.hero-tag {
  font-size: 1.15rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

#hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,.7);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-style: normal;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .8s .7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeUp .8s .9s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s 1.1s forwards;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════ ABOUT ═══════════════ */
#about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(10,22,40,.04), rgba(10,22,40,.12));
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.about-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
}

.about-image-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-image-media.active {
  opacity: 1;
}

.about-text p {
  margin-bottom: 1.2em;
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.about-text p:first-child::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  min-width: 0;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.feature-card p {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ═══════════════ SERVICES ═══════════════ */
#services {
  padding: 80px 0 120px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/ship.jpg') center/cover no-repeat;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}
#services::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,.06) 0%, transparent 70%);
  z-index: 0;
}
#services > .container {
  position: relative;
  z-index: 1;
}

#services .section-header h2 { color: var(--white); }

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

.service-card {
  padding: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(46,196,182,.15), 0 0 60px rgba(46,196,182,.06);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(46,196,182,.08);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,196,182,.2), rgba(46,196,182,.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.service-card p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  line-height: 1.7;
}

/* ═══════════════ CERTIFICATES ═══════════════ */
#certificates {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

#certificates::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/certificates.jpg') center/cover no-repeat;
  background-position: center left;
  opacity: .48;
  pointer-events: none;
}

#certificates::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,250,252,.55) 0%, rgba(248,250,252,.72) 38%, rgba(248,250,252,.9) 68%, rgba(248,250,252,.96) 100%);
  pointer-events: none;
}

#certificates .container {
  position: relative;
  z-index: 1;
}

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

.cert-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.cert-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.cert-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.cert-card p {
  font-size: .85rem;
  color: var(--gray-500);
}

.cert-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.cert-note i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 2px;
}
.cert-note strong { color: var(--gold-light); }

/* ═══════════════ ACCREDITATION ═══════════════ */
#accreditation {
  padding: 120px 0;
  background: var(--white);
}

.accred-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.accred-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: 0 10px 40px rgba(46,196,182,.3);
}

.accred-content h2 { margin-bottom: 20px; }

.accred-content > p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ── Certificate Gallery ── */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
  align-items: stretch;
}

.cert-gallery-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
}
.cert-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.cert-gallery-img {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--white);
}
.cert-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .5s ease;
}
.cert-gallery-item:hover .cert-gallery-img img {
  transform: scale(1.03);
}

.cert-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}
.cert-gallery-item:hover .cert-gallery-overlay {
  opacity: 1;
}
.cert-gallery-overlay i {
  font-size: 2rem;
  color: var(--gold);
}
.cert-gallery-overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cert-gallery-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  flex: 1;
}

.cert-gallery-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.cert-gallery-info h3 {
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.cert-gallery-info p {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cert-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  transform: scale(.9);
  transition: transform .4s ease;
}
.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: rgba(46,196,182,.3);
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════ CONTACTS ═══════════════ */
#contacts {
  padding: 120px 0;
  background: var(--navy);
}

#contacts .section-header h2 { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(46,196,182,.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46,196,182,.2), rgba(46,196,182,.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-card h3 {
  color: var(--white);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--gold-light);
  transition: var(--transition);
}
.contact-card a:hover { color: var(--gold); }

.contact-note {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  font-style: normal;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  border: 2px solid rgba(255,255,255,.08);
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand p {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  color: rgba(255,255,255,.3);
  font-size: .78rem;
}

/* ═══════════════ CHATBOT ═══════════════ */
.chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(46,196,182,.4);
  transition: var(--transition);
}
.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(46,196,182,.5);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e74c3c;
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.chatbot {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(10,22,40,.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.95);
  transition: var(--transition);
}
.chatbot.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.chatbot-header strong {
  display: block;
  font-size: .9rem;
}

.chatbot-status {
  font-size: .72rem;
  color: var(--teal);
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.chatbot-close:hover { color: var(--white); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
}

.chat-message {
  display: flex;
  gap: 8px;
  max-width: 85%;
}
.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .85rem;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: var(--off-white);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  padding: 0 20px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestion-chip {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: .78rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.chatbot-input {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  gap: 8px;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px 16px;
  font-size: .85rem;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.chatbot-input input:focus { border-color: var(--gold); }

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.chatbot-input button:hover { transform: scale(1.1); }

/* ═══════════════ ANIMATIONS ═══════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ TYPING DOTS ═══════════════ */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
  animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-slideshow { min-height: 420px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10,22,40,.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
  }

  .hero-stats { gap: 30px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px; }

  .cert-grid { grid-template-columns: 1fr; }
  .cert-gallery { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }

  .about-slideshow { min-height: 320px; }

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

  .chatbot {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 90px;
  }
}

@media (max-width: 480px) {
  #hero { padding-bottom: 40px; }
  #hero h1 { font-size: 3rem; }
  .hero-content { padding-top: 60px; align-items: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .scroll-indicator { display: none; }
  h2 { font-size: 1.8rem; }
  #about, #services, #certificates, #accreditation, #contacts {
    padding: 80px 0;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
