
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'HersheyFuturaTriplex';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'garamondt';
  src: url('./fonts/Garamondt-Italic.woff') format('woff');
}

@font-face {
  font-family: 'garamondt-regular';
  src: url('./fonts/Garamondt-Regular.woff') format('woff');
}

@font-face {
  font-family: 'HersheyOldFrench';
  src: url('fonts/Hershey-Noailles-OldFrench-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* second font face*/
@font-face {
  font-family: 'HoverFont';
  src: url('fonts/Hershey-Noailles-Times-Triplex-Italic-Bold.otf') format('opentype'); /* Replace with actual font */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'HersheyTriplexFutura';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Anthony';
  src: url('fonts/Anthony.woff') format('opentype'); 
  font-weight: normal;
  font-style: normal;
}


/* Apply the font */
body {
  display: flex;
  font-family: 'HersheyOldFrench', sans-serif;
  font-weight: normal;
  font-style: normal;
}





/* <!--------  SIDEBAR -----------------------------------------------------------------------------> */

.sidebar {
  position: fixed;         
  top: 0;                 
  left: 0;               
  width: 240px;
  height: 100vh;         
  background: linear-gradient(to right, rgb(1, 33, 63), rgb(226, 238, 255), rgb(1, 33, 63));
  border-right: 2px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow-y: auto;        
  z-index: 1000;
  box-shadow: 0 0 20px 5px rgba(255, 0, 247, 0.7);      
}

.sidebar-arrow {
  font-family: 'garamondt-regular';
  font-size: 60px;
  color: black;
  cursor: pointer;
  display: inline-block; /* needed for transform to work */
  transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-arrow:hover {
  color: #ff00ee;
  transform: scale(1.3);
  -webkit-text-stroke: #000;
  -webkit-text-stroke-width: 0.8pt;
  text-shadow: 0 0 8px #04ff00;
}




.nav-links-horizontal {
  display: flex;             
  gap: 20px;                 
  justify-content: center;   
  margin-top: 60pt;   
}


.logo {
  position: relative;
  display: inline-block;
  font-family: 'Anthony';
  font-size: 35px;
  font-weight: normal;
  margin-bottom: 20px;
  cursor: pointer;
  -webkit-text-stroke: 1.5px #000;
  color: rgb(0, 0, 0); 
  text-align: justify;
  hyphens: auto;
  text-shadow: 
  0 0 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px rgb(255, 255, 0);
  transition: transform 0.25s cubic-bezier(0.25, 1.25, 0.5, 1.0);
}

/* Shrink on click */
.logo:active {
  transform: scale(0.9);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px; 
  margin-top: 30pt;
  margin-bottom: 30pt;
  height:20px;
  width:20px;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 22px;
  transition: color 0.3s ease, padding-left 0.2s ease;
  margin-bottom: 20pt;
}

.nav-links a:hover,
.jump-links a:hover {
  color: #FF1F00; 
  padding-left: 8px;
}


.buttons {
  margin: 10px 0;
  margin-bottom: 20pt;
   margin-top: 10pt;

}



/* color change for buttons */
@keyframes flicker-colors {
  0%   { background-color: #FF1F00; }
  25%  { background-color: #FFD700; }
  50%  { background-color: #00FFFF; }
  75%  { background-color: #FF69B4; }
  100% { background-color: #FF1F00; }
}
/* <!--------  -----------------------------------------------------------------------------> */



/* <!-------- BUTTONS -----------------------------------------------------------------------------> */






button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: rgba(79, 49, 49, 0);
  border: 0.01px solid black;
  border-radius: 12px; 
  cursor: pointer;
  font-size: 22px;
  position: relative;
  box-shadow: 0 0 10px 5px rgba(0, 255, 17, 0.7);
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease;
 -webkit-text-stroke-width: 1pt;
  font-family: 'HersheyTriplexFutura', sans-serif;
}



/* Underline animation */
button::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  height: 2px;
  width: 0;
  background-color: #FF1F00;
  transition: width 0.3s ease;
}

/* Code button hover */
button.code-btn:hover {
  color: black;
  animation: flicker-colors 1s infinite;
}

button.code-btn:hover::after {
  background-color: black;
  width: calc(100% - 40px);
}

/* Donate button hover */
button.donate-btn:hover {
  color: black;
  animation: flicker-colors 1s infinite;
}

button.donate-btn:hover::after {
  background-color: black;
  width: calc(100% - 40px);
}


/*PORTFOLIO 25*/

a{
  text-decoration: none;
  color: rgb(0, 0, 0);
}

a:visited{
  text-decoration: none;
  color: black;
}

.menuContainer{
  z-index: 3000;
  position: fixed;
  right: 80px;
  height:30px;
  border: 0px solid black;
  margin-top: 6px;
  font-family: 'menu-Regular', 'HersheyTriplexFutura';
  font-size: 22px;
  text-align: center;
  background-color: white;
      text-shadow: 
  0 0 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px rgb(255, 255, 0);
    -webkit-text-stroke-width: 1pt;
}

.menuEntree{
  width:30px;
  height:inherit;
  display:inline-block;
  border-left: 1px solid black;
  border-top: 1px solid black;
  border-right: 0px;
  border-bottom: 1px solid black;
  margin:0px;
  padding:0px;
  background-color: white;
}

.menuEntreeLast{
  width:30px;
  height:inherit;
  display:inline-block;
  border-left: 1px solid black;
  border-top: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  margin:0px;
  padding:0px;
  background-color: white;
}

.menuEntree p, .menuEntreeLast p{
  width:30px;
  height:30px;
    padding-top: 4px;
}

#actif{
  background-color: rgb(255, 0, 208);
}

#actif a{
  color: white;
}

.menuEntree:hover, .menuEntreeLast:hover, .boutonEnglobe:hover{
  animation: colorchange 0.5s;
  -webkit-animation-iteration-count: infinite;
  cursor: pointer;
}

/*menu*/

/*animations*/

@keyframes colorchange{
  0%   {background: red;}
  25%  {background: yellow;}
  50%  {background: blue;}
  75%  {background: green;}
  100% {background: red;}
}

@keyframes colorchange-text{
  0%   {color: red;}
  25%  {color: yellow;}
  50%  {color: blue;}
  75%  {color: green;}
  100% {color: red;}
}


/* <!-------- POPUPS OF BUTTONS -----------------------------------------------------------------------------> */


/*BEGINNING OF WINDOW POPUP ABOUT*/

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay img {
  width: 50px;       
  height: auto;      /* maintain aspect ratio */
  display: block;    /* stack vertically */
  margin: 10px 0 0 0; /* vertical spacing, aligned left */
   opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay[style*="display: flex"] {
  opacity: 1;
}


/* Popup Modal Box */
.modal { 
  background: linear-gradient(to bottom, rgba(38, 255, 0, 0.439), rgb(226, 238, 255), rgba(38, 255, 0, 0.439));
  padding: 40px;
  border: 2px solid black;
  width: 500px;
  max-width: 90%;
  font-family: 'HersheyTriplexFutura', sans-serif;
  font-size: 20px;
  color: black;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  border-radius: 12px;
  -webkit-text-stroke: 1pt black;
  text-shadow: 
  0 0 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px rgb(255, 255, 0); ;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: transform 0.1s ease; 
}

.close-btn:active {
  transform: scale(0.9); 
}


/* Title Styling */
.popup-title {
  font-size: 40px;
  font-weight: normal;
  margin-bottom: 20px;
  font-family: 'Anthony';
  text-align: center;
}

/*END OF WINDOW POPUP ABOUT*/

/*BEGINING OF WINDOW POPUP CONTACT*/
.contactPopup {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center;    /* Center horizontally */
  justify-content: flex-start; /* Align items from top */
  z-index: 1000;
  background: transparent;
}

.contact-links a {
  display: inline-block;
  transition: transform 0.3s ease;
 font-family: 'HersheyTriplexFutura', sans-serif;
   font-size: 20pt;
}

.contact-links a:hover {
  transform: scale(1.1);
}


.contactPopup p {
  margin-top: 10px;
  text-align: center;
}


/*END OF WINDOW POPUP CONTACT*/



/*END OF SIDEBAR STYLE*/
.project-section {
  display: flex;            
  gap: 20px;               
  padding: 40px 0px;
  width: calc(100% - 80px); 
  margin-left:160px;
  
    
}

.project-text{
 font-size: 17pt;
 text-align: justify;    
max-width: 700px;
hyphens: auto;
font-family: 'HersheyTriplexFutura' sans-serif;
  
}

.project-gallery {
  display: none;
  display: contents;  
  flex-wrap: wrap;          /* Wrap on small screens */
  justify-content: center;  /* Center images */
  gap: 20px;
  margin-top: 20px;
  padding-left: 150pt;
}

.project-media {
  content: 0 0 100%;            
  max-width: 100%;
  height: auto;
  display: block;
  gap: 80px;
}

.project-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* <!-------- SLIDE DECK -----------------------------------------------------------------------------> */

#slidedeck {
  z-index: 3003; /* on top of #common-template */
  position: fixed; /* for z-index to work */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 43px 0 43px 0;
}

#slidedeck-flex-container {
  height: 100%;
  display: flex;
}

#slidedeck-flex-container div:nth-child(2) div {
  margin-top: 21px;
  font-size: 1vw;
  line-height: 1.5vw;
  flex: 1 0 700px;
}

/* ARROWS */
#slidedeck-flex-container > div:first-child, #slidedeck-flex-container > div:last-child {
  display: flex;
  font-size: 100px;
  justify-content: center;
  align-items: center;
  user-select: none;
    flex: 1 0 20%;
}

#slidedeck-flex-container > div:first-child span, #slidedeck-flex-container > div:last-child span {
  cursor: pointer
}

