/* ========================================================
   TECHNOTHORIUM - Ana Stil Dosyası
   ======================================================== */

:root {
  /* Renkler */
  --bg-primary: #0a0e14;
  --bg-panel: #121822;
  --bg-panel-light: #1a2230;
  --border-subtle: #232d3a;
  --accent: #00d4aa;
  --accent-dim: #00a98a;
  --accent-glow: rgba(0, 212, 170, 0.18);
  --text-primary: #e8edf2;
  --text-secondary: #5a6b7d;
  --text-tertiary: #3d4a59;
  --danger: #ff5c5c;

  /* Tipografi */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Ölçüler */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Arka plan dokusu - sade ızgara */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--accent-glow);
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-panel-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Yükleme animasyonu (sayfa girişi) ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms ease, visibility 500ms ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--accent);
  animation: loaderSlide 1.1s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-panel-light);
}
.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.brand-subtitle {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover {
  color: var(--text-primary);
}
.main-nav a.active {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-admin:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 700ms ease forwards;
  animation-delay: 80ms;
}
.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 760px;
  opacity: 0;
  animation: fadeUp 700ms ease forwards;
  animation-delay: 180ms;
}
.hero-title span {
  color: var(--accent);
}
.hero-desc {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 700ms ease forwards;
  animation-delay: 280ms;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 700ms ease forwards;
  animation-delay: 380ms;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Projeler Bölümü ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 50px 0 120px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.section-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 600ms ease forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition);
}
.project-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-panel-light);
  transform: translateX(4px);
}
.project-card:hover::before {
  transform: scaleY(1);
}
.project-card-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.project-index {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  width: 28px;
}
.project-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-panel-light);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.project-info {
  min-width: 0;
}
.project-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.project-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition);
}
.project-card:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  transform: rotate(45deg);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ---------- Modal (Proje Detayı) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  width: 100%;
  max-width: 920px;
  max-height: 86vh;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-image-side {
  width: 42%;
  flex-shrink: 0;
  background: var(--bg-panel-light);
  position: relative;
}
.modal-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-content-side {
  flex: 1;
  padding: 40px 40px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 5;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--danger);
}
.modal-content-side .modal-close {
  position: static;
  width: 32px;
  height: 32px;
  align-self: flex-end;
  background: var(--bg-panel-light);
  margin-bottom: 4px;
}
.modal-content-side .modal-close:hover {
  background: var(--danger);
}
.modal-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.2;
}
.modal-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
  white-space: pre-line;
}
.modal-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.btn-goto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--accent);
  color: #06140f;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-goto:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-goto svg {
  transition: transform var(--transition);
}
.btn-goto:hover svg {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .modal-box { flex-direction: column; max-height: 90vh; }
  .modal-image-side { width: 100%; height: 220px; }
  .modal-content-side { padding: 28px 24px; }
  .modal-title { font-size: 22px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero { padding: 90px 0 60px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .project-card { padding: 22px; flex-wrap: wrap; }
  .project-thumb { width: 56px; height: 56px; }
  .container { padding: 0 20px; }
}
@media (max-width: 520px) {
  .project-card-left { gap: 14px; }
  .project-index { display: none; }
  .project-name { font-size: 16px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
