
html, body {
  overflow-x: hidden; /* Disable horizontal scroll */
  margin: 0;
  padding: 0;
  width: 100%; /* Ensure it doesn't overflow */
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.webgl
{
    position: fixed;
    top: 0;
    left: 0;
    outline: none;

}


.blue{
  color:#4a90e2
}
.yellow{
  color:#e2dd4a
}
.green{
  color:#5ce24a
}
.hotPink{
  color:#ff0077
}

body{
    
    color: white;
    font-family:   Helvetica, sans-serif;
    font-size:1rem;
  
}

hr{
    border: 2.5px solid white;
}

ul {
  list-style-type: none;
  padding-left: 0; 
  margin-left: 0;  
}
a{
  text-decoration: none;
}
a:visited {
 color: white
}
#centered-grid{justify-items: center;}
 
#grid{
    display: grid;
    position: relative;
   
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 1400px;
    
  }

    
  #popup {
      position: fixed;
      top: 33%;
      left: 50%;
      margin-top:10%;
      transform: translate(-50%, -50%);
      background-color: rgb(20, 19, 19);
      padding: 20px 30px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      min-width: 300px;
        max-width:520px;
      
      border-radius: 10px;
      overflow: hidden;
      display: none;
      z-index: 1000;
      color:#fefefe;
    }

    #popup img{
      width:100%;
        max-width:450px;
      height: auto;

    }
    #popup button {
      margin-top: 10px;
    }
    #overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: rgba(0,0,0,0.5);
      display: none;
      z-index: 999;
    }
/* Nav Bar */
.Nav-Bar {
     
      position: fixed;
      display: grid;
      grid-template-columns: 94%  6%;
      color: black;
      background-color: white;
     z-index: 9999;
      margin: 0;
         padding-top: 6px;
       padding-left: 1%;
       padding-right: 1%;
       padding-bottom: 2px;
       
      
      top: 0px;
      left: 0%;
      width:100%;
      height: 30px;
      
      border-bottom: 1.5px solid black;

}
.Portfolio-Bar{
  position: fixed;
  display: grid;
  grid-template-columns: 100%;
  color: black;
   background-color: white;

   z-index: 9997;
    margin: 0;
      padding-top: 4px;
       padding-left: 1%;
       padding-right: 1%;
       padding-bottom: 8px;
      bottom: 0px;
      left: 0%;
      width:100%;
     height: 30px;
      border-top: 1.5px solid black;

}


    

    .Nav-Bar h6 {
      margin: 0;
    }

      .Portfolio-Bar h6 {
      margin: 0;
    }


    #cv{
 transition: color .5s ease; 
 font-size: 2rem;
}
    #cv:hover{
  cursor: pointer;
   color: rgb(27, 119, 199);

}
#james{
 transition: color .5s ease; 
 font-size: 2rem;
}
  #james:hover{
     cursor: pointer;
     color: rgb(27, 119, 199);
  }
  #portfolio-true{
 transition: color .5s ease; 
 font-size: 2rem;
}

    #portfolio-true:hover{
     cursor: pointer;
     color: rgb(0, 136, 255);
  }

    
   /* CV Grid */
    


#gridA{
  max-width: 65ch;
  margin-left: 2rem;
    
  
 
}
#gridB{
  max-width: 60ch;
   margin-right: 2rem;
}

.microGrid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5rem;

}

#title{
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
    

   
}

.borderBaby{
  padding-bottom: 2%;
  border-bottom: #fff solid 3px;
  
}

.college{
  text-align: right;
}
.year{
  text-align: right;
}

#pdfButton{
   
    color:  white;
    background-color: #4a90e2;

    display: inline-block;
    position: fixed; 
    right: 2vw;
    bottom: 6vh;

    width: 50px;
    height: 3rem;
   
    padding: 0.5rem 1rem;
    border: 5px solid white;  
    

}
#contact {
    color: #4a90e2;
    background-color: #fff;

    display: inline-block;
    position: fixed; 
    right: 2vw;
    top: 6vh;

    width: auto; /* Let content determine width for pill shape */
    padding: 0.5rem 1rem;

    border: 5px solid white;
    border-radius: 9999px; /* Extra large value for pill shape */
    cursor: pointer;
}


#contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#contact-popup.hidden {
  display: none;
}

.popup-content {
  background: rgb(20, 19, 19);
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.popup-content a {
 
  color: #fff;

}



#popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

 #pdfButtonLetters{
   
    font-size: 2rem;
    padding:0px;
    margin:0px;
    
    
   
  }

#pdfButton:hover{
   
    color: rgb(27, 119, 199);
    background-color:  white;

    display: inline-block;
    position: fixed; 
    right: 2vw;
    bottom: 6vh;
    padding: 0.5rem 1rem;
    border: 5px solid white;  

}





.wave-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  max-height: 0;
  height:0px;
  background-color:  #4a90e2;
  z-index: 9998;
  
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;

  opacity: 1;

  animation-delay: 2s;
}


.wave-overlay-text{
  opacity: 0;
   margin-top: 5rem;
  

}

#bluebackgroundbottomcover{
 background-color:  #4a90e2;
width: 100vw;
height: 50%;
z-index:9997;
display:none;

opacity: 0;



position:absolute;
bottom: 0px;

margin:0px;
border:0px;
}

@keyframes net {
  0%{
    
      opacity: 0;
 
  }
  70% {
    
   
    
      opacity: 0;
    
  }
  100% {
    
    
      opacity: 1;
    
  }
}

@keyframes netnomore {
  0%{
    
      opacity: 1;
 
  }
 
  100% {
    
    
      opacity: 0;
    
  }
}



@keyframes waveDrop {
  0%{
    max-height: 0;
 
  }
  10% {
    
   
    border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
    
  }
  100% {
    
    max-height: 5000px;
    border-bottom-left-radius: 0% 0%;
  border-bottom-right-radius: 0% 0%;
    
  }
}

@keyframes fadeIn {

   from {
   opacity:  0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes reverseWave {
  0%{
    border-bottom-left-radius: 0% 0%;
  border-bottom-right-radius: 0% 0%;
  max-height: 5000px;
    
  }
  50%{
     border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
    opacity: 1;
  }
  100% {
    border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
   max-height: 0;
    opacity: 0;
  }
}
    #portfolio {
  position: fixed;
  bottom: 20px;
  left: 0px;
  width: 100vh;
  z-index: 1001;
  
  padding: 1rem;
 
  padding-bottom: 0%;
}

    .scroll-container {
      position: fixed;
      width: 100vw;
      left: 0;
      right: 0;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 1rem;
    
      transition: transform 0.5s ease;
      scrollbar-width: none;
      -ms-overflow-style: none;
      cursor:pointer;
      
    }
    
#portfolio {
  transition: transform 0.5s ease;
}

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

    .seen {
      position: fixed;
      bottom: 0%;
    }

    #CardMenu {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 30%;
      gap: 1rem;
      
    }

    #CardMenu::after {
  content: '';
  display: block;
  width: 3rem; /* adjust to the space you want */
}
    .card {
      position: relative;
      width: 100%;
      max-width: 700px;
      height: 33.2vh;
       max-height: 380px;
      display: flex;
      flex-direction: column;
      background-color: #3a3a3a27;
      backdrop-filter: blur(2.1px);
      border-radius: 5%;
      
      overflow: hidden;
     
    }

    #boxA {
  width: 100%;
  height: 100%;
  display: block; /* removes inline gap */
}
 

    .card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain', depending on your layout needs */
  display: block;
}

    .cardText {
  color: #ffffff;
  position: absolute;
  bottom: 0px;
  right: 0px;
  margin: 2%;
  font-size: 6rem;

 

  /* Blend to invert background colors */
  mix-blend-mode: difference;

  /* Add background so difference can show properly */
  
 
}

    .cardTextB {
  color: #ffffff;
  position: absolute;
  top: 0px;
  left: 0px;
  margin: 2%;
  font-size: 1.5rem;



 

  /* Blend to invert background colors */
  mix-blend-mode: difference;



}



