/* ============================================================
   V2 — "Living Network" premium qatlam:
   custom cursor, holo-kartalar, sticky sahnalar, filmstrip,
   student profil overlay, HUD, OSI rail v2
   ============================================================ */

/* ---------------- CUSTOM CURSOR ---------------- */
.cursor-dot, .cursor-ring, .cursor-trail { display: none; }

body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on input,
body.cursor-on select, body.cursor-on textarea, body.cursor-on label,
body.cursor-on [data-tilt], body.cursor-on .topic-item { cursor: none; }

body.cursor-on .cursor-dot {
  display: block; position: fixed; z-index: 10002; pointer-events: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--net-green); box-shadow: 0 0 10px var(--net-green);
  transform: translate(-50%, -50%);
  left: 0; top: 0;
}
body.cursor-on .cursor-ring {
  display: block; position: fixed; z-index: 10001; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(4, 159, 217, 0.75);
  transform: translate(-50%, -50%);
  left: 0; top: 0;
  transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out),
              border-color 0.22s, background 0.22s;
  mix-blend-mode: screen;
}
body.cursor-on .cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--net-green);
  background: rgba(34, 229, 132, 0.07);
}
body.cursor-on .cursor-trail {
  display: block; position: fixed; z-index: 10000; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(106, 189, 232, 0.8);
  transform: translate(-50%, -50%);
  animation: trail-fade 0.55s ease-out forwards;
}
@keyframes trail-fade {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

/* ---------------- PRELOADER v2: handshake vizual ---------------- */
.hs-visual {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.6em;
}
.hs-node { text-align: center; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--text-3); }
.hs-node i {
  display: block; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--net-blue); margin: 0 auto 7px;
  box-shadow: 0 0 12px rgba(4, 159, 217, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hs-wire { flex: 1; height: 2px; background: var(--bg-2); position: relative; border-radius: 1px; }
.hs-packet {
  position: absolute; top: 50%; left: 6%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--net-blue-light);
  box-shadow: 0 0 12px rgba(106, 189, 232, 0.9);
  transform: translate(-50%, -50%);
  transition: left 0.34s ease-in-out, background 0.3s, transform 0.3s;
}
.hs-visual[data-stage="0"] .hs-packet { left: 6%; }
.hs-visual[data-stage="1"] .hs-packet { left: 94%; }
.hs-visual[data-stage="2"] .hs-packet { left: 6%; }
.hs-visual[data-stage="3"] .hs-packet {
  left: 50%; background: var(--net-green);
  box-shadow: 0 0 18px var(--net-green);
  transform: translate(-50%, -50%) scale(1.5);
}
.hs-visual[data-stage="3"] .hs-node i {
  border-color: var(--net-green);
  box-shadow: 0 0 14px rgba(34, 229, 132, 0.6);
}

/* ---------------- OSI RAIL v2 ---------------- */
.osi-rail { position: fixed; }
.rail-track {
  position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px;
  background: rgba(147, 165, 188, 0.1);
  transform: translateX(-50%); z-index: -1; border-radius: 1px; overflow: hidden;
}
.rail-track i {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(0deg, var(--net-blue), var(--net-green));
  box-shadow: 0 0 8px rgba(34, 229, 132, 0.5);
}
.rail-label {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--text-3); white-space: nowrap;
}

/* ---------------- HERO HUD ---------------- */
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud-chip {
  position: absolute;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: 10px; padding: 0.5em 1em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  will-change: transform;
}
.hud-chip b { color: var(--net-green); font-weight: 700; }
@media (max-width: 1024px) { .hud { display: none; } }

.hero-content, #heroContent { will-change: transform; }

/* ---------------- STICKY SAHNALAR ---------------- */
.scene-about, .scene-film { padding: 0; }
.scene-about { height: 380vh; }
.scene-film { height: 340vh; }
.scene-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.scene-sticky > .container, .scene-sticky > .film-inner { width: 100%; }
.scene-head { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }

