@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- Root Variables & Clean Palette --- */
:root {
  --bg-obsidian: #090a0c;
  --bg-body: #0e1013;
  --bg-surface: #14171b;
  --bg-surface-elevated: #1a1d23;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent-amber: #e67e22;
  --accent-gold: #f39c12;
  --accent-neon-lime: #10b981;
  --accent-focus: #10b981;
  --accent-rec-red: #ef4444;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Masaüstünde varsayılan imleci gizle */
@media (pointer: fine) {
  html, body, a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
  }
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #272c35;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

::selection {
  background: var(--accent-amber);
  color: #000;
}

/* --- Subtle Film Grain --- */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

/* --- Sinematik Volumetrik Sahne Işıkları & Anamorfik Lens Flare Tuvali --- */
.hero-volumetric-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* ==========================================================================
   KAMERA ODAK VİZÖRÜ İMLECİ (Kompakt, Zarif & Sade)
   ========================================================================== */
.camera-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.camera-reticle {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease;
}

.reticle-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.reticle-tl {
  top: 0;
  left: 0;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
  border-top-left-radius: 3px;
}

.reticle-tr {
  top: 0;
  right: 0;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  border-top-right-radius: 3px;
}

.reticle-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
  border-bottom-left-radius: 3px;
}

.reticle-br {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
  border-bottom-right-radius: 3px;
}

.reticle-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.5px;
  height: 3.5px;
  background-color: var(--accent-focus);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px var(--accent-focus);
  transition: transform 0.2s ease, background-color 0.2s;
}

.reticle-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 80%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.reticle-flash.flash-active {
  transform: translate(-50%, -50%) scale(1.4);
  opacity: 1;
}

.reticle-hud {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--accent-focus);
  background: rgba(9, 10, 12, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5px 6px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, color 0.2s;
}

.reticle-af {
  color: var(--accent-amber);
}

.reticle-divider {
  color: rgba(255, 255, 255, 0.3);
}

body.cursor-hover .camera-reticle {
  width: 20px;
  height: 20px;
}

body.cursor-hover .reticle-corner {
  border-color: var(--accent-amber);
  filter: drop-shadow(0 0 4px rgba(230, 126, 34, 0.8));
}

body.cursor-hover .reticle-dot {
  background-color: var(--accent-amber);
  box-shadow: 0 0 6px var(--accent-amber);
  transform: translate(-50%, -50%) scale(1.3);
}

body.cursor-hover .reticle-hud {
  border-color: rgba(230, 126, 34, 0.5);
  color: var(--accent-amber);
}

body.cursor-clicking .camera-reticle {
  transform: translate(-50%, -50%) scale(0.85);
}

