/* =========================================
   KNOWLEFT — Global Styles
   ========================================= */

body {
  font-family: "Montserrat", sans-serif;
  color: #1a3231;
}

/* Navbar logosu: görsel olarak büyütülür; nav-bar padding/yüksekliği değişmez (transform düzeni büyütmez) */
.nav-bar {
  overflow: visible;
}

.site-header__logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(88vw, 540px);
  object-fit: contain;
  object-position: left center;
  transform-origin: left center;
  transform: scale(2.12);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .site-header__logo {
    height: 3.5rem;
    max-width: min(70vw, 620px);
    transform: scale(2.08);
  }
}

/* Entelektüel Sermaye bölümü — köşe çizgi desenleri */
[data-purpose="intellectual-capital"] .ic-section__corner {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  width: clamp(120px, 36vw, 280px);
  height: auto;
  opacity: 0.42;
}

[data-purpose="intellectual-capital"] .ic-section__corner--bl {
  left: max(-2vw, -0.75rem);
  bottom: max(-3vw, -1rem);
}

@media (min-width: 768px) {
  [data-purpose="intellectual-capital"] .ic-section__corner {
    width: min(32vw, 300px);
    opacity: 0.48;
  }
}

/* “Entelektüel Sermayenin Temeli” — Knowleft Modeli ile aynı yeşil glow */
[data-purpose="intellectual-capital-foundation"] .ic-foundation-glow {
  position: absolute;
  width: min(560px, 130vw);
  height: min(560px, 130vw);
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

[data-purpose="intellectual-capital-foundation"] .ic-foundation-glow--left {
  left: 0;
  top: -2%;
  transform: translate(-46%, -26%);
  background: radial-gradient(circle at 40% 40%,
      rgba(94, 207, 138, 0.14) 0%,
      rgba(94, 207, 138, 0.06) 35%,
      rgba(163, 230, 53, 0.028) 55%,
      transparent 72%);
}

[data-purpose="intellectual-capital-foundation"] .ic-foundation-glow--right {
  left: auto;
  right: 0;
  /* Üstteki kart grid’inin hemen alt bandı / başlık hizasına çekilir */
  top: clamp(-22rem, -38vh, -11rem);
  transform: translate(46%, -8%);
  background: radial-gradient(circle at 60% 40%,
      rgba(94, 207, 138, 0.14) 0%,
      rgba(94, 207, 138, 0.06) 35%,
      rgba(163, 230, 53, 0.028) 55%,
      transparent 72%);
}

@media (min-width: 768px) {
  [data-purpose="intellectual-capital-foundation"] .ic-foundation-glow--left {
    top: 0%;
    transform: translate(-48%, -28%);
  }

  [data-purpose="intellectual-capital-foundation"] .ic-foundation-glow--right {
    top: clamp(-28rem, -42vh, -16rem);
    transform: translate(48%, -12%);
  }
}

/* Entelektüel sermaye — üç kart; orta sütun daha geniş, masaüstünde satırda eşit yükseklik (stretch) */
.ic-capital-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .ic-capital-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 1.25rem;
  }
}

.ic-capital-cards__cell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

@media (min-width: 768px) {
  .ic-capital-cards__cell>p {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }
}

/* =========================================
   NAVİGASYON
   ========================================= */

/* Scroll'da navbar gölgesi */
#site-header.scrolled .nav-bar {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

#site-header.scrolled #topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}

/* Masaüstü nav linkleri — Montserrat semibold (text-sm) tüm öğelerde aynı */
.nav-link {
  position: relative;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a3231;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a3e635;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #a3e635;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: #a3e635;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-link--active::after {
  width: 100%;
}

/* Hamburger animasyon */
#menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobil drawer */
#mobile-menu.open {
  max-height: 500px;
}

/* Mobil nav linkleri */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a3231;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: #a3e635;
  padding-left: 1rem;
}

/* Mobilde navbar / menü altındaki ince çizgiyi kaldır */
/* km-note: mobilde sarmalama + yatay taşma kapatma */
@media (max-width: 640px) {
  .km-note {
    white-space: normal;
    text-align: left;
  }

  .km-note-wrap {
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    border-bottom: none;
  }

  #site-header.scrolled .nav-bar {
    border-bottom: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }

  #mobile-menu {
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }

  /* Beyaz bölüm ile koyu yeşil (es-neden) arasındaki dikiş çizgisi */
  section[data-purpose="intellectual-capital"] {
    border-top: none;
    border-bottom: none;
    box-shadow: none;
  }

  .es-neden {
    border: none;
    outline: none;
    box-shadow: none;
    /* Beyaz bölümle dikiş + PNG üst bandını gizlemek için hafif bindirme */
    margin-top: -3px;
    padding-top: calc(clamp(3.25rem, 8vw, 5.5rem) + 3px);
    background-image:
      linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 28px),
      url("../assets/section3/bg.png");
    background-repeat: no-repeat, no-repeat;
    background-size:
      100% 28px,
      cover;
    background-position:
      center top,
      center top;
  }
}

