/* ballioz.com portfolio (home page only). Tibblo's pages use site.css. */

:root {
  --bg: #0E0F13;
  --bg-2: #15171D;
  --card: #1A1D24;
  --line: #2A2E38;
  --text: #F3F4F7;
  --muted: #A3A8B6;
  --accent: #FF8A3D;
  --focus: #7AA7FF;
  --radius: 24px;
  --max: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F6F3;
    --bg-2: #EEEEEA;
    --card: #FFFFFF;
    --line: #E1E1DB;
    --text: #15161A;
    --muted: #5C606B;
    --accent: #E2621B;
    --focus: #2F6BFF;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

html[data-lang="en"] .l-tr,
html[data-lang="tr"] .l-en { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 6px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 600px) { .nav a.hide-sm { display: none; } }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 56px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7.5vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
h1 .dim { color: var(--muted); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
.chip:hover { border-color: var(--muted); }
.chip.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip svg { width: 18px; height: 18px; fill: currentColor; }

.stats { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 28px; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 15px; }

/* Projects */
section { padding-top: 40px; padding-bottom: 40px; scroll-margin-top: 64px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 800; }
.section-lead { color: var(--muted); margin: 0 0 32px; }

.project {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px;
}
.project .info { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.project .head { display: flex; align-items: center; gap: 14px; }
.project .head img { width: 60px; height: 60px; border-radius: 15px; }
.project h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.project .tag { color: var(--muted); font-size: 15px; font-weight: 600; }
.project p { margin: 0; color: var(--muted); }
.project ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.project li { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.project .cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink);
}
.project .cta:hover { filter: brightness(1.08); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #3DDC84); }

.project .art {
  position: relative; min-height: 340px; overflow: hidden;
  background: var(--art); display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  padding: 36px 24px 0;
}
.phone {
  width: 42%; max-width: 210px; aspect-ratio: 9 / 18; border-radius: 26px 26px 0 0; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.back { transform: translateY(28px); opacity: 0.95; }

@media (min-width: 860px) {
  .project { grid-template-columns: 1fr 1.05fr; min-height: 420px; }
  .project .info { padding: 44px; justify-content: center; }
  .project.flip .info { order: 2; }
}

.rpmbase { --brand: #2F80FF; --brand-ink: #fff; --art: radial-gradient(120% 90% at 50% 0%, #1F5FD6 0%, #0B1F4A 55%, #060B1A 100%); }
.rpmvault { --brand: #FF7A1A; --brand-ink: #1A0E05; --art: radial-gradient(120% 90% at 50% 0%, #B4521A 0%, #3A1A08 55%, #120904 100%); }
.tibblo { --brand: #E8572E; --brand-ink: #fff; --dot: #FFC23D; --art: radial-gradient(120% 90% at 50% 0%, #FFE2BC 0%, #F7B98A 50%, #2BA79B 100%); }

/* About */
.about { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 1fr; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box h3 { margin: 0 0 10px; font-size: 20px; }
.box p { margin: 0 0 12px; color: var(--muted); }
.box p:last-child { margin-bottom: 0; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); }

.contact { text-align: center; padding-top: 64px; padding-bottom: 72px; }
.contact .mail { display: inline-block; margin-top: 18px; font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; border-bottom: 3px solid var(--accent); word-break: break-all; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