#slidedeck img {
  height: 88%;
  width: 100%;
  object-fit: contain;
}

#slidedeck.closed, .display-none {
  display: none;
}

.grid-item {
  cursor: pointer;
  width: 100%;
  z-index: 3001; /* on top of #common-template */
  position: relative; /* for z-index to work */
}

.grid-item:hover{
  cursor: zoom-in;
}



/* <!--------  -----------------------------------------------------------------------------> */











/* <!-------- SHOTS ROW -----------------------------------------------------------------------------> */


.video-shots-row {
  display: flex;
  gap: 40px;              /* spacing between shots */
  justify-content: center;
  flex-wrap: wrap;        /* allows wrapping on small screens */
  margin-top: 40px;
  padding-left: 10pt;
}

.shot {
  width: 500px;
  height: auto;
  overflow: hidden;
  border-radius: 2px;
  transition: box-shadow 0.3s ease; /* Smooth animation */
}

.shot video {
  width: 100%;            /* ensures video fits the .shot container */
  height: auto;
  display: block;
  object-fit: cover;
}


.shot:hover {
  box-shadow: 0 8px 20px rgba(255, 234, 0, 0.561),
    0 0 10px rgba(255, 31, 0, 0.2);
}



/* <!-------- LIGHTBOX -----------------------------------------------------------------------------> */





