/* =========================================
   MICHAEL ANDERSON
   TECHNOLOGY LEADERSHIP PORTFOLIO
========================================= */

:root {
  color-scheme: dark;

  --bg: #05080c;
  --panel: #0b1018;
  --panel-soft: #0d1725;

  --border: #202c3b;
  --border-strong: #304258;

  --blue: #4c8dff;
  --blue-light: #80b2ff;

  --text: #f1f3f6;
  --text-muted: #aab6c6;
  --text-soft: #77879a;

  --max-width: 1200px;
  --header-height: 96px;
}

/* RESET */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
}

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

.wrap {
  width: min(
    calc(100% - 48px),
    var(--max-width)
  );
  margin-inline: auto;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* =========================================
   BUTTONS
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 50px;
  padding: 13px 20px;

  border: 1px solid var(--border-strong);
  border-radius: 8px;

  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: #3679ec;
}

.button.outline {
  background: rgba(255, 255, 255, 0.015);
}

.button.outline:hover {
  border-color: var(--blue);
  background: rgba(76, 141, 255, 0.08);
}

.button-arrow {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(5, 8, 12, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;

  border: 2px solid var(--blue);
  border-radius: 50%;
}

.brand > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.2;
}

.brand small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  line-height: 1.5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .linkedin {
  min-height: 46px;
}

/* HAMBURGER */

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  padding: 0;

  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;

  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--blue);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 21px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;

  background: var(--text);
  border-radius: 2px;
}

.header-line {
  height: 1px;
  background: var(--border);
}

/* =========================================
   FULL-SCREEN MENU
========================================= */

.site-menu {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  z-index: 9999;

  overflow-y: auto;

  background: #050a12;
}

.menu-inner {
  width: min(
    calc(100% - 48px),
    1000px
  );

  margin-inline: auto;
  padding: 32px 0 70px;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 35px;
  padding-bottom: 22px;

  border-bottom: 1px solid var(--border);
}

.menu-heading {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 3px;
}

.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  background: transparent;
  color: var(--text);

  border: 1px solid var(--border-strong);
  border-radius: 8px;

  font-size: 30px;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-direction: column;
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 19px 0;

  border-bottom: 1px solid var(--border);

  font-size: clamp(24px, 5vw, 45px);
  font-weight: 700;

  transition: color 0.2s ease;
}

.menu-links a:hover {
  color: var(--blue);
}

.menu-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 620px;
  padding: 110px 0 125px;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(76, 141, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(76, 141, 255, 0.035) 1px,
      transparent 1px
    ),
    radial-gradient(
      ellipse at 75% 35%,
      rgba(22, 69, 125, 0.18),
      transparent 60%
    ),
    #07111f;

  background-size:
    72px 72px,
    72px 72px,
    auto,
    auto;
}

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

.eyebrow {
  margin-bottom: 25px;

  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2.8px;
  line-height: 1.7;
}

.hero h1 {
  margin: 0;

  color: var(--text);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 800;
  letter-spacing: -2.8px;
  line-height: 1.12;
}

.hero h1 span {
  color: var(--blue);
}

.hero-description {
  max-width: 650px;
  margin: 30px 0 0;

  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
}

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

  margin-top: 34px;
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
  padding: 105px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 55px;
}

.section-number {
  display: block;
  margin-bottom: 20px;

  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2.5px;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(35px, 4vw, 55px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.2;
}

.section-heading h2 span {
  color: var(--blue);
}

.section-heading > p {
  max-width: 650px;
  margin: 22px 0 0;

  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
}

/* =========================================
   ABOUT
========================================= */

.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 65px;
  align-items: start;
}

