/* =============================================================
   theme-modern.css — Clean, contemporary design
   Font: DM Sans — modern, geometric, but warmer than Inter
   Palette: Warm slate + electric teal + amber accent
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
.theme-modern {
  --color-bg:         #fafaf9;
  --color-surface:    #ffffff;
  --color-border:     #e7e5e4;
  --color-text:       #1c1917;
  --color-text-muted: #78716c;
  --color-primary:    #0d9488;   /* teal-600 */
  --color-accent:     #f59e0b;   /* amber-400 */
  --color-tag-bg:     #f0fdfa;
  --color-tag-text:   #0d9488;
  --color-tag-border: #99f6e4;
  --color-card-bg:    #ffffff;
  --color-card-shadow: rgba(0,0,0,0.06);
  --color-toggle-bg:  #0d9488;
  --color-toggle-text: #ffffff;

  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ── Global elements ────────────────────────────────────────── */
.theme-modern a:not(.btn):not(.contact-link):not(.project-link):not(.footer-note a) {
  color: var(--color-primary);
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-modern .theme-toggle {
  background: var(--color-toggle-bg);
  color: var(--color-toggle-text);
}

/* ── Header ─────────────────────────────────────────────────── */
.theme-modern .section-header {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #0c4a6e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.theme-modern .section-header::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.theme-modern .header-avatar {
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 20px rgba(0,0,0,0.25);
}

.theme-modern .name         { color: #ffffff; }
.theme-modern .title        { color: rgba(255,255,255,0.85); }
.theme-modern .tagline      { color: rgba(255,255,255,0.65); }
.theme-modern .contact-link { color: rgba(255,255,255,0.9); }
.theme-modern .contact-link:hover { opacity: 0.75; }

/* ── Section dividers ───────────────────────────────────────── */
.theme-modern .section-summary,
.theme-modern .section-skills,
.theme-modern .section-contact {
  background: var(--color-surface);
}

.theme-modern .section-experience,
.theme-modern .section-education,
.theme-modern .section-projects {
  background: var(--color-bg);
}

/* ── Section titles ─────────────────────────────────────────── */
.theme-modern .section-title { color: var(--color-primary); }
.theme-modern .section-title svg { stroke: var(--color-primary); }

/* ── Summary ────────────────────────────────────────────────── */
.theme-modern .summary-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
}

/* ── Experience cards ───────────────────────────────────────── */
.theme-modern .experience-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.theme-modern .experience-item:hover {
  box-shadow: 0 8px 24px rgba(13,148,136,0.1);
  transform: translateY(-2px);
}

.theme-modern .experience-company { color: var(--color-primary); }
.theme-modern .experience-title   { color: var(--color-text); }
.theme-modern .experience-meta,
.theme-modern .experience-dates   { color: var(--color-text-muted); }

.theme-modern .experience-highlights li { color: var(--color-text); }
.theme-modern .experience-highlights li::before { color: var(--color-primary); }

/* ── Skills ─────────────────────────────────────────────────── */
.theme-modern .skills-category-title { color: var(--color-text-muted); }

.theme-modern .skill-tag {
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border: 1px solid var(--color-tag-border);
}

/* ── Education ──────────────────────────────────────────────── */
.theme-modern .education-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.theme-modern .education-degree { color: var(--color-text); }
.theme-modern .education-school { color: var(--color-text-muted); }
.theme-modern .education-honors { color: var(--color-primary); }
.theme-modern .education-dates  { color: var(--color-text-muted); }

/* ── Projects ───────────────────────────────────────────────── */
.theme-modern .project-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.theme-modern .project-card:hover {
  box-shadow: 0 8px 24px rgba(13,148,136,0.1);
  transform: translateY(-2px);
}

.theme-modern .project-name  { color: var(--color-text); }
.theme-modern .project-desc  { color: var(--color-text-muted); }
.theme-modern .project-tech-tag {
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border: 1px solid var(--color-tag-border);
}
.theme-modern .project-link { color: var(--color-primary); }

/* ── Contact / CTA ──────────────────────────────────────────── */
.theme-modern .section-contact {
  border-top: 1px solid var(--color-border);
}

.theme-modern .btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.theme-modern .btn-primary:hover { background: #0f766e; }

.theme-modern .btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.theme-modern .btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.theme-modern .footer-note { color: var(--color-text-muted); }

/* ── Scroll animations (Modern only) ───────────────────────── */
.theme-modern .animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.theme-modern .animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered delays for experience/project cards */
.theme-modern .animate-in:nth-child(1) { transition-delay: 0.05s; }
.theme-modern .animate-in:nth-child(2) { transition-delay: 0.10s; }
.theme-modern .animate-in:nth-child(3) { transition-delay: 0.15s; }
.theme-modern .animate-in:nth-child(4) { transition-delay: 0.20s; }
