/* =========================================
   WORK PAGE STYLES
   ========================================= */

/* --- 1. Main Wrappers & Side Nav --- */
.work-page-wrapper {
  display: flex;
  height: 100vh;
  padding-top: 80px; 
  box-sizing: border-box;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.side-nav {
  width: 330px; 
  padding-left: 0;  
  padding-right: 0; 
  flex-shrink: 0; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  gap: 4.5rem; 
  position: relative;
}

.side-nav::after {
  content: "";
  position: absolute;
  right: 0; /* Moves the line back to the right side! */
  top: 50%;
  transform: translateY(-50%); /* Centers the line vertically */
  height: 78%; /* Made it a tad shorter */
  width: 5px; 
  background-color: var(--text-color); 
  border-radius: 2px; 
}

.nav-pill {
  width: 220px; 
  display: flex;
  justify-content: center; 
  background: transparent; /* Back to transparent! */
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 50px;
  padding: 0.8rem 0;
  font-size: 2.2rem; 
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transform-origin: center; 
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s; 
  will-change: transform;
  text-decoration: none; 
}

.nav-pill.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}


/* --- 2. Scrolling Container --- */
.projects-scroll-container {
  flex: 1;
  height: calc(100vh - 80px); 
  overflow-y: auto; 
  scroll-behavior: smooth; 
  scroll-snap-type: y mandatory; 
  -ms-overflow-style: none;  
  scrollbar-width: none;  
  /* ADDED: Forces projects to stack cleanly on top of each other */
  display: flex;
  flex-direction: column; 
}

.projects-scroll-container::-webkit-scrollbar {
  display: none;
}

.work-container {
  position: relative; 
  /* ADDED: Forces every single project to take up exactly 100% of the screen height without shrinking */
  flex: 0 0 100%; 
  width: 100%;
  box-sizing: border-box; /* Keeps padding from breaking the width */
  scroll-snap-align: start; 
  padding-right: 5%;
  padding-left: 5%;
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 1rem; 
}

.date-tag {
  position: absolute; 
  bottom: 2rem;
  right: 2.5rem;
  font-family: 'Inter', sans-serif;
  font-style: oblique; 
  font-size: 24px;
  color: var(--text-color);
  z-index: 100;
}

.date-tag.right-align {
  text-align: right;
  line-height: 1.1;
}


/* --- 3. Project 1: Product (Pantry Pal) --- */
.work-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center; 
}

.project-logo img {
  width: 410px; 
  height: auto;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 2.2rem; 
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-color);
  max-width: 450px;
  margin: 0 0 1rem .5rem; 
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center; 
  gap: 2.5rem; 
  padding: 0.8rem 2.5rem;
  background-color: #FF514B5E;
  color: #000;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid #000; 
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 2rem;
}

.button-arrow {
  height: 2.2rem; 
  width: auto;    
  transition: transform 0.2s ease;
}

.explore-button:hover .button-arrow {
  transform: translateX(8px);
}

.work-mockup {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.work-mockup img {
  height: 73vh; 
  width: auto;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              filter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

body.dark-mode .explore-button {
  background-color: #ff8e8e; 
  border-color: #fff;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .explore-button .arrow {
  color: #000;
}


/* --- 4. Project 2: Branding (Drone Cleaning) --- */
.drone-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5rem; 
}

.drone-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.drone-logo {
  /* CHANGED: Made it responsive so it never blows out of proportion */
  max-width: 400px; 
  width: 100%; 
  height: auto;
  margin-bottom: 1.5rem;
}

.drone-location {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0;
  color: var(--text-color);
}

.drone-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 540px;
}

.drone-description, 
.drone-link {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text-color);
}

.drone-description {
  margin-bottom: 2.8rem;
}

.drone-link a {
  color: inherit;
  text-decoration: none;
}

.drone-case-study-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.8rem 2.5rem;
  background-color: #5ab4ff; 
  color: #000;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.12);
  margin-top: 3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.drone-case-study-btn:hover {
  filter: brightness(0.95);
}

.left-arrow-icon {
  height: 2.2rem;
  width: auto;
  transition: transform 0.2s ease;
}

.drone-case-study-btn:hover .left-arrow-icon {
  transform: translateX(-8px); 
}

