/* ============================================================
   EVAN SCOTT — evanscott.dev
   Stylesheet
============================================================ */

/* ---- Variables ---- */
:root {
  --primary:    #2B5C8E;
  --dark:       #1A1A1A;
  --medium:     #444444;
  --light-bg:   #F7F9FC;
  --section-alt:#EEF3FA;
  --white:      #FFFFFF;
  --accent:     #3B82F6;
  --border:     #E2E8F0;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Layout ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

/* ---- Typography ---- */
h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

p {
  color: var(--medium);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-brand:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--medium);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--light-bg) 0%, #EEF3FA 100%);
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 680px;
}

.hero-credentials {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--medium);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--medium);
}

.stats-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stat-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
  display: flex;
}

.stat-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--medium);
  display: block;
  margin-top: 1px;
}

/* ============================================================
   ABACHAT — Featured Project
============================================================ */
#abachat {
  background: var(--section-alt);
}

.section-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

#abachat h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.abachat-desc {
  font-size: 1rem;
  max-width: 660px;
  line-height: 1.85;
  color: var(--medium);
}

.abachat-beta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 40px;
  opacity: 0.8;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  max-width: 680px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  border: 1px solid var(--border);
}

.feature-icon {
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
}

/* Tech stack tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  background: rgba(43, 92, 142, 0.09);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(43, 92, 142, 0.18);
}

/* ============================================================
   EXPERIENCE — Timeline
============================================================ */
#experience {
  background: var(--white);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

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

/* Dot */
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

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

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-location {
  font-size: 0.78rem;
  color: var(--medium);
}

.timeline-location::before {
  content: '·';
  margin-right: 12px;
  color: var(--border);
}

.timeline-item h3 {
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--medium);
  margin-bottom: 8px;
}

.timeline-content > p:not(.timeline-company) {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--medium);
  margin: 0;
}

/* ============================================================
   SKILLS
============================================================ */
#skills {
  background: var(--light-bg);
}

.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-group h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--medium);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.83rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

/* AI & Technology — primary blue */
.skill-tags--primary .skill-tag {
  background: var(--primary);
  color: var(--white);
}

/* Clinical — white with border */
.skill-tags--secondary .skill-tag {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}

/* Leadership — light blue tint */
.skill-tags--tertiary .skill-tag {
  background: var(--section-alt);
  color: var(--primary);
  border: 1px solid rgba(43, 92, 142, 0.2);
}

/* ============================================================
   CONTACT
============================================================ */
#contact {
  background: var(--white);
  text-align: center;
}

#contact h2 {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.contact-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-btn:active {
  transform: translateY(1px);
}

.contact-btn--outline {
  background: transparent;
  color: var(--primary);
}

.contact-btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark);
  padding: 28px 0;
  text-align: center;
}

footer p {
  font-size: 0.83rem;
  color: #888;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  h2 {
    font-size: 1.65rem;
    margin-bottom: 28px;
  }

  /* Show hamburger, hide nav links by default */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-bottom: none;
  }

  /* Hero adjustments */
  #hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }

  /* ABAchat features single column */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

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

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .timeline {
    padding-left: 22px;
  }
}
