.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(3.5rem, 7vh, 5rem) var(--edge) clamp(1.25rem, 3vh, 2rem);
  color: var(--white);
  background: #000000;
  direction: ltr !important;
}

/* Watermark half-icon on the right with gentle tilt - highlighted corporate gold */
.footer::before {
  content: '';
  position: absolute;
  top: 8%;
  right: -8vw;
  width: min(52rem, 70vw);
  height: min(52rem, 70vw);
  background: linear-gradient(135deg, rgba(244, 227, 193, 0.95) 0%, rgba(201, 154, 75, 1) 45%, rgba(140, 103, 43, 0.8) 100%);
  -webkit-mask: url('../assets/logo/sanatizi-icon.png') center / contain no-repeat;
  mask: url('../assets/logo/sanatizi-icon.png') center / contain no-repeat;
  opacity: 0.11;
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* ReactBits LineWaves Background (whisper-quiet low opacity) */
.footer__bg-waves {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.055;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

.footer__waves-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.footer__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(3rem, 8vh, 5rem);
  direction: ltr !important;
}

.footer__eyebrow { color: var(--gold-300); margin-bottom: 1.2rem; }
.footer__big-wrap {
  display: inline-block;
  position: relative;
  max-width: 100%;
}
.footer__big {
  display: inline-block;
  font-size: clamp(2.8rem, 8.4vw, 8.6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--white);
  text-decoration: none;
}
.footer__big .w {
  display: inline-block;
  white-space: nowrap;
}
.footer__big .u {
  display: inline-block;
  position: relative;
  cursor: crosshair;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), text-shadow 0.18s;
}
.footer__big .u:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}
.footer__big .w.is-accent .u:hover {
  text-shadow: 0 0 18px rgba(233, 205, 148, 0.65);
}
.footer__big .u.gold { transition: background-position 1.2s var(--ease-out); }

/* Tech CAD Dimensions HUD overlay on hover */
.tech-cad-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.18s ease,
              transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
              left 0.12s cubic-bezier(0.2, 0.8, 0.3, 1),
              top 0.12s cubic-bezier(0.2, 0.8, 0.3, 1),
              width 0.12s cubic-bezier(0.2, 0.8, 0.3, 1),
              height 0.12s cubic-bezier(0.2, 0.8, 0.3, 1);
  z-index: 10;
}

.tech-cad-hud.is-visible {
  opacity: 1;
  transform: scale(1);
}

.tech-cad-hud.is-gold {
  border-color: rgba(233, 205, 148, 0.88);
  box-shadow: 0 0 14px rgba(233, 205, 148, 0.22);
}

/* Dimension label on top border */
.tech-cad-dim {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 5px);
  font-family: 'Space Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  background: rgba(12, 13, 16, 0.88);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.tech-cad-hud.is-gold .tech-cad-dim {
  color: #e9cd94;
  border-color: rgba(233, 205, 148, 0.4);
  background: rgba(20, 18, 14, 0.92);
}

/* Corner square anchor handles (5x5px) */
.tech-cad-corner {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border: 1px solid #0e0f12;
  box-sizing: border-box;
}
.tech-cad-hud.is-gold .tech-cad-corner {
  background: #f6e7c4;
}

.tech-cad-corner--tl { top: -3px; left: -3px; }
.tech-cad-corner--tr { top: -3px; right: -3px; }
.tech-cad-corner--bl { bottom: -3px; left: -3px; }
.tech-cad-corner--br { bottom: -3px; right: -3px; }

/* Bottom center anchor handle stem */
.tech-cad-stem {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}
.tech-cad-hud.is-gold .tech-cad-stem {
  background: rgba(233, 205, 148, 0.65);
}

.tech-cad-anchor {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 5px;
  height: 5px;
  background: #ffffff;
  border: 1px solid #0e0f12;
  transform: translate(-50%, 0);
  box-sizing: border-box;
}
.tech-cad-hud.is-gold .tech-cad-anchor {
  background: #f6e7c4;
}

.footer__benefit-wrap {
  max-width: 44rem;
  margin-top: 1.8rem;
}

