
* {
  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-style: italic;
  font-weight: normal;
}


@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'); 
  font-weight: normal;
  font-style: normal;
}

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

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



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





/* Apply the font */
body {
  display: flex;
  font-family: 'Anthony';
  font-weight: normal;
  font-style: normal;
     -webkit-text-stroke: 1px #000;

}

.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);      
}


/* Hide sidebar on small screens */
@media screen and (max-width: 768px) {
  .sidebar {
    display: none; 
  }

  .project-section {
    margin-left: 0; 
    width: 100%;    
  }
}


.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);
}


.logo:active {
  transform: scale(0.9);
}



.nav-links a,
.jump_links a {
  display: block;
  color: black;
  text-decoration: none;
  margin: 14px 0;
  font-size: 22px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-links a:hover,
.jump-links a:hover {
  color: #000000; 
  padding-left: 8px;
  -webkit-text-stroke: 1.5pt;
  text-shadow: 0 0 10px rgb(0, 255, 26); 
}

.buttons {
  margin: 10px 0;
  
}

/* 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;
}




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









/* <!-------- 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;

  /* custom font */
  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);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 5px;
  padding: 40px 10px;
  width:calc(100vw - 260px);
   height: 118vh;
   

  margin-left: 310px;
  margin-right: 0px;
}




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








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






/* Desktop / large screens */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;                 
  justify-content: left;
}

.project {
  width: 25vw;                
  aspect-ratio: 1 / 1;        
  border: 2px solid #000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;    
  align-items: center;
  padding: 10px;
  position: relative;
  text-align: center;
  overflow: hidden;           
  transition: transform 0.3s ease;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;         
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Small screens: stack projects vertically */
@media screen and (max-width:1000px) {
  .project-gallery {
    flex-direction: column;  /* stack projects */
    align-items: center;     /* center them horizontally */
    gap: 20px;
    padding: 20px 10px;
  }

  .project {
    width: 90vw;            /* almost full width */
    aspect-ratio: 1 / 1;    /* keep square if desired */
  }

  .project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


.project a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: black;
}

.project img:hover { 
  transform: scale(1.005);
}

.project .caption {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.project::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid #F1FF00;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project:hover::before {
  opacity: 1;
}


.Guitar-Pedal {
  max-width: 30px;  
  height: auto;
}





/* <!-------- PORTFOLIO MENU -----------------------------------------------------------------------------> */





/*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);
}

.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;
      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*/





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






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



/* Sidebar general styling remains the same */
.sidebar {
  width: 240px;
  height: 240vh;
  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;
  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 10px yellow;  
  border: 2px solid black;         
  border-radius: 4px;               
}




/* Mobile behavior */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 9999;
    height: 100vh;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .project-gallery {
    margin-left: 0;
    width: 100%;
  }
}

.star-toggle {
  font-family: 'HersheyFuturaTriplex', serif;
  font-weight: bold;
  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(0, 208, 255);
  font-size: 15pt;
  text-align: center;
}


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

/* ---------------------------
  FORCE VERTICAL STACK + SCROLL
  Place this at the end of your CSS
----------------------------*/

/* General small-screen rule: stack projects vertically */
/* ------------------------------------
   RESPONSIVE DESIGN FOR <=700PX
------------------------------------ */
@media screen and (max-width: 700px) {

  /* Make sidebar toggleable & cover full height */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 75vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(to right, rgb(1, 33, 63), rgb(226, 238, 255), rgb(1, 33, 63));
    box-shadow: 0 0 20px 5px rgba(255, 0, 247, 0.7);
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.4s ease;
  }

  /* When active (menu opened) */
  .sidebar.active {
    transform: translateX(0);
  }

  /* Menu toggle (★ icon) stays visible */
  .menu-toggle {
    display: block;
    position: fixed;
    bottom: 12px;
    left: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid black;
    border-radius: 6px;
    font-family: 'HersheyFuturaTriplex';
    font-size: 16pt;
    color: white;
    -webkit-text-stroke: 0.1pt rgb(75, 6, 6);
    text-shadow: 0 0 6px rgb(0, 208, 255);
    padding: 8px 10px;
    box-shadow: 0 0 8px yellow;
  }

  /* Make main content take full width */
  main, .project-section, .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box;
  }

  /* Stack projects vertically */
  .project-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 12px !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .project {
    width: 92% !important;
    max-width: 700px;
    height: auto !important;
    aspect-ratio: auto;
    border: 1px solid black;
    padding: 10px;
    margin: 0 auto;
  }

  .project img, .project video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Popups: fit screen and readable */
  .modal {
    position: relative;
    width: 90% !important;
    max-width: 600px !important;
    padding: 20px !important;
    font-size: 16px !important;
     z-index: 10001;
  }

  /* Center popups properly */
  .popup-overlay {
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000;
  }

  /* Buttons easier to tap */
  button {
    font-size: 18px !important;
    padding: 10px !important;
  }

   /* 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);
}

  /* Smaller logo & spacing */
  .logo {
    font-size: 28px !important;
    margin-bottom: 10px !important;
  }

  /* Navigation spacing */
  .nav-links a {
    font-size: 20px !important;
    margin: 10px 0 !important;
  }

  /* Contact links larger and centered */
  .contact-links a {
    font-size: 18px !important;
  }

  /* Portfolio menu smaller and repositioned */
  .menuContainer {
    right: 20px;
    top: 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.9);
  }

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
  }
}