.deck-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; max-width: 880px; margin: 0 auto;
  perspective: 1300px;
}
.deck-card { will-change: transform, opacity; opacity: 0; }
.deck-wide { grid-column: 1 / -1; }
.deck-grid .slogan-panel { position: static; }

.scene-progress {
  width: min(340px, 60%); height: 3px;
  background: var(--bg-2); border-radius: 2px;
  margin: 2.2rem auto 0; overflow: hidden;
}
.scene-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--net-blue), var(--net-green));
  box-shadow: 0 0 8px rgba(4, 159, 217, 0.6);
}

/* ---------------- FILMSTRIP (video kurs) ---------------- */
.film-inner { width: 100%; }
.film-inner .scene-head { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.film-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.stat-chip {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2);
  border: 1px solid var(--stroke); border-radius: 100px; padding: 0.45em 1.05em;
  background: rgba(4, 159, 217, 0.05);
}
.stat-chip b { color: var(--net-blue-light); font-weight: 700; }

.film-viewport { overflow: hidden; perspective: 1100px; padding: 2.2rem 0 1rem; }
.film-track {
  display: flex; gap: 1.4rem; padding: 0 10vw;
  will-change: transform; transform-style: preserve-3d;
}
.film-card {
  flex: 0 0 min(430px, 76vw);
  padding: 2rem 1.9rem;
  will-change: transform;
  transform-style: preserve-3d;
}
.film-card .fm-num {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--net-gold);
}
.film-card h3 { font-size: 1.5rem; margin: 0.6rem 0 1.1rem; }
.film-card .fm-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-2); }
.film-card .fm-info span { display: inline-flex; align-items: center; gap: 0.55em; }
.film-card .fm-info svg { width: 16px; height: 16px; color: var(--net-blue); }
.film-card .fm-idx {
  position: absolute; right: 1.4rem; bottom: 0.6rem;
  font-family: var(--font-display); font-size: 4.6rem; font-weight: 700;
  color: rgba(4, 159, 217, 0.09); line-height: 1; pointer-events: none;
}
.film-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.film-cta h3 { font-size: 1.3rem; }
.film-cta p { color: var(--text-2); font-size: 0.9rem; }
.film-cta .btn { width: 100%; }
.film-progress { margin-top: 1.6rem; }

/* ---------------- TILT / HOLO / GLARE ---------------- */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease-out);
}
[data-tilt].tilting { transition: transform 0.07s linear; }

.holo, .glare {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; z-index: 3;
  transition: opacity 0.35s ease;
}
.holo {
  background: conic-gradient(
    from calc(var(--mx, 50) * 3.6deg) at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
    rgba(4, 159, 217, 0.5), rgba(34, 229, 132, 0.38),
    rgba(232, 184, 48, 0.32), rgba(129, 140, 248, 0.42),
    rgba(34, 211, 238, 0.36), rgba(4, 159, 217, 0.5)
  );
  mix-blend-mode: color-dodge;
  filter: blur(10px) saturate(1.3);
}
.glare {
  background: radial-gradient(
    460px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
    rgba(255, 255, 255, 0.22), transparent 55%
  );
  mix-blend-mode: overlay;
}
[data-tilt]:hover .holo { opacity: 0.42; }
[data-tilt]:hover .glare { opacity: 1; }
.contact-form-card .holo { display: none; }

