/* ==========================================================================
   EYLÜL DENİZ MERTYÜZ - THEORETICAL & COMPUTATIONAL PHYSICS RESEARCH HUB
   Theme: Deep Obsidian & Cosmic Cyber-Academic
   ========================================================================== */

:root {
  --bg-deep: #060709;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(23, 37, 84, 0.45);
  --bg-glass: rgba(10, 12, 18, 0.75);
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(56, 189, 248, 0.35);
  --border-violet: rgba(168, 85, 247, 0.3);

  --cyan-glow: #38bdf8;
  --cyan-bright: #22d3ee;
  --violet-glow: #a855f7;
  --violet-bright: #c084fc;
  --amber-pulsar: #fbbf24;
  --emerald-quantum: #34d399;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  selection-background-color: rgba(56, 189, 248, 0.3);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* Background Cosmic Grid & Noise */
.cosmic-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.cosmic-ambient-glow {
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: cosmicDrift 25s ease-in-out infinite alternate;
}

@keyframes cosmicDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-5%, 8%) scale(1.1);
  }

  100% {
    transform: translate(5%, -5%) scale(0.95);
  }
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

.font-display {
  font-family: var(--font-sans);
}

/* Glassmorphism Card Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(56, 189, 248, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px 0 rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}

/* Glowing text effects */
.glow-cyan {
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6), 0 0 28px rgba(56, 189, 248, 0.25);
}

.glow-violet {
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6), 0 0 28px rgba(168, 85, 247, 0.25);
}

.glow-amber {
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Fullscreen Relativistic Singularity & Accretion Disk Canvas */
#singularity-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   COSMIC LEFT SIDEBAR NAVIGATION
   ========================================================================== */
.cosmic-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8), inset -1px 0 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 120;
  padding: 1.1rem 0.95rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

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

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle at 35% 35%, var(--cyan-bright), var(--violet-glow));
  display: grid;
  place-items: center;
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.sidebar-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.sidebar-name:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.sidebar-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-bright);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0.55rem 0;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge */
  flex: 1;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-link-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.12));
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--cyan-bright);
}

/* Özel Vurgulanmış Fizik Simülatörleri Menü Sekmesi */
.sidebar-link.sim-hub-tab {
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  margin: 0.15rem 0;
}

.sidebar-link.sim-hub-tab:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--cyan-bright);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.sidebar-cv-btn:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.sidebar-ticker-const {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
}

/* Mobil Menü Butonu & Yerleşimi */
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 130;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-bright);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 115;
}

.sidebar-overlay.active {
  display: block;
}

/* Site İçeriğinin Sol Menüye Göre Hizalanması */
.site-wrapper {
  position: relative;
  z-index: 10;
  transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
  .site-wrapper {
    margin-left: 280px;
  }
}

@media (max-width: 1023px) {
  .cosmic-sidebar {
    transform: translateX(-100%);
  }

  .cosmic-sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-toggle {
    display: flex;
  }
}


/* Sections Base */
section {
  position: relative;
  z-index: 10;
  padding: 6.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Header styling */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan-bright) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ==========================================================================
   HERO SECTION: THE HORIZON
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 0.4rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-quantum);
  box-shadow: 0 0 10px var(--emerald-quantum);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 70%, rgba(56, 189, 248, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

.hero-subfield {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--cyan-bright);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-quote {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.6), 0 0 15px rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--cyan-glow);
  background: rgba(30, 41, 59, 0.8);
  color: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

/* Physics Metric HUD / Dashboard Cards */
.hero-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 880px;
}

.hud-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan-bright);
  opacity: 0.6;
}

.hud-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(23, 37, 84, 0.4);
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   THE SANDBOX: INTERACTIVE SPACETIME & GRAVITY SIMULATOR
   ========================================================================== */
.sandbox-wrapper {
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.9) 0%, #050608 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(56, 189, 248, 0.15);
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.sandbox-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sandbox-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: grid;
  place-items: center;
  color: var(--cyan-bright);
}

.sandbox-metrics {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sandbox-canvas-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: #020306;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: crosshair;
}

#gravity-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-guide {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.canvas-status-pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-bright);
}