body.dark-mode .drone-case-study-btn {
  border-color: #fff;
}


/* --- 5b. Project 4: Interactive (Rogue Racers) --- */
.interactive-layout {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.interactive-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
  max-width: 860px;
}

.game-screenshot-link {
  display: block;
  width: 100%;
  margin-right: 60px;
}

.game-screenshot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.game-screenshot:hover {
  opacity: 0.88;
}

.game-bottom-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.game-logo-link {
  display: block;
  flex-shrink: 0;
}

.game-logo {
  width: 290px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.game-logo:hover {
  opacity: 0.85;
}

.game-description {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-color);
  margin: 0;
}


/* --- 5. Under Development Sections --- */
.under-dev-container {
  justify-content: center;
  align-items: center;
}

.under-dev-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 3.2rem;
  color: #000000;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin: 0;
}


/* --- 6. Project 3: Research (UX Research) --- */
.research-layout {
  align-items: stretch;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.research-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.research-image-composite {
  display: inline-block;
  position: relative;
  width: fit-content;
}

.research-campus-img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 12px;
}

.research-emblem-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: auto;
}

.research-description {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-color);
  max-width: 430px;
  margin: 0;
}

.research-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

.research-pdf-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

.research-pdf-embed {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  margin-right: 3rem;
}

.research-pdf-overlay {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
  z-index: 10;
}

.research-layout .date-tag {
  bottom: 1.5rem;
  right: 3rem;
}


/* Hidden on desktop, shown only on mobile */
.pdf-mobile-link,
.play-game-btn-mobile {
  display: none;
}

/* --- 7. Mobile Responsiveness (Work Specific) --- */
@media screen and (max-width: 1024px) {
  .side-nav {
    display: none;
  }

  .work-page-wrapper {
    padding-top: 80px;
  }

  .projects-scroll-container {
    width: 100%;
  }

  .date-tag {
    display: none; 
  }

  .work-container {
    flex-direction: column; 
    padding: 2.5rem 1.5rem 3rem;
    height: auto;
  }

  /* Dashed divider between sections */
  .work-container:not(:last-child) {
    border-bottom: 2px dashed var(--text-color);
    opacity: 0.9;
  }

  /* Product Adjustments */
  .work-mockup img {
    height: auto;
    width: 100%;
    max-width: 240px;
    margin-top: 2rem;
  }

  .work-content {
    align-items: center;
    text-align: center;
  }

  .project-logo img {
    width: 250px;
  }

  .project-description {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .explore-button {
    font-size: 1.1rem;
    padding: 0.7rem 1.6rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 10px;
    border: 1.5px solid #000;
    box-shadow: none;
    font-weight: 700;
  }

  .explore-button::after {
    content: "→";
  }

  .button-arrow {
    display: none;
  }

  /* Research Adjustments */
  .research-layout {
    align-items: center;
    padding-bottom: 2rem;
  }

  .research-left {
    align-items: center;
    text-align: center;
  }

  .research-description {
    font-size: 1.25rem;
    text-align: center;
  }

  .research-pdf-wrapper {
    display: none;
  }

  /* PDF mobile link button */
  .pdf-mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.6rem;
    background-color: #D4A827;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid #000;
    text-decoration: none;
  }

  /* Branding / Drone Section */
  .drone-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .drone-left {
    align-items: center;
  }

  .drone-logo {
    max-width: 260px;
    margin-bottom: 0.75rem;
  }

  .drone-location {
    font-size: 1.2rem;
    text-align: center;
  }

  .drone-right {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .drone-description,
  .drone-link {
    font-size: 1.25rem;
  }

  .drone-case-study-btn {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    border: 1.5px solid #000;
    box-shadow: none;
    font-weight: 700;
  }

  .drone-case-study-btn::before {
    content: none;
  }

  .drone-case-study-btn::after {
    content: "→";
  }

  .left-arrow-icon {
    display: none;
  }

  /* Interactive / Gaming Section */
  .game-screenshot-link {
    display: none;
  }

  .game-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .game-logo {
    width: 200px;
  }

  .game-description {
    font-size: 1.2rem;
    text-align: center;
  }

  .play-game-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.6rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
  }
}