body ::-webkit-scrollbar{display: none;} /* Chrome, Safari, Opera */
body {-ms-overflow-style: none;} /* IE & Edge */
html {scrollbar-width: none;} /* Firefox */

body {
  margin: 0;
  color: #fff;
  background-color: #161A1B;
  overflow-x: hidden;
}

a {
  color: #fff;
}

.flex {
  display: flex;
}

.container-x {
  margin: 0 64px;
}

.pill {
  padding: 18px 20px;
  background-color: rgba(144, 144, 144, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.note {
  display: flex;
  align-items: center;
}

.note::before {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #64DC3A;
  display: inline-block;
  margin-right: 16px;
  flex-shrink: 0;
}

nav {
  position: fixed;
  display: flex;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 10000;
  margin-top: 32px; 
}

.vertical-divider {
  height: 5vh;
  background-color: #161A1B;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
}

#home-divider {
  position: absolute;
  bottom: 0;
}

#home-divider::after {
  position: absolute;
  content: 'Scroll for more';
  right: 2.75vh;
  color: #888888;
}

#hero {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

#hero-content .row {
  align-items: end;
}

#hero-content-base {
  padding-bottom: calc(2.75rem + 5vh);
  color: rgb(179, 179, 179);
}

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero h1 {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: -0.75vw;
}

.background {
  background-color: #161A1B;
  padding: 3.5vw;
  z-index: 10;
  position: relative;
}

/* Sticky about section */

.sticky-section {
  position: relative;
  min-height: 200vh; /* Makes section taller than viewport to enable scrolling */
  overflow: hidden;
}

.sticky-image-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 50vw;
  height: 100vh;
}

.sticky-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-content {
  padding: 25vh 3.5vw;
  margin-right: -10vw; /* This creates the overlap */
  position: relative;
  z-index: 2;
  width: 100%;
}

.sticky-content-inner {
  margin-bottom: 80px;
}

/* Projects section */

#projects {
  margin-top: 25vh;
  margin-bottom: 25vh;
}

#projects-title-wrapper {
  border-top: 1px solid #4E4F50;
  padding-top: 5vh;
}

#projects-title-wrapper h2 {
  margin-top:10vh;
  margin-block-end: 0;
  margin-bottom: 2.5rem;
}

.project {
  aspect-ratio: 600/600;
  height: auto;
  position: relative;
}

#project-column {
  gap: 2.6vw;
  flex-wrap: wrap;
}

.project-wrapper {
  width: calc(50% - 1.3vw);
  text-decoration: none;
}

.project-hover-wrapper {
  aspect-ratio: 600/600;
  position: absolute;
  height: auto;
  width: 100%;
}

.overflow-hidden-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hover-image-wrapper {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 1;
}

.project:hover .image-container img {
  transition: all 0.2s ease-out;
  opacity: 0.35;
}

.project .image-container {
  width: 100%;
  height: 115%;
}

.project:hover .project-content-wrapper > .note:first-child {
  transform: translateY(-20px);
  opacity: 0;
}

.view-project-note {
  position: absolute;
  bottom: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease-out;
}

.project:hover .view-project-note {
  transform: translateY(0);
  opacity: 1;
}

.project .hover-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 90%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-out;
  z-index: 11;
}

.project:hover .hover-image {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project h3 {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 24px;
}

.project h4 {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 16px;
}

.project-content-wrapper {
  padding-bottom: 40px;
}

.project-wrapper {
  border-bottom: 1px solid #4E4F50;
}

.project .project-content-wrapper > .note {
  transition: all 0.4s ease-out;
}

#AE3 .hover-image {
  width: 105%;
}

#CCDC .hover-image {
  width: 100%;
}

#VilaC .hover-image {
  width: 80%;
}

#Cambridge .hover-image {
  width: 95%;
}

/* About */

#about {
  margin-top: 25vh;
  margin-bottom: 25vh;
}

#about h2 {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Stacked sections */

#stacked-sections {
  min-height: 80vh;
  position: relative;
  z-index: 10;
}

.stacked-section {
  min-height: 100vh;
  position: relative;
  /* padding-top: 120px; */
}

.section-content {
  border-top: 1px solid rgba(92, 93, 94, .8);
}

.stacked-content {
  background-color: #161A1B;
  padding-top: 24px;
}

.section-number {
  position: absolute;
  right: 0;
  top: 0;
  text-align: right;
  padding-top: 24px;
}

.add-space {
  height: 150vh;
}
.stacked-container {
  position: relative;
  width: 100%;
  /* Height will be set by JS based on content */
  overflow: hidden;
}

