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

:root {
  --base: #c38e64; /* Core Brand */
  --light-1: #faf7f2; /* Warm White - Primary BG */
  --light-2: #f2e9e1; /* Soft Tan - Secondary BG */
  --footer-bg: #ded0c5; /* Soft Tan-Gray - Footer BG */
  --dark-1: #3d2b1f; /* Deep Warm Brown - Main Text */
  --accent: #6b4a3a; /* Subtle Hover/Depth */
  --white: #ffffff;
  --muted: #8e7d72;

  /* Backward Compatibility Names */
  --black: var(--dark-1);
  --gold: var(--base);
  --white-bg: var(--light-1);
  --cream: var(--light-2);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--light-1); /* Light Base Theme */
  color: var(--dark-1); /* Dark Text for Light Theme */
  font-family: "Verdana", sans-serif;
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Noise dokusu katmanı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.15;
}

/* ── TİPOGRAFİ ── */
.display {
  font-family: "Verdana", sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

.display em {
  font-style: italic;
  color: var(--gold);
}

/* ── ORTAK BÖLÜM YARDIMCILARI ── */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: "Verdana", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; /* Bolder for section titles in Verdana */
  line-height: 1.15;
  color: var(--dark-1);
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-body {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--off-black);
  margin-bottom: 1.5rem;
}

.divider-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 149, 110, 0.3),
    transparent
  );
}

/* ── BUTONLAR ── */
.btn-primary {
  background: var(--base);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-family: "Verdana", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--dark-1);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}

.btn-ghost::after {
  content: "→";
  transition: transform 0.3s;
}

.btn-ghost:hover {
  color: var(--gold);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* ── FADE-UP ANİMASYONU ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  transition:
    background 0.4s,
    border-color 0.4s;
  background: var(--light-1);
  border-bottom: 1px solid rgba(195, 142, 100, 0.1);
}

#navbar.scrolled {
  background: var(--light-1);
  border-bottom-color: rgba(201, 149, 110, 0.12);
}

.nav-logo {
  font-family: "Verdana", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.nav-logo span {
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 0.55rem 1.4rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.3s,
    color 0.3s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--light-1);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: "Verdana", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-1);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--dark-1);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 75% at 72% 50%,
      rgba(201, 149, 110, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 35% 55% at 18% 80%,
      rgba(201, 149, 110, 0.04) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #0d0c0a 0%, #131210 50%, #0f0e0c 100%);
}

.hero-vline {
  position: absolute;
  right: 37%;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 149, 110, 0.25) 30%,
    rgba(201, 149, 110, 0.25) 70%,
    transparent
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-card-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 37%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3.5rem;
}

.hero-card {
  background: linear-gradient(
    135deg,
    rgba(201, 149, 110, 0.07),
    rgba(201, 149, 110, 0.02)
  );
  border: 1px solid rgba(201, 149, 110, 0.18);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 320px;
}

.hero-card-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.stat {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 149, 110, 0.1);
}

.stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stat-n {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-l {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   MARQUEE
   ============================================================ */
#marquee {
  background: var(--gold);
  padding: 0.85rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}

.marquee-inner span {
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 500;
  padding: 0 2rem;
}

.marquee-inner .dot {
  color: rgba(13, 12, 10, 0.35);
  padding: 0 0.3rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   HAKKIMIZDA
   ============================================================ */
#about {
  position: relative;
}

.about-quote-box {
  background: linear-gradient(135deg, var(--dark), var(--off-black));
  border: 1px solid rgba(201, 149, 110, 0.14);
  padding: 3.5rem;
  position: relative;
}

.about-quote-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 3rem;
  width: 4rem;
  height: 3px;
  background: var(--gold);
}

.about-quote {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.about-quote-by {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 3rem;
}

.pillar {
  padding: 1.4rem;
  border: 1px solid rgba(201, 149, 110, 0.09);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.pillar:hover {
  border-color: rgba(201, 149, 110, 0.3);
  background: rgba(201, 149, 110, 0.04);
}

.pillar-icon {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.pillar-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.pillar-text {
  font-size: 0.77rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   HİZMETLER
   ============================================================ */
#services {
  background: var(--off-black);
  position: relative;
}

#services::before,
#services::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 149, 110, 0.25),
    transparent
  );
}

#services::before {
  top: 0;
}

#services::after {
  bottom: 0;
}

.services-header {
  max-width: 1440px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.services-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(201, 149, 110, 0.08);
}

.svc-card {
  background: var(--off-black);
  padding: 2.8rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.svc-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}