.footer__benefit {
  font-size: clamp(0.96rem, 1.15vw, 1.14rem);
  line-height: 1.72;
  color: rgba(255, 253, 249, 0.74);
  margin: 0 0 1.5rem;
  font-weight: 350;
  letter-spacing: -0.01em;
}

.footer__cta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer__cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 253, 249, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-spring);
}

.footer__cta-pill:hover {
  color: var(--gold-100);
  border-color: rgba(233, 205, 148, 0.45);
  background: rgba(233, 205, 148, 0.08);
  transform: translateY(-2px);
}

.footer__cta-pill .ai {
  color: var(--gold-300);
}

.footer__info { justify-self: end; }

.footer__bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 253, 249, 0.08);
  direction: ltr !important;
}

.footer__social { display: flex; justify-content: center; gap: 0.5rem; padding-bottom: 0.7rem; flex-wrap: wrap; }
.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 253, 249, 0.7);
  border: 1px solid rgba(255, 253, 249, 0.1);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease-spring);
}
.footer__social a:hover, .footer__social a:focus-visible { color: var(--gold-200); border-color: rgba(233, 205, 148, 0.45); background: rgba(233, 205, 148, 0.06); transform: translateY(-2px); }

.footer__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 253, 249, 0.6);
}

.footer-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__info-trigger {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(220, 230, 242, 0.18);
  color: rgba(230, 238, 248, 0.75);
  cursor: pointer;
  padding: 0;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.footer__info-trigger:hover,
.footer__info-trigger:focus-visible,
.footer-copy:hover .footer__info-trigger {
  color: #ffffff;
  border-color: rgba(220, 230, 242, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(210, 222, 236, 0.14) 50%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.4), 0 0 12px rgba(220, 232, 248, 0.18);
  transform: scale(1.1);
}

.sugar-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: min(340px, 86vw);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 28, 32, 0.96) 0%, rgba(16, 17, 20, 0.98) 100%);
  border: 1px solid rgba(215, 226, 240, 0.20);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 253, 249, 0.90);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 30;
}

.sugar-tooltip a {
  color: #cdd8e6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}

.sugar-tooltip a:hover {
  color: #ffffff;
}

.sugar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(16, 17, 20, 0.98) transparent transparent transparent;
}

.footer-copy:hover .sugar-tooltip,
.footer-copy:focus-within .sugar-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.footer__top-link { display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255, 253, 249, 0.75); transition: color 0.3s; text-decoration: none; }
.footer__top-link:hover { color: var(--gold-200); }

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__info { justify-self: stretch; display: flex; justify-content: flex-end; }
  .footer__bar { grid-template-columns: 1fr; justify-items: center; }
  .footer__meta { padding-bottom: 0; }
}
@media (max-width: 520px) {
  .dock { gap: 3px; padding: 0 5px; height: 35px; border-radius: 10px; }
  .dock__item--silver { --size: 22px !important; }
  .dock__item--panel { --size: 26px !important; }
}

/* --- Arapça Metin Yönlendirmeleri (Düzen / Kolonlar Sabit, Sadece Metinler RTL) --- */
[lang="ar"] .footer__eyebrow {
  direction: rtl;
  unicode-bidi: isolate;
  display: inline-block;
}

[lang="ar"] .footer__big {
  direction: rtl;
  unicode-bidi: isolate;
  display: inline-block;
}

[lang="ar"] .footer__benefit {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  line-height: 1.85;
}

[lang="ar"] .contact-card__title-main,
[lang="ar"] .contact-card__title-sub {
  direction: rtl;
  unicode-bidi: isolate;
}

[lang="ar"] .contact-card__col-title {
  direction: rtl;
  unicode-bidi: isolate;
  display: inline-block;
}

[lang="ar"] .contact-card__v {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
}

[lang="ar"] .contact-trigger__label {
  direction: rtl;
  unicode-bidi: isolate;
}

[lang="ar"] .dock__label {
  direction: rtl;
  unicode-bidi: isolate;
}

[lang="ar"] .footer-copy__text {
  direction: rtl;
  unicode-bidi: isolate;
}

[lang="ar"] .sugar-tooltip {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

