/* ============================================================
   index.css — Madelane Daz Portfolio
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        rgba(250,250,242,0.5);
  --bg2:       #f0f2e4;
  --surface:   #ffffff;
  --border:    #dde2cc;
  --text:      #14180e;
  --muted:     #6b7556;
  --accent:    #2f7d3a;
  --accent2:   #e8c842;
  --tag-bg:    #eaf3dc;
  --tag-text:  #2f7d3a;
  --shadow:    rgba(20, 40, 10, 0.10);
  --toggle-bg: #dde2cc;
}

/* fafaf2 */

[data-theme="dark"] {
  --bg:        #10130d;
  --bg2:       #181c12;
  --surface:   #1f2417;
  --border:    #2d3522;
  --text:      #ecf2dd;
  --muted:     #889078;
  --accent:    #7ec96a;
  --accent2:   #f5d850;
  --tag-bg:    #1e2818;
  --tag-text:  #b8e088;
  --shadow:    rgba(0, 0, 0, 0.4);
  --toggle-bg: #2d3522;
}

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

html {
  /* allows page to glide between sections smoothly when nav links are clicked */
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden; /* prevents horizontal scrollbar caused by the .blob element hanging off the right edge */
  transition: background 0.35s ease, color 0.35s ease;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  margin: 0 auto;
  max-width: 760px;
  padding: 0 2rem;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  backdrop-filter: blur(12px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 760px;
  padding: 1rem 2rem;
}

.nav-logo {
  color: var(--accent);
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-logo-mobile { 
  display: none;
  font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 600px) {
  .nav-logo-full  { display: none; }
  .nav-logo-mobile { display: inline; }
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── WEBSITE THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  background: var(--toggle-bg);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  flex-shrink: 0;
  height: 26px;
  position: relative;
  transition: background 0.5s;
  width: 48px;
}
/* the circle on the toggle */
.theme-toggle::after {
  background: var(--accent);
  border-radius: 50%;
  content: '';
  height: 20px;
  left: 3px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(.68, -.55, .27, 1.55);
  top: 3px;
  width: 20px;
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(22px);
}

.toggle-icons {
  align-items: center;
  display: flex;
  font-size: 11px;
  inset: 0;
  justify-content: space-between;
  padding: 0 5px;
  position: absolute;
}

/* ── maddc0de ───────────────────────────────────────────────── */
.maddc0de {
  padding: 6rem 0 4rem;
}

.maddc0de-title {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-size: 0.8rem;
  font-weight: 500;
  gap: 0.6rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.maddc0de-title::before {
  background: var(--accent);
  content: '';
  height: 1.5px;
  width: 24px;
}

.maddc0de h1 {
  color: var(--text);
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.maddc0de h1 em {
  color: var(--accent);
}

.maddc0de-bio {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.8;
}

.maddc0de-bio-current {
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  margin-top: -1rem;
  padding-left: 0.85rem;
}

.maddc0de-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(47, 125, 58, 0.35);
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
  transform: translateY(-1px);
}

/* ── SECTIONS ────────────────────────────────────────────── */
section {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.section-label {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.6rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.section-label::before {
  background: var(--accent);
  content: '';
  display: inline-block;
  height: 1.5px;
  width: 16px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ── EXPERIENCE & EDUCATION TIMELINE ────────────────────────── */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 1.5rem;
}

.timeline-meta {
  padding-top: 0.15rem;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.timeline-location {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.timeline-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
}

.timeline-title {
  color: var(--accent);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-org-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-desc-label {
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.timeline-proj-list {
  font-size: 0.88rem;
  list-style: none;
}

.timeline-proj-name {
  color: var(--text);
  font-weight: 500;
}

.timeline-proj-desc {
  color: var(--muted);
}

.timeline-proj-list li::before {
  color: var(--accent);
  content: '→';
  font-size: 0.75rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--tag-bg);
  border-radius: 4px;
  color: var(--tag-text);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
}

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  padding: 1.5rem;
  text-decoration: none;
}

.project-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  content: '';
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
  transform: translateY(-3px);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.project-desc {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
  line-height: 1.6;
}

.project-arrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── SKILLS ──────────────────────────────────────────────── */
/* .skills-groups {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skill-group-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 400;
  transition: all 0.2s;
}

.skill-tag:hover {
  background: var(--tag-bg);
  color: var(--tag-text);
  border-color: var(--accent);
} */

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent2);
}

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

.maddc0de-title { animation: fadeUp 0.5s ease both; }
.maddc0de h1      { animation: fadeUp 0.5s 0.1s ease both; }
.maddc0de-bio     { animation: fadeUp 0.5s 0.2s ease both; }
.maddc0de-links   { animation: fadeUp 0.5s 0.3s ease both; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .timeline-dot {
    margin-top: 0;
  }
}