.about-image {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-content {
  min-width: 0;
}

.about-content p {
  margin: 0 0 22px;

  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.about-content .lead {
  color: var(--text);
  font-size: 19px;
  font-weight: 550;
  line-height: 1.75;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;

  margin-top: 38px;
  padding-top: 28px;

  border-top: 1px solid var(--border);
}

.about-details > div {
  min-width: 0;
}

.detail-label {
  display: block;
  margin-bottom: 9px;

  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
}

.about-details strong {
  display: block;

  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

/* =========================================
   EXPERIENCE — ORIGINAL DESIGN
========================================= */

.experience-section {
  background: #070c14;
}

.experience-list {
  display: block;
  width: 100%;

  border-top: 1px solid var(--border);
}

.experience-item {
  display: block;
  width: 100%;

  margin: 0;
  padding: 0;

  border-bottom: 1px solid var(--border);
  background: transparent;
}

/* CLICKABLE ROW */

.experience-summary {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  gap: 0;

  margin: 0;
  padding: 37px 50px 37px 0;

  cursor: pointer;
  list-style: none;
}

.experience-summary::-webkit-details-marker {
  display: none;
}

.experience-summary::marker {
  content: "";
}

/* DATE */

.experience-date {
  display: block;
  width: auto;

  margin: 0 0 14px;
  padding: 0;

  color: var(--blue);

  font-size: 13px;
  font-weight: 750;
  letter-spacing: 3px;
  line-height: 1.5;
}

/* TITLE AND COMPANY */

.experience-content {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
}

.experience-title {
  display: block;

  margin-bottom: 12px;

  color: var(--text);

  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 750;
  line-height: 1.35;
}

.experience-company {
  display: block;

  margin: 0;

  color: #9aa8ba;

  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 400;
  line-height: 1.5;
}

/* PLUS / X ICON */

.experience-expand-icon {
  position: absolute;

  top: 39px;
  right: 7px;

  display: block;

  width: 26px;
  height: 26px;

  border: 0;
  border-radius: 0;
  background: transparent;
}

.experience-expand-icon::before,
.experience-expand-icon::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  background: var(--blue);

  transform: translate(-50%, -50%);

  transition: transform 0.2s ease;
}

.experience-expand-icon::before {
  width: 20px;
  height: 2px;
}

.experience-expand-icon::after {
  width: 2px;
  height: 20px;
}

.experience-item[open]
.experience-expand-icon::before {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}

.experience-item[open]
.experience-expand-icon::after {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}

/* EXPANDED DESCRIPTION */

.experience-expanded {
  display: block;

  width: 100%;

  margin: 0 0 37px;
  padding: 0 48px 0 24px;

  background: transparent;
  border: 0;
  border-radius: 0;

  color: #b7c0cd;

  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.experience-expanded p {
  margin: 0 0 17px;
}

.experience-expanded p:last-child {
  margin-bottom: 0;
}

.experience-expanded ul {
  margin: 18px 0 0;
  padding-left: 24px;
}

.experience-expanded li {
  margin-bottom: 10px;
}

/* HOVER */

.experience-summary:hover
.experience-title {
  color: var(--blue-light);
}

/* KEYBOARD */

.experience-summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* =========================================
   ACHIEVEMENTS
========================================= */

.achievements-section {
  background: var(--bg);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.achievement-card {
  min-width: 0;

  padding: 32px 27px;

  background: var(--panel);

  border: 1px solid var(--border);
  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.achievement-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.achievement-card strong {
  display: block;

  margin-bottom: 20px;

  color: var(--blue);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.achievement-card h3 {
  margin: 0 0 12px;

  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.achievement-card p {
  margin: 0;

  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================
   QUALIFICATIONS
========================================= */

.qualifications-section {
  background: #070c14;
}

.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qualification-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 185px;

  padding: 25px 21px;

  background: var(--panel);

  border: 1px solid var(--border);
  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.qualification-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.qualification-card > span {
  display: block;

  margin-bottom: 19px;

  color: var(--blue);

  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
  line-height: 1.6;
}

.qualification-card h3 {
  margin: 0 0 16px;

  color: var(--text);

  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.qualification-card p {
  margin: auto 0 0;

  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================
   LEADERSHIP
========================================= */

.leadership-section {
  background: var(--bg);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.leadership-card {
  min-width: 0;

  padding: 34px 31px;

  background: var(--panel);

  border: 1px solid var(--border);
  border-radius: 10px;
}

.leadership-number {
  display: block;

  margin-bottom: 25px;

  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
}

.leadership-card h3 {
  margin: 0 0 15px;

  color: var(--text);
  font-size: 22px;
  font-weight: 750;
}

.leadership-card p {
  margin: 0;

  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* =========================================
   RECOMMENDATIONS
========================================= */

.recommendations-section {
  background: #070c14;
}

.recommendations-container {
  max-width: 900px;
  margin-inline: auto;
}

.recommendation-card {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 345px;

  padding: 42px;

  background: var(--panel);

  border: 1px solid var(--border);
  border-radius: 12px;

  touch-action: pan-y;
}

.quote-category {
  display: block;

  margin-bottom: 24px;

  color: var(--blue);

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  line-height: 1.5;
}

.recommendation-card blockquote {
  margin: 0 0 35px;

  color: var(--text);

  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.7;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: auto;
}

.quote-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  flex: 0 0 50px;

  background: rgba(76, 141, 255, 0.13);

  border: 1px solid rgba(76, 141, 255, 0.3);
  border-radius: 50%;

  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.quote-person-details {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
}

.quote-person-details strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.quote-person-details span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.quote-person-details small {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

/* CAROUSEL CONTROLS */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  margin-top: 25px;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  flex: 0 0 45px;

  background: var(--panel);
  color: var(--text);

  border: 1px solid var(--border-strong);
  border-radius: 8px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.carousel-arrow:hover {
  border-color: var(--blue);
  background: rgba(76, 141, 255, 0.1);
}

.carousel-arrow span {
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.carousel-dots button {
  display: block;

  width: 8px;
  height: 8px;

  padding: 0;

  background: #405066;
  border: 0;
  border-radius: 50%;

  cursor: pointer;

  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.carousel-dots button.active {
  width: 24px;
  border-radius: 8px;
  background: var(--blue);
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
  background: var(--bg);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  width: 100%;
  min-width: 0;
}

.contact-label {
  display: block;

  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
}

.contact-email a {
  display: inline-block;

  max-width: 100%;

  color: var(--text);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;

  overflow-wrap: anywhere;

  border-bottom: 1px solid var(--blue);
  padding-bottom: 5px;
}

.contact-email a:hover {
  color: var(--blue);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 40px 0;

  background: #04070b;

  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.footer-brand span {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-copyright {
  width: 100%;
  margin: 0;

  color: var(--text-soft);
  font-size: 11px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .about-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 35px;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qualifications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  :root {
    --header-height: 75px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .linkedin {
    display: none;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
  }

  .menu-inner {
    width: calc(100% - 36px);
    padding-top: 22px;
  }

  .menu-links a {
    font-size: 28px;
    padding: 17px 0;
  }

  /* HERO */

  .hero {
    min-height: 540px;
    padding: 90px 0 95px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 58px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* SECTIONS */

  .section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading > p {
    font-size: 14px;
  }

  /* ABOUT */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    max-width: 360px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* EXPERIENCE */

  .experience-summary {
    padding: 28px 42px 28px 0;
  }

  .experience-date {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 2.5px;
  }

  .experience-title {
    font-size: 21px;
  }

  .experience-company {
    font-size: 16px;
  }

  .experience-expand-icon {
    top: 29px;
    right: 3px;
  }

  .experience-expanded {
    padding: 0 12px;
    margin-bottom: 30px;
    font-size: 16px;
  }

  /* ACHIEVEMENTS */

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

  .achievement-card {
    padding: 28px 24px;
  }

  /* QUALIFICATIONS */

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

  .qualification-card {
    min-height: 155px;
  }

  /* LEADERSHIP */

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

  .leadership-card {
    padding: 29px 25px;
  }

  /* RECOMMENDATIONS */

  .recommendation-card {
    min-height: 380px;
    padding: 28px 23px;
  }

  .recommendation-card blockquote {
    font-size: 18px;
  }

  .carousel-controls {
    gap: 16px;
  }

  /* CONTACT */

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  /* FOOTER */

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .footer-links {
    gap: 18px;
  }

}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

}