/* Başlık tipoğrafisi */
.headline-main {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* =========================================
   BÖLÜM 3 — Entelektüel Sermaye Niçin Yönetilmelidir?
   ========================================= */
.es-neden {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.25rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  font-family: "Montserrat", sans-serif;
  color: #f4f7f6;
  background-color: #0a1f18;
  background-image: url("../assets/section3/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.es-neden__circles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.es-neden__circle {
  position: absolute;
  width: min(46vw, 270px);
  height: min(46vw, 270px);
  border-radius: 50%;
  overflow: visible;
  pointer-events: none;
}

.es-neden__circle img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  height: 128%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(clamp(14px, 2.2vw, 24px));
  opacity: 0.88;
}

.es-neden__circle--left {
  left: max(-4vw, -2.5rem);
  top: 22%;
  transform: translateY(-50%);
}

.es-neden__circle--right {
  right: max(-4vw, -2.5rem);
  bottom: 18%;
  top: auto;
  transform: none;
}

.es-neden__inner {
  position: relative;
  z-index: 1;
  max-width: min(52rem, 100%);
  margin: 0 auto;
}

.es-neden__title {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-wrap: balance;
}

.es-neden__copy {
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
}

.es-neden__copy p {
  margin: 0 0 1.25rem;
}

.es-neden__copy p:last-of-type {
  margin-bottom: 0;
}

.es-neden__figure {
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}

.es-neden__wide-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(14px, 2.5vw, 20px);
  border: 2px solid rgba(212, 168, 75, 0.85);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* =========================================
   Tam ekran arka plan (ana sayfa hero) */
.site-container {
  background-image: url("../assets/images/hero-home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
}

/* Mobilde fixed attachment sorun çıkarabilir; aynı görsel, scroll ile */
@media (max-width: 768px) {
  .site-container {
    background-image: url("../assets/images/hero-home-bg.png");
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
}

/* Beyaz zemin sayfalar için CSS gradient glow (PNG'deki siyah sorunsuz kalkar) */
.green-glow-css {
  position: absolute;
  top: 138px;
  left: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
      rgba(94, 207, 138, 0.14) 0%,
      rgba(94, 207, 138, 0.06) 35%,
      rgba(163, 230, 53, 0.028) 55%,
      transparent 72%);
  filter: blur(72px);
  pointer-events: none;
  z-index: 1;
}

.green-glow-css--right {
  left: auto;
  right: -120px;
  top: 5px;
  background: radial-gradient(circle at 60% 40%,
      rgba(94, 207, 138, 0.14) 0%,
      rgba(94, 207, 138, 0.06) 35%,
      rgba(163, 230, 53, 0.028) 55%,
      transparent 72%);
}

/* =========================================
   Footer (Knowleft)
   ========================================= */
.site-footer {
  --footer-bg: #0e2a27;
  --footer-accent: #5ecf8a;
  --footer-heading: #ffffff;
  --footer-wordmark: #ffffff;
  --footer-tagline: rgba(255, 255, 255, 0.95);
  --footer-link: rgba(255, 255, 255, 0.82);
  --footer-link-hover: rgba(255, 255, 255, 0.95);
  --footer-muted: rgba(255, 255, 255, 0.78);
  --footer-pad-x: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) var(--footer-pad-x) 0;
  font-family: "Montserrat", sans-serif;
  color: var(--footer-link);
  background-color: var(--footer-bg);
}

.site-footer__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.site-footer__decor--left {
  left: -8%;
  bottom: -3%;
  width: min(82vw, 760px);
  height: min(48vh, 360px);
  background-image: url("../assets/footer/layer-4.png");
  background-position: left bottom;
  background-size: contain;
}

.site-footer__decor--center {
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: min(95vw, 1000px);
  height: min(36vh, 280px);
  background-image: url("../assets/footer/layer-4.png");
  background-position: center bottom;
  background-size: cover;
  opacity: 0.32;
}

.site-footer__decor--right {
  right: -6%;
  top: -2.5rem;
  width: min(58vw, 540px);
  height: min(42vh, 320px);
  background-image: url("../assets/footer/layer-5.png");
  background-position: right top;
  background-size: contain;
  opacity: 0.45;
}

.site-footer__main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
  align-items: center;
  column-gap: clamp(1.5rem, 4.5vw, 3.5rem);
  row-gap: clamp(1.35rem, 2.8vw, 2rem);
  padding-bottom: clamp(0.85rem, 1.8vw, 1.2rem);
}

.site-footer__nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  justify-self: end;
  /* Sağ kenardan içeri: blok biraz sola kayar */
  margin-inline-end: clamp(1.25rem, 3.5vw, 2.75rem);
  gap: clamp(3rem, 7.5vw, 5.75rem);
  min-width: 0;
}

.site-footer__brand {
  min-width: 0;
  max-width: min(28rem, 100%);
  justify-self: start;
  padding-right: 0;
  padding-left: clamp(0.75rem, 2.5vw, 1.75rem);
}

