@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;700;900&display=swap');

/* General Styles */
/* Dark Mode (not yet active, need to add js file) */

:root {
    --color-bg-main: #fffbf0;
    --color-bg-light: #fffdf1;
    --color-bg-accent: #ba5849;
    --color-bg-accent-medium: #D8513D;
    --color-bg-accent-light: #ffebe8;
    --color-accent-1: rgb(187, 202, 20);
    --color-accent-2: #7092DA;
    --color-accent-3: #F3C820;
    --color-accent-1-light: #E1E799;
    --color-accent-2-light: #B2CAFD;
    --color-accent-3-light: #FFEB9B;

    --color-text: #222;
    --color-text-tertiary: #888;
    --color-text-accent: #D8513D;
    --color-text-accent-light: #ffebe8;


    --color-border: #000547;
    
}


:root {
  /* Backgrounds */
  --color-bg-main: OldLace;          /* warm cream */
  --color-bg-light: floralwhite;         /* soft ivory */
  --color-bg-dark:     #8ab339

;
  --color-bg-accent: orangered;        /* deep neutral grey */
  --color-bg-accent-medium: seagreen; /* slightly lighter grey */
  --color-bg-accent-light: seashell;  /* muted cream-grey */

  /* Accents */
  --color-accent-1: yellowgreen;         /* charcoal grey */
  --color-accent-2: slateblue;         /* medium grey */
  --color-accent-3: orangered;         /* light grey */

  --color-accent-1-light:  #cac4ed

;   /* soft grey highlight */
  --color-accent-2-light:  #d5f6f6;
   
  --color-accent-3-light: #e9ffc4;   /* near-white grey */

  /* Text */
  --color-text: #000547;        /* dark neutral text */
  --color-text-accent: rgba(25, 25, 112, 0.65);
      /* grey accent */
  --color-text-light: seashell;/* subtle grey highlight */
  --color-text-link: orangered;


  /* Borders */
  --color-border: #000547;   /* light grey border */
  --color-border-accent: orangered;
   
}

::selection {
  background: #a4c400; /* chartreuse highlight */
  color: #fffdf6;      /* cream text on highlight */
}


/* Replace primitive color values with CSS variables */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Martian Mono', monospace;
    background: var(--color-bg-main);
    color: var(--color-text);
    position: relative;
    z-index: 1;
    margin-bottom: 75vh;
    
}

.content {
    background: var(--color-bg-main);
    
    margin: 0 auto;
    padding: 32px 106px;
    display: flex;
    flex-direction: column;
    border-radius: 0px 0px 32px 32px;
    
    
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    
    
}



.case-study-hero-details-page {
    padding: 48px 0px 80px 0px;
  }

p {
    font-size: 14px;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Martian Mono', monospace;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--color-text-accent);
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    background: none;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    display: block;
    position: relative;
    padding-top: 0.5em;
}
h6::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent-1-light);
    position: absolute;
    top: 0;
    left: 0;
}

h2 {
  position: relative;        /* creates a positioning context */
  display: inline-block;     /* keeps the bar only as wide as the text */
  z-index: 0;                /* ensures text stays above the bar */
}

h3::after {
  content: "";
  position: absolute;
  left: -64px;                 /* offset the bar to the right */
  bottom: 40%;                 /* attach to the bottom of the h2 */
  width: 24px;                /* covers 80% of the h2 width */
  height: 8px;               /* thickness of the bar */
  background: var(--color-accent-3); 
  z-index: -1;               /* places the bar *behind* the text */
            /* slight transparency */
}

blockquote {

  border-left: 4px solid var(--color-text);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text);
}


nav a {
    color: var(--color-text-link);
    text-decoration: none;
}

nav a:hover {
    transform: translateY(-1px);
    background: var(--color-bg-accent);
    color: var(--color-text-light);
}


.main-nav-wrapper {
  position: fixed;                /* stays at the top when scrolling */
    top: 0;                         /* stick to the top */
    left: 0;                        /* start from the left edge */
    width: 100%; 
  
  background-color: var(--color-bg-main);
    border-bottom: 2px solid var(--color-border-accent);
    border-radius: 0;                /* remove rounded pill */
    z-index: 1000;
    
    display: flex;
    width: 100%;
    justify-content: center; /* space out nav items */
    align-items: center;
    
  }
  
  
.main-nav {
                       /* span full width */
    display: flex;
    width: 100%;
    gap: 48px;
    justify-content: flex-start; /* space out nav items */
    align-items: center;
    z-index: 1000;
    max-width: 1000px;
    
    padding: 12px 106px;
    
}



 /*------------------------------------------home page------------------------------------------------------------------------------------*/








.case-study img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* ✅ keeps PNG proportions */
    border-radius: 8px;
}

