/* ==========================================================================
   Alex Bodin - Clean Minimalist Monochrome Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #080809;
  --bg-secondary: #101012;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --bg-glass: rgba(8, 8, 9, 0.85);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --btn-bg: #f4f4f5;
  --btn-text: #09090b;
  --btn-hover: #d4d4d8;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.24);

  --radius-md: 10px;
  --radius-lg: 14px;
  --max-width: 880px;
  --transition: 0.18s ease;
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f4f4f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f4f5;
  --bg-glass: rgba(250, 250, 250, 0.88);

  --text-primary: #111113;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --btn-bg: #111113;
  --btn-text: #fafafa;
  --btn-hover: #27272a;

  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

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

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legacy-pill {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.legacy-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.theme-toggle,
.mobile-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Hero / About Intro
   ========================================================================== */

.hero-section {
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-identity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.35rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.hero-headline {
  font-size: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.hero-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--text-primary);
}

.inline-company-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.hero-sep {
  color: var(--text-muted);
}

.location-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-hover);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.location-map-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.about-paragraphs p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary,
.btn-outline {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn-primary:hover,
.btn-outline:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}

.portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

/* ==========================================================================
   Grouped Company Experience Cards
   ========================================================================== */

.company-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition), background var(--transition);
}

.company-card:hover {
  border-color: var(--border-hover);
}

.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.company-location {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.company-tenure {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.company-roles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.role-block {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--border-subtle);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.exp-role {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.exp-bullets {
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ==========================================================================
   Education List
   ========================================================================== */

.edu-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.edu-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.edu-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.edu-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.edu-degree {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-honors {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Connect & Legacy Link Row
   ========================================================================== */

.bottom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.simple-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.simple-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.simple-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.simple-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

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

@media (max-width: 720px) {
  .hero-grid,
  .bottom-split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .portrait-frame {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .company-header,
  .role-header,
  .edu-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1rem;
  }

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

  .mobile-menu-btn {
    display: inline-flex;
  }
}
