/* ============ Option #5 — Clean/Modern + Creative touches ============ */
:root {
  --bg: #0a0d13;
  --surface: #12161f;
  --surface-2: #1a1f2c;
  --border: #262c3a;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #7c9cff;
  --accent-2: #b48cff;
  --accent-3: #6ee7b7;
  --radius: 14px;
  --max-w: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}
:root.light {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --text-dim: #6b7280;
  --accent: #4f46e5;
  --accent-2: #9333ea;
  --accent-3: #059669;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

/* ============ CURSOR SPOTLIGHT ============ */
.spotlight {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.10), transparent 60%);
  z-index: 1;
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}
:root.light .spotlight {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06), transparent 60%);
}

/* ============ AURORA — static gradient, no animation (smoother) ============ */
.aurora {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 45%),
    radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 50%);
}
.blob { display: none; } /* replaced by the gradients above */

/* Everything above aurora */
.nav, .hero, .marquee, .section, .footer { position: relative; z-index: 2; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1rem; color: var(--text);
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
#theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 1rem; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center;
  transition: background 0.15s ease, transform 0.3s ease;
}
#theme-toggle:hover { background: var(--surface-2); transform: rotate(20deg); }

/* ============ HERO ============ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 32px 48px;
}
.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  margin: 0 0 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 100px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.squiggle {
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  width: 100%; height: 12px;
  color: var(--accent-2);
  opacity: 0.6;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2s ease-out 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  color: var(--text-dim); font-size: 1.15rem;
  max-width: 640px; margin: 0 0 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  display: inline-block; padding: 12px 22px;
  border-radius: var(--radius); font-weight: 500; font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ============ CURRENTLY WIDGET ============ */
.currently {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 720px;
}
.currently-item {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.95rem;
}
.currently-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ============ SKILLS STRIP — static ============ */
.skills-strip {
  padding: 32px 24px;
  margin: 40px 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  text-align: center;
  position: relative;
  z-index: 2;
}
.skills-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 16px;
}
.skills-strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.skills-strip-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.skills-strip-list li:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ============ SECTIONS ============ */
.section { max-width: var(--max-w); margin: 0 auto; padding: 80px 32px; }
.section-alt {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  max-width: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 1.75rem; margin: 0 0 4px; }
.section-sub { color: var(--text-dim); margin: 0; }

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ PROJECT CARDS + TILT ============ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
/* cards are now anchors — remove underline, inherit color */
a.project-card { text-decoration: none; color: inherit; }
a.project-card:hover { text-decoration: none; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.card-cta {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.2s ease;
}
.project-card:hover .card-cta { transform: translateX(4px); }
.project-card::before {
  /* subtle gradient ring on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: var(--accent); }
.project-card:hover::before { opacity: 1; }
.tilt-inner { /* wrapper — no longer needed for transform but kept for HTML compat */ }

.project-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.project-header h3 { font-size: 1.15rem; margin: 0; }
.project-year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.project-desc { color: var(--text-dim); margin: 0 0 16px; flex: 1; }
.tag-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 3px 8px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-dim);
}
.project-links { display: flex; gap: 16px; font-size: 0.9rem; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 220px 2fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 180px 1fr; }
  .about-grid .skills { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-photo { max-width: 200px; margin: 0 auto; }
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35),
              0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45),
              0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.about-grid h2 { font-size: 1.75rem; margin-top: 0; }
.about-grid p { color: var(--text-dim); }
.skills h3 { font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.skill-list li {
  font-family: var(--font-mono); font-size: 0.9rem;
  padding: 8px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.skill-list li:hover { transform: translateX(4px); border-color: var(--accent); }

/* ============ CONTACT ============ */
.contact-inner { text-align: center; padding: 32px 0; }
.contact-inner h2 { font-size: 2.25rem; }
.contact-inner p { color: var(--text-dim); margin-bottom: 24px; }
.contact-links { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.05rem; }
.contact-links span { color: var(--text-dim); }

/* ============ FOOTER ============ */
.footer {
  padding: 32px; text-align: center;
  color: var(--text-dim); font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.secret {
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.secret:hover { color: var(--accent-2); transform: rotate(180deg) scale(1.3); }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============ CASE STUDY PAGES ============ */
.case-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-back {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.case-back:hover { color: var(--accent); text-decoration: none; }

.case-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  position: relative;
  z-index: 2;
}
.case-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 16px;
}
.case-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 20px;
}
.case-hero .case-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 640px;
}

/* Meta chips (Role · Timeline · Team · Tech) */
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.case-meta-item { display: flex; flex-direction: column; gap: 4px; }
.case-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.case-meta-value {
  font-size: 0.95rem;
  color: var(--text);
}

/* Case study body */
.case-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  position: relative;
  z-index: 2;
}
.case-body section { margin-bottom: 56px; }
.case-body h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin: 0 0 20px;
  font-weight: 600;
}
.case-body h3 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.case-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 16px;
}
.case-body p:last-child { margin-bottom: 0; }
.case-body ul {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--text);
}
.case-body li { margin-bottom: 8px; line-height: 1.7; }

/* Highlight / impact block */
.case-highlight {
  padding: 32px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 15%, transparent),
    color-mix(in srgb, var(--accent-2) 15%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  margin: 0 0 20px;
}
.case-highlight-big {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.case-highlight p { margin: 0; color: var(--text-dim); }

/* Coming soon placeholder */
.case-placeholder {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.case-placeholder h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.case-placeholder p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* Next-project navigation */
.case-next {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  border-top: 1px solid var(--border);
}
.case-next-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.case-next-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, transform 0.2s ease;
}
.case-next-link:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(4px);
}


/* Strong link — used on case study CTA to live prototypes */
.link-strong {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0d1117 !important;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}
.link-strong:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}
:root.light .link-strong { color: white !important; }
