/* =========================================================
   Cole Fennel — Consulting Site
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0B1728;
  --navy-mid:    #132038;
  --navy-light:  #1E3354;
  --accent:      #2E7BE8;
  --accent-dark: #1A5CBF;
  --accent-glow: rgba(46, 123, 232, 0.15);
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --text:        #111827;
  --text-mid:    #374151;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --border-dark: #D1D5DB;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Navigation ------------------------------------------ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: rgba(11, 23, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero ------------------------------------------------ */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, #162540 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 123, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 123, 232, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent), rgba(46,123,232,0.2));
  box-shadow: 0 0 60px rgba(46, 123, 232, 0.25);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,123,232,0.14) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 123, 232, 0.15);
  border: 1px solid rgba(46, 123, 232, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7FB3F5;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

#hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

#hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(46, 123, 232, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46, 123, 232, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.hero-stats {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  z-index: 1;
}

.hero-stats .container {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* --- Section Shared ------------------------------------- */
section { padding: 96px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* --- Expertise ------------------------------------------ */
#expertise {
  background: var(--off-white);
}

.expertise-header {
  margin-bottom: 56px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.expertise-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 123, 232, 0.3);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.expertise-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(46, 123, 232, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
}

/* --- Experience ------------------------------------------ */
#experience {
  background: var(--white);
}

.experience-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.experience-intro {
  position: sticky;
  top: 100px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-item.current .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-dates {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.current-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(46, 123, 232, 0.25);
  padding: 2px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: box-shadow 0.2s;
}

.timeline-card:hover {
  box-shadow: var(--shadow-sm);
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.timeline-card .company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.achievement-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

/* --- Certifications ------------------------------------- */
#certifications {
  background: var(--navy);
  padding: 80px 0;
}

#certifications .section-label { color: #7FB3F5; }

#certifications .section-title { color: var(--white); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s, border-color 0.2s;
}

.cert-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(46, 123, 232, 0.4);
}

.cert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(46, 123, 232, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 20px;
  height: 20px;
  color: #7FB3F5;
}

.cert-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Publications --------------------------------------- */
#publications {
  background: var(--off-white);
  padding: 80px 0;
}

.pub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pub-intro {}

.pub-stat {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.pub-stat span {
  font-size: 1.8rem;
}

.pub-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(46, 123, 232, 0.3);
}

.pub-item p {
  font-size: 0.875rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.5;
}

.pub-arrow {
  flex-shrink: 0;
  color: var(--accent);
}

/* --- Education ------------------------------------------ */
#education {
  background: var(--white);
  padding: 80px 0;
}

.edu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.edu-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-icon svg { width: 22px; height: 22px; color: var(--accent); }

.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.edu-card .degree {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 4px;
  font-weight: 500;
}

.edu-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Contact -------------------------------------------- */
#contact {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 96px 0;
  text-align: center;
}

#contact .section-label { color: #7FB3F5; }
#contact .section-title { color: var(--white); }
#contact .section-sub {
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 48px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 200px;
  justify-content: center;
}

.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(46, 123, 232, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-card svg { color: var(--accent); }

/* --- Footer --------------------------------------------- */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- Scroll animations ---------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-intro {
    position: static;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .pub-layout {
    grid-template-columns: 1fr;
  }

  .edu-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats .container {
    gap: 32px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  section { padding: 72px 0; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 23, 40, 0.98);
    padding: 20px 32px 28px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile, pull stats out of absolute positioning so they
     flow below the hero content and never overlap the buttons. */
  #hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100svh;
  }

  .hero-stats {
    position: static;
    margin-top: 48px;
  }

  .hero-stats .container {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-photo-wrap { display: none; }

  .stat-number { font-size: 1.4rem; }

  #hero h1 { font-size: 2rem; }

  .certs-grid { grid-template-columns: 1fr; }

  .contact-cards { flex-direction: column; align-items: center; }

  .contact-card { width: 100%; max-width: 320px; }

  .timeline-card { padding: 22px 20px; }
}
