/* ===== Ömer Başkul — Portfolyo ===== */
:root {
  --bg: #0B0B0F;
  --surface: #121218;
  --surface-2: #1A1A22;
  --border: #26262F;
  --border-2: #3A3A46;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --lime: #C8F560;
  --violet: #8B7CFF;
  --yellow: #FFD166;
  --pink: #FF8FAB;
  --sans: 'Space Grotesk', Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); }
a:hover { color: #E2FF9E; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
address { font-style: normal; }
.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.lime { color: var(--lime); }
.violet { color: var(--violet); }
.yellow { color: var(--yellow); }
.pink { color: var(--pink); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.bold { font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row.tight { gap: 8px; }
.row.center { align-items: center; gap: 20px; flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }

/* ---------- animations ---------- */
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg) } 50% { transform: translateY(-14px) rotate(-2deg) } }
@keyframes spin { to { transform: rotate(360deg) } }
.caret { animation: blink 1s steps(1) infinite; }
.float { animation: float 6s ease-in-out infinite; }
.spin { animation: spin 18s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .caret, .float, .spin, .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 16px 26px; border-radius: 14px; font-family: var(--sans); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); }
.btn-pill { min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: var(--bg) !important; }
.btn-yellow { background: var(--yellow); color: var(--bg); font-weight: 700; }
.btn-dark { background: var(--bg); color: var(--text); min-height: 56px; padding: 18px 28px; border-radius: 16px; font-size: 17px; }
.btn-dark:hover { color: var(--text); }
.btn-outline-dark { border: 2px solid var(--bg); color: var(--bg); min-height: 56px; padding: 18px 24px; border-radius: 16px; font-size: 17px; }
.btn-outline-dark:hover { color: var(--bg); }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 15, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1F1F27; }
.nav { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 2px; text-decoration: none; }
.logo:hover { color: var(--text); }
.caret.block { display: inline-block; width: 9px; height: 18px; background: var(--lime); margin-left: 4px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--lime); }

/* ---------- hero ---------- */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #2A2A34; border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 245, 96, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,245,96,.6) } 70% { box-shadow: 0 0 0 10px rgba(200,245,96,0) } 100% { box-shadow: 0 0 0 0 rgba(200,245,96,0) } }
h1 { font-size: clamp(56px, 8.5vw, 124px); line-height: .92; letter-spacing: -0.04em; font-weight: 700; }
.hero-line { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; color: var(--text-2); font-weight: 500; }
.rotating { color: var(--text); border-bottom: 3px solid var(--violet); transition: opacity .25s ease; }
.rotating.fade { opacity: 0; }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---------- terminal ---------- */
.terminal-wrap { flex: 1 1 440px; min-width: 0; position: relative; }
.sticker { position: absolute; top: -34px; right: -10px; z-index: 2; padding: 10px 16px; border-radius: 12px; background: var(--violet); color: var(--bg); font-family: var(--mono); font-weight: 700; font-size: 14px; }
.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: #16161D; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.red { background: #FF6B6B; } .tl.yellow { background: var(--yellow); } .tl.green { background: var(--lime); }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.term-body { padding: 22px; font-family: var(--mono); font-size: 14px; line-height: 1.75; min-height: 250px; }
.term-body #term-out div { white-space: pre-wrap; }
.term-caret { display: inline-block; width: 9px; height: 16px; background: var(--text); vertical-align: middle; }
.term-actions { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.cmd-btn { min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid #2E2E3A; background: var(--surface-2); color: var(--text-2); font-family: var(--mono); font-size: 13px; cursor: pointer; transition: transform .15s ease; }
.cmd-btn:hover { transform: translateY(-2px); border-color: var(--lime); }
.cmd-btn.active { background: var(--lime); border-color: var(--lime); color: var(--bg); }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid #1F1F27; border-bottom: 1px solid #1F1F27; background: var(--lime); color: var(--bg); overflow: hidden; transform: rotate(-1.2deg); margin: 24px -20px; }
.marquee-track { list-style: none; margin: 0; display: flex; width: max-content; gap: 48px; padding: 20px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-track li { display: inline-flex; align-items: center; gap: 48px; }

/* ---------- sections ---------- */
.section { padding-top: 110px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: block; font-family: var(--mono); font-size: 14px; color: var(--lime); margin-bottom: 14px; }
.section-head .eyebrow { margin-bottom: 0; }
h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em; }
.lead { max-width: 400px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.card { background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--lime); }

/* services */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.service { padding: 30px; border-radius: 22px; display: flex; flex-direction: column; gap: 18px; min-height: 260px; }
.service .icon { width: 56px; height: 56px; border-radius: 16px; color: var(--bg); display: flex; align-items: center; justify-content: center; }
.service h3 { font-size: 24px; }
.service p { color: var(--muted); line-height: 1.6; font-size: 16px; }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.filter { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer; }
.filter.active { background: var(--text); color: var(--bg); }
.grid-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.project { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project-visual { height: 240px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; color: var(--bg); }
.spin-square { position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 40px; border: 3px dashed currentColor; opacity: .35; }
.project-file { position: absolute; top: 28px; left: 24px; font-family: var(--mono); font-size: 13px; opacity: .8; }
.project-num { position: relative; font-size: 96px; font-weight: 700; line-height: .8; letter-spacing: -0.05em; }
.project-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.project h3 { font-size: 24px; line-height: 1.2; }
.project p { color: var(--muted); line-height: 1.6; font-size: 16px; }
.project-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* references */
.grid-refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ref { border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; }
.ref-logo { height: 200px; display: flex; align-items: center; justify-content: center; padding: 32px; position: relative; }
.ref-logo img { max-width: 78%; max-height: 110px; object-fit: contain; }
.ref-num { position: absolute; top: 16px; left: 18px; font-family: var(--mono); font-size: 12px; }
.ref-foot { padding: 16px 20px; border-top: 1px solid; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ref-name { font-weight: 600; font-size: 16px; }
.ref.dark .ref-num, .ref.dark .ref-foot .mono { color: var(--muted); }
.ref.dark .ref-foot { border-color: var(--border); }
.ref.light { background: #F4F4F5; border-color: #E4E4E7; color: var(--bg); }
.ref.light .ref-num, .ref.light .ref-foot .mono { color: #52525B; }
.ref.light .ref-foot { border-color: #E4E4E7; }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--border); }
.process li { padding: 30px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--border); }
.process li:first-child { padding-left: 0; }
.process li:last-child { border-right: 0; }
.process .mono { font-size: 14px; }
.process h3 { font-size: 26px; }
.process p { color: var(--muted); line-height: 1.6; }

/* coffee */
.coffee-wrap { padding-top: 80px; padding-bottom: 20px; }
.coffee { border-radius: 28px; border: 1px dashed var(--border-2); padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.coffee-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; background: #1C1C24; color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.coffee-icon.wiggle { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-12deg) } 75% { transform: rotate(12deg) } }
.coffee-title { font-size: 22px; }

/* contact */
.contact-wrap { padding-top: 100px; padding-bottom: 80px; }
.contact { border-radius: 36px; background: var(--lime); color: var(--bg); padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; }
.contact h2 { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -0.04em; max-width: 900px; position: relative; }
.contact .row { position: relative; }
.spin-circle { position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 3px dashed var(--bg); opacity: .25; }

/* footer */
.footer { border-top: 1px solid #1F1F27; }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--lime); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .hero { padding-top: 56px; gap: 64px; }
  .sticker { right: 8px; }
  .process li, .process li:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .coffee { padding: 24px; }
}
