/* About page styles */

:root {
  /* About page variables */
  --about-title-size: 3vw; /* Large heading size */
  --about-padding: 4vw; /* Padding from edges */
  --about-gap: 2vw; /* Gap between image boxes and text/image */
  --about-image-box-width: calc((100vw - var(--nav-width) - 12vw - 3vw) / 4); /* Width of one image box */
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  overflow-x: hidden;
}

.site-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Nav positioning - fixed and translucent with light blue tint on about page */
.side-nav {
  z-index: 2200;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  width: var(--nav-width);
  background-color: rgba(220, 235, 250, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: navTintIn 1250ms ease-out forwards;
}

@keyframes navTintIn {
  from {
    background-color: rgba(255, 255, 255, 0.4);
  }
  to {
    background-color: rgba(220, 235, 250, 0.8);
  }
}

/* Nav collapsed state */
.side-nav.collapsed {
  width: calc(var(--nav-visible) * 2);
}

/* Collapsed label positioning */
.collapsed-label {
  z-index: 2250;
}

/* Main content area */
.about-content {
  flex: 1;
  padding: 0;
  margin-left: var(--nav-width);
  transition: margin-left 260ms ease;
}

.side-nav.collapsed ~ .about-content {
  margin-left: calc(var(--nav-visible) * 2);
  --about-image-box-width: calc((100vw - calc(var(--nav-visible) * 2) - 12vw - 3vw) / 4);
}

/* About Hero Section - title + bio + image in one layout */
.about-hero-section {
  padding-top: var(--about-padding);
  padding-left: 8vw;
  padding-right: var(--about-padding);
  transition: padding-left 260ms ease;
}

.side-nav.collapsed ~ .about-content .about-hero-section {
  padding-left: 4vw;
}

.about-hero-layout {
  display: flex;
  gap: var(--about-gap);
  align-items: flex-start;
}

.about-text-column {
  flex: 1;
}

.about-title {
  font-family: 'LunchType Regular', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: var(--about-title-size);
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.1;
}

.about-subheading {
  font-family: 'LunchType Regular', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 1.1vw;
  font-weight: 400;
  color: #333;
  margin: 1.5vw 0 1vw 0;
  line-height: 1.4;
}

.about-body-text {
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 1vw;
  color: #333;
  margin: 0 0 1.5vw 0;
  line-height: 1.6;
}

.about-subheading-small {
  font-family: 'LunchType Regular', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 1.1vw;
  font-weight: 400;
  color: #333;
  margin: 2vw 0 1vw 0;
  line-height: 1.4;
}

.about-email-link {
  display: block;
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 1.25vw;
  color: #4a90e2;
  text-decoration: none;
  margin-bottom: 0.3vw;
  transition: color 260ms ease;
}

.about-email-link:hover {
  color: #2e5bb8;
}

.about-disclaimer {
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 0.85vw;
  color: #999;
  margin: 1.5vw 0 -1.5vw 0;
  line-height: 1.4;
}

.about-image-container {
  width: var(--about-image-box-width);
  min-width: var(--about-image-box-width);
  align-self: stretch;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  transition: width 260ms ease, min-width 260ms ease;
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Image Section */
.about-image-section {
  padding-left: 8vw;
  padding-right: var(--about-padding);
  padding-top: var(--about-padding);
  transition: padding-left 260ms ease;
}

.side-nav.collapsed ~ .about-content .about-image-section {
  padding-left: 4vw;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1vw;
  width: 100%;
}

.about-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fadeIn 400ms ease-in forwards;
}

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

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

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

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

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


.about-social-heading {
  font-family: 'LunchType Regular', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  font-size: 0.9vw;
  font-weight: 400;
  color: #999;
  margin: 1vw 0 2vw 0;
  line-height: 1.4;
}

.about-social-icons {
  display: flex;
  gap: 1vw;
  margin-bottom: 4vw;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3vw;
  height: 3vw;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 260ms ease;
  text-decoration: none;
}

.social-icon-link:hover {
  background-color: #e8e8e8;
}

.social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5vw;
}

/* Dev Controls */
.dev-controls {
  margin-top: 2vw;
  padding-top: 2vw;
  border-top: 1px solid #e0e0e0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75vw;
  cursor: pointer;
  user-select: none;
  font-size: 1.2vw;
  color: #666;
}

.toggle-input {
  display: none;
}

.toggle-switch {
  display: inline-block;
  width: 2.5vw;
  height: 1.25vw;
  background-color: #ccc;
  border-radius: 1.25vw;
  position: relative;
  transition: background-color 260ms ease;
}

.toggle-switch::after {
  content: '';
  display: block;
  width: 1vw;
  height: 1vw;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 0.125vw;
  left: 0.125vw;
  transition: left 260ms ease;
}

.toggle-input:checked + .toggle-switch {
  background-color: #4a90e2;
}

.toggle-input:checked + .toggle-switch::after {
  left: 1.375vw;
}

.toggle-text {
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}
