/* ============================================================
   HEVAL SÖĞÜT — portfolio
   Aesthetic: control-room / pipeline. Near-black, acid lime,
   Clash Display + Satoshi + JetBrains Mono.
   ============================================================ */

:root {
  --bg: #0A0B0E;
  --bg-raise: #0F1115;
  --line: #1E2128;
  --text: #E9EBE4;
  --muted: #9AA0A6;
  --acid: #C6F222;
  --acid-dim: rgba(198, 242, 34, 0.12);
  --font-display: "Clash Display", "Satoshi", sans-serif;
  --font-body: "Satoshi", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint blueprint grid */
  background-image:
    linear-gradient(rgba(233, 235, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 235, 228, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

::selection { background: var(--acid); color: var(--bg); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--acid);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---- atmosphere ---- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: 1px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---- custom cursor (fine pointers only) ---- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
  .cursor-dot, .cursor-ring {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--acid); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(198, 242, 34, 0.5);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
  }
  .cursor.is-hover .cursor-ring { width: 56px; height: 56px; opacity: 0.9; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(rgba(10, 11, 14, 0.85), rgba(10, 11, 14, 0));
  backdrop-filter: blur(2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.brand-mark {
  width: 10px; height: 10px;
  background: var(--acid);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: transform 0.4s var(--ease-out), border-radius 0.4s;
}
.brand:hover .brand-mark { transform: rotate(135deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a span {
  color: var(--acid);
  margin-right: 0.45em;
  font-size: 0.62rem;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--bg);
  background: var(--acid);
  padding: 0.45rem 0.95rem;
  border-radius: 2px;
  font-weight: 500;
}
.site-nav .nav-cta:hover { color: var(--bg); filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 11, 14, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.2rem);
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
.mobile-menu a span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--acid);
  vertical-align: super;
  margin-right: 0.8rem;
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--pad) 4.5rem;
}

/* 3D neural-network background — fixed behind everything */
#neural-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* keeps text readable: darkens the left column where copy sits,
   and the edges, letting the network glow through the middle-right */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, 0.72) 0%, rgba(10, 11, 14, 0.25) 45%, rgba(10, 11, 14, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(10, 11, 14, 0) 55%, rgba(10, 11, 14, 0.6) 100%);
}

/* designation labels floating beside the active section neuron */
.neuron-labels {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.neuron-label {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  will-change: transform, opacity;
}

.neuron-label b {
  font-weight: 500;
  color: var(--acid);
  margin-right: 0.5em;
}

.neuron-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--acid);
  opacity: 0.6;
  vertical-align: middle;
  margin-right: 0.6em;
}

@media (max-width: 760px) {
  .bg-vignette {
    background:
      linear-gradient(rgba(10, 11, 14, 0.45), rgba(10, 11, 14, 0.45)),
      radial-gradient(120% 90% at 50% 50%, rgba(10, 11, 14, 0) 55%, rgba(10, 11, 14, 0.6) 100%);
  }
}

.hero-inner { max-width: 1100px; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8.5vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.line-accent {
  color: var(--acid);
  text-shadow: 0 0 60px rgba(198, 242, 34, 0.25);
}

.hero-sub {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--acid); color: var(--bg); font-weight: 500; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-solid .btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn-solid:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
}
.btn-ghost:hover { border-color: var(--acid); color: var(--text); }

.hero-foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  opacity: 0.7;
}
.scroll-cue { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (max-width: 760px) {
  .hero-foot span:first-child { display: none; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
  max-width: 1500px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
}
.sec-num { color: var(--acid); }
.sec-rule {
  flex: 0 0 clamp(2rem, 8vw, 6rem);
  height: 1px;
  background: var(--line);
  align-self: center;
}
.sec-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---- scroll reveals (hidden only when JS is running) ---- */
.js .reveal, .js .reveal-load {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-load {
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 0.15s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.about-statement em {
  font-style: normal;
  color: var(--acid);
}

.about-facts { display: flex; flex-direction: column; }
.fact {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact:first-child { border-top: 1px solid var(--line); }
.fact dt { color: var(--acid); padding-top: 0.25em; }
.fact dd { color: var(--muted); }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.xp-list { list-style: none; }
.xp {
  display: grid;
  grid-template-columns: minmax(11rem, 3fr) 9fr;
  gap: 1.5rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.xp::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--acid);
  transition: width 0.6s var(--ease-out);
}
.xp:hover::before { width: 100%; }
@media (max-width: 760px) {
  .xp { grid-template-columns: 1fr; gap: 0.8rem; }
}

.xp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}
.xp-when { color: var(--acid); }

.xp-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}
.xp-co { color: var(--muted); font-weight: 500; }
.xp-body p {
  margin-top: 0.8rem;
  max-width: 42rem;
  color: var(--muted);
}

.xp-points {
  list-style: none;
  margin-top: 1rem;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.xp-points li {
  color: var(--muted);
  font-size: 0.97rem;
  padding-left: 1.3rem;
  position: relative;
}
.xp-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  top: 0.2em;
}

.xp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.xp-tags li {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  color: var(--muted);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .skill-grid { grid-template-columns: 1fr; } }

.skill-card {
  /* translucent so the neural background glows through */
  background: rgba(10, 11, 14, 0.72);
  padding: 1.8rem 1.6rem 2rem;
  transition: background 0.3s;
}
.skill-card:hover { background: rgba(15, 17, 21, 0.85); }
.skill-card h3 {
  color: var(--acid);
  margin-bottom: 1.2rem;
}
.skill-card ul { list-style: none; }
.skill-card li {
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(30, 33, 40, 0.6);
  font-size: 0.95rem;
}
.skill-card li:last-child { border-bottom: none; }

.ticker {
  margin-top: 3.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  /* fade edges */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  color: var(--muted);
  animation: ticker 36s linear infinite;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-index { list-style: none; border-top: 1px solid var(--line); }

.proj {
  display: grid;
  grid-template-columns: 4rem 1fr auto 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: padding-left 0.35s var(--ease-out);
}
.proj::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--acid-dim);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-out);
}
.proj:hover { padding-left: 1.2rem; }
.proj:hover::after { transform: scaleY(1); }

.proj-num { color: var(--muted); }
.proj-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1.1;
  transition: color 0.25s;
}
.proj:hover .proj-name { color: var(--acid); }
.proj-tag { color: var(--muted); text-align: right; }
.proj-arrow {
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.25s;
}
.proj:hover .proj-arrow {
  color: var(--acid);
  transform: translate(4px, -4px);
}
@media (max-width: 700px) {
  .proj { grid-template-columns: 2.6rem 1fr 1.6rem; }
  .proj-tag { display: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: left; }

.contact-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  margin-bottom: 2rem;
}

.contact-mail {
  display: block;
  text-decoration: none;
  margin-bottom: 3.5rem;
}
.contact-mail-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 13vw, 10.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  /* outlined until hover */
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  transition: color 0.4s var(--ease-out), -webkit-text-stroke-color 0.4s;
}
.contact-mail:hover .contact-mail-text,
.contact-mail:focus-visible .contact-mail-text {
  color: var(--acid);
  -webkit-text-stroke-color: var(--acid);
}
.contact-mail-addr {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--muted);
  transition: color 0.25s;
}
.contact-mail:hover .contact-mail-addr { color: var(--text); }

.contact-links { display: flex; flex-wrap: wrap; gap: 2rem; }
.contact-links a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.contact-links a:hover { color: var(--acid); border-color: var(--acid); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 700px) {
  .site-foot span:nth-child(2) { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-load { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .cursor { display: none !important; }
}
