/* ==========================================================================
   Hareket katmanı — sitenin sade kurumsal görünümünü bozmayan, yavaş ve
   yumuşak animasyonlar. "Hareketi azalt" tercihinde tamamen kapanır.
   ========================================================================== */

/* ---- Arka plan: süzülen ışık, dönen mühür halkaları, nokta dokusu ---- */
.hero, .page-head { position: relative; isolation: isolate; overflow: hidden; }
.hero > .container, .page-head > .container { position: relative; z-index: 1; }

.bg-motion { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-motion::before {
  content: ''; position: absolute; inset: -40px;
  background-image: radial-gradient(rgba(21, 35, 58, .075) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%);
  animation: gm-dots 60s linear infinite;
}
.bg-motion .blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.bg-motion .b1 {
  width: 560px; height: 560px; top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(154, 123, 60, .30), rgba(154, 123, 60, 0) 70%);
  animation: gm-drift-1 26s ease-in-out infinite alternate;
}
.bg-motion .b2 {
  width: 520px; height: 520px; bottom: -260px; left: -180px;
  background: radial-gradient(circle, rgba(31, 49, 80, .16), rgba(31, 49, 80, 0) 70%);
  animation: gm-drift-2 32s ease-in-out infinite alternate;
}
.bg-motion .b3 {
  width: 320px; height: 320px; top: 38%; left: 42%;
  background: radial-gradient(circle, rgba(233, 220, 188, .55), rgba(233, 220, 188, 0) 70%);
  animation: gm-drift-3 22s ease-in-out infinite alternate;
}
.bg-motion .rings {
  position: absolute; width: 720px; height: 720px; right: -230px; top: 50%;
  margin-top: -360px; color: var(--accent); opacity: .16;
  animation: gm-spin 160s linear infinite;
}
.page-head .bg-motion .rings { width: 520px; height: 520px; margin-top: -260px; right: -160px; opacity: .13; }
.page-head .bg-motion .b3 { display: none; }

@keyframes gm-dots   { to { background-position: 240px 120px; } }
@keyframes gm-drift-1 { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes gm-drift-2 { to { transform: translate(110px, -60px) scale(1.08); } }
@keyframes gm-drift-3 { 0% { transform: translate(0, 0); } 50% { transform: translate(-60px, 40px); } 100% { transform: translate(50px, -30px); } }
@keyframes gm-spin   { to { transform: rotate(360deg); } }

/* ---- Giriş: içerik sırayla kayarak gelir ---- */
.gm-intro { animation: gm-fade-up .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes gm-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero h1 em {
  background-image: linear-gradient(90deg, var(--accent), #c9a961);
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0 2px;
  animation: gm-underline 1s cubic-bezier(.2, .7, .2, 1) 1.1s forwards;
}
@keyframes gm-underline { to { background-size: 100% 2px; } }

/* ---- Kaydırınca belirme ---- */
.gm-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.gm-reveal.gm-in { opacity: 1; transform: none; }

/* ---- Kartlar: hafif yükselme ---- */
.card, .tool { transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.card:hover, .tool:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21, 35, 58, .09); }
.card-icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.card:hover .card-icon, .tool:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i, .card:hover .link-arrow i { transform: translateX(4px); }

/* ---- Üst menü: kaydırınca gölge ---- */
.header { transition: box-shadow .3s; }
.header.gm-scrolled { box-shadow: 0 6px 24px rgba(21, 35, 58, .08); }

/* ---- Haber şeridi ---- */
.gm-ticker { background: var(--navy); color: #e9dcbc; font-size: .88rem; border-bottom: 1px solid #0e1828; }
.gm-ticker .container { display: flex; align-items: center; gap: 18px; height: 48px; }
.gm-ticker-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e9dcbc;
}
.gm-ticker-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c9a961;
  box-shadow: 0 0 0 0 rgba(201, 169, 97, .6); animation: gm-pulse 2s ease-out infinite;
}
@keyframes gm-pulse { 70% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); } }
.gm-ticker-viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gm-ticker-track { display: flex; width: max-content; animation: gm-tick var(--gm-tick, 60s) linear infinite; }
.gm-ticker:hover .gm-ticker-track, .gm-ticker:focus-within .gm-ticker-track { animation-play-state: paused; }
.gm-ticker-track a { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .86); white-space: nowrap; padding-right: 28px; }
.gm-ticker-track a::after { content: '◆'; font-size: .55rem; color: #c9a961; margin-left: 28px; }
.gm-ticker-track a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gm-ticker-track small { color: #9aa3b2; margin-left: 8px; font-size: .78rem; }
.gm-ticker-all { flex-shrink: 0; color: #e9dcbc; font-size: .8rem; font-weight: 600; }
.gm-ticker-all:hover { color: #fff; }
@keyframes gm-tick { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .bg-motion .b1 { width: 380px; height: 380px; }
  .bg-motion .b2 { width: 340px; height: 340px; }
  .bg-motion .rings { width: 480px; height: 480px; margin-top: -240px; right: -260px; opacity: .12; }
  .gm-ticker-all { display: none; }
}

/* ---- Hareketi azalt tercihi ---- */
@media (prefers-reduced-motion: reduce) {
  .bg-motion::before, .bg-motion .blob, .bg-motion .rings,
  .gm-intro, .gm-ticker-label::before { animation: none !important; }
  .hero h1 em { animation: none; background-size: 100% 2px; }
  .gm-reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .tool:hover { transform: none; }
  .gm-ticker-track { animation: none; }
  .gm-ticker-viewport { overflow-x: auto; }
}
