/* ==========================================================
   Hogem — etkileşim ve hareket katmanı
   Hareket azaltma tercihi olan kullanıcılarda kapalıdır.
   ========================================================== */

/* ---------- Açılış animasyonu ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .5s ease, visibility .5s;
  animation: preloader-failsafe 0s linear 3s forwards;
}
.preloader.done { opacity: 0; visibility: hidden; }
.no-preload .preloader { display: none; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader svg { width: 120px; height: 120px; overflow: visible; }
.preloader .pl-b, .preloader .pl-r { fill: none; stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: pl-draw .9s cubic-bezier(.6, 0, .2, 1) forwards; }
.preloader .pl-b { stroke: #1d4ed8; }
.preloader .pl-r { stroke: #e11d2a; animation-delay: .12s; }
.preloader .pl-y { stroke: #fbbf24; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: pl-draw .45s ease-out .7s forwards; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

/* ---------- Kaydırma ilerleme çubuğu ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
  pointer-events: none;
}

/* ---------- Yukarı çık (ilerleme halkalı) ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(15, 27, 51, .45);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 3; }
.to-top .ring .bg { stroke: var(--line); }
.to-top .ring .fg { stroke: url(#ring-grad); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }
.to-top .ico-sm { transform: rotate(-90deg); transition: transform .25s; }
.to-top:hover .ico-sm { transform: rotate(-90deg) translateX(3px); }

/* ---------- Kayan anahtar kelime şeridi ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--navy);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--yellow); }
.marquee span:nth-child(3n+1)::after { background: var(--blue-l); }
.marquee span:nth-child(3n+2)::after { background: var(--red-l); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Şeritteki teknoloji markaları: tek renk (beyaz) ikon + ad, kelimelerle uyumlu */
.marquee .marquee-track { animation-duration: 75s; }
.marquee-brands span::after { display: none; }
.marquee-brands span { padding-right: 18px; }
.marquee .mq-brand { display: inline-flex; align-items: center; gap: 10px; font-style: normal; font-weight: 800; letter-spacing: .01em; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); transition: background .25s; }
.marquee .mq-brand:hover { background: rgba(255,255,255,.2); }
.marquee .mq-brand svg { width: auto; height: 24px; fill: currentColor; flex-shrink: 0; }
.marquee .mq-brand img { display: block; width: auto; height: 22px; }
.marquee .mq-word { padding: 9px 20px; }
.marquee .mq-word svg { height: 18px; }
.marquee .mq-symbol { padding: 5px 18px; }
.marquee .mq-symbol svg { height: 26px; }
.marquee .mq-img { padding: 8px 20px; }
.marquee .mq-brand[title="Cisco"] svg { height: 26px; }
.marquee .mq-brand[title="Juniper Networks"] svg { height: 22px; }
.marquee .mq-brand[title="Aruba"] img { height: 24px; }
.marquee .mq-brand[title="Fortinet"] img { height: 16px; }
.marquee .mq-brand[title="Netgear"] svg,
.marquee .mq-brand[title="SonicWall"] svg,
.marquee .mq-brand[title="VMware"] svg,
.marquee .mq-brand[title="QNAP"] svg { height: 15px; }

/* ---------- Kelime kelime beliren başlıklar ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i) * 55ms); }
.in .w > span, .hero-slide.active .w > span { transform: none; }
/* Hero: yeni slaytın kelimeleri eski slayt kaybolduktan sonra gelsin; eski slayt sessizce sıfırlansın */
.hero-slide.active .w > span { transition-delay: calc(.25s + var(--i) * 55ms); }
.hero-slide:not(.active) .w > span { transition: transform 0s linear .25s; }
.hl .w > span, .hl.w > span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero h1 .hl .w > span, .hero .h1 .hl .w > span { background: linear-gradient(90deg, var(--blue), #4f7dff 45%, var(--yellow-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Hero başlığı artık kelime kelime geldiği için bütün olarak kaymasın */
.hero-slide .container > h1, .hero-slide .container > .h1 { opacity: 1; transform: none; }

/* ---------- 3B eğilen + ışık izleyen kartlar ---------- */
.fx-tilt { position: relative; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; will-change: transform; }
.fx-tilt.tilting { transition: transform .08s linear, box-shadow .3s, border-color .3s; }
.fx-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent, var(--acc, var(--blue))) 16%, transparent), transparent 60%);
}
.fx-tilt:hover::after { opacity: 1; }
.fx-tilt > * { position: relative; z-index: 1; }

/* ---------- Mıknatıs butonlar + parlama ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-yellow::before, .btn-blue::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-yellow:hover::before, .btn-blue:hover::before { left: 120%; }
.fx-magnet { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.fx-magnet.pulling { transition: transform .1s linear, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn .ico-sm { transition: transform .25s; }
.btn:hover .ico-sm { transform: translateX(3px); }

/* ---------- Kendini çizen ikonlar ---------- */
@keyframes ico-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.svc-card:hover .svc-ico .ico,
.sol-cat-head:hover .sol-cat-ico .ico,
.why:hover .ico,
.contact-list li:hover .ci .ico,
.mega-feature:hover .ico,
.checks li:hover .ico-sm,
.flow-node:hover .ico {
  stroke-dasharray: 120;
  animation: ico-draw .9s ease forwards;
}
.svc-ico, .ci, .sol-cat-ico, .step-no { transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.svc-card:hover .svc-ico { transform: rotate(-6deg) scale(1.08); }
.contact-list li:hover .ci { transform: translateY(-3px); }
.steps li:hover .step-no { transform: scale(1.08); background: var(--c); color: #fff; border-color: transparent; }

/* ---------- Menü linklerinde kayan alt çizgi ---------- */
.main-nav > .nav-link, .main-nav > .nav-item > .nav-link { position: relative; }
.main-nav > .nav-link::after, .main-nav > .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav > .nav-link:hover::after, .main-nav > .nav-item:hover > .nav-link::after, .main-nav > .nav-link.current::after { transform: scaleX(1); }

/* Logo üstüne gelince hafif zıplama */
.brand-logo img { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-logo img { transform: translateY(-2px) rotate(-1.5deg); }

/* ---------- Süreç çizgisi kaydırdıkça dolsun ---------- */
.steps::before { opacity: .15; }
.steps::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--yellow), var(--red));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.steps li { z-index: 1; }

/* ---------- Arka planda süzülen renk küreleri ---------- */
.section { overflow: clip; }
.section > .container { position: relative; z-index: 1; }
.fx-blob {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .13;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Çözüm kartlarında üstüne gelince alttan beliren şerit ---------- */
.sol-card { overflow: hidden; }
.sol-card::before {
  content: "Detayları gör →";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 22px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--acc-ink);
  background: var(--acc);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sol-card:hover::before { transform: none; }
.sol-card:hover .sol-tags { opacity: 0; transition: opacity .2s; }

/* Plan kartlarında hafif parıltı kenarı */
.plan.featured { animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 20px 50px -20px rgba(251, 191, 36, .65); } }

/* ---------- Kaydırınca belirme çeşitleri ---------- */
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }

/* ---------- Dokunmatik ve hareket azaltma ---------- */
@media (hover: none) {
  .fx-tilt::after, .sol-card::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader, .scroll-progress, .fx-blob { display: none !important; }
  .marquee-track { animation: none; }
  .w > span { transform: none !important; }
  .steps::after { transform: scaleY(1); }
}
@media (max-width: 680px) {
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .marquee { padding: 16px 0; }
  .marquee span { font-size: .92rem; }
  .fx-blob { width: 260px; height: 260px; }
}
