/* Stone.CV Stoneking.Top Stylesheet */
:root {
  --primary-color: #212887;
  --accent-color: #4334BD;
  --background-color: #f5f5f5;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-bar-bg: #ffffff;
  --text-color: #212887;
  --text-light: #abb4c5;
  --hero-overlay-from: rgba(21,28,67,0.85);
  --hero-overlay-to: rgba(21,28,67,0.70);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Site Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; z-index: 1000; box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text-color); }
.brand-mark {
  width: 30px; height: 30px; background: var(--primary-color); color: #fff;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a { font-size: 0.9rem; color: var(--text-color); opacity: 0.8; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 1; text-decoration: none; color: var(--primary-color); }
.nav-action { font-weight: 600; border: 1.5px solid var(--primary-color) !important; padding: 0.3rem 0.9rem; border-radius: 4px; opacity: 1 !important; }
.nav-action:hover { background: var(--primary-color) !important; color: #fff !important; }

/* Hero */
.hero { background: linear-gradient(135deg, #0e1440 0%, #1a237e 50%, #212887 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--hero-overlay-from), var(--hero-overlay-to));
}
.hero-content {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 2rem; max-width: 700px;
}
#hero-title { font-size: 4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.hero-lead { font-size: 1.2rem; font-weight: 400; opacity: 0.9; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-actions a { margin: 0.25rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.65rem 1.4rem;
  border-radius: 6px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; text-decoration: none; }

/* Quick Facts */
.quick-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.1);
  margin-top: -1px;
}
.fact {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.25rem 1.5rem;
  background: #fff;
}
.fact-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-color); font-weight: 600; }
.fact strong { font-size: 0.9rem; font-weight: 600; }

/* Sections */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-muted { background: #fff; }
.section-heading { margin-bottom: 2.5rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-color); font-weight: 600; margin-bottom: 0.4rem; }
.section h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }

/* About Grid */
.about-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 3rem;
  align-items: start;
}
.intro p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
.profile-card { text-align: center; }
.profile-card-img {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--primary-color);
  margin: 0 auto 0.75rem;
}
.profile-card figcaption { font-size: 0.8rem; color: var(--accent-color); font-weight: 600; }

/* Timeline */
.timeline { list-style: none; }
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem;
  padding-bottom: 2rem; border-left: 2px solid var(--background-color);
  padding-left: 2rem; position: relative; margin-left: 0.5rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-color); border: 2px solid #fff;
}
.timeline-date { font-size: 0.85rem; font-weight: 700; color: var(--accent-color); padding-top: 0.2rem; min-width: 0; }
.timeline-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.timeline-body p { font-size: 0.9rem; margin-bottom: 0.6rem; line-height: 1.6; }
.timeline-body ul { padding-left: 1.2rem; }
.timeline-body li { font-size: 0.875rem; margin-bottom: 0.3rem; line-height: 1.5; }

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.project-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px; padding: 1.4rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  box-shadow: 0 8px 30px rgba(33,40,135,0.1);
  transform: translateY(-3px);
}
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.project-type { font-size: 0.75rem; font-weight: 600; color: var(--accent-color); letter-spacing: 0.06em; text-transform: uppercase; }
.project-year { font-size: 0.8rem; color: var(--accent-color); }
.project-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-card p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.75rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; background: var(--background-color); color: var(--primary-color); font-size: 0.7rem; font-weight: 600; }

/* Skills */
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-groups h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.skill-groups p { font-size: 0.875rem; line-height: 1.6; }
.skill-group-item { margin-bottom: 0.75rem; }

/* Contact */
.contact-section {
  background: var(--primary-color); color: #fff; padding: 5rem 2rem;
}
.contact-content { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-content .eyebrow { color: rgba(255,255,255,0.7); }
.contact-content h2 { color: #fff; margin-bottom: 1rem; }
.contact-list { list-style: none; margin-bottom: 1.5rem; text-align: left; display: inline-block; }
.contact-list li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.contact-list strong { display: inline-block; min-width: 60px; }
.contact-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.copy-status { font-size: 0.85rem; margin-top: 0.5rem; opacity: 0.7; min-height: 1.2em; }

/* Footer */
.site-footer {
  display: flex; justify-content: center; gap: 1.5rem; padding: 1.2rem;
  background: var(--text-color); color: var(--background-color);
  font-size: 0.85rem;
}
.site-footer a { color: var(--background-color); }
.site-footer a:hover { color: var(--accent-color); }

/* CV Page */
.cv-page { max-width: 800px; margin: 80px auto 3rem; padding: 2rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.cv-header { text-align: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--primary-color); }
.cv-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.cv-header .contact-line { font-size: 0.9rem; color: var(--accent-color); margin-bottom: 0.5rem; }
.cv-section { margin-bottom: 2rem; }
.cv-section h2 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-color); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1.5px solid var(--background-color); }
.cv-entry { margin-bottom: 1.25rem; }
.cv-entry-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.cv-entry-title { font-weight: 700; font-size: 0.95rem; }
.cv-entry-date { font-size: 0.8rem; color: var(--accent-color); font-weight: 600; }
.cv-entry-subtitle { font-size: 0.85rem; color: var(--accent-color); margin-bottom: 0.4rem; }
.cv-entry p, .cv-entry li { font-size: 0.875rem; line-height: 1.65; }
.cv-entry ul { padding-left: 1.2rem; margin-top: 0.3rem; }
.cv-entry li { margin-bottom: 0.2rem; }
.cv-skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cv-skill-cat { margin-bottom: 0.5rem; }
.cv-skill-cat strong { font-size: 0.85rem; color: var(--primary-color); }
.cv-go-back { text-align: center; padding: 2rem; }
.back-btn { display: inline-block; padding: 0.5rem 1.2rem; border: 2px solid var(--primary-color); border-radius: 6px; font-weight: 600; font-size: 0.9rem; color: var(--primary-color); transition: all 0.2s; }
.back-btn:hover { background: var(--primary-color); color: #fff; text-decoration: none; }
.cv-footer { text-align: center; padding: 1rem; font-size: 0.8rem; color: #999; }

/* Responsive */
@media (max-width: 768px) {
  .site-header { padding: 0 1rem; }
  .site-nav { gap: 1rem; }
  #hero-title { font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 0.75rem; }
  .skill-groups { grid-template-columns: 1fr; }
  .cv-skills-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

/* Partners */
.partner-list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.partner-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  text-decoration: none; color: var(--text-color);
  transition: box-shadow 0.25s, transform 0.25s;
  min-width: 260px;
}
.partner-card:hover {
  box-shadow: 0 6px 24px rgba(33,40,135,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.partner-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.partner-info { display: flex; flex-direction: column; gap: 0.2rem; }
.partner-name { font-weight: 700; font-size: 1rem; }
.partner-link { font-size: 0.8rem; color: var(--accent-color); font-weight: 500; }

/* Contact section: phone/labels in white on dark bg */
.contact-section .contact-list strong { color: rgba(255,255,255,0.75); }
.contact-section .contact-list li { color: rgba(255,255,255,0.95); }
