/* style.css */
/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080810;
  --surface: #0e0e1a;
  --border: #1e1e30;
  --text: #e0e0f0;
  --dim: #6060a0;
  --green: #1a5c3a;
  --green-light: #2d8a5a;
  --green-glow: rgba(45, 138, 90, 0.4);
  --red: #8b1a2a;
  --red-light: #c42a3a;
  --red-glow: rgba(196, 42, 58, 0.4);
  --yellow: #b8960c;
  --yellow-light: #e5b800;
  --yellow-glow: rgba(229, 184, 0, 0.4);
  --blue: #2a4a8b;
  --purple: #6a2a8b;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--red-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

#cursorRing {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--red-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.5;
}

body.cursor-hover #cursor {
  background: var(--green-light);
}

body.cursor-hover #cursorRing {
  border-color: var(--green-light);
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 0 8px var(--green-glow));
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  text-decoration: none;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-light);
}

.nav-lang {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dim);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--green-light);
  color: var(--green-light);
}

.lang-flag {
  font-size: 14px;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 48px 60px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 138, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 138, 90, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  to { background-position: 0 60px; }
}

.hero-logo {
  position: relative;
  z-index: 2;
  animation: heroIn 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  justify-content: center;
  margin-bottom: -150px;
}

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

.hero-logo img {
  height: 600px;
  width: auto;
  filter: brightness(1.2) drop-shadow(0 0 80px var(--green-glow));
  user-select: none;
  pointer-events: none;
}

.hero-sub {
  position: relative;
  z-index: 2;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  color: var(--dim);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 48px;
  animation: heroIn 0.8s 0.2s cubic-bezier(0.2, 0, 0, 1) forwards;
  opacity: 0;
}

.hero-sub .blink {
  color: var(--red-light);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  animation: heroIn 0.8s 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  display: block;
}

.stat-num.green { color: var(--green-light); }
.stat-num.red { color: var(--red-light); }
.stat-num.mix {
  background: linear-gradient(135deg, var(--green-light), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dim), transparent);
}

/* ── Section ── */
section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--green-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: '//';
  color: var(--red-light);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 48px;
  line-height: 1.1;
}

/* ── Projects Header ── */
.projects-header {
  position: relative;
  background: linear-gradient(135deg, rgba(45,138,90,0.08), rgba(196,42,58,0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 48px;
  margin-bottom: 48px;
  text-align: center;
  overflow: hidden;
}

.projects-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 35% 50%, var(--green-glow) 0%, transparent 40%),
    radial-gradient(circle at 65% 50%, var(--red-glow) 0%, transparent 40%);
  animation: headerGlow 8s ease-in-out infinite;
  opacity: 0.25;
}

@keyframes headerGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -8%) scale(1.08); }
}

.projects-header-content {
  position: relative;
  z-index: 2;
}

.projects-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green-light), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-header-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 24px;
}

.projects-header-studio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--green-light);
  background: rgba(45, 138, 90, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(45, 138, 90, 0.3);
  text-decoration: none;
  transition: all 0.2s;
}

.projects-header-studio:hover {
  background: rgba(45, 138, 90, 0.2);
  border-color: var(--green-light);
}

.projects-header-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--red-light));
  margin: 24px auto 0;
  border-radius: 2px;
}

#projects .inner-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 0 48px 0;
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--green-glow);
}

.project-thumb {
  height: 200px;
  background: linear-gradient(135deg, #0a0a14, #141428);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-glow), rgba(42, 74, 139, 0.3));
}

.project-thumb .thumb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 138, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 138, 90, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.project-thumb img {
  position: relative;
  z-index: 1;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.project-thumb .fallback-emoji {
  display: none;
  position: relative;
  z-index: 1;
  font-size: 48px;
}

.project-body {
  padding: 24px;
}

.project-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.project-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid;
}

.tag-green {
  color: var(--green-light);
  border-color: rgba(45, 138, 90, 0.3);
  background: rgba(45, 138, 90, 0.05);
}

.tag-blue {
  color: #6a8fd8;
  border-color: rgba(106, 143, 216, 0.3);
  background: rgba(106, 143, 216, 0.05);
}

.tag-red {
  color: var(--red-light);
  border-color: rgba(196, 42, 58, 0.3);
  background: rgba(196, 42, 58, 0.05);
}

.tag-purple {
  color: #a06ad8;
  border-color: rgba(160, 106, 216, 0.3);
  background: rgba(160, 106, 216, 0.05);
}

.tag-yellow {
  color: var(--yellow-light);
  border-color: rgba(229, 184, 0, 0.3);
  background: rgba(229, 184, 0, 0.05);
}

/* Divider between tags and badges */
.project-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 16px 0;
}

/* Developer badge (Wrenchiz) - kırmızı tema */
.project-dev {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(196, 42, 58, 0.1);
  border: 1px solid rgba(196, 42, 58, 0.3);
  color: var(--red-light);
  margin-bottom: 16px;
  transition: all 0.2s;
}

.project-dev:hover {
  border-color: var(--red-light);
  color: var(--red-light);
  background: rgba(196, 42, 58, 0.15);
}

/* Artist badge (Baddeaw) - sarı tema */
.project-artist {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(229, 184, 0, 0.1);
  border: 1px solid rgba(229, 184, 0, 0.3);
  color: var(--yellow-light);
  margin-bottom: 16px;
  transition: all 0.2s;
}

.project-artist:hover {
  border-color: var(--yellow-light);
  color: var(--yellow-light);
  background: rgba(229, 184, 0, 0.15);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-dot.beta { background: var(--yellow); }
.status-dot.wip { background: var(--red-light); }

.project-link {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--green-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 10px;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card::after {
  display: none;
}

/* Wrenchiz kartı hover efekti (kırmızı) */
.team-card:hover {
  border-color: var(--red-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(196, 42, 58, 0.2);
}

/* Baddeaw kartı hover efekti (sarı) */
.team-card.artist:hover {
  border-color: var(--yellow-light);
  box-shadow: 0 20px 60px rgba(229, 184, 0, 0.2);
}

.team-card.artist .team-role {
  color: var(--yellow-light);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 3px solid var(--border);
  background: linear-gradient(135deg, var(--green-glow), var(--red-glow));
  overflow: hidden;
}

.team-card.artist .team-avatar {
  background: linear-gradient(135deg, rgba(229,184,0,0.3), rgba(229,184,0,0.1));
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--red-light);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.team-bio {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
}

.team-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

/* Wrenchiz GitHub butonu hover (kırmızı) */
.team-card .team-github:hover {
  border-color: var(--red-light);
  color: var(--red-light);
  background: rgba(196, 42, 58, 0.08);
}

/* Baddeaw GitHub butonu hover (sarı) */
.team-card.artist .team-github:hover {
  border-color: var(--yellow-light);
  color: var(--yellow-light);
  background: rgba(229, 184, 0, 0.08);
}

.team-github svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 0 8px var(--green-glow));
}

.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 12px;
  color: var(--dim);
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 60px 24px; }
  .hero-stats { gap: 24px; }
  .projects-header { padding: 40px 24px; }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}