.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999; /* on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* enable scroll if needed */
  background-color: rgba(0,0,0,0.8); /* dark semi-transparent background */
  align-items: center;
  justify-content: center;
}

/* Modal content (big image) */
.modal-content {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;

  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  animation: zoomIn 0.3s ease;
}

/* Close button */
.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}

/* Zoom in animation */
@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}









#bigJames {
 width: 100%;
  max-height: 500px;
  height: auto;  
  transform-origin: center center;
  transform: scale(1.1);   
 
}
.container {
  width: 100%;
  max-height: 500px;
  height: auto;   
  overflow: hidden;    /* crop overflow */
  position: relative;  /* for absolute positioning */
}




/* temp */

#heroImage {
  position: fixed;       /* use fixed for a full viewport background */
  top: 0;
  left: 0;
  width: 103vw;
  height: 100vh;
  background-image: url('images/aniceday.jpg'); /* your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 0;
}

/* main changing content */



#mainstuff{
   position: absolute;
     z-index:999;
  top: 5vh;
  left: 2vw;

}
#titlePage{
  color:#0d2e53;
  

}
#titlePage2{
  color:#0d2e53;
  grid-column: span 2;

}

#maingrid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% */
  width: 96vw;
  margin-bottom: 5%;
  gap: 1%;
  color:#0d2e53
}

#maingrid > div:first-child {
  height: 100%; /* make sure the left image fills the column */
}

#maingrid > div:first-child img {
  width: 100%;
 
  object-fit: cover;
  display: block;
}

.mainGridMicro {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; 
   grid-template-rows: 1fr 1fr 1fr; 
  gap: 4px; /* removes gap between both rows and columns */
 
  padding: 0;
  padding-bottom:2%;
  margin: 0;
}

.mainGridMicro > div {
  padding: 0;
  margin: 0;
}

.mainGridMicro img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}




.card {
  position: relative;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  pointer-events: none; /* so canvas is still clickable */
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
















/* Phone */
@media (max-width: 600px) {
  body {
    font-size: 1.5rem; /* bigger font on small screens */
  }

  #grid {
    grid-template-columns: 1fr; /* single column layout */
    gap: 1.5rem;
    font-size: 1rem;
  }

  .microGrid {
    grid-template-columns: 1fr 1fr 1fr; /* fewer columns on mobile */
    gap: 1rem;
  }

  #maingrid {
  display: grid;
    overflow: hidden; 
  grid-template-columns: 1fr ; /* 50% / 50% */
  width: 96vw;

  gap: 1%;
   padding-bottom: 5vh;
  color:#0d2e53
}

  
.wave-overlay {
 
  width: 103vw;
 
}
.wave-overlay-text{
  margin-top: 5rem;

}

  /* Nav Bar height bigger for touch */
  .Nav-Bar{
    position:fixed;
   
    max-height: 20px;
    width: 100%;
    padding-top: 4px;
    padding-bottom: 6px;
    padding-left: 3vw;
    padding-right: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin:0px
    
  }

  .popup-content {
  background: rgb(20, 19, 19);
  color: #fff;
  padding: 2rem;

  width: 100%;
  text-align: center;
}

  .Portfolio-Bar{
  position: fixed;
  display: grid;
  grid-template-columns: 100%;
  color: black;
   background-color: white;

   z-index: 9997;
    margin: 0;
      padding-top: 4px;
       padding-left: 1%;
       padding-right: 1%;
       padding-bottom: 6px;
      bottom: 0px;
      left: 0%;
      width:100%;
     height: 30px;
      border-top: 1.5px solid black;

}




  /* Buttons bigger and easier to tap */

   #popup {
      position: fixed;
      top: 30%;
      left: 50%;
      margin-top:25%;
      transform: translate(-50%, -50%);
      background-color: rgb(20, 19, 19);
      padding: 20px 30px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      min-width: 300px;
        max-width:520px;
        max-height:85%;
      border-radius: 10px;
      display: none;
      z-index: 1000;
      color:#fefefe;
    }

     #popup img{
  display: none;

    }
  /* Card sizes larger on mobile for easier interaction */
  .card {
  height: 50vw;
 
    
  }

  .cardText{
      color: white;
      position: absolute;
      bottom: 0px;
      right: 0px;
      
      margin-bottom: 0%;
      font-size: 4rem;
    }
 

  /* Adjust card menu to scroll horizontally better */

    

  /* Increase link tap targets */
  #cv, #james, #portfolio-true {
    font-size: 2rem;
   
    display: inline-block;
  }

  #portfolio-true {
    position: relative;
    margin-top:0px;
    padding:0px;
   
  }


  
 
  #james{
    text-align: left;
  
  }
  #cv{
    text-align: right;
    padding-right: 2rem;
  }
