/* ==========================================================================
   BLACKROOT GAME STUDIO - BESPOKE EDITORIAL DESIGN SYSTEM (FULLY UPDATED)
   ========================================================================== */

:root {
  --bg-dark: #050608;
  --bg-surface: #0b0d12;
  --bg-panel: rgba(14, 17, 24, 0.65);
  
  --accent-root: #00ff9d;
  --accent-root-glow: rgba(0, 255, 157, 0.25);
  --accent-root-dim: rgba(0, 255, 157, 0.12);
  --accent-violet: #a78bfa;

  --text-main: #f0f2f5;
  --text-muted: #727a8c;
  --text-subtle: #3a3f4d;

  --border-line: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 255, 157, 0.4);

  --font-display: 'Syne', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }

/* Canvas Arka Plan */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ===================== VERTICAL NAV ===================== */
.vertical-nav-track {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.nav-track-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.nav-track-num { font-weight: 500; }

.nav-track-line {
  width: 14px;
  height: 1px;
  background: var(--text-subtle);
  transition: all var(--transition-fast);
}

.nav-track-label {
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-track-item:hover,
.nav-track-item.active {
  color: var(--accent-root);
}

.nav-track-item:hover .nav-track-line,
.nav-track-item.active .nav-track-line {
  width: 28px;
  background: var(--accent-root);
  box-shadow: 0 0 10px var(--accent-root);
}

.nav-track-item:hover .nav-track-label,
.nav-track-item.active .nav-track-label {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== TOP HEADER ===================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem 1.25rem 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 8, 0.8);
  border-bottom: 1px solid var(--border-line);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-fast);
}

.header-brand:hover .brand-mark-img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-badge-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.lang-selector {
  display: flex;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lang-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color var(--transition-fast);
}

.lang-opt.active {
  color: #fff;
  border-bottom: 1px solid var(--accent-root);
}



.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  border-color: var(--accent-root);
  color: var(--accent-root);
}

/* ===================== MOBILE NAV ===================== */
.mobile-nav-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover { color: var(--accent-root); }

/* ===================== SECTION WRAPPERS ===================== */
.section-block {
  min-height: 100vh;
  padding: 9rem 4rem 6rem 11.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.editorial-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-root);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.title-glow {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
}

/* ===================== HERO ===================== */
.hero-editorial {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.hero-studio-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-root);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  background: var(--accent-root-dim);
  border: 1px solid rgba(0, 255, 157, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

.location-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-root);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-root);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-statement {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  word-break: break-word;
}

.hero-sub-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-decoration: none;
  padding: 1rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 4px;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.cta-link:hover {
  border-color: var(--accent-root);
  color: var(--accent-root);
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-root-dim);
}

.cta-link-secondary { border-color: transparent; }

/* ===================== SIDE DOSSIER ===================== */
.hero-side-dossier {
  border-left: 1px solid var(--border-line);
  padding-left: 2rem;
}

.dossier-meta {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.dossier-logo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  max-height: 220px;          /* afis boyutu kIsItlaması */
}

.dossier-poster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center; /* başlığı göster */
  max-height: 220px;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.dossier-logo-box:hover .dossier-poster-img {
  transform: scale(1.04);
}

.dossier-stat-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dossier-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 0.6rem;
}

.dossier-stat-item span:first-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-stat-item span:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-root);
  font-weight: 500;
}

/* ===================== MANIFESTO ===================== */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.manifesto-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  padding: 2.75rem 2.25rem;
  border-radius: 8px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: all var(--transition-smooth);
}

.manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-root);
  transition: width var(--transition-fast);
}

.manifesto-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-root-dim);
}

.manifesto-card:hover::before { width: 100%; }

