/* TOP NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 2000;
  background-color: #EFEFEF;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.8rem 4%;
  border-bottom: 1px solid #111414;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
  padding: 0.3rem 0;
   font-family: 'Inter-Regular', Inter, sans-serif;
  font-size: 105%;
  font-weight: 400;
  color: #111414;
  text-decoration: none;
  padding: 0.3rem 0;
}



/* EDUCATION BLOCK */
.side-education {
  margin-top: 1.6rem;
}

.edu-school {
  font-family: 'Inter-Medium', Inter, sans-serif;
  font-size: 108%;
  font-weight: 500;
  color: #111414;
  margin: 0;
  line-height: 1.3;
}

.edu-degree {
  font-family: 'Inter-Regular', Inter, sans-serif;
  font-size: 93%;
  font-weight: 400;
  color: #111414;
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

.edu-concentration {
  font-family: 'Inter-Regular', Inter, sans-serif;
  font-size: 93%;
  font-weight: 400;
  color: #111414;
  margin: 0;
  line-height: 1.4;
}

/* BIO — slightly more presence than body h2 */
.side-bio {
  line-height: 160%;
  margin-bottom: 0;
}

/* SIDE ICONS (mail + linkedin below bio) */
.side-icons {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 1.6rem;
}

.side-icons h4 {
  margin-bottom: 0.4rem;
}

.side-icons h2 {
  margin-bottom: 0;
  line-height: 1.8;
}


/* GLOBAL SCROLLBAR HANDLING*/
html{
    overflow-y:auto;          /* show bar only when needed           */
    scrollbar-gutter: stable; /* …but always reserve the 17 px space */
}

@supports not (scrollbar-gutter:stable){
    /* Legacy fallback (IE 11, very old Chromium) */
    html{overflow-y:scroll;}  /* bar always visible, width constant  */
}

/* MAIN MARGIN*/
.main {
  margin: 4%;
  margin-top: 1.6rem;
  margin-bottom: 2%;
}



/* Flex container to hold the side and project work */
.content-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FIXED SIDE INFO */
.side-info {
  width: 28.5%;
  position: sticky;
  top: 80px;
  z-index: 1000;
  margin-right: 4%;
  display: flex; 
  flex-direction: column;
}

.side-info-text-box {
  padding-top: 0;
}

/* MAIN RIGHT SIDE MARGIN */
.project-work {
  flex-grow: 1;
  z-index: 1000;
  width: 100%;
}

/* BUTTON STYLE & FILTER EXECUTION */
.filter-button {
  text-decoration: none;
  color: #111414;
  padding: 0.6% 2%; /* Combined padding property for clarity */
  margin-bottom: 2%; /* Space below each button */
  border-radius: 30px; /* Rounded button corners */
  cursor: pointer; /* Pointer cursor on hover */
  border: 1.4px solid #111414; /* Button border style */
  font-size: 108%; /* Font size of the button text */
  background-color: #EFEFEF; /* Default button background color */
}

.filter-button:hover {
  background-color: #111414; /* Background color on hover */
  color: #EFEFEF; /* Text color on hover */
}

.filter-button:active {
  background-color: #111414; /* Background color on active */
  color: #EFEFEF; /* Text color on active */
}

.filter-button.selected {
  background-color: #111414;
  color: #EFEFEF;
}

/* MAIN GRID PORTFOLIO */
.grid-container {
  display: grid; /* Grid layout for portfolio items */
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 20px; /* Space between grid items */
  padding-bottom: 1.5% !important; /* Padding at the bottom */
}

.grid-container2 {
  display: grid; /* Grid layout for portfolio items */
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* Space between grid items */
  padding-bottom: 1.5% !important; /* Padding at the bottom */
}

/* IMAGE ON MAIN INTERACTION */
.grid-item {
  backface-visibility: hidden;
}

.grid-item h2 {
  margin-top: 0.5rem;
}

.grid-item a {
  display: block;
  overflow: hidden;
}

.grid-item video,
.grid-item img {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
}

.grid-item:hover video,
.grid-item:hover img {
  transform: scale(1.07);
}

.item-minimallife:hover video,
.item-minimallife:hover img {
  transform: scale(1.04);
}

.item-saleslog:hover video,
.item-saleslog:hover img {
  transform: scale(1.05);
}

.item-holdplease:hover video,
.item-holdplease:hover img {
  transform: scale(1.09);
}

.item-coconutwater:hover video,
.item-coconutwater:hover img {
  transform: scale(1.2);
}

/* Footer styling */
.footer {
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.footer-inner h2 {
  margin-bottom: 0;
  display: inline;
}

.back-to-top {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
  font-family: 'Inter-Regular', Inter, sans-serif;
  font-size: 108%;
  font-weight: 400;
  color: #111414;
  text-decoration: none;
}

.back-to-top:hover {
  font-family: 'Inter-Regular', Inter, sans-serif;
  text-decoration: outline;
}

.more {
  display: flex; /* Enable flexbox layout */
  justify-content: space-between; /* Space out the child elements */
  align-items: center; /* Center items vertically */
  margin-top: 20px; /* Space above the see more section */
}

.more h6 {
  flex-grow: 1; /* Allow "See more" to grow and take available space */
}

.more h7 {
  text-align: right; /* Right-align the "Hack@Brown" link */
}

/* CATEGORY BUTTON STYLE */
.side-button {
  padding: 2.07% 6.9%; /* Combined padding property for clarity */
  border-radius: 30px; /* Rounded corners */
  border: 1px solid #111414; /* Button border style */
  font-size: 108%; /* Font size of the button text */
  background-color: #111414; /* Default button background color */
  color: #EFEFEF; /* Text color */
}

.project-info-text-box {
  padding-top: 2%; /* Top padding for project info */
  padding-bottom: 2%; /* Bottom padding for project info */
  width: 50%; /* Width of the project info box */
}

/* ROLE + TOOLS side by side above first thumbnail */
.project-meta {
  display: flex;
  gap: 4%;
  margin-bottom: 2%;
}

.project-meta-col {
  flex: 1;
}

/* BODY TEXT — matches Role column width */
.project-text {
  width: calc(50% - 2%);
  padding-top: 2%;
  padding-bottom: 2%;
}

/* SECTION WITH IMPACT — text left, metrics right */
.project-section {
  display: flex;
  gap: 4%;
  padding-top: 2%;
  padding-bottom: 2%;
}

.project-section-text {
  flex: 1;
}

.project-section-impact {
  flex: 1;
}

/* IMPACT STATS */
.impact-stat {
  font-family: 'Inter-Medium', Inter, sans-serif;
  font-size: 160%;
  font-weight: 500;
  color: #111414;
  margin: 0;
  line-height: 1.1;
}

.impact-label {
  font-family: 'Inter-Regular', Inter, sans-serif;
  font-size: 100%;
  font-weight: 400;
  color: #111414;
  margin: 0 0 1.2rem 0;
  line-height: 1.4;
}

/* CONSISTENT MEDIA SPACING */
.project-work img,
.project-work video {
  width: 100%;
  display: block;
  margin-bottom: 1.5%;
}

/* grids handle their own bottom margin — don't double-space inside */
.grid-container img,
.grid-container video,
.grid-container2 img,
.grid-container2 video {
  margin-bottom: 0;
}

.grid-container,
.grid-container2 {
  margin-bottom: 1.5%;
}

/* FADE-UP ON LOAD */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Index page — grid items stagger in */
.grid-item:nth-child(1) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(3) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(4) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(5) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(6) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(7) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }
.grid-item:nth-child(8) { animation: fadeUp 0.6s ease both; animation-delay: 0.05s; }


/* SCROLL REVEAL — safe enhancement only */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide when JS has confirmed it's running */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.9s ease;
}

.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}