/* Story card v2 */
.story-card { cursor: pointer; }
.story-card .story-avatar { transition: transform 0.4s var(--ease-out); transform: translateZ(0); }
.story-card:hover .story-avatar { transform: translateY(-4px) scale(1.05); }
.story-btn.share {
  flex: 0 0 auto; width: 44px;
  color: var(--net-blue-light); border: 1px solid var(--stroke);
  background: rgba(4, 159, 217, 0.06);
}
.story-btn.share:hover { background: var(--net-blue); color: #fff; }

/* 3D flip reveal (kartalar ketma-ketligi) */
.reveal-flip {
  opacity: 0;
  transform: perspective(900px) rotateY(-14deg) translateY(46px) scale(0.94);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.reveal-flip.in { opacity: 1; transform: none; filter: none; }

/* Kurs kartalari — spotlight */
.course-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(
    440px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(4, 159, 217, 0.13), transparent 62%
  );
}
.course-card:hover::after { opacity: 1; }

/* ---------------- STUDENT PROFIL OVERLAY ---------------- */
.profile-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 11, 0.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.profile-overlay.show { opacity: 1; visibility: visible; }

.po-stage {
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  max-height: 94vh; overflow-y: auto; padding: 2rem 1rem;
  width: min(480px, 94vw);
}
.po-card {
  width: 100%;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 2.2rem 2rem 1.8rem;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow-blue);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(0.92);
  transition: transform 0.45s var(--ease-out);
  text-align: center;
}
.profile-overlay.show .po-card {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1);
}
.po-card .holo { opacity: 0.22; }
.po-card .glare { opacity: 0.8; }

.po-card .po-topline {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--text-3); margin-bottom: 1.4rem; text-transform: uppercase;
}
.po-card .po-topline .lt { color: var(--net-green); }
.po-card .story-avatar { width: 118px; height: 118px; margin-bottom: 1.1rem; }
.po-card h2 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.po-card .cert-tag { font-size: 0.76rem; }
.po-card .story-meta { margin-top: 0.7rem; }
.po-card .story-details { text-align: left; margin: 1.4rem 0 1.5rem; }
.po-card .story-actions { margin-top: 0.4rem; }

.po-share { width: 100%; }
.po-share-label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-3); margin-bottom: 0.5rem;
}
.po-share-row { display: flex; gap: 0.6rem; }
.po-share-url {
  flex: 1; min-width: 0;
  background: rgba(5, 9, 15, 0.75); border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-s); color: var(--net-blue-light);
  font-family: var(--font-mono); font-size: 0.74rem; padding: 0.7em 1em;
}
.po-copy { white-space: nowrap; font-size: 0.85rem; padding: 0.7em 1.2em; }

.po-close {
  position: absolute; top: 22px; right: 26px; z-index: 2;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 92, 92, 0.08); border: 1px solid rgba(255, 92, 92, 0.3);
  color: var(--net-red); font-size: 1.15rem;
  transition: background var(--t-fast);
}
.po-close:hover { background: rgba(255, 92, 92, 0.22); }
.po-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(4, 159, 217, 0.08); border: 1px solid var(--stroke-strong);
  color: var(--net-blue-light); font-size: 1.6rem; line-height: 1;
  transition: all var(--t-fast);
}
.po-nav:hover { background: var(--net-blue); color: #fff; transform: translateY(-50%) scale(1.08); }
.po-prev { left: max(2vw, 14px); }
.po-next { right: max(2vw, 14px); }
@media (max-width: 640px) {
  .po-nav { top: auto; bottom: 14px; transform: none; }
  .po-nav:hover { transform: scale(1.08); }
  .po-prev { left: 20vw; }
  .po-next { right: 20vw; }
}

/* ---------------- SCENES OFF (mobil / reduced-motion) ---------------- */
body.scenes-off .scene-about,
body.scenes-off .scene-film { height: auto; padding: var(--section-pad) 0; }
body.scenes-off .scene-sticky { position: static; height: auto; overflow: visible; display: block; }
body.scenes-off .deck-card { opacity: 1 !important; transform: none !important; }
body.scenes-off .film-track { transform: none !important; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
body.scenes-off .film-card { transform: none !important; flex-basis: min(430px, 92vw); }
body.scenes-off .scene-progress { display: none; }
body.scenes-off .hud { display: none; }

/* ============================================================
   E'LON (announcement) — hero tepasida
   ============================================================ */
.announce-slot { margin-bottom: 1.2rem; }
.announce {
  position: relative;
  display: inline-flex; flex-direction: column; gap: 0.55rem;
  padding: 0.75rem 1.1rem 0.85rem;
  border-radius: var(--radius-m);
  background: linear-gradient(100deg, rgba(34, 229, 132, 0.14), rgba(4, 159, 217, 0.12));
  border: 1px solid rgba(34, 229, 132, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(34, 229, 132, 0.12);
  animation: announce-in 0.6s var(--ease-out) both;
  max-width: 100%;
}
.announce.closing { animation: announce-out 0.35s ease forwards; }
.announce-meta { display: flex; align-items: center; gap: 0.6rem; }
.announce-pulse {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--net-green); box-shadow: 0 0 0 0 rgba(34, 229, 132, 0.6);
  animation: announce-ping 1.8s ease-out infinite;
}
.announce-tag {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
  color: #04140c; background: var(--net-green); padding: 0.25em 0.7em; border-radius: 100px;
}
.announce-body {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem;
}
.announce-text { flex: 1 1 260px; font-size: 0.9rem; font-weight: 600; line-height: 1.45; color: var(--text-1); }
.announce-cta {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--net-green);
  white-space: nowrap; transition: color var(--t-fast);
}
.announce-cta:hover { color: var(--net-blue-light); }
.announce-x {
  margin-left: auto; background: none; border: none; color: var(--text-3);
  font-size: 0.85rem; line-height: 1; padding: 4px 6px; border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}
.announce-x:hover { color: var(--net-red); background: rgba(255, 92, 92, 0.12); }
@keyframes announce-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes announce-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes announce-ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 229, 132, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 229, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 229, 132, 0); }
}
@media (max-width: 560px) { .announce-text { font-size: 0.82rem; flex-basis: 100%; } }