/* Lightbox overlay */
/* Lightbox Base */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: pointer;
}

/* Lightbox Video */
.lightbox video {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Arrows */
.lightbox-arrow {
  position: absolute;
  font-family: 'garamondt'; 
  font-size: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 20px;
  z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-arrow:hover {
  color: #FF1F00;
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}


/* <!--------  ---------------------------------------------------------------------!>


/* Caption styling below each video */
.shot .caption {
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  font-family: 'Garamondt', serif;
    font-weight: bold;
  font-style: normal;
  font-size: 14pt;
  color: white;
  line-height: 1.4;
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6) ;
  text-shadow: 0 0 4px rgb(255, 255, 0);
}



/* STYLING THE PARAGRAPHS*/

.garamondt {
  font-family: 'Garamondt', serif;
  font-weight: bold;
  font-size: 23pt;
  font-style: normal;
  color: rgb(255, 255, 255);
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6) ;
  text-shadow: 0 0 4px rgb(255, 255, 0);
}


  .project-text h1 {
  padding-bottom: 0.5em;
  font-family: 'HersheyOldFrench';
  font-size: 3em;
  letter-spacing: 0.5px;
  color: #1f1828;
  text-shadow: none;
}



/* <!-------- BUTTON  FOR PACKAGING -----------------------------------------------------------------------------> */


