/* ==========================================================================
   Jackson Konur — shared stylesheet for every page
   Palette: deep navy background, cyan primary accent, violet secondary
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-raised: #0e1424;
  --bg-card: rgba(18, 25, 43, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 229, 255, 0.35);

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.12);

  --text: #f1f5f9;
  --text-2: #b6c2d4;
  --text-3: #8392a8;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--cyan);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
}

/* Background glow + particle canvas (homepage only) */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px circle at 90% 30%, rgba(167, 139, 250, 0.10), transparent 60%);
}

/* ==========================================================================
   Header + navigation (identical on every page)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav a[aria-current='page'] {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.lead {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 0 0 36px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.tag.violet {
  background: var(--violet-soft);
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cyan);
  color: #04121a;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Homepage: hero / profile
   ========================================================================== */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-2);
  max-width: 54ch;
  margin: 0 0 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.hero-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  margin: 0;
}

.hero-panel dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-panel dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}

.hero-panel dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-2);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid p {
  color: var(--text-2);
  margin: 0 0 16px;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.fact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.fact-list .icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--violet-soft);
  font-size: 1rem;
}

.fact-list strong {
  color: var(--text);
  display: block;
}

/* Skills */
.skill-card .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.skill-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 8px 0 0;
}

/* Experience timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  padding-top: 26px;
}

.timeline-item .card p {
  color: var(--text-2);
  margin: 8px 0 0;
}

.role {
  color: var(--violet);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}

.section-cta {
  margin-top: 32px;
}

/* Contact */
.contact-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(32px, 6vw, 64px) var(--gutter);
}

.contact-box .lead {
  margin: 0 auto 28px;
}

.contact-box .btn-row {
  justify-content: center;
}

.contact-email {
  font-family: var(--font-mono);
  color: var(--text-2);
  margin-top: 18px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Subpage header (resume + project)
   ========================================================================== */
.page-hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 24px;
}

/* ==========================================================================
   Resume page
   ========================================================================== */
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

.resume-block + .resume-block {
  margin-top: 40px;
}

.resume-block h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.entry + .entry {
  margin-top: 26px;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  white-space: nowrap;
}

.entry ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-2);
}

.entry li + li {
  margin-top: 6px;
}

.entry li::marker {
  color: var(--cyan);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-2);
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Project page
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--cyan);
}

.stat .label {
  color: var(--text-2);
  font-size: 0.9rem;
}

.prose {
  max-width: 70ch;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 12px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.steps strong {
  color: var(--text);
}

/* ==========================================================================
   Footer (identical on every page)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-2);
}

/* Small entrance animation, skipped for people who prefer reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .btn {
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .about-grid,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 18px;
    background: rgba(7, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .btn-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Project photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 56px;
}

.gallery figure {
  margin: 0;
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  position: relative;
}

.gallery figure.wide {
  grid-column: span 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  font-size: 0.85rem;
  color: var(--text);
  background: linear-gradient(transparent, rgba(7, 11, 22, 0.85));
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure,
  .gallery figure.wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img {
    transition: none;
  }
}

@media (max-width: 720px) {
  .stat {
    padding: 18px 12px;
  }

  .stat .num {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header,
  .site-footer,
  .btn-row,
  .btn,
  .bg-canvas,
  body::before,
  .skip-link {
    display: none !important;
  }

  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .resume-layout {
    display: block;
  }

  .card {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px;
  }

  .sidebar {
    margin-top: 30px;
  }
}
