/* =========================================================
   İklim Bilim Segem - Özel Stil Dosyası
   Tailwind CSS (CDN) yardımcı sınıflarını tamamlayan,
   Tailwind'in üretemeyeceği özel animasyon ve efektler.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

/* Yatay taşmayı (horizontal overflow) kökten engeller: sayfada herhangi bir
   elemanın (örn. henüz açığa çıkmamış kaydırma animasyonlarının) viewport
   dışına taşması durumunda dahi sayfa sağa/sola kaymaz. Bu kural, Tailwind
   derlemesi (css/output.css) güncellenmemiş olsa bile devrede kalır. */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* Metin logoda kullanılan kurumsal, şık serif font ailesi */
.font-logo {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* ---------------------------------------------------------
   Scroll ile Belirme Animasyonları (Intersection Observer + CSS)
   js/main.js içindeki observer, elemanlar görünür olduğunda
   ".is-visible" sınıfını ekler.
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Kademeli (staggered) gecikme yardımcıları */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------------------------------------------------------
   Sticky Header geçişi
   --------------------------------------------------------- */
#site-header {
  transition: box-shadow 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}
#site-header.header-scrolled {
  box-shadow: 0 8px 30px -10px rgba(27, 59, 111, 0.25);
}

/* ---------------------------------------------------------
   Hamburger Menü İkonu Animasyonu
   --------------------------------------------------------- */
.hamburger-box {
  width: 28px;
  height: 22px;
  position: relative;
}
/* Mobilde parmakla basılabilir en az 44x44px dokunma alanı sağlar.
   Görsel ikon boyutu (28x22) değişmeden, tıklanabilir alan bu
   pseudo-element aracılığıyla görünmez şekilde büyütülür. */
.hamburger-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 4px;
  background-color: currentColor;
  transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.25s ease, top 0.3s ease;
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 9.75px; }
.hamburger-line:nth-child(3) { top: 19.5px; }

.hamburger-active .hamburger-line:nth-child(1) {
  top: 9.75px;
  transform: rotate(45deg);
}
.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-active .hamburger-line:nth-child(3) {
  top: 9.75px;
  transform: rotate(-45deg);
}

/* Mobil menü panel geçişi */
#mobile-menu-panel {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
}
#mobile-menu-panel.menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ---------------------------------------------------------
   Genel yardımcılar
   --------------------------------------------------------- */
.text-balance { text-wrap: balance; }

.hero-gradient {
  background: linear-gradient(135deg, #1B3B6F 0%, #3D6FD1 55%, #1B3B6F 100%);
}

.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(27,59,111,0.08) 1px, transparent 0);
  background-size: 22px 22px;
}

.card-hover {
  border-radius: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -15px rgba(27, 59, 111, 0.25);
}

/* Kart içindeki ikon kutusu / avatar dairelerini hover'da canlandırır
   (index, eğitimlerimiz, kadromuz, hakkımızda vb. tüm .card-hover kartlarında ortak) */
.card-hover .rounded-2xl.flex.items-center.justify-center,
.card-hover .rounded-full.flex.items-center.justify-center {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease, filter 0.35s ease;
}
.card-hover:hover .rounded-2xl.flex.items-center.justify-center,
.card-hover:hover .rounded-full.flex.items-center.justify-center {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 14px 28px -10px rgba(27, 59, 111, 0.35);
  filter: brightness(1.08);
}

/* Ana CTA / bağlantı butonlarında kurumsal, yumuşak ama belirgin hover geçişi
   (mevcut Tailwind hover:scale-* sınıflarının üzerine ek gölge/geçiş katmanı) */
a[class*="hover:scale-105"],
button[class*="hover:scale-105"],
a[class*="hover:scale-[1.02]"],
button[class*="hover:scale-[1.02]"] {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease, background-color 0.3s ease;
}
a[class*="hover:scale-105"]:hover,
button[class*="hover:scale-105"]:hover,
a[class*="hover:scale-[1.02]"]:hover,
button[class*="hover:scale-[1.02]"]:hover {
  box-shadow: 0 16px 32px -10px rgba(27, 59, 111, 0.35);
}

/* ---------------------------------------------------------
   Misyon / Vizyon Kartları (Hakkımızda)
   Tutarlı beyaz zemin + kurumsal renk vurgulu, etkileşimli hover
   --------------------------------------------------------- */
