/* ===================================================
   Nathan Davie – Professional Website
   =================================================== */

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

:root {
  --navy:     #0d1b2a;
  --navy-mid: #1b2f44;
  --blue:     #1d5fa8;
  --blue-lt:  #2e7de4;
  --gold:     #c9a84c;
  --off-white:#f7f8fa;
  --text:     #2c3e50;
  --text-lt:  #5a6a7a;
  --border:   #dde3ea;
  --card-bg:  #ffffff;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0f2a45 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(201,168,76,.15), 0 16px 48px rgba(0,0,0,.4);
}

.hero-content {
  text-align: left;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(29,95,168,.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.65);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.hero-tags span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  padding: .85rem 2.2rem;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: rgba(255,255,255,.3);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: inherit;
}

.section-dark .section-title { color: #fff; }

/* ---------- About ---------- */
.about-text {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 760px;
  margin-bottom: 2rem;
  line-height: 1.9;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.about-pills span {
  background: var(--blue);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}

/* ---------- Competencies ---------- */
.competencies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.comp-card {
  flex: 1 1 270px;
  max-width: calc(33.33% - 1rem);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: background var(--transition), transform var(--transition);
}

.comp-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-3px);
}

.comp-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.comp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .6rem;
}

.comp-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ---------- Gartner Spotlight ---------- */
.gartner-spotlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
  box-shadow: 0 6px 32px rgba(201,168,76,.15);
}

.gartner-spotlight-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.gartner-badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}

.gartner-spotlight-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .15rem;
}

.gartner-spotlight-header p {
  font-size: .875rem;
  color: var(--gold);
  font-weight: 500;
}

.gartner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.gartner-stat {
  text-align: center;
}

.gartner-stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
}

.gartner-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}

.gartner-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.gartner-topics span {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  padding: .28rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 500;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.75rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline-marker.founder {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-marker.featured {
  width: 18px;
  height: 18px;
  top: 4px;
  left: calc(-2rem - 2px);
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold), 0 0 12px rgba(201,168,76,.45);
}

.timeline-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: .3rem 0 .2rem;
  color: var(--navy);
}

.timeline-org {
  font-size: .875rem;
  color: var(--text-lt);
  font-style: italic;
  margin-bottom: .75rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content ul li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
  margin-bottom: .4rem;
  line-height: 1.6;
}

.timeline-content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  max-width: 480px;
}

.edu-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background var(--transition);
}

.edu-card:hover { background: rgba(255,255,255,.09); }

.edu-icon { font-size: 1.6rem; margin-bottom: .75rem; }

.edu-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .3rem;
}

.edu-inst {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}

.edu-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 100px;
}

/* Languages */
.languages-bar {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-label {
  width: 70px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

.lang-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 100px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-lt), var(--gold));
  border-radius: 100px;
}

.lang-level {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  width: 42px;
  text-align: right;
}

/* ---------- Contact ---------- */
.contact-container { text-align: center; }

.contact-intro {
  color: var(--text-lt);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 200px;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.contact-card.no-link { cursor: default; }
.contact-card.no-link:hover { transform: none; box-shadow: var(--shadow); }

.contact-icon { font-size: 1.8rem; }

.contact-detail {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .section { padding: 4rem 1.25rem; }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-content { text-align: center; }

  .hero-tags { justify-content: center; }

  .hero-photo {
    width: 160px;
    height: 160px;
  }

  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.25rem; }

  .gartner-stats { grid-template-columns: repeat(3, 1fr); }

  .comp-card { max-width: 100%; }

  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 320px; }
}

/* ---------- Scroll fade-in animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

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