.svc-card:hover {
  background: var(--dark);
}

.svc-card:hover::after {
  width: 100%;
}

.svc-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: block;
}

.svc-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.svc-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   EĞİTİM
   ============================================================ */
#training {
  position: relative;
}

.training-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201, 149, 110, 0.08);
  border: 1px solid rgba(201, 149, 110, 0.22);
  padding: 0.5rem 1.2rem;
  margin-bottom: 2rem;
}

.training-badge span {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.training-badge::before {
  content: "◉";
  color: var(--gold);
  font-size: 0.5rem;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

.curriculum {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.curriculum-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(201, 149, 110, 0.07);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.curriculum-item:hover {
  border-color: rgba(201, 149, 110, 0.22);
  background: rgba(201, 149, 110, 0.04);
}

.c-num {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--gold-dim);
  min-width: 2rem;
}

.c-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--cream-dim);
  padding-top: 0.1rem;
}

/* ============================================================
   YORUMLAR
   ============================================================ */
#testimonials {
  background: linear-gradient(135deg, var(--dark), var(--off-black));
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '"';
  position: absolute;
  top: 0;
  right: 4rem;
  font-family: "Playfair Display", serif;
  font-size: 22rem;
  color: rgba(201, 149, 110, 0.04);
  line-height: 1;
  pointer-events: none;
}

.testimonials-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.testi-card {
  padding: 2.5rem;
  border: 1px solid rgba(201, 149, 110, 0.1);
  transition: border-color 0.3s;
}

.testi-card:hover {
  border-color: rgba(201, 149, 110, 0.28);
}

.testi-stars {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.4rem;
}

.testi-text {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
}

.testi-name {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   İLETİŞİM
   ============================================================ */
#contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-detail {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(201, 149, 110, 0.08);
}

.c-detail:first-child {
  padding-top: 0;
}

.c-ico {
  color: var(--gold);
  font-size: 1rem;
  min-width: 1.5rem;
  margin-top: 0.15rem;
}

.c-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}

.c-val {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--cream-dim);
}

.c-val a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.c-val a:hover {
  color: var(--gold);
}

.map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.map-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-label::before {
  content: "◎";
}

.map-frame {
  border: 1px solid rgba(201, 149, 110, 0.18);
  overflow: hidden;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.3s;
}

.map-frame:hover {
  filter: grayscale(0%) contrast(1.05);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--off-black);
  border-top: 1px solid rgba(201, 149, 110, 0.1);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Bootstrap is handling responsive structure and layouts */

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-1);
  z-index: 10000;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hourglassBackground {
  position: relative;
  background-color: var(--light-2);
  height: 130px;
  width: 130px;
  border-radius: 50%;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hourglassContainer {
  position: relative;
  width: 50px;
  height: 70px;
  -webkit-animation: hourglassRotate 2s ease-in 0s infinite;
  animation: hourglassRotate 2s ease-in 0s infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hourglassContainer div,
.hourglassContainer div:before,
.hourglassContainer div:after {
  transform-style: preserve-3d;
}

@-webkit-keyframes hourglassRotate {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(180deg);
  }
}

@keyframes hourglassRotate {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(180deg);
  }
}

.hourglassCapTop,
.hourglassCapBottom {
  position: absolute;
  left: 3px;
  width: 44px;
  height: 4px;
  background-color: var(--dark-1);
  border-radius: 2px;
}

.hourglassCapTop {
  top: 0;
}
.hourglassCapBottom {
  bottom: 0;
}

.hourglassGlassTop {
  transform: rotateX(90deg);
  position: absolute;
  top: -16px;
  left: 3px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  opacity: 0.15;
}

.hourglassGlass {
  perspective: 100px;
  position: absolute;
  top: 32px;
  left: 20px;
  width: 10px;
  height: 6px;
  background-color: var(--muted);
  opacity: 0.3;
}

.hourglassGlass:before,
.hourglassGlass:after {
  content: "";
  display: block;
  position: absolute;
  background-color: var(--muted);
  left: -17px;
  width: 44px;
  height: 28px;
}

.hourglassGlass:before {
  top: -27px;
  border-radius: 0 0 25px 25px;
}

.hourglassGlass:after {
  bottom: -27px;
  border-radius: 25px 25px 0 0;
}

.hourglassCurves:before,
.hourglassCurves:after {
  content: "";
  display: block;
  position: absolute;
  top: 32px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dark-1);
  animation: hideCurves 2s ease-in 0s infinite;
}

.hourglassCurves:before {
  left: 15px;
}
.hourglassCurves:after {
  left: 29px;
}