/* Control bar beneath simulation */
.sandbox-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-item label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.control-item span.val {
  color: var(--cyan-bright);
  font-weight: 600;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan-bright);
  cursor: pointer;
  box-shadow: 0 0 10px var(--cyan-bright);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sandbox-preset-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.preset-btn {
  padding: 0.45rem 0.9rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover,
.preset-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-bright);
  color: #fff;
}

.clear-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
}

/* ==========================================================================
   RESEARCH ORBIT: PROJECTS & EXPERIENCE
   ========================================================================== */
.research-highlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.research-highlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--amber-pulsar);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.2rem;
}

.research-grid-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.research-code-box {
  background: #060911;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.code-header {
  background: #0c121e;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.code-dot:nth-child(1) {
  background: #ef4444;
}

.code-dot:nth-child(2) {
  background: #f59e0b;
}

.code-dot:nth-child(3) {
  background: #10b981;
}

.code-content {
  padding: 1.1rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.65;
}

.code-kw {
  color: #f43f5e;
}

.code-fn {
  color: #38bdf8;
}

.code-var {
  color: #a78bfa;
}

.code-str {
  color: #34d399;
}

.code-cmt {
  color: #64748b;
  font-style: italic;
}

.code-num {
  color: #fbbf24;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: 16px;
}

.project-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  color: var(--text-muted);
}

.pill-tag.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--cyan-bright);
}

.project-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-code-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.btn-code-link:hover {
  color: var(--cyan-bright);
}

/* ==========================================================================
   THE COMPUTATIONAL STACK: SKILLS & TOOLING
   ========================================================================== */
.stack-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.stack-category {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem;
}

.stack-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stack-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.icon-comp {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-theo {
  background: rgba(168, 85, 247, 0.15);
  color: var(--violet-bright);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.skill-name {
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-desc {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: width 1s ease-in-out;
}

.skill-fill-cyan {
  background: linear-gradient(90deg, #0284c7, var(--cyan-bright));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.skill-fill-violet {
  background: linear-gradient(90deg, #7c3aed, var(--violet-bright));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Constants & Terminal Ticker */
.constants-ticker {
  margin-top: 2rem;
  background: #060911;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.constant-unit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.const-symbol {
  color: var(--cyan-bright);
  font-weight: 700;
}

.const-value {
  color: var(--text-muted);
}

/* ==========================================================================
   THE READING DESK: PAPERS & LITERATURE
   ========================================================================== */
.reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.paper-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
}

.paper-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.paper-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.status-reading {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber-pulsar);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.paper-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.paper-authors {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.math-formula-box {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.75rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cyan-bright);
}

.paper-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER & COSMIC SIGNATURE
   ========================================================================== */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040507;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  z-index: 20;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cosmic-dedication {
  font-size: 0.85rem;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}

/* ==========================================================================
   EASTER EGG: THE QUANTUM SINGULARITY
   ========================================================================== */
.quantum-singularity-trigger {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c084fc, #0f172a 80%);
  border: 1.5px solid rgba(192, 132, 252, 0.6);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: singularityPulse 3.5s infinite ease-in-out;
}

.quantum-singularity-trigger:hover {
  transform: scale(1.15) rotate(30deg);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 50px rgba(56, 189, 248, 0.4);
}

@keyframes singularityPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  }

  50% {
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.7), 0 0 15px rgba(56, 189, 248, 0.4);
  }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #090d16;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  width: min(94%, 620px);
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.2);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Easter Egg Specific Card Styling */
.easter-egg-card {
  position: relative;
  text-align: center;
}

.easter-egg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

.easter-egg-message {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: #f8fafc;
  margin-bottom: 1.75rem;
  font-style: italic;
  position: relative;
}

.easter-egg-cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* CV Modal Specifics */
.cv-modal-container {
  width: min(95%, 880px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  background: #090c14;
  border-color: rgba(56, 189, 248, 0.3);
}

.cv-header {
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-name {
  font-family: var(--font-sans);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.cv-section {
  margin-bottom: 1.5rem;
}

.cv-sec-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .research-grid-two-col {
    grid-template-columns: 1fr;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }

  .stack-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #090d16;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  }

  .sandbox-canvas-container {
    height: 380px;
  }

  .hero-name {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   SIMULATORS HUB (192 İNTERAKTİF FİZİK SİMÜLATÖRÜ - AYRI SEKMELİ MERKEZ)
   ========================================================================== */
#simulators-hub {
  display: none;
  /* Giriş sayfasında kaydırırken çıkmaz, yalnızca sekmeye tıklanınca açılır */
  min-height: 90vh;
  padding-top: 2.5rem;
  padding-bottom: 6rem;
  animation: fadeInSimHub 0.35s ease-out;
}

body.view-simulators #simulators-hub {
  display: block;
}

/* Simülatörler açıkken giriş ve diğer portfolyo bölümlerini gizle */
body.view-simulators #hero,
body.view-simulators #sandbox,
body.view-simulators #research,
body.view-simulators #stack,
body.view-simulators #reading,
body.view-simulators #contact {
  display: none !important;
}

@keyframes fadeInSimHub {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simülatörler Merkezi Üst Navigasyon & Portfolyoya Dönüş Çubuğu */
.sim-hub-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0.85rem 1.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-back-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sim-back-portfolio-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: translateX(-4px);
}

.sim-hub-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-bright);
}

.sim-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  max-width: 650px;
  margin: 0 auto 1.75rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.sim-search-bar:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.sim-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}