.site-footer__brandlockup {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

.site-footer__logo-full {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  max-height: clamp(9.75rem, 26vw, 12.75rem);
  object-fit: contain;
  object-position: left center;
}

.site-footer__col {
  min-width: 0;
}

/* Orta sütun (Knowleft Sertifikası): başlık ile Seviye linkleri aynı dikey eksende */
.site-footer__col--sertifika {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__col--sertifika .site-footer__col-head {
  align-items: center;
}

.site-footer__col--sertifika .site-footer__heading {
  align-self: center;
  text-align: center;
}

.site-footer__col--sertifika .site-footer__list {
  width: 100%;
  text-align: center;
}

.site-footer__col-head {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
}

.site-footer__heading {
  align-self: flex-start;
  margin: 0;
  font-size: clamp(0.875rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-heading);
}

.site-footer__heading--sentence {
  text-transform: none;
  letter-spacing: 0.02em;
}

.site-footer__heading--brand {
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--footer-heading);
}

.site-footer__rule {
  position: relative;
  width: calc(100% + 2.75rem);
  margin: 0.35rem -1.375rem 0.85rem;
  height: 2px;
  border-radius: 1px;
  background: var(--footer-accent);
  opacity: 0.95;
}

.site-footer__rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--footer-accent);
  box-shadow: 0 0 0 2px var(--footer-bg);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  margin-bottom: 0.35rem;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__link {
  font-size: clamp(0.875rem, 1.15vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--footer-link-hover);
}

.site-footer__link::before {
  content: ">> ";
  color: var(--footer-accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer__bar {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(0.5rem, 1.1vw, 0.7rem) var(--footer-pad-x) clamp(0.75rem, 1.5vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  line-height: 1.45;
  color: var(--footer-link);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__legal a {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 400;
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--footer-link-hover);
}

@media (max-width: 900px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
    row-gap: 1.35rem;
  }

  .site-footer__brand {
    justify-self: center;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .site-footer__nav-group {
    justify-content: center;
    justify-self: center;
    margin-inline-end: 0;
    gap: clamp(2.75rem, 7vw, 5rem);
    width: 100%;
  }

  .site-footer__logo-full {
    margin-inline: auto;
    object-position: center center;
  }

  .site-footer__col-head {
    align-items: center;
  }

  .site-footer__heading {
    align-self: center;
  }

  .site-footer__rule {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__decor--center {
    opacity: 0.28;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: clamp(1.5rem, 4vw, 2.25rem);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding-bottom: clamp(0.9rem, 3.5vw, 1.35rem);
    row-gap: 1.35rem;
  }

  .site-footer__brand {
    padding-left: 0;
    margin-inline: auto;
    max-width: 100%;
  }

  .site-footer__logo-full {
    margin-inline: auto;
    object-position: center center;
    max-width: min(100%, 440px);
    max-height: clamp(9.25rem, 30vw, 11.5rem);
  }

  /* 2 sütun yan yana, eşit genişlik */
  .site-footer__nav-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-inline-end: 0;
    column-gap: clamp(1.75rem, 6.5vw, 3.25rem);
    row-gap: 0.65rem;
    width: 100%;
    align-items: start;
    justify-items: center;
  }

  .site-footer__col {
    width: 100%;
    margin-inline: auto;
  }

  .site-footer__col-head {
    align-items: center;
    width: 100%;
    margin-inline: auto;
  }

  .site-footer__heading {
    align-self: center;
    text-align: center;
    font-size: 0.8125rem;
  }

  .site-footer__rule {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.55rem;
  }

  .site-footer__link {
    font-size: 0.8125rem;
  }

  .site-footer__link::before {
    content: "> ";
  }

  .site-footer__list li {
    margin-bottom: 0.35rem;
  }

  .site-footer__bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-top: clamp(0.45rem, 1.2vw, 0.6rem);
    padding-bottom: clamp(1rem, 3vw, 1.35rem);
  }

  .site-footer__copy {
    width: 100%;
  }

  .site-footer__legal {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-footer__main {
    padding-bottom: 0.85rem;
  }

  .site-footer__bar {
    gap: 0.65rem;
  }
}

@media (max-width: 360px) {
  .site-footer__logo-full {
    max-width: min(100%, 320px);
    max-height: 8.5rem;
  }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */

/* Base Reveal State */
.rvl {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
  pointer-events: none;
}

/* Directional Modifiers */
.rvl--up {
  transform: translateY(40px);
}

.rvl--down {
  transform: translateY(-40px);
}

.rvl--left {
  transform: translateX(40px);
}

.rvl--right {
  transform: translateX(-40px);
}

.rvl--scale {
  transform: scale(0.94);
}

/* Active (Visible) State */
.rvl-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  pointer-events: auto;
}

/* Stagger & Delay Utilities */
.stagger-parent>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stagger-parent.rvl-active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Manual Delay Classes */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}