@keyframes hideCurves {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.hourglassSandStream:before {
  content: "";
  display: block;
  position: absolute;
  left: 24px;
  width: 2px;
  background-color: var(--base);
  animation: sandStream1 2s ease-in 0s infinite;
}

.hourglassSandStream:after {
  content: "";
  display: block;
  position: absolute;
  top: 36px;
  left: 19px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--base);
  animation: sandStream2 2s ease-in 0s infinite;
}

@keyframes sandStream1 {
  0% {
    height: 0;
    top: 35px;
  }
  50% {
    height: 0;
    top: 45px;
  }
  60% {
    height: 35px;
    top: 8px;
  }
  85% {
    height: 35px;
    top: 8px;
  }
  100% {
    height: 0;
    top: 8px;
  }
}

@keyframes sandStream2 {
  0%,
  50%,
  91%,
  100% {
    opacity: 0;
  }
  51%,
  90% {
    opacity: 1;
  }
}

.hourglassSand:before,
.hourglassSand:after {
  content: "";
  display: block;
  position: absolute;
  left: 6px;
  background-color: var(--base);
}

.hourglassSand:before {
  top: 8px;
  width: 38px;
  border-radius: 3px 3px 30px 30px;
  animation: sandFillup 2s ease-in 0s infinite;
}

.hourglassSand:after {
  border-radius: 30px 30px 3px 3px;
  animation: sandDeplete 2s ease-in 0s infinite;
}

@keyframes sandFillup {
  0% {
    opacity: 0;
    height: 0;
  }
  60% {
    opacity: 1;
    height: 0;
  }
  100% {
    opacity: 1;
    height: 17px;
  }
}

@keyframes sandDeplete {
  0% {
    opacity: 0;
    top: 45px;
    height: 17px;
    width: 38px;
    left: 6px;
  }
  1% {
    opacity: 1;
    top: 45px;
    height: 17px;
    width: 38px;
    left: 6px;
  }
  24% {
    opacity: 1;
    top: 45px;
    height: 17px;
    width: 38px;
    left: 6px;
  }
  25% {
    opacity: 1;
    top: 41px;
    height: 17px;
    width: 38px;
    left: 6px;
  }
  50% {
    opacity: 1;
    top: 41px;
    height: 17px;
    width: 38px;
    left: 6px;
  }
  90% {
    opacity: 1;
    top: 41px;
    height: 0;
    width: 10px;
    left: 20px;
  }
}

/* ── HERO SPLIT REVEAL SLIDER ── */
#hero-slider {
  overflow: hidden;
}

.carousel-inner,
.carousel-item {
  height: 100vh;
  min-height: 700px;
}

.split-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  overflow: hidden;
}

