/* ============================================
   Mike Thompson — Personal Website
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d2d2d;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Colors --- */
:root {
  --navy:        #1a2b4a;
  --navy-dark:   #111d33;
  --navy-light:  #eef1f7;
  --gold:        #c9a84c;
  --gold-light:  #fdf8ee;
  --gray-light:  #f7f7f7;
  --gray:        #666;
  --text:        #2d2d2d;
  --white:       #ffffff;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4.5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover { background: #b8962f; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
}

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

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

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

.nav-links .btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

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

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

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
  }

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

  .nav-links a {
    padding: 1rem 1.25rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links .btn {
    margin: 1rem 1.25rem;
    width: calc(100% - 2.5rem);
    text-align: center;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-summary {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Headshot */
.hero-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 700px) {
  .hero-photo { width: 160px; height: 160px; }
}

/* ============================================
   HERO — VIDEO LAYOUT
   ============================================ */
.hero-grid-video {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid-video {
    grid-template-columns: 1fr;
  }
  .hero-video-col { order: -1; }
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(201,168,68,0.5),
    0 12px 48px rgba(0,0,0,0.5),
    0 0 80px rgba(201,168,68,0.08);
  background: #0B1629;
  cursor: pointer;
}

.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,22,41,0.35);
  transition: opacity 0.2s;
}

.play-btn.hidden { opacity: 0; pointer-events: none; }

.play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(201,168,68,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(201,168,68,0.20);
  transition: transform 0.18s, box-shadow 0.18s;
}

.play-btn:hover .play-circle {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(201,168,68,0.15);
}

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #111d33;
  margin-left: 4px;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.video-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--gold);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.stat-number {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SECTION LABEL
   ============================================ */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ============================================
   STRENGTHS / CARDS
   ============================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.strength-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.strength-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.page-header h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-header p  { color: rgba(255,255,255,0.75); margin: 0; }

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline { margin-top: 2rem; }

.timeline-company {
  margin-bottom: 3rem;
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.company-dot {
  display: none;
}

.company-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.company-dates {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.company-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0.4rem;
}

.role {
  margin-left: 1.5rem;
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid #e0e0e0;
}

.role-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.role-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.role ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.role ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.highlight-li {
  font-weight: 400;
  color: var(--text) !important;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-badge {
  background: var(--navy-light);
  color: var(--navy);
  border: 1px solid #c5cedf;
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.edu-item {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.edu-degree { font-weight: 700; color: var(--navy); }
.edu-school { font-size: 0.9rem; color: var(--gray); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail-icon { display: none; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,74,0.1);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
footer a:hover { color: var(--gold); }
footer ul li { margin-bottom: 0.4rem; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p  { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; }

/* ============================================
   ANIMATIONS
   ============================================ */

/* Hero slide-in */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-eyebrow  { animation: fadeSlideDown 0.6s ease both; animation-delay: 0.1s; }
.hero h1       { animation: fadeSlideDown 0.6s ease both; animation-delay: 0.25s; }
.hero-title    { animation: fadeSlideDown 0.6s ease both; animation-delay: 0.35s; }
.hero-summary  { animation: fadeSlideUp  0.6s ease both; animation-delay: 0.45s; }
.hero-buttons  { animation: fadeSlideUp  0.6s ease both; animation-delay: 0.55s; }
.hero-photo    { animation: fadeIn       0.9s ease both; animation-delay: 0.3s;  }

/* Scroll fade-in (applied via JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.55s; }

/* Card hover lift */
.strength-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Nav link animated underline */
.nav-links a:not(.btn) {
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.testimonial-quote {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text);
  flex: 1;
  margin-bottom: 1.5rem;
  position: relative;
  padding-top: 1.75rem;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 0;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
}

.testimonial-author {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.testimonial-title {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.bg-light { background: var(--gray-light); }
.bg-navy-light { background: var(--navy-light); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.divider { border: none; border-top: 1px solid #e0e0e0; margin: 2.5rem 0; }
