:root {
  --bg-light: #f5f5f7;
  --text-light: #2a2a2a;
  --accent: #888;
  --glass-bg-light: rgba(255, 255, 255, 0.12);
  --glass-border-light: rgba(0, 0, 0, 0.15);
  --separator-light: rgba(255, 255, 255, 0.35);
  --button-bg-light: rgba(255, 255, 255, 0.2);
  --button-hover-light: rgba(255, 255, 255, 0.3);
  --button-shadow-light: rgba(0, 0, 0, 0.08);
}

@font-face {
  font-family: 'Cabin';
  src: url('font/cabin.ttf') format('truetype');
  font-weight: 400 700; /* variable font */
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%; /* font scaling in Safari/iOS- this is a big issue, safari optimization is insane, too much work */
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* responsive */
@media (max-width: 480px) {
  html {
    font-size: 15.5px;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 17px;
  }
}


body {
  font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-weight: 400;	
  background-color: var(--bg-light);
  color: var(--text-light);
  margin: 0;
  padding: 2rem 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Reset */
body, h1, h2, h3, h4, h5, h6, p, li, a, span, button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS bolding solve */
h1, h2, h3, h4, h5, h6 {
  font-weight: 650; /* Adjust */
}

main {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

h1 {
  margin-top: 0.5rem;
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

h4 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}


p {
  line-height: 1.6;
  font-size: 1.02rem;
	 max-width: 62ch;
  margin-top: 0.2rem; /* might need to adjust */
}


/* Projects */
.project {
  display: block;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project:hover {
  transform: translateY(-2px);
}

.projects img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.project:hover img {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--accent);
}

.caption .arrow {
  font-size: 0.90rem;
  transition: transform 0.2s ease;
}

.project .arrow {
  transition: transform 0.3s ease;
}

.project:hover .arrow {
  transform: translateX(2px);
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  font-size: 0.95rem;
  color: var(--accent);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  margin-top: 0.5rem;
  font-size: 1.00rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.3rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Contact */
.contact {
  margin-top: 2rem;
}

.contact a,
.space a,
.space2 a {
  color: inherit;
  text-decoration: underline;
}

.contact a:hover,
.space a:hover,
.space2 a:hover {
  color: #888; /* slightly darker */
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  background-color: #e6f4ea;
  color: #1a7f37;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: fadeBlink 2s infinite ease-in-out;
}

@keyframes fadeBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* -------- Glass Navigation Bar -------- */
#glass-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1rem;
  z-index: 1000;
  border: 1px solid var(--glass-border-light);
  max-width: 90%;
  flex-wrap: nowrap;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Button Base Styles */
#glass-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--button-bg-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px var(--button-shadow-light);
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#glass-nav button svg {
  width: 22px;
  height: 22px;
  display: block;
  shape-rendering: geometricPrecision;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hover & Focus */
#glass-nav button:hover,
#glass-nav button:focus {
  background: var(--button-hover-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  outline: none;
}

/* Active */
#glass-nav button:active {
  transform: scale(0.96);
}

/* Separator */
.nav-separator {
  width: 1px;
  height: 20px;
 background: rgba(0, 0, 0, 0.3); /* darker for visibility */
  margin: 0 0.6rem;
  flex-shrink: 0;
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}


@media (max-width: 480px) {
  #glass-nav {
    bottom: 1.2rem; /* slightly lifted */
    padding: 0.6rem 1.2rem;
    gap: 1rem;
  }

  #glass-nav button {
    width: 48px;
    height: 48px;
  }

  #glass-nav button svg {
    width: 22px;
    height: 22px;
  }

  .nav-separator {
    height: 24px;
    margin: 0 0.6rem;
  }
}

.page-content {
  padding-bottom: 24px; /* enough to prevent nav from overlapping footer */
}

@media (max-width: 480px) {
  .page-content {
    padding-bottom: 80px;
  }
}

/* For Sections */
.space {
  margin-top: 2rem;
}

/* For Sections */
.space2 {
  margin-top: 2rem;
}

/* For Sections */
.imgspace {
  margin-top: 1rem;
}

.imgspace a {
  color: #888; /* slightly darker */
  text-decoration: none;
}

.imgspace a:hover {
  text-decoration: underline;
}

li {
	line-height: 2;
	font-size: 1.05rem;
}

.showcase {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.showcase img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease, filter 0.3s ease;
  cursor: zoom-in;
}

.showcase img:hover {
  transform: scale(0.95);
  filter: brightness(0.95);
}



.image-row {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Default: side by side */
.image-row img {
  width: calc(50% - 0.6rem); /* Subtract half of 1.2rem gap */
  height: auto;
  object-fit: cover;
}

@media (max-width: 600px) {
  .image-row {
    flex-direction: column;
    gap: 0; /* no gap */
  }

  .image-row img {
    width: 100%;
    margin-bottom: 1.2rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  cursor: default;
}

.modal-content.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.modal-content.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1001;
  transition: background 0.3s ease;
}

.modal .nav:hover {
  background: rgba(0, 0, 0, 0.5);
}

.modal .left {
  left: 1.5rem;
}

.modal .right {
  right: 1.5rem;
}

.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
	display: block; 
	border-radius: 6px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    border-radius: 6px;
}

.banner-image.active {
    opacity: 1;
}

.banner-image:first-child {
    position: relative; /* First image sets the container height */
}