#heroImage {
  position: fixed;       /* use fixed for a full viewport background */
  top: 0;
  left: 0;
  width: 103vw;
  height: 100vh;
  background-image: url('./images/SadGolferpng.jpg'); /* your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 0;
}




  

html, body {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  width: 100vw;  /* enforce viewport width */
  height: 100vh;
}

#portfolio {
  width: 100vw; /* use viewport width instead of vh */
}

#CardMenu {
  grid-auto-columns: 50vw; /* wider cards but fits viewport width */
  max-width: 100vw; /* prevent overflow */
  overflow-x: auto;
}

.scroll-container {
  width: 100vw; /* ensure no overflow */
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
}

#gridA{
  max-width: 62ch;
  margin-left: 1rem;
  
 
    
  
 
}
#gridB{
  max-width: 62ch;
   margin-left: 1rem;
   
}


   
 #pdfButton {
    padding: 1rem 2rem;
    max-width: 20px;
  height: 50px;
  line-height: 500px;
  border-radius: 50%;
  
  color: #4a90e2;
  text-align: center;
  background-color: #fff;

  display: flex;             /* Flexbox for centering */
  align-items: center;       /* Vertically center */
  justify-content: center;   /* Horizontally center */
  



    font-size: 1.2rem;
    
    bottom: 8vh;
    right: 5vw;
  }
  #pdfButtonLetters{
    color: #4a90e2;
    font-size: 2rem;
   
  }


  #pdfButton:hover{
   padding: 1rem 2rem;
    max-width: 20px;
  height: 50px;
  line-height: 500px;
  border-radius: 50%;
  
  color: #4a90e2;
  text-align: center;
  background-color: #fff;

  display: flex;             /* Flexbox for centering */
  align-items: center;       /* Vertically center */
  justify-content: center;   /* Horizontally center */
  



    font-size: 1.2rem;
    
    bottom: 8vh;
    right: 5vw;
  }



}

  
  #pdfButtonLetters:hover{
    color: #4a90e2;
    font-size: 3rem;
    
   
  }


#grid{
    display: grid;
    position: relative;
    justify-items: center;
    grid-template-columns: 1fr ;
    gap: 1rem;}

    #contact {
    color: #4a90e2;
    background-color: #fff;

    display: inline-block;
    position: fixed; 
    right: 2vw;
    top: 8vh;

    width: auto; /* Let content determine width for pill shape */
    padding: 0.5rem 1rem;

    border: 5px solid white;
    border-radius: 9999px; /* Extra large value for pill shape */
}


    


@media (max-width: 600px) {
  /* rest of your mobile styles */
  
  /* Ensure no padding/margin causes overflow */
 .microGrid, #maingrid {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body, #grid {
    max-width: 100vw;
    overflow-x: auto;
  }
 

  /* Remove fixed widths that cause overflow */
  #portfolio {
    width: 100vw;
  }
}

/* Tablet */
@media (min-width: 768px) {


 
  #grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }


   #pdfButtonLetters{
   
    font-size: 2rem;
    
   
  }
   #pdfButtonLetters:hover{
    color: #4a90e2;
    font-size: 2rem;
    
   
  }
}

/* Laptop */
@media (min-width: 1024px) {


  
.wave-overlay-text{
  opacity: 0;
   margin-top: 5rem;
  

}

}

/* Desktop */
@media (min-width: 1280px) {
    body{
    background-color: white;
  }
  .wave-overlay-text{
  opacity: 0;
   margin-top: 7rem;
  

}

}