.case-study video {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* ✅ keeps PNG proportions */
    border-radius: 8px;
}

.case-study-img-container img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* Accent background colors */
#case-study-1 > .case-study-img-container {
    background: var(--color-accent-);
}

#case-study-2 > .case-study-img-container {
    background: var(--color-accent-2);
}

/* Case study text/info */
.case-study-info {
    flex: 2;
    display: flex;
}

.case-study-info h3:hover {
    color: var(--color-text-link);
    font-variation-settings: "wght" 900;
    font-weight: 900;
    cursor: pointer;
}

.case-study-info > #case-study-2 h3:hover {
    color: var(--color-text);
    font-variation-settings: "wght" 700;
    font-weight: 700;
    cursor: auto;
}

.case-study-info-left {
    flex: 1;
}

.case-study-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    justify-content: flex-end;
}

.case-study-info-right h6::before {
    display: none;
}

.case-study-info-right p {
    margin: 0;
}



.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    z-index: -1;
    background: var(--color-text);
    color: var(--color-text-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    color: var(--color-text-light);
    padding: 106px;
    padding-top: 240px;
    gap: 24px;
    
}

.copyright {
  
  position: fixed;
  bottom: 28px;
  left: 106px;
  }

.footer-content h1 {
    color: var(--color-text-light);
    
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    background: var(--color-bg-accent-light);
    color: var(--color-text-link);
    text-decoration: none;
    padding:8px;
}

.footer-links a:hover {
    color: var(--color-text-light);
    background: var(--color-bg-accent);
    padding: 8px;
    
}

.content {
    position: relative;
    z-index: 1;
    padding-bottom: 85vh;
    transition: padding-bottom 0.5s;
}

body:not(.scrolled-to-bottom) .content {
    padding-bottom: 32px;
}

@media (max-width: 900px) {
    #hero, .case-study {
        flex-direction: column;
        align-items: stretch;
    }
    .case-study img {
        max-width: 100%;
    }

    .case-study video {
        max-width: 100%;
    }
    .previous-work-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .previous-work-item {
        width: 100%;
    }
}



/* -------- PM-Tools CSS ------------ -----------------------------------------------------------------------------------------------*/

.case-study-hero {
    
    padding: 48px 0px 80px 0px;
  }
  
.case-study-hero h3:hover {
  
  
  }

img {
    width: 100%;
    
    
  }

  video {

    width: 98%;
    border-radius:8px;
    outline: 2px solid var(--color-border);
    box-shadow: 10px 10px var(--color-border);
  }
  
  .img-container-right img {
     width: 98%;
    border-radius:8px;
    outline: 2px solid var(--color-border);
    box-shadow: 10px 10px var(--color-border);
    }

.img-container-100vw {
    display: flex;
    justify-content: center;
  
    border-radius: 8px;
    background: var(--color-accent-1);
    padding: 48px;
    margin-top: 48px;
    
   
  
  }

  
.img-container-no-background {
    display: flex;
    justify-content: center;
    margin: 0px;
    margin-top: 48px;
     outline: 2px solid var(--color-border);
    box-shadow: 10px 10px var(--color-border);
    border-radius: 8px;
  
  }
  
  .img-container-no-background img {
   border-radius: 8px;
   width:100%;
   }
   
   
.img-header-no-background {
    display: flex;
    justify-content: center;
    margin: 0px;
    margin-top: 48px;
    border-radius: 8px;
  
  }
  
  .img-container img {
    width: 100%;
    border-radius:8px;
    outline: 2px solid var(--color-border);
    box-shadow: 10px 10px var(--color-border);
    
    }
  

  .img-header-no-background img {
   border-radius: 8px;
   width:100%;
   }




.case-detail-section {
  margin-bottom: 64px; /* space between major sections */
 
}

.case-detail-section h3 {
  
}

.case-detail-section h6 {
  letter-spacing: 1px;
  margin-bottom: 24px;

}

.extra-top-padding {
  padding-top: 24px;
  }

.case-details-image  {
    
    max-width: 100%;
     border-radius: 8px;
    border: 2px solid var(--color-border);
    
  
  }

.case-details-image img {
    
    max-width: 100%;
}

.case-details-image video {
    
    max-width: 100%;
}



.case-details-video {
  width: 100%;                         /* fill wrapper */
  height: auto;                         /* maintain aspect ratio */
  max-width: 100%;                      /* never overflow */
  border-radius: 8px;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(255, 245, 238, 0.35);
}

.case-study-hero h2::after {
    content: none;      /* removes the pseudo-element */
    display: none;      /* ensures it doesn’t occupy space */
}

.case-study-hero > .case-study-info {
  display: flex;
  gap: 24px; /* optional spacing */
}

.case-study-hero > .case-study-info > :first-child {
  flex: 7; /* ~70% */
}