@media (pointer: coarse) {
  .camera-cursor-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
   SKELETON LOADING EFEKTİ
   ========================================================================== */
.skeleton-card {
  position: relative;
  overflow: hidden;
  background: #13161b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: skeletonShimmer 1.4s infinite ease-in-out;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   YÜKSEK ÇÖZÜNÜRLÜKLÜ GÖRSEL OPTİMİZASYONLARI
   ========================================================================== */
.gallery-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0b0d10;
}

.gallery-hd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .gallery-hd-img {
  transform: scale(1.04) translateZ(0);
}

/* --- Badges & Cards --- */
.hud-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(20, 23, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-badge:hover, .hud-badge-active {
  border-color: var(--accent-amber);
  color: var(--text-primary);
  background: rgba(30, 34, 40, 0.9);
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.portfolio-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

/* --- RAW vs Graded Slider --- */
.raw-graded-container {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.raw-graded-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-focus);
  cursor: ew-resize;
  z-index: 20;
}

.raw-graded-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: #0e1013;
  border: 2px solid var(--accent-focus);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* --- Gear Card --- */
.gear-item-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  cursor: pointer;
}

.gear-item-card:hover {
  border-color: var(--accent-amber);
  background: var(--bg-surface-elevated);
}

/* --- Mini-Game: Manual Mode Master --- */
.minigame-viewfinder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.shutter-flash {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.05s ease-out;
}

.shutter-flash.flash-active {
  opacity: 0.95;
  transition: opacity 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.polaroid-card {
  background: #ffffff;
  color: #0f172a;
  padding: 16px 16px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

/* --- Clapperboard / Film Slate --- */
.clapperboard-container {
  background: #111317;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.clapper-top {
  height: 42px;
  background: repeating-linear-gradient(
    -45deg,
    #ffffff 0px,
    #ffffff 20px,
    #111317 20px,
    #111317 40px
  );
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  transform-origin: top left;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.clapper-top.clapper-snap {
  transform: rotate(-12deg);
}

.clapper-header-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
}

.clapper-header-cell {
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.clapper-header-cell:last-child {
  border-right: none;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

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

@media (max-width: 768px) {
  .clapper-header-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .clapper-header-cell:nth-child(2) {
    border-right: none;
  }
  .clapper-header-cell:nth-child(3),
  .clapper-header-cell:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ==========================================================================
   GÜNDÜZ MODU (LIGHT MODE) TEMASI (Soft, Sıcak & Göz Yormayan Krem/Keten Tonları)
   ========================================================================== */
html.light {
  --bg-obsidian: #f5f2eb;
  --bg-body: #ece7de;
  --bg-surface: #fdfcf9;
  --bg-surface-elevated: #f7f4ed;
  --border-subtle: rgba(60, 50, 40, 0.08);
  --border-hover: rgba(60, 50, 40, 0.22);
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --text-dim: #78716c;
}

html.light body {
  background-color: #f5f2eb !important;
  color: #1c1917 !important;
}

html.light header {
  background-color: rgba(245, 242, 235, 0.94) !important;
  border-bottom-color: rgba(60, 50, 40, 0.09) !important;
}

html.light .bg-obsidian {
  background-color: #f5f2eb !important;
}

html.light .bg-body {
  background-color: #ece7de !important;
}

html.light .bg-surface {
  background-color: #fdfcf9 !important;
  border-color: rgba(60, 50, 40, 0.09) !important;
}

html.light .bg-surface-elevated {
  background-color: #f7f4ed !important;
  border-color: rgba(60, 50, 40, 0.12) !important;
}

html.light .bg-black {
  background-color: #e8e3d8 !important;
}

html.light .bg-black\/40,
html.light .bg-black\/50,
html.light .bg-black\/60,
html.light .bg-black\/80,
html.light .bg-black\/85 {
  background-color: rgba(253, 252, 249, 0.88) !important;
  border-color: rgba(60, 50, 40, 0.1) !important;
}

html.light .text-white {
  color: #1c1917 !important;
}

html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300 {
  color: #292524 !important;
}

html.light .text-slate-400 {
  color: #57534e !important;
}

html.light .text-slate-500 {
  color: #78716c !important;
}

html.light .border-white\/5,
html.light .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/20 {
  border-color: rgba(60, 50, 40, 0.1) !important;
}

html.light .hud-badge {
  background: rgba(253, 252, 249, 0.92);
  border-color: rgba(60, 50, 40, 0.13);
  color: #292524;
}

html.light .hud-badge:hover,
html.light .hud-badge-active {
  border-color: var(--accent-amber);
  color: #1c1917;
  background: #ffffff;
}

html.light .camera-reticle .reticle-corner {
  border-color: rgba(28, 25, 23, 0.75);
}

html.light .reticle-hud {
  background: rgba(253, 252, 249, 0.96);
  border-color: rgba(60, 50, 40, 0.15);
  color: #1c1917;
}

html.light .clapperboard-container {
  background: #fdfcf9;
  border-color: rgba(60, 50, 40, 0.14);
}

html.light .clapper-top {
  background: repeating-linear-gradient(
    -45deg,
    #1c1917 0px,
    #1c1917 20px,
    #e7e2d6 20px,
    #e7e2d6 40px
  );
  border-bottom-color: rgba(60, 50, 40, 0.15);
}

html.light .clapper-top span {
  background: #1c1917 !important;
  color: #fdfcf9 !important;
}

html.light input,
html.light textarea {
  background-color: #ffffff !important;
  border-color: rgba(60, 50, 40, 0.16) !important;
  color: #1c1917 !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #a8a29e !important;
}

/* ==========================================================================
   MOBİL MENÜ DRAWER & SCROLL TO TOP
   ========================================================================== */
#mobileMenuOverlay.menu-open {
  opacity: 1;
  pointer-events: auto;
}

#scrollToTopBtn.btn-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

html.light #scrollToTopBtn {
  background-color: rgba(253, 252, 249, 0.94) !important;
  border-color: rgba(60, 50, 40, 0.15) !important;
  color: #1c1917 !important;
  box-shadow: 0 10px 25px -5px rgba(60, 50, 40, 0.15) !important;
}

html.light #mobileMenuOverlay {
  background-color: rgba(245, 242, 235, 0.97) !important;
}

