@import url('../portfolioStyles/fontcss.css');


/* Start styling here */

.project-header {
  padding-top: 12rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.project-info {
  display: flex;
}

.sectionDivider {
    background-color: #737170;
    height: 0.5px;
    opacity: 100%;
    width: auto;
}

.blockA {
  flex: 1;
}
.blockB {
  flex: .45;
}

.blockC {
  flex: 1;
}

.blockA2 {
  flex: 10;
}
.blockB2 {
  flex: 3.25;
}

.blockC2 {
  flex: 35;
}

.project-subhead {
  line-height: 200%;
}

.project-desc {
  display: flex;    
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

.mobile-version {
  display: none;
}

.prHeader {
    padding-top: 12rem;
}

.introHeading {
  display: flex;
  flex-direction: row;
} 

.column-point-container {
  display: flex;
  flex-direction: column;
  flex: 23;
  gap: 1rem;
}

.column-image, .column-image img {
  flex: 36;
  border-radius: .5rem;
  height: auto;
  display: flex;
}

.column-gap {
  flex: 1;
}

.column-points {
  flex: 1;
  background-color: #212224;
  border-left: .5rem solid #B45B96;
  border-radius: .5rem;

  padding: 2rem 1.5rem;
}

.column-and-image {
  display: flex;
}

.image-and-caption {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .5rem;
}


.three-image-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.three-image-row span, .three-image-row figure {
  flex: 1;
}

.poster-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.posters img {

  width: 100%;
  max-width: 100%;
  object-fit: cover;
  box-sizing: border-box;  
  border-radius: 0rem;
}

.wide-point-title {
  display: flex;
  flex-direction: row;
  gap: 1rem;

  display: flex;
  align-items: center;
  gap: .5rem;  
}

.wide-point-title img {
  width: 4rem;
}

.wide-point-container {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  gap: 1.5rem;

  background-color: #1E1F22;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  padding-left: 6.25%;
  padding-right: 14.5%;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);  
}

.wide-point {
  margin-left: 12.5%;
  margin-right: 12.5%;
}

.align-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mockup-image-2 {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: .5rem;
  box-sizing: border-box;    
}

.mockup-image-3 {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 2rem;
  box-sizing: border-box;  
}

.image-sticky-point {
  position: sticky;
  top: 0;
  z-index: 1;
}

.mockup-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Quote settings */

.quote {
  position: relative;
  z-index: 3;
  background-color: #131416;
  padding-top: 16rem;
  padding-bottom: 16rem;
}

.quote-container {
  background-image: url('casestudy/quote.png');
  background-size: cover;  
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  box-sizing: border-box;
  gap: 6rem;
  border-radius: 1rem;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  padding-left: 4%;
  padding-right: 4%;
  padding-top: 2.25%;
  padding-bottom: 2.25%; 
}

.quote-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.quote-content img {
  width: 5%;
  height: auto;
  object-fit: contain;  
}

.quote-content blockquote {
  width: 70%;
  line-height: 130%;
}

.author {
  display: flex;
  margin-left: auto;
}

.box-container {
  position: sticky;
  top: 6rem;

  padding: 1rem 1.5rem;
  height: fit-content;
  flex: 25;
  border: 1px solid white;
  border-radius: .5rem;
  top: 0;
}

.box-and-image {
  display: flex;
  gap: 1rem;
}

.box-image-container, .box-image-container img {
  flex: 145;
  border-radius: .5rem;
}

.center-content {
  margin: 0rem 17.5%;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.content-video {
  flex: .8;
}

.content-txt {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1.25;
}

.svg-width {
  width: 4rem;
}

.aspect-ratio-web {
  aspect-ratio: 16/7.75;
}


.header-inspo {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.vine-header {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;  
}

.vines {
  max-width: 100%;
  height: auto;
  margin: 0;
}

.flipped {
  transform: scaleX(-1);
}

.vine-title {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.vine-title-container {
  gap: .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  padding-bottom: 3%;
}

.point-header {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.point-flexbox {
  display: flex;
  flex-direction: row;
  width: auto;
  align-items: stretch;
}

.point-container {
  flex: 10;
  padding-left: 3%;
  padding-right: 3%;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;

  background-color: #1E2022;
  border-radius: 1rem;
}

.flex-gap {
  flex: .5;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-2x2 figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  align-items: center;
  height: fit-content;
  padding-bottom: .5rem;
}

.grid-2x2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.systems-content {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.packaging-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.customGrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  align-items: stretch;
}

.customGrid .gridItem:nth-child(1) {
  grid-row: 1 / span 2; /* tall left image */
  grid-column: 1 / 2;
}

.customGrid .gridItem:nth-child(2) {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.customGrid .gridItem:nth-child(3) {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}

.customGrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}



/* Conclusion */

.learnings {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.learnings h4 {
  padding: 1rem;
}

.learnHead {
  position: sticky;
  top: 20rem;
  display: flex;
  border: #FFFFFF 1px solid;
  border-radius: 1rem;
  flex: 1;
  height: 100%;
  padding-left: 1rem;
  align-items: center;
}

.learnHead img {
  width: 2rem;
  height: 2rem;
}

.learnings ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1rem;
  flex: 1;
}

.learnings li {
  padding: 1rem;
  border: #FFFFFF 1px solid;
  border-radius: .5rem;
}

.tags {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.project-tags {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.tags li {
  list-style: none;
  padding: .5rem 1.5rem;
  border-radius: 2rem;
  background-color: #212326;  
}

.project-hover {
  overflow: hidden;
  border-radius: 1rem;  
}

.project-hover img:hover {
  transform: scale(1.06); /* Slightly expand on hover */
  z-index: 2;
}

.project-hover img {
  transition: transform 0.5s ease-out;
}

.label {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.arrowBottomLeft {
  height: 1.5rem;
  width: auto;
  padding-bottom: .15rem;
  padding-left: 0.875rem;
}

.media-link {
  list-style: none;

  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.link {
  padding: 1rem;
  background-color: #212326;
  border-radius: .5rem;  
  color: #EFEAE4;

  text-decoration: none;
  display: block;
}

.link:hover {
  background-color: #EFEAE4;
  color: #131416;
  transition: background-color 0.3s ease-out;
}

.connection-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pre-footer {
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
}

.poro-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.poro {
  width: 17.5%;
  height: auto;
  transform: translateY(-50%);
}

/* Image link focus (keyboard accessible) */
.img-link:focus {
  outline: 3px solid #007bff;
  outline-offset: -3px;
}

/* Responsive tweak for small screens */
@media (max-width: 480px) {
  .grid {
    gap: 10px;
  }
  .meta {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* NavBar typographic settings */
.logo {
    font-family: 'Hydrophilia Iced', monospace;
    font-size: 2.5rem;
    color: var(--og-EFEAE4, #EFEAE4);
    margin-right: auto;
    text-decoration: none;
}

/* Navigation Bar Typographic Styles */
header nav a {
color: var(--og-EFEAE4, #EFEAE4);
font-family: 'Halyard Display', sans-serif;
font-size: 1.25rem;
font-style: light;
font-weight: 200;
line-height: normal;
text-decoration: none;
}

/* NavBar typographic settings */
.logo {
    font-family: 'Hydrophilia Iced', monospace;
    font-size: 2.5rem;
    color: var(--og-EFEAE4, #EFEAE4);
    margin-right: auto;
    text-decoration: none;
}

/* Navigation Bar Typographic Styles */
header nav a {
color: var(--og-EFEAE4, #EFEAE4);
font-family: 'Halyard Display', sans-serif;
font-size: 1.25rem;
font-style: light;
font-weight: 200;
line-height: normal;
text-decoration: none;
}

/* Navigation Link AutoLayout */
.nav-links ul {
    display: flex;
align-items: center;
justify-content: flex-end;
gap: .5rem;
list-style: none;
}

.nav-links a {
    padding: .75rem 1.5rem;
}

.nav-links a:hover {
    transition: background-color 0.3s ease-out;
    background-color: #2e3035c9;
    border-radius: 4px;
    display: flex;
}

/* This alligns the nav bar with the logo */
.fixedContainer header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    padding-bottom: 1rem;
    max-width: none;
}

/* This seperates nav bar from page */
.divider {
  width: 100%;
  height: .5px;
  opacity: 50%;
  background-color: #EFEAE4;
}

/* No fucking clue how I made this work, but it does;*/
.navContainer {
    padding: 0 0px;
    width: 100%;
}

.fixedContainer {
    z-index: 15;
    position: fixed;
    width: 100%;
    background-color: #131416;
}

/* Setting height for animation */
body {
    --nav-height: 100px;
    padding-top : var(--nav-height);
}

/* Navigation Bar Scroll Animation */
.nav--hidden {
    transform: translateY(calc(-1 * var(--nav-height)));
    transition: transform 0.5s ease-in-out;
}

.nav--revealed {
    transform: translateY(calc(1 * var(0)));
    transition: transform 0.3s ease-out;
}

/* Reset some default styles */
body, h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

em {
  font-style: normal;
}

figure {
  margin: 0;
  padding: 0;
}

blockquote {
  margin: 0;
  padding: 0;
  font-style: normal; /* removes italic */
  border: none;       /* removes any default border */
  background: none;   /* removes any default background */
}

/* Base styles */
body {
    width: auto;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #EFEAE4;
    background-color: #131416;
    zoom: 80%;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}



/* Footer */

.siteInfo {
  font-family: 'Halyard Display', sans-serif;
    font-weight: 100;
    font-style: lighter;
    font-display: swap;

  margin-inline: auto;
  display: flex;
  justify-content: space-between;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    font-size: 1.25rem;
}

/* scroll indicator */
.scrollIndicator {
  width: 2rem;
  height: 3.5rem;
  background-color: transparent;
  border: #EFEAE4 1px solid;
  border-radius: 2rem; /* optional: rounded corners */
  margin-right: 1.5rem;
  margin-left: auto;
  margin-bottom: .25rem; 
   display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center;/* horizontal centering */
  flex-shrink: 0;
}

.scrollIndicator-inner {
  width: 0.3rem;
  height: 0.4rem;
  background: #EFEAE4;
  animation: scroll-square-down 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes scroll-square-down {
  0% {
    transform: translateY(-.75rem);
    opacity: 1;
  }

  10.7% { /* 150ms fade-in (150/1400 = ~10.7%) */
    opacity: 1;
  }

  85.7% { /* 1200ms movement (1200/1400 = ~85.7%) */
    transform: translateY(.75rem);
    opacity: 0;
  }

  100% {
    transform: translateY(-.75rem); /* moves square down slightly */
    opacity: 0;
  }
}

/* Base class — always on the element */
.fadeinup {
  opacity: 0;
  transform: translate3d(0, 20px, 0); /* start slightly below */
}

/* Keyframes for the animation */
@keyframes fadeInUpCustom {
  0% {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transform: scale(1);
  }
}

/* Animation trigger class — added by JS */
.animateUp {
  animation-name: fadeInUpCustom;
  animation-duration: 1s;
  animation-fill-mode: forwards; /* keeps final state after animation */
}

@media (max-width: 1024px) {
  .wide-point {
    margin-left: 8%;
    margin-right: 8%;
  }  

  .center-content {
    margin: 0rem 12%
  }

  .content-video {
    flex: 1.1;
  }

  .aspect-ratio-web {
    aspect-ratio: 16/8.5;
  }
}


@media (max-width: 780px) {
  .logo {
    display: none;
  }

  .nav-links {
    flex: 1;
  }

  .nav-links ul {
  justify-content: space-between;
  }

  .siteInfo {
    font-size: 1rem;
  }

  .column-and-image {
    flex-direction: column;
    gap: 1rem;
  }

  .aspect-ratio-web {
    aspect-ratio: 16/10;
  }  
}

@media (max-width: 540px) {

  .nav-links a {
    padding: .25rem 1rem;
  }

  .siteInfo {
    flex-direction: column;
  }

  .scrollIndicator {
    margin-right: 0;
    width: 1.5rem;
    height: 3rem;
  }

  .point-flexbox, .project-info, .introHeading, .grid-2x2, .center-content {
    position: relative;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start !important;
  }

  .learnings {
    flex-direction: column;
  }

  .learnHead {
    position: relative;
    top: 0;
  }  

  .center-content {
    margin: 0rem 0%;
  }  

  .three-image-row {
    flex-direction: column;
  }

  .learnHead {
    position: relative;
    top: 0;
  }

  .quote {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .quote-content blockquote {
    width: 100%;
    font-size: 2.25rem;
  }

  .author {
    font-size: 1.75rem !important;
  }  

  .quote-container {
    gap: 3rem;
  }

  .wide-point {
    margin-left: 0;
    margin-right: 0;
  }    

  .box-and-image {
    flex-direction: column;
    gap: 1rem;
  }

  .tags {
    display: none;
  }

  .poro {
    display: none;
  }
}

@media (max-width: 425px) {

  .vine-title img {
    display: none;
  }

  .aspect-ratio-web {
    display: none;
  }
}