.case-study-hero > .case-study-info > :last-child {
  flex: 3; /* ~30% */
}








/* figma div design ---------------------------------------------------------------------------------------------*/


.content-container {
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 40px;
  display: none;
  z-index: 1000;
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 60px;
  border: none;
  background: var(--color-text-accent);
  color: var(--color-text-light, #fff);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 2px solid var(--color-bg-main);
}


.case-content  h2:hover, h3:hover {
color: var(--color-text);
font-weight: 1.5rem;
cursor: default;
}
#back-to-top:hover,
#back-to-top:focus {
  background: var(--color-bg-accent, orangered);
  color: var(--color-text-light, #fff);
  transform: translateY(-2px) scale(1.05);
  outline: none;
}

@media (max-width: 600px) {
  #back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
    font-size: 14px;
  }
}
  
}



.case-study-info {
  margin-bottom:48px;
}

#case-study-hero-details-page {
  
}

.hero-img-container {
 display: flex;
  justify-content: center;
  padding: 48px;
  border-radius: 8px;
  margin-bottom:24px;
  padding: 48px;
  background: var(--color-accent-1); 
  border-radius: 8px;
  
}

.hero-img-container-2 {
 display: flex;
  justify-content: center;
  padding: 48px;
  border-radius: 8px;
  margin-bottom:24px;
  padding: 48px;
  background: #F7BF37; 
  border-radius: 8px;
  
}

.img-container {
  display: flex;
  justify-content: center;
  border-radius: 8px;
  margin-bottom:24px;
  background: var(--color-bg-main); 
  border-radius: 8px;
  padding: 24px 0 0px 0;
}

.img-container-left {
  display: flex;
  justify-content: center;
  padding-right: 24px;
 background: var(--color-bg-main);
  border-radius: 8px;
    margin-right:24px;
    
}

.img-container-right {
  display: flex;
  justify-content: center;
  padding-left: 24px;
 background: var(--color-bg-main);
  border-radius: 8px;
  margin-left:24px;
}


.img-container video {
  width: 100%;
  
}

.whole-span-img {
  padding: 40px 0 24px 0;
  }

.img-no-styles img {
  outline: none;
    box-shadow: none;
    border-radius: 0;
  
  }
  
.image-group img {
  
  border-radius: 8px; 
  margin-top: 48px;
  margin-bottom: 24px;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border);
  box-shadow: 10px 10px var(--color-border);
  }
  
.case-content {
  display: flex;
  gap: 160px;
  flex-direction: column;
  margin-bottom: 88px;
  }

.case-section {
 display: flex;
  flex-direction: column;
  

}

.case-section-whole-span {
  display: flex;
  flex-direction: column;
  
    width: 100%;
    
  
}

.case-section-2-col-wrapper {
  display: flex;
  flex-direction: column;
    width: 100%;
    
    
   
  
}

.case-section-2-col {
  display: flex;
    width: 100%;
  align-items: center;
  margin-top: 0px;
  flex-wrap: wrap;
  gap:48px;

}

.case-section-left, .case-section-right {
  flex: 1 1 400px;
  }
  
  @media (max-width: 900px) {
    .case-section-2-col {
      flex-direction: column;
      gap: 48px;
      align-items: flex-start;
      }
    }





h3 {
  max-width: 600px;
  margin-bottom: 0;
  padding-bottom: 0;
  }

.text-section {
  align-items: flex-start;
  margin-top: 0px;
  }


.case-section-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
 
 
  
}


  .case-section-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    
    
  }





#text-section {
  max-width:350px;
}


  .case-section-2-col-header h3 {
  
  margin-bottom: 40px;
  
  }

li {

 list-style-type: none;
 margin-bottom: 24px;
}

ul {

  padding-left: 0;
}

.sub-subsection {
  padding-top: 24px;
  }

.quote-container {
  display: flex;
  flex-direction: column;
  
  margin-top: 24px;
  
  
  padding: 40px;
  border-radius: 8px; 
  padding-bottom: 24px;
  gap: 16px;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border);
  box-shadow: 10px 10px var(--color-border);
 
}

.quotes {

  display: flex;
  flex-direction: row;
  gap: 40px;

  
}

.previous-work-item a {
  display: block;                  /* ensures the whole block is clickable */
  text-align: center;              /* centers the heading below the image */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;                  /* keep text color default */
  text-decoration: none;
}

.previous-work-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover state for the image and link block */
.previous-work-item a:hover img {
  transform: scale(1.05);          /* slightly zoom the image */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* add subtle shadow */
}

/* Optional: change text color or underline on hover */
.previous-work-item a:hover h4 {
  color: var(--color-text-link);   /* or any accent color */
  text-decoration: underline;
  transition: color 0.3s ease;
}






