/* Bulent Baslar — portfolio. Brand: navy #0F2A44, gold #F2A900, sky #3E9DE0 */
:root {
  --navy: #0F2A44; --navy-2: #16375A; --gold: #F2A900; --gold-2: #D99700; --sky: #3E9DE0;
  --bg: #F5F6F8; --panel: #FFFFFF; --alt: #EEF2F7; --ink: #0F2A44; --text: #3D4B5C; --muted: #6B7A8C; --line: #DDE3EA;
  --shadow: 0 1px 2px rgba(15,42,68,.06), 0 8px 24px rgba(15,42,68,.08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1622; --panel: #112235; --alt: #0E1D2D; --ink: #EAF1F8; --text: #C3CFDC; --muted: #8FA0B3; --line: #1F344B;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, .brand, .btn, .eyebrow, .kicker, .when { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--sky); }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--sky); color: #06121F; } }
.btn.ghost-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; }
.brand.light { color: #fff; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:hover { color: var(--ink); background: var(--alt); }
.menu-cta { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(900px 500px at 85% 20%, #1D4C7A 0%, transparent 60%), linear-gradient(160deg, #0F2A44 0%, #0A1E31 100%);
  color: #D7E2EE; padding: clamp(56px, 9vw, 110px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(44px, 7vw, 76px); letter-spacing: -.02em; margin-bottom: 8px; }
.role { color: #fff; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; margin-bottom: 18px; }
.intro { font-size: 17px; max-width: 54ch; color: #C3D2E2; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.hero-adi { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.adi { width: min(340px, 72vw); aspect-ratio: 1; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--alt); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin-bottom: 32px; }

.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.photo { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 6px solid var(--panel); box-shadow: var(--shadow); outline: 3px solid var(--gold); outline-offset: -3px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 12px; }
.facts span { min-width: 92px; color: var(--muted); font-size: 14px; padding-top: 2px; }

/* ---------- projects ---------- */
.project.featured { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.project-visual { background: linear-gradient(160deg, #0F2A44, #1D4C7A); padding: 32px; display: grid; place-items: center; }
.mock { width: 100%; max-width: 420px; background: #fff; color: #1B2330; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  font: 13px/1.5 Inter, system-ui, sans-serif; overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: #EEF2F7; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #C9D3DF; }
.mock-q { margin: 14px 14px 10px auto; width: fit-content; max-width: 80%; background: #2F6FDF; color: #fff; padding: 8px 12px; border-radius: 12px 12px 4px 12px; }
.mock-a { margin: 0 14px 16px; border: 1px solid #E2E7EF; border-radius: 12px 12px 12px 4px; padding: 10px 12px; }
.mock-a p { margin: 0 0 6px; }
.mock-a table { border-collapse: collapse; width: 100%; font-size: 12px; }
.mock-a th, .mock-a td { border: 1px solid #E2E7EF; padding: 3px 6px; text-align: left; }
.mock-a th { background: #F2F5FB; }
.tag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; color: #fff; }
.tag.g { background: #0F7A5A; } .tag.e { background: #2F5BB7; }
.project-body { padding: clamp(24px, 4vw, 40px); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--gold-2); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--gold); } }
.project-body h3 { font-size: clamp(22px, 2.6vw, 28px); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F2A44' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); color: var(--ink); }
.note { font-size: 13px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card p:last-of-type { flex: 1; }
.more { font-weight: 600; text-decoration: none; color: var(--sky); }

/* ---------- experience ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); border: 3px solid var(--gold); }
.timeline li:first-child::before { background: var(--gold); }
.when { font-size: 14px; font-weight: 700; color: var(--sky); margin-bottom: 4px; }
.org { color: var(--muted); font-weight: 500; margin-bottom: 6px; }

/* ---------- qualifications ---------- */
.quals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.qual { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 20px; }
.q-title { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.q-meta { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(160deg, #0F2A44 0%, #0A1E31 100%); color: #C3D2E2; }
.contact h2 { color: #fff; }
.contact .lead { color: #A9BCD0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; color: #fff; text-decoration: none;
  font-weight: 600; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); transition: border-color .15s, background .15s; }
.social a:hover { border-color: var(--gold); background: rgba(242,169,0,.08); }
.social svg { width: 22px; height: 22px; flex: none; }

/* ---------- footer ---------- */
.footer { background: #08172A; color: #8FA0B3; padding: 24px 0; font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #C3D2E2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-row > .btn { display: none; }
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .menu-cta { display: block; margin-top: 6px; }
  .menu-cta a { background: var(--gold); color: var(--navy); font-weight: 700; text-align: center; }
  .hero-grid, .about-grid, .contact-grid, .project.featured { grid-template-columns: 1fr; }
  .hero-adi { order: -1; }
  .adi { width: min(220px, 60vw); }
  .about-grid { justify-items: center; text-align: left; }
  .photo { width: 200px; height: 200px; }
}
@media (max-width: 480px) {
  .social { grid-template-columns: 1fr; }
  .project-visual { padding: 20px; }
}

/* still versions of the attitude-indicator logo */
.logo-adi { flex: none; }
.logo-adi svg { display: block; }
.photo-adi { width: 280px; aspect-ratio: 1; filter: drop-shadow(0 14px 30px rgba(15,42,68,.30)); }
@media (max-width: 900px) { .photo-adi { width: 200px; } }

/* My Projects: heading sits closer to the top */
.section.projects { padding-top: clamp(32px, 4vw, 48px); }
.section.projects h2 { margin-bottom: 24px; }

/* project cards with demos */
.card.wide { grid-column: 1 / -1; }
.demos { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.demos a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line); background: var(--alt); color: var(--text); transition: border-color .15s, transform .15s; }
.demos a:hover { border-color: var(--gold); transform: translateY(-2px); }
.demos b { color: var(--ink); font-family: "Space Grotesk", Inter, sans-serif; font-size: 16px; }
.demos b::after { content: " ↗"; color: var(--gold-2); }
.demos span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.card .cta { margin-top: 0; }
.card .disclaimer { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; flex: none; }
.card.wide p:last-of-type { flex: none; }

.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* project card with a screenshot on the right (picture on top on narrow screens) */
.card.card-shot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.card-shot-text { display: flex; flex-direction: column; min-width: 0; }
.card-shot-text p:last-of-type { flex: none; }
.card-shot-img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0; }
.card-shot-img img { display: block; width: 100%; height: auto; transition: transform .3s; }
.card-shot-img:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .card.card-shot { grid-template-columns: 1fr; gap: 18px; } .card-shot-img { order: -1; } }
@media (prefers-reduced-motion: reduce) { .card-shot-img img { transition: none; } .card-shot-img:hover img { transform: none; } }

/* News */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.news-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-item p { margin-bottom: 10px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px !important; }
.news-meta time { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; color: var(--sky); }
.news-meta span { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: var(--gold-2);
  background: color-mix(in srgb, var(--gold) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.news-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 !important; }
.news-links a { font-weight: 600; text-decoration: none; color: var(--sky); }
.news-links a:hover { text-decoration: underline; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