/* ============================================================
   SUPPORT-INSTRUKTOR belgisi
   ============================================================ */
.instructor-card.is-support { --net-glow: var(--net-green); }
.support-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  color: #04140c; background: linear-gradient(135deg, #22e584, #0891b2);
  padding: 0.3em 0.8em; border-radius: 100px;
  box-shadow: 0 4px 14px rgba(34, 229, 132, 0.35);
}
.instructor-card.is-support .instructor-whois { left: auto; right: 14px; }

/* ============================================================
   MANZIL (location)
   ============================================================ */
.loc-card {
  display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 0;
  overflow: hidden; border-radius: var(--radius-l);
}
.loc-map {
  position: relative; min-height: 260px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(4, 159, 217, 0.22), transparent 60%),
    linear-gradient(160deg, #0a1622, #06101c);
}
.loc-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(4, 159, 217, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 159, 217, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 72%);
}
.loc-pin {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -60%);
  font-size: 2.4rem; z-index: 2; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  animation: loc-bob 2.6s ease-in-out infinite;
}
.loc-ping {
  position: absolute; top: 45%; left: 50%; width: 18px; height: 18px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px solid var(--net-green);
  animation: loc-ping 2.2s ease-out infinite;
}
.loc-info { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; }
.loc-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.loc-info h3 { font-size: 1.4rem; margin: 0.5rem 0 0.4rem; }
.loc-addr { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.2rem; }
.loc-rows { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.loc-row { display: flex; align-items: center; gap: 0.8rem; }
.loc-row .lr-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: rgba(4, 159, 217, 0.1); border: 1px solid var(--stroke);
}
.loc-row .lr-k { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }
.loc-row .lr-v { display: block; font-size: 0.95rem; color: var(--text-1); }
.loc-info .btn { margin-top: auto; align-self: flex-start; }
@keyframes loc-bob { 0%, 100% { transform: translate(-50%, -60%); } 50% { transform: translate(-50%, -72%); } }
@keyframes loc-ping {
  0% { width: 14px; height: 14px; opacity: 0.9; }
  100% { width: 120px; height: 120px; opacity: 0; }
}
@media (max-width: 760px) {
  .loc-card { grid-template-columns: 1fr; }
  .loc-map { min-height: 180px; }
  .loc-info .btn { align-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring, .cursor-trail { display: none !important; }
  body.cursor-on { cursor: auto; }
  .reveal-flip { opacity: 1; transform: none; filter: none; }
  [data-tilt] { transform: none !important; }
  .hud-chip { animation: none; }
  .announce, .announce-pulse, .loc-pin, .loc-ping { animation: none !important; }
}
