/*
Theme Name: GeoffClark.Pro
Theme URI: https://geoffclark.pro
Author: Geoff Clark
Author URI: https://geoffclark.pro
Description: Professional portfolio theme — dark refined design for FTE marketability.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geoffclarkpro
*/

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --accent: #46d4ff;
  --accent-dim: #1fa3d1;
  --accent-subtle: rgba(70, 212, 255, 0.1);
  --accent-ring: rgba(70, 212, 255, 0.25);
  --border: #30363d;
  --border-light: #21262d;
  --success: #3fb950;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --container: 1100px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ================================================================
   Container
   ================================================================ */
.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7ee0ff; }

/* ================================================================
   Sections
   ================================================================ */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-secondary); }

.section__header { margin-bottom: 48px; }
.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
}

/* ================================================================
   Site Header / Nav
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  font-family: "lindsey-signature", cursive;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.site-brand:hover { opacity: 0.85; color: var(--accent); }
.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.site-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  padding: 100px 0 80px;
}
.hero__name {
  font-family: "lindsey-signature", cursive;
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.05;
  margin-bottom: 8px;
}
.hero__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero__summary {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 28px;
}
.hero__summary p { margin-bottom: 10px; }
.hero__summary p:last-child { margin-bottom: 0; }
.hero__summary a { color: var(--accent); }
.hero__summary a:hover { color: #7ee0ff; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-subtle);
  color: var(--accent);
  white-space: nowrap;
}
.badge--success {
  border-color: rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.1);
  color: var(--success);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Hero Grid (text + photo) */
.hero__grid--with-photo {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--gallery-fade, 800ms) ease-in-out;
}
.hero__photo-img.active {
  opacity: 1;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #7ee0ff;
  border-color: #7ee0ff;
  color: var(--bg-primary);
}
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--accent-dim);
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ================================================================
   Skills Grid
   ================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.skill-card:hover { border-color: var(--accent-dim); }
.skill-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skill-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* ================================================================
   Experience Timeline
   ================================================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  margin-bottom: 40px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border);
}
.timeline__item--featured .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.timeline__dates {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.timeline__role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.timeline__company {
  font-size: 15px;
  color: var(--accent-dim);
  margin-bottom: 2px;
}
.timeline__company a { color: var(--accent); text-decoration: none; }
.timeline__company a:hover { color: #7ee0ff; text-decoration: underline; }
.timeline__location {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.timeline__achievements {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline__achievements li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.timeline__achievements li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline__compact {
  font-size: 15px;
  color: var(--text-secondary);
}
.timeline__compact strong { color: var(--text-primary); font-weight: 600; }
.timeline__compact a { color: var(--accent); text-decoration: none; }
.timeline__compact a:hover { color: #7ee0ff; text-decoration: underline; }

/* Rich text content within timeline entries */
.timeline__content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.timeline__content p { margin: 0 0 8px; }
.timeline__content ul { list-style: none; padding: 0; margin: 0; }
.timeline__content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.timeline__content li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline__content a { color: var(--accent); }
.timeline__content a:hover { color: #7ee0ff; }

/* ================================================================
   Education & Certifications
   ================================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.edu-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.edu-card__type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.edu-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-card__detail {
  font-size: 14px;
  color: var(--text-secondary);
}
.edu-card__status {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.edu-card__status--active {
  background: rgba(63, 185, 80, 0.1);
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.edu-card__status--progress {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(70, 212, 255, 0.3);
}
.edu-card__status--expired {
  background: rgba(139, 148, 158, 0.1);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

/* ================================================================
   About Section
   ================================================================ */
.about__content { max-width: 760px; }
.about__text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.about__text a { color: var(--accent); }
.about__text a:hover { color: #7ee0ff; }
.about__text p { margin-bottom: 12px; }
.about__text p:last-child { margin-bottom: 0; }
.about__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 16px;
}

/* ================================================================
   Contact Section
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact__info h3 { margin-bottom: 20px; }
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.contact__link:hover { color: var(--accent); }
.contact__link img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.contact__link:hover img { opacity: 1; }
.contact__social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.contact__social-link:hover {
  border-color: var(--accent-dim);
  background: var(--accent-subtle);
}
.contact__social-link img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.contact__social-link:hover img { opacity: 1; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-tertiary);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__center {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer__link {
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a { color: var(--text-tertiary); }
.footer__social a:hover { color: var(--text-primary); }
.footer__social img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.footer__social a:hover img { opacity: 0.9; }

/* ================================================================
   Narrative Page (Full Story)
   ================================================================ */
.narrative-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.narrative__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-weight: 600;
  color: var(--text-secondary);
}
.narrative__back:hover { color: var(--accent); }
.narrative__section { margin-bottom: 48px; }
.narrative__section:last-child { margin-bottom: 0; }
.narrative__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.narrative__body {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}
.narrative__body p { margin-bottom: 16px; }
.narrative__body p:last-child { margin-bottom: 0; }
.narrative__body a { color: var(--accent); }
.narrative__body a:hover { color: #7ee0ff; }
.narrative__body ul, .narrative__body ol { padding-left: 20px; margin-bottom: 16px; }

/* ================================================================
   Privacy Modal
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 1000;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  width: min(700px, 92vw);
  max-height: 70vh;
  overflow: auto;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  z-index: 1001;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}
.modal-backdrop.show + .modal-panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.modal-panel h3 { margin-bottom: 16px; }
.modal-panel h4 { margin: 16px 0 6px; font-size: 15px; color: var(--text-primary); }
.modal-panel p { color: var(--text-secondary); margin: 0 0 12px; font-size: 15px; }
.modal__actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ================================================================
   Fade-in Animation
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
  .hero__grid--with-photo {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__photo {
    max-width: 320px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section__header { margin-bottom: 32px; }
  .hero { padding: 60px 0 48px; }
  .hero__name { font-size: clamp(44px, 12vw, 80px); }
  .hero__photo { max-width: 280px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero__badges { gap: 8px; }
  .badge { font-size: 12px; padding: 5px 10px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