.value-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(27, 59, 111, 0.08);
  background: #ffffff;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease, background-color 0.4s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px -20px rgba(27, 59, 111, 0.3);
}
.value-card--lacivert:hover { border-color: rgba(27, 59, 111, 0.35); background-color: #fbfcfd; }
.value-card--altin:hover { border-color: rgba(245, 166, 35, 0.35); background-color: #fdf9f2; }

.value-card__glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.value-card:hover .value-card__glow { opacity: 1; }
.value-card--lacivert .value-card__glow { background: rgba(27, 59, 111, 0.14); }
.value-card--altin .value-card__glow { background: rgba(245, 166, 35, 0.14); }

.value-card__icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.4s ease, box-shadow 0.4s ease;
}
.value-card:hover .value-card__icon {
  transform: scale(1.12) rotate(-4deg);
}
.value-card--lacivert .value-card__icon { background: rgba(27, 59, 111, 0.1); }
.value-card--lacivert:hover .value-card__icon {
  background: #1B3B6F;
  box-shadow: 0 16px 30px -10px rgba(27, 59, 111, 0.4);
}
.value-card--altin .value-card__icon { background: rgba(245, 166, 35, 0.1); }
.value-card--altin:hover .value-card__icon {
  background: #F5A623;
  box-shadow: 0 16px 30px -10px rgba(245, 166, 35, 0.4);
}

.value-card__icon svg { transition: color 0.4s ease; }
.value-card--lacivert .value-card__icon svg { color: #1B3B6F; }
.value-card--lacivert:hover .value-card__icon svg { color: #ffffff; }
.value-card--altin .value-card__icon svg { color: #F5A623; }
.value-card--altin:hover .value-card__icon svg { color: #ffffff; }

.value-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.value-card:hover .value-card__bar { width: 100%; }
.value-card--lacivert .value-card__bar { background: #1B3B6F; }
.value-card--altin .value-card__bar { background: #F5A623; }

.underline-grow {
  position: relative;
}
.underline-grow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background-color: #F5A623;
  transition: width 0.35s ease;
}
.underline-grow:hover::after,
.underline-grow.active-link::after {
  width: 100%;
}

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f3f4; }
::-webkit-scrollbar-thumb { background: #1B3B6F; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #0F2647; }

/* Sayaç (counter) sayfa içi animasyon için görünürlük yardımcı sınıfı */
.animate-fade-in {
  animation: fadeIn 0.9s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Yüzen (floating) Ön Kayıt butonu nabız efekti */
.pulse-ring {
  animation: pulseRing 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* Yüzen WhatsApp Destek butonu nabız efekti */
.pulse-ring-green {
  animation: pulseRingGreen 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseRingGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------------------------------------------------
   Çerez Onayı (Cookie Consent) Bileşeni
   js/cookie-consent.js tarafından oluşturulup <body> sonuna eklenir.
   Mobilde yatay taşmayı önlemek için genişlik daima viewport ile
   sınırlandırılır (max-width: calc(100vw - ...)).
   --------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(27, 59, 111, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 25px 60px -15px rgba(27, 59, 111, 0.35);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.cookie-consent--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cookie-consent--hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
}
@media (min-width: 640px) {
  .cookie-consent {
    left: auto;
    width: 380px;
    max-width: calc(100vw - 2.5rem);
  }
}
.cookie-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-consent__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(27, 59, 111, 0.08);
  color: #1B3B6F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-consent__icon svg {
  width: 22px;
  height: 22px;
}
.cookie-consent__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4A5568;
  margin: 0;
}
.cookie-consent__link {
  color: #1B3B6F;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(27, 59, 111, 0.35);
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
.cookie-consent__link:hover {
  color: #DB8A0B;
}
.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-consent__btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.cookie-consent__btn:hover {
  transform: translateY(-1px);
}
.cookie-consent__btn--accept {
  background: #1B3B6F;
  color: #ffffff;
  box-shadow: 0 10px 25px -8px rgba(27, 59, 111, 0.45);
}
.cookie-consent__btn--accept:hover {
  background: #0F2647;
}
.cookie-consent__btn--reject {
  background: #F7F9FC;
  color: #1B3B6F;
  border: 1px solid rgba(27, 59, 111, 0.15);
}
.cookie-consent__btn--reject:hover {
  background: #e9edf1;
}

/* ---------------------------------------------------------
   404 - Sayfa Bulunamadı Tipografisi (404.html)
   Devasa/göz yoran bir hata mesajı yerine; ortadaki "0" yerine
   yumuşak salınan bir pusula ikonu kullanılan, hover'da hafifçe
   canlanan şık bir "4 [pusula] 4" düzeni.
   --------------------------------------------------------- */
.notfound-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1rem);
}
.notfound-digit {
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.35s ease;
  cursor: default;
  user-select: none;
}
.notfound-digit:hover {
  transform: translateY(-10px) rotate(-4deg);
  color: #C9CDD2;
}
.notfound-icon {
  width: clamp(4rem, 13vw, 7.5rem);
  height: clamp(4rem, 13vw, 7.5rem);
  border-radius: 9999px;
  background: #F5A623;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 20px 45px -10px rgba(245, 166, 35, 0.5);
  flex-shrink: 0;
  animation: notfoundFloat 4s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notfound-icon svg {
  width: 52%;
  height: 52%;
}
.notfound-icon:hover {
  animation-play-state: paused;
  transform: scale(1.12) rotate(12deg);
}
@keyframes notfoundFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(10deg); }
}

/* Blog içerik tipografi düzeni */
.prose-segem h2 {
  color: #1B3B6F;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose-segem h3 {
  color: #1B3B6F;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose-segem strong {
  color: #1B3B6F;
  font-weight: 700;
}
.prose-segem p {
  color: #4A5568;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.prose-segem ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #4A5568;
}
.prose-segem li { margin-bottom: 0.5rem; }
.prose-segem blockquote {
  border-left: 4px solid #F5A623;
  background: #f7f9fc;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #1B3B6F;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}
