/* ===========================================================
   Y. Emre Kuru — CV & Portfolyo
   =========================================================== */

:root {
  --blue: #1e52f5;
  --blue-dark: #123bc7;
  --ink: #101014;
  --ink-soft: #3a3a42;
  --muted: #6b6b76;
  --bg: #f3f3f0;
  --bg-alt: #eceae4;
  --card: #ffffff;
  --line: rgba(16,16,20,0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px rgba(16,16,20,0.08);
  --shadow-sm: 0 8px 20px rgba(16,16,20,0.06);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,243,240,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,16,20,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand span { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--blue); }
.nav-link:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}
.nav-link.active:not(.nav-cta)::after { right: 0; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px;
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 22px;
}
.hero-title-blue {
  display: block;
  font-size: clamp(52px, 8vw, 96px);
  color: var(--blue);
  letter-spacing: -0.01em;
}
.hero-title-sub {
  display: block;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--ink);
  margin-top: 4px;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(30,82,245,0.09);
  padding: 6px 14px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30,82,245,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,82,245,0.36); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.hero-photo { position: relative; justify-self: center; }
.hero-photo-frame {
  width: min(360px, 80vw);
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-photo-frame img {
  width: 100%; height: 110%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.hero-photo-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.hero-photo-badge strong { font-family: var(--font-display); font-size: 26px; color: var(--blue); }
.hero-photo-badge span { font-size: 11.5px; color: #c8c8cf; margin-top: 2px; }

/* ---------- Tab strip (design reference) ---------- */
.tab-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.tab-strip-inner {
  display: flex;
  gap: 34px;
  padding: 16px 28px;
  overflow-x: auto;
}
.tab-strip-inner a {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.tab-strip-inner a:first-child { color: var(--ink); border-bottom: 2px solid var(--blue); padding-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }
.section-head-kicker-only { margin-bottom: 26px; }
.section-head.light .section-kicker { color: #8fb0ff; }
.section-head.light h2 { color: #fff; }
.section-head.light .section-sub { color: #b8bcc9; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: start;
}
.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  align-items: center;
}
.about-photo { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.about-photo-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.about-photo-name strong { color: var(--blue); }
.about-text h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 12px; }
.about-text p { color: var(--ink-soft); line-height: 1.75; font-size: 15px; margin: 0; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-pill {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.contact-pill:hover { transform: translateY(-3px); }
.contact-pill-white { background: #fff; border: 1px solid var(--line); grid-column: span 1; }
.contact-pill-black { background: var(--ink); color: #fff; }
.contact-pill-blue { background: var(--blue); color: #fff; flex-direction: column; align-items: flex-start; gap: 16px; grid-column: span 2; padding: 20px 22px; }
.contact-pill-dark { background: #16161c; color: #fff; flex-direction: column; align-items: flex-start; gap: 16px; grid-column: span 2; padding: 20px 22px; }
.pill-icon { font-size: 16px; }
.pill-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pill-mark { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.pill-arrow { opacity: .7; font-size: 16px; }
.pill-label { font-size: 13px; font-weight: 600; opacity: .92; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}
.programs-card {
  background: linear-gradient(155deg, #0c1230, #05060d 65%);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  color: #fff;
}
.programs-card h3 { font-family: var(--font-display); margin: 0 0 24px; font-size: 19px; }
.programs-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  row-gap: 28px;
}
.badge-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 35px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.badge-ps { background: #001e36; color: #31c5f4; }
.badge-ai { background: #33020a; color: #ff9a00; }
.badge-id { background: #33000d; color: #ff3366; }
.badge-ae { background: #1a0033; color: #b980ff; }
.badge-au { background: #001a1c; color: #29d9c2; }
.badge-pr { background: #001233; color: #4fa8ff; }
.badge-xd { background: #33001a; color: #ff3ba0; }
.badge-fig { background: #000; }
.badge-bl { background: #000; }
.badge-img img { width: 55%; height: 55%; object-fit: contain; }

/* Program name: tooltip on hover (desktop/mouse), always-visible label (touch/mobile) */
.badge-name {
  font-size: 11px;
  font-weight: 600;
  color: #c7c8d2;
  text-align: center;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .badge-name {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 5;
  }
  .badge-item:hover .badge-name,
  .badge-item:focus-within .badge-name { opacity: 1; transform: translate(-50%, 0); }
}

.skills-right h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 16px; }
.info-cards { display: grid; gap: 14px; margin-bottom: 24px; }
.info-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.info-card h4 { margin: 0 0 8px; font-size: 15px; font-family: var(--font-display); }
.info-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #c7c8d2; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 16px; }
.exp-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.exp-date {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.exp-body { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: flex-start; }
.exp-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}
.exp-logo-img { background: #fff; border: 1px solid var(--line); padding: 8px; }
.exp-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.exp-content h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; }
.exp-role { margin: 0 0 10px; font-size: 13.5px; color: var(--blue-dark); font-weight: 600; }
.exp-role em { color: var(--muted); font-style: italic; font-weight: 500; }
.exp-desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.project-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-icon { font-size: 26px; }
.project-card h4 { font-family: var(--font-display); font-size: 15.5px; margin: 14px 0 6px; }
.project-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.behance-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.behance-cta h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; }
.behance-cta p { margin: 0; color: #b8bcc9; font-size: 14px; }

/* ---------- Games ---------- */
.games-section {
  background: radial-gradient(ellipse at top, #10163a, #05060d 60%);
  color: #fff;
}
.games-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
.game-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-card-active {
  background: linear-gradient(160deg, rgba(30,82,245,0.9), rgba(10,16,50,0.9));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(30,82,245,0.25);
  transition: transform .25s ease;
}
.game-card-active:hover { transform: translateY(-5px); }
.game-card-top { display: flex; align-items: center; justify-content: space-between; }
.game-tag {
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.game-tag-soon { background: rgba(255,255,255,0.08); color: #9ba0b5; }
.game-arrow { font-size: 20px; }
.game-card h3 { font-family: var(--font-display); font-size: 22px; margin: 6px 0 2px; }
.game-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #d6d8e6; flex-grow: 1; }
.game-play-btn { align-self: flex-start; margin-top: 8px; }
.game-card-soon {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  color: #9ba0b5;
}
.game-card-soon p { color: #8a8ea3; }
.games-footnote { margin: 30px 0 0; color: #8a8ea3; font-size: 13.5px; text-align: center; }

/* ---------- Contact section ---------- */
.contact-section .contact-cards-final { grid-template-columns: repeat(4, 1fr); }
.contact-cards-final .contact-pill-blue,
.contact-cards-final .contact-pill-dark { grid-column: span 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b8bcc9;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-footer { color: #fff; }
.footer-inner p { margin: 0; font-size: 13px; }
.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .contact-section .contact-cards-final { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .about-card { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 16/10; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-pill-blue, .contact-pill-dark { grid-column: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-section .contact-cards-final { grid-template-columns: 1fr; }
  .exp-body { grid-template-columns: 1fr; }
}