.sim-search-input::placeholder {
  color: var(--text-dim);
}

.sim-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.sim-filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.sim-filter-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.sim-filter-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.2));
  border-color: var(--cyan-bright);
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.sim-count-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Her Bir Simülatör Kartı (Görseldeki Gibi Resimli & İsimli Tasarım) */
.sim-card {
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sim-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Simülatör Önizleme Görseli */
.sim-card-thumb-wrap {
  width: 100%;
  height: 165px;
  background: #060911;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-card:hover .sim-card-thumb {
  transform: scale(1.03);
}

/* Kart Alt İçerik Alanı: Yalnızca Başlık ve Kategori */
.sim-card-body {
  padding: 0.85rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #0d121f;
}

.sim-card-title {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kategori Satırı: Renkli Nokta ve Kategori İsmi (Görseldeki Gibi) */
.sim-card-cat-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #94a3b8;
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.cat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal İçinde Açıklama Barı */
.sim-player-desc-bar {
  background: #090e1a;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-height: 95px;
  overflow-y: auto;
}

.sim-player-desc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-bright);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.sim-player-desc-text {
  margin: 0;
  flex: 1;
}

.sim-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==========================================================================
   SIMULATOR PLAYER MODAL
   ========================================================================== */
.sim-player-modal-container {
  width: min(96vw, 1200px);
  height: min(92vh, 850px);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #060912;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.sim-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: #0a0e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-player-title-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-player-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.sim-player-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-player-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sim-player-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-bright);
  color: #fff;
}

.sim-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #020306;
  position: relative;
}

#sim-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   GİZLİ NOT DEFTERİ MODAL (EASTER EGG - EYLÜL'ÜN NOTLARI)
   ========================================================================== */
.notepad-modal-container {
  width: min(92vw, 680px);
  height: min(85vh, 580px);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #080c16;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.notepad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #0a1020;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notepad-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.notepad-window-dots {
  display: flex;
  gap: 0.35rem;
}

.notepad-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #eab308;
}

.dot-green {
  background: #22c55e;
}

.notepad-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notepad-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.notepad-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-bright);
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.notepad-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notepad-status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-quantum);
  opacity: 0.9;
}

.notepad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notepad-time-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.notepad-tools {
  display: flex;
  gap: 0.4rem;
}

.notepad-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notepad-tool-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-bright);
  color: #fff;
}

.notepad-content-area {
  flex: 1;
  padding: 1rem 1.25rem;
  background: #080c16;
  display: flex;
}

.notepad-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  selection-background-color: rgba(56, 189, 248, 0.3);
}

.notepad-textarea::placeholder {
  color: rgba(148, 163, 184, 0.45);
  font-style: italic;
}