.fixed-image {
  position: absolute; /* Changed from fixed */
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.fixed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-sections {
  position: relative;
  width: 50%;
  z-index: 2;
}

.stacked-section {
  position: relative;
  height: 100vh;
  background: #161A1B;
  transform: translateZ(0);
  will-change: transform;
  width: 100%;
}

.section-content {
  position: relative;
  padding: 2rem;
  color: white;
}

.section-content h2 {
  margin: 0;
  font-size: 2rem;
}

/* GSAP specific fixes */
.gsap-pin-spacer {
  width: 50% !important;
  max-width: 50% !important;
  position: absolute !important;
  left: 0 !important;
}

/* 50-50 Image */

.halfnhalf img {
  width: 100%;
  height: auto;
}

/* Contained Image */

.contained-image img {
  max-width: 100%;
  width: 100%;
}

/* Long screen image */

.long-screen img {
  width: 100%;
  height: auto; 
}

/* Footer */

footer {
  height: 80vh;
  position: relative;
  display: block;
}

#footer-background-wrapper {
  width: 100%;
  height: 80vh;
  z-index: -1;
}

footer .image-container {
  width: 100%;
  height: 115%;
}

#footer-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

#footer-content-wrapper div {
  flex-grow: 1;
}

/* Initial states for animation - keep at bottom of file */
nav {
  opacity: 0;
}

#hero-content {
  opacity: 0;
}

#home-hero {
  width: 100vw; /* Initial state - full width */
  transition: width 0.8s ease-in-out;
}

.page-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #212728;
  z-index: 1000;
  transform-origin: bottom;
}

.page-revealed {
  display: none;
}

footer {
  margin-top: 25vh;
}

footer .note {
  margin-bottom: 32px;
}

footer .pill {
  display: inline-block;
}

#footer-content {
  padding-bottom: 7.5vh;
  margin-bottom: 32px;
}

.fake-container {
  position: absolute;
  left: 64px;
  right: 64px;
}

#footer-dividers {
  position: absolute;
  top: 0;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#footer-top-divider {
  align-self: flex-start;
}

#footer-bottom-divider {
  align-self: flex-end;
}

menu {
  display: flex;
  flex-grow: 1;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

menu #menu-wrapper {
  display: flex;
  flex-grow: 1;
  justify-content: end;
  text-decoration: none;
  margin: 0;
}

menu ul {
  display: flex;
  flex-grow: 0;
  flex-direction: row;
  margin-block-start: 0;
  margin-block-end: 0;
  background-color: rgba(144, 144, 144, 0.15);
  padding-inline-start: 0;
  border-radius: 4px;
  padding-right: 4px;
}

menu li {
  display: flex;
  align-items: center;
  justify-content: center;
}

menu a {
  margin-left: 4px;
  text-decoration: none;
  color: #fff;
  padding: 4px 0;
}

menu li {
  height: 48px;
  width: 48px;
  border-radius: 2px;
  transition: background-color 0.2s ease-out;
}

menu li img {
  width: 16px;  
  height: 16px;
}

menu #contact-button {
  background-color: #161A1B;
}

menu a:hover li,
menu #contact-button:hover {
  background-color: #64DC3A;
}



  /* Breakpoint adjustments */
  @media (max-width: 1536px) {
    
    /* Adjust widths of stacked section / image */
    .fixed-image {
      width: 35%;
    }

    .stacked-sections {
      width: 65%;
    }
  }
  
  @media (max-width: 1280px) {
    
    /* Adjust widths of stacked section / image */
    .fixed-image {
      width: 30%;
    }

    .stacked-sections {
      width: 70%;
    }
  }

  @media (max-width: 1024px) {
    /* Adjust projects column on homepage */
    #projects .col-10 {
      width: 100%;
      --col-width: 12;
    }

    #projects .offset-2 {
      --col-start: 1;
    }

    /* Adjust widths of stacked section / image */
    .fixed-image {
      width: 0;
    }

    .stacked-sections {
      width: 100%;
    }

    #projects {
      margin-top: 7.5vh;
      margin-bottom: 7.5vh;
    }

    footer {
      margin-top: 7.5vh;
    }

    #about {
      margin-bottom: 7.5vh;
    }

    .fake-container {
      left: 16px;
      right: 16px;
    }
  }
  
  @media (max-width: 768px) {
    .vertical-divider {
      height: 3.5vh;
    }

    .project-wrapper {
      width: 100%;
    }

    #project-column {
      gap: 5vw;
    }

    .fake-container {
      left: 12px;
      right: 12px;
    }

    nav {
      top: 16px;
    }

    #location {
      display: none;
    }

    .hero-wrapper {
      height: 100svh;
    }

    #home-divider {
      display: none;
    }

    #hero h1 {
      margin-block-end: 12px;
    }

    #hero-content-base #experience {
      display: none;
    }
  }

  @media (max-height: 768px) {
    #about p {
      font-size: 15px;
    }
  }