:root {
  /* Core blacks */
  --bg: #0b0b0b;          /* page background */
  --panel: #111111;       /* cards / panels */
  --panel-soft: #151515;  /* hover / subtle depth */

  /* Text */
  --text: #e5e5e5;        /* main text */
  --muted: #9a9a9a;       /* secondary text */
  --faint: #6f6f6f;       /* very low emphasis */

  /* Structure */
  --border: #1c1c1c;

  /* Accent (OFF for now) */
  --accent: #ffffff;
  --drizz: #bfbfbf; /* soft silver-grey, not bright */

}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
    circle at top,
    #101010,
    var(--bg)
  );
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #121212, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  cursor: pointer;

  transition: opacity 0.8s ease, transform 0.8s ease;
}

#intro p {
  font-size: 2.2rem;              /* bigger */
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #cfcfcf;

  animation: floatIn 1.2s ease forwards;

}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#intro p::after {
  content: " (click)";
  font-size: 0.9rem;
  opacity: 0.4;
  margin-left: 6px;
}

#intro.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}



a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}


a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
}

a:hover::after {
  opacity: 0.6;
}

a:hover {
  color: var(--text);
}

.layout {
  display: flex;
  max-width: 1200px;
  margin: auto;
}

/* LEFT */
.left {
  width: 40%;
  padding: 80px 40px;
  height: 100vh;
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left h1 {
  font-size: 3.2rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.left h2 {
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}

.tagline {
  margin-top: 14px;
  color: var(--faint);
  max-width: 320px;
  line-height: 1.7;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.tech-list li {
  font-size: 0.99rem;          /* ↑ from 0.75 */
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--muted);
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease;
}

.tech-list li:hover {
  background: #2a2a2a;         /* noticeably lighter */
  color: var(--text);

  transform: translateY(-2px) scale(1.03);

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}



.tech-list.skills li {
  background: #141414;
  color: var(--faint);
}

.tech-list.skills li:hover {
  background: #242424;         /* lighter than base */
  color: var(--muted);

  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}



nav a {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.socials img {
  width: 18px;
  margin-right: 16px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.socials img:hover {
  opacity: 1;
}

/* RIGHT */
.right {
  width: 60%;
  padding: 80px 40px;
  max-width: 700px;
}
.right p {
  line-height: 1.75;
}


section {
  margin-bottom: 120px;
}

section h3 {
  font-size: 0.9rem;          /* ↑ slightly bigger */
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 36px;
}

#about h3 {
  font-size: 0.85rem;
  color: var(--muted);
}
.project {
  padding: 24px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    var(--panel),
    var(--panel-soft)
  );
  margin-bottom: 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.project h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}


.project.featured {
  border: 1px solid #2a2a2a;
}

.project-links {
  margin-top: 16px;
}

.project-links a {
  margin-right: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.project-links a:hover {
  color: var(--text);
}

.project:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    var(--panel-soft),
    var(--panel)
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}


.faint {
  color: var(--faint);
  font-size: 0.9rem;
}

.about-actions {
  margin-top: 24px;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #151515;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.resume-button::after {
  display: none;
}

.resume-button:hover {
  background: #1d1d1d;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card h4 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f0ece4;
}

.contact-copy {
  position: relative;
  min-height: 100%;
}

.contact-intro {
  max-width: 430px;
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.contact-game {
  display: block;
  margin-top: 54px;
}

.contact-game-board {
  width: 100%;
  max-width: 220px;
}

.go-widget-label {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
}

.go-widget-body {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  align-items: center;
  column-gap: 10px;
}

.go-board-wrap {
  position: relative;
  width: 132px;
}

.go-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 132px;
  height: 132px;
  background: transparent;
}

.go-board::before {
  content: "";
  position: absolute;
  inset: 6px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: calc(100% / 4) calc(100% / 4);
  background-position: center;
  pointer-events: none;
}

.go-point {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.go-point::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.go-point:hover::after {
  opacity: 1;
  transform: scale(1);
}

.go-point.has-black::after,
.go-point.has-white::after {
  display: none;
}

.go-point.is-ko::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.go-stone {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.4);
  opacity: 0;
}

.go-stone.is-placed {
  animation: stonePlace 0.18s ease forwards;
}

.go-stone-black {
  background: radial-gradient(circle at 34% 30%, #3f3f3f, #090909 70%);
}

.go-stone-white {
  background: radial-gradient(circle at 34% 30%, #ffffff, #ddd8cf 72%);
}

.go-stone-capture {
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,0.7), rgba(130,130,130,0.25) 72%);
  animation: captureFade 0.3s ease forwards;
}

.go-restart {
  position: absolute;
  inset: auto 6px 4px 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(10, 10, 10, 0.82);
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.go-restart.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.go-widget-foot {
  margin-top: 12px;
}

.go-widget-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.go-widget-side-left {
  align-items: flex-start;
  justify-self: end;
  gap: 8px;
}

.go-widget-side-right {
  align-items: flex-end;
}

.go-side-line,
.go-side-metric {
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.go-side-stone {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}

.go-side-stone-player {
  background: #f3efe7;
}

.go-side-stone-ai {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.go-side-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 38px;
  letter-spacing: 0.14em;
}

.go-side-metric strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.go-turn-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.go-turn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  opacity: 0.55;
}

.go-turn-dot-player {
  background: #f3efe7;
}

.go-turn-dot-ai {
  background: #0b0b0b;
}

.go-turn-dot.is-active {
  opacity: 1;
  transform: scale(1.15);
}

.go-status {
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

@keyframes stonePlace {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes captureFade {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.6);
  }
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-line {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-line span {
  display: block;
  margin-bottom: 14px;
  color: #696969;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.contact-line input,
.contact-line textarea,
.contact-line-split input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
  resize: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-line textarea {
  min-height: 96px;
}

.contact-line input:focus,
.contact-line textarea:focus,
.contact-line-split input:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

.contact-footer {
  display: flex;
  justify-content: flex-end;
}

.contact-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #f1ede5;
  font-size: 1.8rem;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.contact-arrow::after {
  display: none;
}

.contact-arrow span {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.contact-arrow:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-arrow:hover span {
  transform: translateX(3px);
}

.about-image img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;

  filter: grayscale(0%) brightness(0.9);
  opacity: 0.75;

  transition: filter 0.35s ease, opacity 0.35s ease;
}

.about-image img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}



.highlight {
  color: var(--text);
}
.skills-line {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}
.socials {
  display: flex;
  align-items: center;
}

.socials a {
  color: var(--muted);
  margin-right: 18px;
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--text);
}

.socials svg {
  width: 22px;      /* ↑ bigger */
  height: 22px;
  fill: currentColor;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials a:hover svg {
  opacity: 1;
  transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 600px) {
  .layout {
    flex-direction: column;
  }
   .tagline {
    max-width: 100%;
  }

  .left {
    padding-bottom: 40px;
  }

  .left, .right {
    width: 100%;
    height: auto;
    position: static;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-card h4 {
    font-size: 2.45rem;
  }

  .contact-game {
    margin-top: 34px;
  }

  .go-board-wrap {
    width: 128px;
  }

  .go-board {
    width: 128px;
    height: 128px;
  }

  .go-widget-body {
    grid-template-columns: 46px 1fr 34px;
    column-gap: 6px;
  }

  .contact-footer {
    justify-content: flex-start;
  }
}