.split-image {
  flex: 0.8;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
  background: var(--light-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw; /* Shrink image impact */
}

.image-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 15px;
  background: var(--white);
  border: 1px solid rgba(195, 142, 100, 0.12);
  box-shadow:
    0 10px 30px rgba(61, 43, 31, 0.05),
    0 40px 100px rgba(61, 43, 31, 0.08);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.split-content {
  flex: 1.2;
  background: var(--light-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(30px);
  transition: all 1s ease 0.4s;
}

/* Zigzag Layout */
.carousel-item:nth-child(even) .split-wrapper {
  flex-direction: row-reverse;
}

.carousel-item:nth-child(even) .split-image {
  clip-path: inset(0 0 0 100%);
}

/* Active State Triggers */
.carousel-item.active .split-image {
  clip-path: inset(0 0 0 0);
}

.carousel-item.active .split-image img {
  transform: scale(1);
}

.carousel-item.active .split-content {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Typography Refinements */
.hero-subtitle {
  font-family: "Verdana", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-desc {
  max-width: 540px;
  line-height: 1.85;
}

.hero-btn-ghost {
  border: 1px solid var(--base);
  color: var(--base);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.hero-btn-ghost:hover {
  background: var(--base);
  color: var(--white);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 2.5rem;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(195, 142, 100, 0.2);
}

/* Enhanced Navigation Buttons - Fixed Position Corner */
.carousel-control-prev,
.carousel-control-next {
  width: 54px;
  height: 54px;
  background: var(--white);
  border: 1px solid rgba(195, 142, 100, 0.15);
  border-radius: 50%;
  top: auto;
  bottom: 25px;
  transform: none;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  box-shadow: 0 10px 30px rgba(61, 43, 31, 0.08);
}

.carousel-control-prev {
  left: auto;
  right: 110px;
}
.carousel-control-next {
  right: 40px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(67%) sepia(19%) saturate(836%)
    hue-rotate(345deg) brightness(85%) contrast(87%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--base);
  border-color: var(--base);
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(195, 142, 100, 0.2);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* Indicators Styling */
.hero-slider .carousel-indicators {
  bottom: 40px;
  z-index: 120;
}

.carousel-indicators [button],
.carousel-indicators button {
  width: 30px;
  height: 3px;
  background-color: var(--base);
  opacity: 0.3;
  transition: all 0.4s ease;
  border: none;
  margin: 0 5px;
}

.carousel-indicators .active {
  width: 60px;
  opacity: 1;
}

/* Responsive Stacking */
@media (max-width: 991px) {
  .carousel-inner,
  .carousel-item {
    height: auto;
    min-height: 80vh; /* Better than 100vh on mobile */
  }

  .split-wrapper {
    flex-direction: column !important;
    padding-top: 4.5rem;
    gap: 1.5rem;
  }

  .split-image {
    height: 42vh;
    flex: none;
    padding: 0 1.5rem;
    margin-top: 0;
  }

  .image-inner {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(195, 142, 100, 0.15);
    box-shadow: 0 18px 45px rgba(61, 43, 31, 0.1);
  }

  .split-image img {
    transform: none;
    object-fit: cover;
  }

  .split-content {
    padding: 0 1.5rem 3rem;
    flex: none;
    text-align: left;
    align-items: flex-start;
    background: transparent;
  }

  .carousel-item .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 2rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 44px;
    height: 44px;
    bottom: 20px;
    top: auto;
    position: absolute;
    z-index: 130;
  }
  .carousel-control-prev {
    left: 20px;
    right: auto;
  }
  .carousel-control-next {
    right: 20px;
    left: auto;
  }

  .carousel-indicators {
    bottom: 25px !important;
  }

  .carousel-indicators button {
    width: 20px;
    height: 2px;
  }

  .carousel-indicators .active {
    width: 40px;
  }
  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .carousel-inner,
  .carousel-item {
    min-height: 72vh;
  }

  .split-image {
    height: 34vh;
    padding: 0 1rem;
  }

  .split-content {
    padding: 0 1rem 2.4rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    line-height: 1.2;
  }

  .carousel-item .section-title {
    font-size: clamp(1.35rem, 5.4vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.1rem;
  }

  .hero-desc,
  .section-body {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .section-label {
    font-size: 0.52rem;
    letter-spacing: 0.26em;
    margin-bottom: 1rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 430px) {
  .carousel-item .section-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-desc,
  .section-body {
    font-size: 0.79rem;
  }
}

/* ── LOCOMOTIVE SCROLL BASE ── */
html.has-scroll-smooth {
  overflow: hidden;
}

html.has-scroll-dragging {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
  position: relative;
}

.c-scrollbar {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  transform-origin: center right;
  transition:
    transform 0.3s,
    opacity 0.3s;
  opacity: 0;
  z-index: 1000;
}
.c-scrollbar:hover {
  transform: scaleX(1.4);
}
.c-scrollbar_thumb {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--base);
  opacity: 0.5;
  width: 100%;
  border-radius: 10px;
  margin: 2px;
  cursor: grab;
}
.has-scroll-dragging .c-scrollbar_thumb {
  cursor: grabbing;
}
.has-scroll-scrolling .c-scrollbar,
.has-scroll-dragging .c-scrollbar,
.c-scrollbar:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════
   PREMIUM ANIMATION SYSTEM
   Senior-level scroll-driven animations
   ══════════════════════════════════════════ */

/* ── 1. TEXT LINE MASK REVEAL ── 
   Text slides up from behind an overflow mask, line by line */
.reveal-text {
  overflow: hidden;
  position: relative;
}
.reveal-text > * {
  transform: translateY(120%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-text.is-inview > * {
  transform: translateY(0);
}

/* ── 2. CLIP-PATH SECTION WIPE ──
   Sections reveal with geometric clip-path animations */
.reveal-wipe {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-wipe.is-inview {
  clip-path: inset(0 0 0% 0);
}

.reveal-wipe-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-wipe-left.is-inview {
  clip-path: inset(0 0% 0 0);
}

.reveal-wipe-right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-wipe-right.is-inview {
  clip-path: inset(0 0 0 0%);
}

/* Diagonal wipe for dramatic effect */
.reveal-wipe-diagonal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-wipe-diagonal.is-inview {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── 3. 3D PERSPECTIVE CARD REVEAL ──
   Cards rotate from a 3D plane into position */
.reveal-3d {
  perspective: 1200px;
}
.reveal-3d-card {
  opacity: 0;
  transform: rotateY(15deg) rotateX(8deg) translateZ(-80px) scale(0.92);
  transform-origin: left center;
  transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-3d-card.is-inview {
  opacity: 1;
  transform: rotateY(0) rotateX(0) translateZ(0) scale(1);
}

/* ── 4. COUNTER ANIMATION ──
   Numbers count up when entering viewport */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── 5. STAGGERED TIMELINE ──
   Each child element enters with increasing delay */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.stagger-children.is-inview > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.stagger-children.is-inview > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.stagger-children.is-inview > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.stagger-children.is-inview > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.stagger-children.is-inview > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}
.stagger-children.is-inview > *:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

/* ── 6. SPLIT TEXT CHARACTER ANIMATION ──
   Each character animates individually (set by JS) */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(5deg);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.is-inview .split-char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ── 7. PARALLAX IMAGE ZOOM ──
   Slow Ken Burns effect while in view */
.parallax-zoom img {
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.parallax-zoom.is-inview img {
  transform: scale(1.08);
}

/* ── 8. MAGNETIC BUTTON EFFECT ── */
.magnetic-btn {
  position: relative;
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.magnetic-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--base);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.magnetic-btn:hover::after {
  inset: -8px;
  opacity: 0.3;
}

/* ── 9. HORIZONTAL LINE REVEAL ──
   A decorative line that expands from center */
.line-reveal {
  position: relative;
  overflow: hidden;
}
.line-reveal::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--base);
  transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateX(-50%);
}
.line-reveal.is-inview::before {
  width: 100%;
}

/* ── 10. ROTATE-IN REVEAL ── */
.reveal-rotate {
  opacity: 0;
  transform: rotate(-3deg) translateY(40px) scale(0.96);
  transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: bottom left;
}
.reveal-rotate.is-inview {
  opacity: 1;
  transform: rotate(0) translateY(0) scale(1);
}

/* ── SCROLL SPEED DEFAULTS ── */
[data-scroll] {
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ── SECTION DIVIDER ANIMATION ── */
.section-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--base), transparent);
  margin: 0 auto;
  transition: width 2s cubic-bezier(0.23, 1, 0.32, 1);
}
.section-divider.is-inview {
  width: 120px;
}

@media (max-width: 768px) {
  [data-scroll] {
    will-change: auto;
    transition: transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .reveal-text > * {
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .reveal-wipe,
  .reveal-wipe-left,
  .reveal-wipe-right,
  .reveal-wipe-diagonal {
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .reveal-3d-card {
    transform: translateY(24px) scale(0.98);
    transform-origin: center center;
    transition:
      opacity 0.75s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .reveal-3d-card.is-inview {
    transform: translateY(0) scale(1);
  }

  .stagger-children > * {
    transition:
      opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .stagger-children.is-inview > *:nth-child(1) {
    transition-delay: 0s;
  }
  .stagger-children.is-inview > *:nth-child(2) {
    transition-delay: 0.06s;
  }
  .stagger-children.is-inview > *:nth-child(3) {
    transition-delay: 0.12s;
  }
  .stagger-children.is-inview > *:nth-child(4) {
    transition-delay: 0.18s;
  }
  .stagger-children.is-inview > *:nth-child(5) {
    transition-delay: 0.22s;
  }
  .stagger-children.is-inview > *:nth-child(6) {
    transition-delay: 0.26s;
  }

  .split-char {
    transition:
      opacity 0.32s ease,
      transform 0.32s ease;
    transition-delay: 0s !important;
  }

  .split-text-mobile {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }

  .split-text-mobile.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-scroll] {
    will-change: auto !important;
  }
}

/* ============================================================
   ANATOMY SLIDER (HERO)
   ============================================================ */
.anatomy-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--light-2);
}

.as-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.as-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}

.as-range-input {
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  top: 0;
  left: 0;
  cursor: ew-resize;
  z-index: 10;
  touch-action: pan-y;
}

.as-range-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 100vh;
  background: transparent;
  cursor: ew-resize;
}

.as-range-input::-moz-range-thumb {
  width: 44px;
  height: 100vh;
  background: transparent;
  cursor: ew-resize;
  border: none;
}

.as-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.as-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.as-button::before,
.as-button::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.as-button::before {
  border-right: 8px solid var(--dark-1);
  margin-right: 4px;
}
.as-button::after {
  border-left: 8px solid var(--dark-1);
  margin-left: 4px;
}
