/* ============================================
   OKAYOK.TR — Pure HTML Design System
   Cinematic • Minimal • Premium
   ============================================ */

:root {
  --background: #0A0A0B;
  --surface: #111113;
  --surface-elevated: #18181B;
  --border: #27272A;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent: #E4E4E7;
  --highlight: #F4F4F5;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-top: clamp(4rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 12vw, 9rem);
}

.font-display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.uppercase-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4.5rem;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
}
.header.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-desktop {
  display: none;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--text-primary); }

.menu-btn {
  width: 2.5rem; height: 2.5rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.menu-btn span {
  display: block; width: 1.25rem; height: 1px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
}
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--background);
  z-index: 40;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  color: var(--text-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #0A0A0B 0%, #111113 40%, #0A0A0B 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, #0A0A0B 70%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: 5rem;
  padding-top: 8rem;
}
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 28rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--background);
}
.btn-primary:hover { background: var(--highlight); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--text-secondary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.border-top { border-top: 1px solid var(--border); }

.grid-2 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}

.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.focus-item {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  font-size: 0.9rem;
}

/* Project cards */
.project {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.project:last-child { border-bottom: none; margin-bottom: 0; }
@media (min-width: 1024px) {
  .project { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }
}
.project-img {
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.project-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.project h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.5rem; }
.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Ecosystem */
.eco-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .eco-grid { grid-template-columns: repeat(3, 1fr); } }
.eco-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s;
}
.eco-card:hover { border-color: var(--text-muted); }
.eco-card .type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.eco-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

/* Timeline */
.timeline { position: relative; max-width: 40rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2.5rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.4rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--background);
}
.tl-year {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.tl-item h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  margin: 0.25rem 0 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* AI */
.ai-btn {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--background);
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.ai-btn:hover { transform: scale(1.05); }
.ai-panel {
  position: fixed;
  bottom: 0; right: 0;
  z-index: 50;
  width: 100%;
  max-width: 400px;
  height: min(70vh, 600px);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
}
.ai-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .ai-panel {
    bottom: 1.5rem; right: 1.5rem;
    border-radius: 1rem;
  }
}
.ai-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.ai-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.ai-msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.ai-msg.user {
  align-self: flex-end;
  background: var(--text-primary);
  color: var(--background);
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.ai-form {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem;
}
.ai-form input {
  flex: 1;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
}
.ai-form input:focus { border-color: var(--text-muted); }
.ai-form button {
  padding: 0.65rem 1rem;
  background: var(--text-primary);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Page specific */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
.skill-group h3 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.skill-group ul { list-style: none; }
.skill-group li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Gallery */
.gallery {
  columns: 1;
  column-gap: 1.25rem;
}
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.gallery-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}
.gallery-item:nth-child(3n+2) .gallery-placeholder { aspect-ratio: 1; }
.gallery-item:nth-child(3n) .gallery-placeholder { aspect-ratio: 4/3; }
.gallery-caption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
