/* ============================================================
   SHINE ANN JOHN — Dev Portfolio CSS
   Matches teacher portfolio: navy+teal, light default, dark toggle
   Fonts: DM Serif Display + DM Sans + DM Mono
   ============================================================ */

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

/* ── LIGHT MODE TOKENS (default) ────────────────────────── */
:root,
[data-theme="light"] {
  --bg:        #f4f8fa;
  --bg2:       #ffffff;
  --bg3:       #e8f2f6;
  --border:    rgba(27,58,92,.12);
  --border2:   rgba(27,58,92,.20);
  --text:      #0d1c28;
  --text-muted:#385a6e;
  --text-dim:  #8aafc0;
  --accent:    #1B3A5C;
  --accent2:   #2A7F8F;
  --accent-bg: rgba(42,127,143,.09);
  --accent-bg2:rgba(42,127,143,.17);
  --nav-bg:    rgba(244,248,250,.95);
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --mono:      'DM Mono', 'Courier New', monospace;
  --radius:    6px;
  --max:       1000px;
}

/* ── DARK MODE TOKENS ────────────────────────────────────── */
[data-theme="dark"] {
  --bg:        #0c1219;
  --bg2:       #111923;
  --bg3:       #172030;
  --border:    rgba(42,127,143,.12);
  --border2:   rgba(42,127,143,.22);
  --text:      #dde8ee;
  --text-muted:#7a99aa;
  --text-dim:  #3d5566;
  --accent:    #3ab0c4;
  --accent2:   #6dd4e6;
  --accent-bg: rgba(42,127,143,.10);
  --accent-bg2:rgba(42,127,143,.20);
  --nav-bg:    rgba(12,18,25,.92);
}

/* ── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::selection { background: var(--accent-bg2); color: var(--accent2); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 7px 18px;
  border: 1px solid var(--border2) !important;
  border-radius: 4px;
  color: var(--accent) !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent-bg) !important;
  border-color: var(--accent) !important;
}

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

[data-theme="dark"]  .theme-toggle__icon--light { display: none; }
[data-theme="light"] .theme-toggle__icon--dark  { display: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 48px 90px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hero-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 100px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 30px;
  letter-spacing: -0.025em;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-title em { font-style: italic; color: var(--accent2); }

.hero-sub {
  max-width: 580px;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 38px;
  font-weight: 300;
  animation: fadeUp 0.7s ease 0.35s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  animation: fadeUp 0.7s ease 0.45s both;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 14px;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.badge:hover { border-color: var(--accent2); color: var(--accent2); }

.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.55s both;
}

.link-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.link-pill:hover { color: var(--text); background: var(--bg3); }

.link-pill--accent {
  background: var(--accent-bg);
  border-color: var(--accent2);
  color: var(--accent2);
}
.link-pill--accent:hover { background: var(--accent-bg2); color: var(--accent); }

.hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 48px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 44px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}
.about-text h2 em { font-style: italic; color: var(--accent2); }

.about-text p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 22px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: fit-content;
}
.stat {
  background: var(--bg2);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.2s;
}
.stat:hover { background: var(--bg3); }

.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent2);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.timeline-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: 0.04em;
}
.timeline-loc { font-size: 13px; color: var(--text-dim); }

.timeline-role {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.timeline-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--mono);
}
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.timeline-bullets li {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  padding-left: 22px;
  position: relative;
  line-height: 1.75;
}
.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 13px;
}

/* ── PROJECTS ────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card { background: var(--bg2); padding: 38px 34px; transition: background 0.2s; }
.project-card:hover { background: var(--bg3); }
.project-card--featured { grid-column: 1 / -1; border-bottom: 1px solid var(--border); }

.project-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.project-name { font-size: 24px; font-weight: 500; color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em; }
.project-card--featured .project-name { font-size: 28px; }

.project-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; font-weight: 300; margin-bottom: 22px; }

.project-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.project-chips span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

.project-store-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.project-store-link:hover { opacity: 0.65; }

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 64px; }

.skill-group-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tags span {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg2);
  border-radius: 4px;
  padding: 5px 13px;
  font-weight: 300;
  transition: color 0.2s, background 0.2s;
}
.skill-tags span:hover { color: var(--accent2); background: var(--accent-bg); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { border-bottom: none; }
.contact-inner { max-width: 660px; }

.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}
.contact-inner h2 em { font-style: italic; color: var(--accent2); }

.contact-inner p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 44px;
  line-height: 1.85;
}

.contact-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-bg2);
  border: 1px solid var(--accent2);
  border-radius: 4px;
  color: var(--accent2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 36px;
}
.contact-btn:hover { background: var(--accent2); color: var(--bg); }

.contact-meta {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 34px 48px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label  { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title  { animation: fadeUp 0.7s ease 0.2s both; }
.hero-sub    { animation: fadeUp 0.7s ease 0.35s both; }
.hero-badges { animation: fadeUp 0.7s ease 0.45s both; }
.hero-links  { animation: fadeUp 0.7s ease 0.55s both; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav { padding: 0 24px; }
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .hero { padding: 110px 24px 70px; }
  .hero-title { font-size: clamp(48px, 12vw, 72px); }
  .hero-sub { font-size: 17px; }
  .section { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 14px; }
  .timeline-meta { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: 1; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 36px 44px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-links { flex-direction: column; }
  .link-pill { text-align: center; }
}