/* color change for buttons */
@keyframes flicker-colors {
  0%   { background-color: #FF1F00; }
  25%  { background-color: #FFD700; }
  50%  { background-color: #00FFFF; }
  75%  { background-color: #FF69B4; }
  100% { background-color: #FF1F00; }
}

@font-face {
  font-family: 'HersheyTriplexFutura';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


.petal-container {
  position: absolute;
  top: 200px;
  left: 100px;
  z-index: 1000; 
  animation: slow 80s infinite forwards;

  /* ADD THESE to control container size */
  width: 300px;     /* Adjust as needed */
  height: 150px;    /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overlay: ;
}



.petal-btn {
  display: block;
  padding: 20px 30px;    /* Increased padding */
  background-color: #ffff00;
  border: 2px solid black;
  border-radius: 15px;
  cursor: pointer;
  font-size: 30px;        /* Bigger font */
  font-family: 'garamondt';
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 2001;
  position: relative;
}


.petal-btn:hover {
  animation: flicker-colors 1s infinite;
}

.petal-btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  height: 2px;
  width: 0;
  background-color: #000000;
  transition: width 0.3s ease;
}

.petal-btn:hover::after {
  background-color: black;
  width: calc(100% - 40px);
}




@keyframes slow { 
0%   {left:500px; top:420px;}
30%  {left:750px; top:450px;}            
60%  {left:450px; top:450px;}
100% {left:500px; top:420px;}
}



/* <!-------- POPUP OVERLAY - LUNA -----------------------------------------------------------------------------> */


.luna-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.luna-overlay img {
  width: 50px;
  height: auto;
  display: block;
  margin: 10px 0 0 0;
}

.luna-box {
  background: white;
  border: 2pt solid black;
  border-radius: 20px; /* <-- added radius */
  padding: 40px;
  width: 495px;
  max-width: 90%;
  height: 70vh;
  font-size: 30px;
  color: #1f1828;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 3 / 2;
  font-family: 'Garmondt';
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.luna-body {
  text-shadow: 1px 1px 15px rgb(238, 255, 0);
  font-family: 'garmondt';
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  flex-grow: 1;
}

.luna-close {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  font-family: 'garamondt-regular';
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6);
  text-shadow: 0 0 5px rgb(180, 183, 0);
}

.luna-header {
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'garamondt';
  font-size: 45pt;
  margin-top: 1vh;
  text-align: center;
   color: white;
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6);
  text-shadow: 0 0 5px rgb(102, 6, 6);
}

.luna-subhead {
  font-weight: bold;
  margin-bottom: 20px;
  color: #1f1828;
  font-family: 'garamondt';
  font-size: 30pt;
  margin-top: 1vh;
  text-shadow: 1px 1px 15px deepskyblue;
  text-align: center;
}

.luna-popup {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1000;
  background: transparent;
}

.grow-image:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.luna-popup p {
  margin-top: 10px;
  text-align: center;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* spacing between items */
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically if container has height */
  text-align: center;      /* center image captions if needed */
  padding: 20px;           /* optional: adds spacing around */
}


.project-media img {
  width: 350px;
  height: auto;
  border: 1px solid #000;
  border-radius: 8px;
  transition: transform 0.3s ease;
  align-items: center;
}

.project-media img:hover {
  transform: scale(1.1);
}





/* <!-------- BUTTON KEYCHAINS -----------------------------------------------------------------------------> */




/* color change for keychain button */
@keyframes flicker-colors {
  0%   { background-color: #FF1F00; }
  25%  { background-color: #FFD700; }
  50%  { background-color: #00FFFF; }
  75%  { background-color: #FF69B4; }
  100% { background-color: #FF1F00; }
}

@font-face {
  font-family: 'HersheyTriplexFutura';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Keychain Container */
.keychain-container {
  position: absolute;
  top: 200px;
  left: 100px;
  z-index: 1000; 
  animation: slow-keychain 80s infinite forwards;

  width: 300px;  
  height: 150px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Keychain Button */
.keychain-btn {
  display: block;
  padding: 20px 30px; 
  background-color: #5c0404;
  border: 2px solid black;
  border-radius: 15px;
  cursor: pointer;
  font-size: 30px; 
  font-family: 'garamondt';
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 2001;
  position: relative;
}

.keychain-btn:hover {
  animation: flicker-colors 1s infinite;
}

.keychain-btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  height: 2px;
  width: 0;
  background-color: #000000;
  transition: width 0.4s ease;
}

.keychain-btn:hover::after {
  width: calc(100% - 40px);
}

/* Keychain animation */
@keyframes slow-keychain { 
  0%   {left:600px; top:550px;}
  30%  {left:750px; top:600px;}            
  60%  {left:650px; top:650px;}
  100% {left:600px; top:550px;}
}

/* Keychain Popup Overlay */
.keychain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.keychain-overlay img {
  width: 50px;
  height: auto;
  display: block;
  margin: 10px 0 0 0;
}

/* Keychain Box */
.keychain-box {
  background: white;
  border: 2pt solid black;
  border-radius: 20px; 
  padding: 40px;
  width: 495px;
  max-width: 90%;
  height: 70vh;
  font-size: 30px;
  color: #1f1828;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 3 / 2;
  font-family: 'Garmondt';
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.keychain-body {
  text-shadow: 1px 1px 15px rgb(238, 255, 0);
  font-family: 'garmondt';
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  flex-grow: 1;
}

.keychain-close {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  font-family: 'garamondt-regular';
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6);
  text-shadow: 0 0 5px rgb(180, 183, 0);
}

.keychain-header {
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'garamondt';
  font-size: 45pt;
  margin-top: 1vh;
  text-align: center;
  color: white;
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(75, 6, 6);
  text-shadow: 0 0 5px rgb(102, 6, 6);
}

.keychain-subhead {
  font-weight: bold;
  margin-bottom: 20px;
  color: #1f1828;
  font-family: 'garamondt';
  font-size: 30pt;
  margin-top: 1vh;
  text-shadow: 1px 1px 15px deepskyblue;
  text-align: center;
}

.keychain-popup {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1000;
  background: transparent;
}

.grow-image:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.keychain-popup p {
  margin-top: 10px;
  text-align: center;
}



.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* spacing between items */
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically if container has height */
  text-align: center;      /* center image captions if needed */
  padding: 20px;           /* optional: adds spacing around */
}


.project-media img,
.project-media video {
  width: 350px;
  height: auto;
  border: 1px solid #000;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block;
}

.project-media img:hover,
.project-media video:hover {
  transform: scale(1.1);
  cursor: pointer;
}


/* <!--------  MENU TOGGLE (STAR) -----------------------------------------------------------------------------> */



/* Sidebar general styling remains the same */
.sidebar {
  width: 240px;
  height: 240vh;
  background-color: #F1FF00;
  border-right: 2px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.3s ease;
}

/*  menu at the bottom-left */
.menu-toggle {
  display: none;
  position: fixed;
  bottom: 10px;   /* position from the bottom */
  left: 20px;     /* position from the left */
  color: #000000;
  background-color: #f2ff001a; /* optional background for contrast */
  padding: 10px;
  cursor: pointer;
  z-index: 10000;
  text-align: center;

  /* Shadow */
  box-shadow: 0px 0px 5px yellow;  
  border: 2px solid black;         
  border-radius: 4px;               
}




/* Mobile behavior @ 700px */
@media screen and (max-width: 700px) {

 .menuContainer {
    display: none !important;
  }
  
  /* Sidebar now acts as a top navigation bar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* even spacing */
    background: linear-gradient(
      to bottom,
      rgb(1, 33, 63),
      rgb(226, 238, 255),
      rgb(1, 33, 63)
    );
        box-shadow: 0 4px 12px rgba(4, 255, 0, 0.311);
    border-bottom: 2px solid black;
    border-right: none;
    padding: 5px 0;
    overflow-x: auto;
  }

  /* Hide scrollbar in mobile */
  .sidebar::-webkit-scrollbar {
    display: none;
  }

  /* Adjust logo */
  .logo {
    font-size: 35px;
    padding-left: 2pt;
  }

  /* Make nav links horizontal */
  .nav-links {
    flex-direction: row;
    gap: 10px;
    margin: 0;
  }

  .nav-links a {
    font-size: 18px;
    margin: 0;
  }

  /* Stack buttons vertically */
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0px;
      padding-right: 7pt;
  }

  /* Full-width buttons */
  button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }


 .project-text h1{
    text-align: center;
  hyphens: auto;
  font-size: 40pt;
  margin-top: 3.5em;
}

.project-text p {
   text-align: center;
}

  .popup-overlay {
  position: fixed;        /* already fixed, keep it */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;          /* controlled by JS */
  justify-content: center;
  align-items: center;
  z-index: 10001;         /* higher than sidebar's 9999 */
  background: rgba(0, 0, 0, 0.4); /* optional semi-transparent overlay */
}
  /* Popups */
  .modal {
    width: 90%;
    max-width: 500px;
    font-size: 16px;
    z-index: 1000;
  }

  .modal h1 {
    font-size: 40px;
  }

  .contact-links {
    flex-direction: column;
    gap: 10px;
  }

  .contact-links a {
    font-size: 18px;
    margin-bottom: 10px;
    padding-left: 0;
  }

  /* Project section adjustments */
  .project-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 2em;
    width: 100%;
    margin-left: 0;
    padding: 10px;
  }

  .project-text {
    order: 1;
    width: 95%;
    margin: 0;
    font-size: 16pt;
     align-items: center;
    justify-content: center;
    hyphens: auto;
  }

  .project-gallery {
    order: 2;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1em;
    max-width: 100%;
  }

  .project-media img,
  .project-media video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }





@media screen and (max-width: 700px) {
  /* ensure family name and style still applied on mobile */
  .garamondt {
    font-family: 'garamondt', serif !important;
    font-weight: 700 !important;
    font-style: italic !important;
    font-size: 18pt !important;
    color: #ffffff !important; /* keep contrast; change to black if background is light */
    -webkit-text-stroke-width: 0.1pt !important;
    -webkit-text-stroke-color: rgb(75, 6, 6) !important;
    text-shadow: 0 0 4px rgb(255, 230, 0) !important;
  }

  /* If a parent is forcing color, be explicit for spans inside project text */
  .project-text .garamondt {
    color: #ffffff !important;
  }
}

.video-shots-row {
    display: flex;
    flex-direction: column; /* stack videos vertically */
    gap: 20px;              /* reduce spacing for mobile */
    justify-content: center;
    align-items: center;    /* center videos horizontally */
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
     z-index: 1000;
  }

  .shot {
    width: 95%;             /* almost full width of screen */
    max-width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
  }

  .shot video {
    width: 100%;            /* scale video to container */
    height: auto;
    object-fit: cover;
  }

  .shot:hover {
    box-shadow: 0 4px 12px rgba(255, 234, 0, 0.5),
                0 0 6px rgba(255, 31, 0, 0.2); /* smaller shadow on mobile */
  }
}


@media screen and (max-width: 700px) {

  /* -------------------- PETAL BUTTON -------------------- */
  .petal-container {
    position: fixed;          
    top: 40%;                 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: none !important;
  }

  .petal-btn {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    font-family: 'garamondt', serif;
    font-style: italic;
    font-weight: normal;
    color: black;
    background-color: #ffff00;
    border: 2px solid black;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: none !important;
     z-index: 1000;
  }

  /* -------------------- KEYCHAIN BUTTON -------------------- */
  .keychain-container {
    position: fixed;          
    top: 55%;                 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: none !important;
  }

  .keychain-btn {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    font-family: 'garamondt', serif;
    font-style: italic;
    font-weight: normal;
    color: black;
    background-color: #5c0404;
    border: 2px solid black;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: none !important;
     z-index: 400;
     
  }

  /* Underline hover effect is fine, no movement */
  .petal-btn:hover::after,
  .keychain-btn:hover::after {
    width: calc(100% - 20px);
  }


}