/* ============================================================
   CJ Indart — Portfolio Stylesheet
   To change colors: edit the variables in :root below.
   To change fonts: edit the --font-* variables.
============================================================ */

:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --color-bg: #111827;
  --color-surface: #1a2335;
  --color-surface-2: #1f2a3d;
  --color-border: rgba(255,255,255,0.11);
  --color-border-hover: rgba(255,255,255,0.22);

  --color-text-primary: #e8edf7;
  --color-text-secondary: #7a8ba8;
  --color-text-tertiary: #6a7f9a;

  --color-accent: #5b7fd4;
  --color-accent-glow: rgba(91,127,212,0.22);
  --color-accent-subtle: rgba(91,127,212,0.10);
  --color-nav-bg: rgba(17,24,39,0.88);}

/* ── Light theme ── */
body.light {
  --color-bg: #F2EDE3;
  --color-surface: #E9E3D6;
  --color-surface-2: #E0D9C9;
  --color-border: rgba(25,38,70,0.11);
  --color-border-hover: rgba(25,38,70,0.24);
  --color-text-primary: #16213A;
  --color-text-secondary: #48566B;
  --color-text-tertiary: #8A95A3;
  --color-accent: #1B2F5C;
  --color-accent-glow: rgba(27,47,92,0.2);
  --color-accent-subtle: #E2E8F2;
  --color-nav-bg: rgba(242,237,227,0.92);
}
body.light .hero::before {
  background: radial-gradient(ellipse at center, rgba(27,47,92,0.07) 0%, transparent 65%);
}
body.light .hero-photo {
  border-color: rgba(27,47,92,0.25);
  box-shadow: 0 0 30px rgba(27,47,92,0.08);
}

:root {

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --max-width: 1080px;
  --nav-height: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Noise / grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--color-text-secondary); }

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border-hover);
  border-radius: 20px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 5px 12px;
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.theme-toggle:hover { border-color: var(--color-accent); color: var(--color-text-primary); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 72px 40px 96px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

/* Large ambient glow behind the hero */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(74,124,252,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 560px; flex: 1; }

.hero-photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 280px;
  height: 340px;
  border-radius: 50% / 50%;
  overflow: hidden;
  border: 1px solid rgba(74,124,252,0.35);
  order: 2;
  box-shadow: 0 0 40px rgba(74,124,252,0.18), 0 0 80px rgba(74,124,252,0.08);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.1);
  transform-origin: center top;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}
.hero-title em {
  font-style: italic;
  color: var(--color-text-secondary);
}
.hero-bio {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  transition: border-color 0.15s, color 0.15s;
}
.tag:hover { border-color: var(--color-border-hover); color: var(--color-text-primary); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  transition: box-shadow 0.2s, opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--color-accent-glow);
}
.btn-secondary {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 11px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-hover);
  background: transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  background: var(--color-accent-subtle);
}

.hero-deco { display: none; }

/* ── Sections ── */
.section {
  padding: 72px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.85;
}
.section-link {
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.15s;
}
.section-link:hover { color: var(--color-text-primary); }

/* ── Project Cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,124,252,0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card:hover {
  border-color: rgba(74,124,252,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(74,124,252,0.07);
}
.project-card:hover::before { opacity: 1; }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.project-type {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.8;
}
.project-year {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.project-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}
.project-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border: 1px solid rgba(74,124,252,0.2);
}
.project-arrow {
  font-size: 13px;
  color: var(--color-text-tertiary);
  transition: color 0.15s;
  margin-top: auto;
}
.project-card:hover .project-arrow { color: var(--color-accent); }

/* ── About Strip ── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-strip-text .section-label { display: block; margin-bottom: 16px; }
.about-strip-text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-strip-list {
  list-style: none;
  padding-top: 4px;
}
.about-strip-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-strip-list li::before {
  content: '›';
  color: var(--color-accent);
  font-size: 16px;
  line-height: 1;
}
.about-strip-list li:first-child { border-top: 1px solid var(--color-border); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-text-primary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-copy {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.55s ease both; }
.hero-title   { animation: fadeUp 0.55s ease 0.08s both; }
.hero-bio     { animation: fadeUp 0.55s ease 0.16s both; }
.hero-tags    { animation: fadeUp 0.55s ease 0.22s both; }
.hero-cta     { animation: fadeUp 0.55s ease 0.28s both; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 20px 60px; flex-direction: column; gap: 36px; }
  .hero-photo { width: 140px; height: 170px; order: 0; }
  .section { padding: 48px 20px; }
  .about-strip { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
}