/* Manifesto Icon */
.manifesto-icon {
  font-size: 2rem;
  color: var(--accent-root);
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.manifesto-card:hover .manifesto-icon {
  opacity: 1;
  transform: scale(1.1);
}

.manifesto-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.manifesto-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.manifesto-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ===================== PROJECT DOSSIER ===================== */
.project-dossier-container {
  background: linear-gradient(145deg, rgba(14, 17, 24, 0.85) 0%, rgba(5, 6, 8, 0.98) 100%);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.classified-stamp {
  position: absolute;
  top: 2rem;
  right: 3rem;
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  letter-spacing: 0.2em;
  transform: rotate(5deg);
  text-transform: uppercase;
}

.project-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.project-code-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-root);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.project-title-large {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.project-body-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.tech-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pillar-box {
  border-left: 2px solid var(--accent-root);
  padding-left: 1rem;
}

.pillar-box h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.pillar-box p { font-size: 0.8rem; color: var(--text-muted); }

/* ARCANEVEIN Poster in Project Section */
.project-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arcanevein-poster-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-root-dim);
  max-height: 300px;           /* afis boyutu kısıtlaması */
}

.arcanevein-poster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  max-height: 300px;
  transition: transform 0.5s ease;
}

.arcanevein-poster-container:hover .arcanevein-poster-img {
  transform: scale(1.03);
}

.poster-overlay-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent-root);
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.interactive-terminal-box {
  background: #000;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 2.25rem;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 0.75rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-root);
  box-shadow: 0 0 10px var(--accent-root);
}

.terminal-content {
  color: var(--accent-root);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* ===================== CAREERS ===================== */
.careers-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.career-row-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.career-row-item:hover {
  border-color: var(--accent-root);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.career-role-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.career-role-dept {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.career-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.career-row-item:hover .career-arrow {
  background: var(--accent-root);
  color: var(--bg-dark);
  border-color: var(--accent-root);
}

/* ===================== CONTACT ===================== */
.contact-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-direct-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-line);
  padding: 0.85rem 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.input-field::placeholder {
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.input-field:focus {
  outline: none;
  border-bottom-color: var(--accent-root);
}

/* Social Links in Contact */
.contact-social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-root);
  color: var(--accent-root);
  background: var(--accent-root-dim);
  transform: translateY(-2px);
}

/* ===================== FOOTER ===================== */
.site-editorial-footer {
  border-top: 1px solid var(--border-line);
  padding: 2.5rem 4rem 2.5rem 11.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.footer-social-link:hover { color: var(--accent-root); }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-root-dim);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover { color: var(--accent-root); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .section-block { padding-left: 9rem; }
  .top-header { padding-left: 8rem; }
  .site-editorial-footer { padding-left: 8rem; }
}

@media (max-width: 992px) {
  .vertical-nav-track { display: none; }
  .mobile-menu-btn { display: flex; }
  .section-block { padding: 8rem 2rem 4rem 2rem; }
  .hero-editorial { grid-template-columns: 1fr; }
  .hero-side-dossier { border-left: none; padding-left: 0; border-top: 1px solid var(--border-line); padding-top: 2rem; }
  .project-editorial-grid, .contact-editorial-grid, .manifesto-grid { grid-template-columns: 1fr; }
  .top-header { padding: 1.25rem 2rem; }
  .site-editorial-footer { padding: 2rem; flex-direction: column; gap: 1rem; text-align: center; justify-content: center; }
}

@media (max-width: 576px) {
  .section-block { padding: 6rem 1.25rem 3rem 1.25rem; }
  .top-header { padding: 1rem 1.25rem; }
  .location-badge-top { display: none; }
  .hero-statement { font-size: clamp(1.6rem, 7.5vw, 2.5rem); line-height: 1.2; }
  .editorial-title { font-size: clamp(1.75rem, 6.5vw, 2.5rem); }
  .project-dossier-container { padding: 2rem 1.25rem; }
  .classified-stamp { position: static; display: inline-block; transform: none; margin-bottom: 1.5rem; }
  .tech-pillars-grid { grid-template-columns: 1fr; }
  .career-row-item { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
  .career-arrow { align-self: flex-end; }
  .cta-link { width: 100%; justify-content: center; }
  .contact-social-links { justify-content: flex-start; }
}