.notepad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem;
  background: #0a1020;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.notepad-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--cyan-bright);
  font-size: 0.68rem;
}

/* ==========================================================================
   KOZMİK HEDİYE ÇARKI & KUTLAMA EKRANI (EASTER EGG - 3X CLICK)
   ========================================================================== */
#gift-wheel-modal.modal-backdrop {
  z-index: 1060;
}

#secret-notepad-modal.modal-backdrop {
  z-index: 1040;
}

.gift-wheel-modal-container {
  width: min(95vw, 680px);
  max-height: 92vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #070a13;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
}

.wheel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #0b1122;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wheel-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wheel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wheel-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.wheel-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.wheel-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wheel-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-icon-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.wheel-modal-body {
  padding: 1.5rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

/* Stage & Canvas */
.wheel-stage-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.wheel-pointer-wrap {
  position: absolute;
  top: -12px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  transition: transform 0.08s ease-out;
}

.wheel-pointer-wrap.wobble {
  animation: needleTick 0.1s ease-in-out;
}

@keyframes needleTick {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.wheel-pointer-triangle {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9));
}

.wheel-pointer-gem {
  position: absolute;
  top: 2px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fbbf24;
}

.wheel-canvas-box {
  position: relative;
  width: min(390px, 86vw);
  height: min(390px, 86vw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.22), 0 15px 40px rgba(0, 0, 0, 0.8);
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Center Hub Button */
.wheel-center-hub {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d1e04 0%, #150f02 60%, #080601 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), inset 0 0 12px rgba(251, 191, 36, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.wheel-center-hub:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), inset 0 0 16px rgba(251, 191, 36, 0.6);
}

.wheel-center-hub:active {
  transform: scale(0.96);
}

.hub-icon {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2px;
}

.hub-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

/* Control Panel */
.wheel-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: center;
}

.wheel-subheading {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulsing-sparkle {
  animation: pulseGold 1.5s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px #fbbf24); }
}

.btn-spin-wheel-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-spin-wheel-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.btn-spin-wheel-glow:active {
  transform: translateY(1px);
}

.btn-spin-wheel-glow:disabled,
.wheel-center-hub:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
  transform: none !important;
}

/* Prizes Preview */
.wheel-prizes-preview {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.25rem;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.p-tag {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.p-tag.p-gold {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   KUTLAMA PENCERESİ / CELEBRATION OVERLAY
   ========================================================================== */
.wheel-celebration-layer {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.wheel-celebration-layer.show {
  opacity: 1;
  visibility: visible;
}

#celebration-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.celebration-popup-card {
  position: relative;
  z-index: 2;
  width: min(92%, 520px);
  background: radial-gradient(ellipse at top, #1c1505 0%, #0d0f1a 60%, #060810 100%);
  border: 2px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.95), 0 0 60px rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-celebration-layer.show .celebration-popup-card {
  transform: scale(1);
}

.celebration-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.celebration-close-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.celebration-gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1.1rem;
}

.celebration-gold-image-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.celebration-gold-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fbbf24;
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.8), 0 10px 30px rgba(0, 0, 0, 0.9);
  animation: goldFloat 3s ease-in-out infinite;
}

@keyframes goldFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.gold-halo-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(251, 191, 36, 0.5);
  animation: haloRotate 14s linear infinite;
  pointer-events: none;
}

@keyframes haloRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.celebration-headline {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.celebration-grand-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.celebration-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 1.2rem;
  max-width: 440px;
}

.celebration-meta-grid {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.meta-title {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.7rem;
}

.meta-value {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
}

.meta-value.gold-text {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.celebration-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.celebration-btn-claim {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.celebration-btn-claim:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.celebration-btn-respin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.celebration-btn-respin:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 640px) {
  .wheel-canvas-box {
    width: min(320px, 84vw);
    height: min(320px, 84vw);
  }
  .celebration-gold-image-wrap {
    width: 130px;
    height: 130px;
  }
  .celebration-headline {
    font-size: 1.25rem;
  }
  .celebration-action-buttons {
    flex-direction: column;
  }
  .celebration-btn-claim, .celebration-btn-respin {
    width: 100%;
  }
}