/* ----------------------           SKIP            ----------------------*/

.skip {
  position: absolute;
  top: auto;
  left: -10000px;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
}

/* ----------------------           BODY, FONTS, AND DIVS            ----------------------*/

body {
	font-family: "Lexend", sans-serif;
  font-size: 18px;
}

h1 {
	color: white;
  text-align: center;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: -20px;
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-style: normal;
  line-height: 0.25;
  word-wrap: break-word;
  font-size:7vw;
}
@media screen and (min-width: 800px) {
  h1 {
     font-size: 58px;
  }
}

h2 {
  color: white;
  text-align: center;
  margin: 0 2vw;
  padding: 10px;
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 3em;
  margin-bottom: 25px;

}

h3 {
	color: #000A37;
}

/* ----------------------          HEADER AND NAV CSS            ----------------------*/

header {
  margin-top: 25px;
  margin-left: 25px;
  margin-right: 25px;
  margin-bottom: 25px;
  padding: 0px;
	background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
  
}

#nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1;

}
#navitems {
  display: flex;
  align-items: center;
	justify-content: space-around;
  background: rgba(0, 10, 55, 1);
  border: solid 3px white;
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 10px;
}
#navitems a {
 padding: 10px;
 text-decoration: none;
 text-align: center;
}
#navitems a:hover {
	background-color: white;
  color: navy;
  transition: background-color 0.1s ease, color 0.1s ease;
}
#nav label,
#hamburger {
	display: none;
}

a:link {
  color: white;
}

a:visited {
  color: lavender;
}


/* ----------------------           NAV AND HAMBURGER MEDIAQUERY            ----------------------*/

@media screen and (max-width: 576px){
  #navitems a {
  display: block;
  width: 100%;
  }
  
  #nav input:checked ~ #navitems a {
   display: block;
   position: sticky;
   top: 0;
  }
  #nav label { 
   display: flex;
    align-items: center;
    position: sticky;
   top: 0;
   color: white;
   background: rgba(0, 10, 55, 1);
   border: solid 3px white;
   font-style: normal;
   font-size: 1.5em;
   padding: 10px;
    margin-bottom: 25px;
   cursor: pointer;
  }
  #navitems { 
   display: none;
  }
  #nav input:checked ~ #navitems {
   position: sticky;
   top: 0;
   display: block; 
   margin-top: 0px;
 }
  #container {
	display: flex;
 	flex-flow: column;
  align-items: center;
  min-width: 90%;
}
  #intro {
  min-width: 90%;
    margin: auto auto;
  }
  aside {
  min-width: 85%;
  margin-bottom: 25px;
  margin-left: 25px;
  margin-right: 25px;
}
}

/* ----------------------           ABOUT            ----------------------*/
#About {
  color: white;
  background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  margin: auto auto;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: 25px;
  margin-right: 25px;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}

#container {
 display: flex;
 width: 85%;
 margin: auto auto;
}

#intro {
  color: white;
  background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  width: 60%;
  padding: 20px;
  margin: auto auto;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: 25px;
  margin-right: 25px;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}

aside {
  color: white;
  background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  width: 40%;
  padding: 25px;
  margin-left: 15px;
  float: right;
  font-style: italic;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: 25px;
  margin-right: 25px;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}

@media screen and (max-width: 900px){
#container {
	display: flex;
 	flex-flow: column;
  align-items: center;
 width: 90%;
}
  #about {
  min-width: 80%;
    margin: auto auto;
  }
  aside {
  min-width: 65%;
  margin-bottom: 5%;
  margin-right: 5%;
}
}

/* ----------------------           HTML  PROJECTS              ----------------------*/
#HTMLProjects {
  background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
	box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}
.HTMLportfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
 		width: 85%;
		margin: auto auto;
    gap: 20px;
    padding: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: space-around;
  padding: 0px;
  margin: 0px;
  width: 300px;
  height: 400px;
}

.project h3 {
  color: white;
	text-align: center;
  background-image: radial-gradient(white, transparent);
  padding: 20px;
}
.project h3 a {
  text-decoration: none;
  color: rgba(0, 10, 55, 0.75);
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}

.project h3 a:hover {
	 background-image: radial-gradient(goldenrod, transparent);
}

.iframe-wrapper {
	width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
}

.iframe-wrapper:hover {
  box-shadow: 0 0 25px 15px white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  opacity: 1.0;
  transform: scale(1.05);
}

.iframe-wrapper iframe {
	transform: scale(0.3);
  transform-origin: top left;
  width: calc(250px / 0.3);
  height: calc(250px / 0.3);
  opacity: 0.8;
}

.iframe-wrapper iframe:hover,
.iframe-wrapper iframe:focus{
	opacity: 1;
}

/* ----------------------           REMEDIATION  PROJECTS              ----------------------*/
#RemediationProjects {
	background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}
.Remediated {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: space-around;
  padding: 0px;
  margin: 0px;
  width: 300px;
  height: 300px;
}

.work h3 {
  text-align: center;
  padding: 10px;
}

.work h3 a {
  text-decoration: none;
  color: white;
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-size: 1.5rem;
}

.work h3 a:hover {
  background-image: radial-gradient(firebrick, transparent);
}

.work img {
  width: 250px; /* Ensures consistent width */
  border: 3px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adds hover animation */
}

.work img:hover {
  transform: scale(1.05); /* Slight zoom effect */
  box-shadow: 0 0 25px 5px rgba(255, 255, 255, 1);
}

/*----------------------           EXTRAS                  -----------------------*/

#ExtraProjects {
	background: rgba(0, 10, 55, 0.75);
  border: solid 3px white;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
 	animation: glowAnimation 3s ease-in-out infinite;
}
.ExtrasContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.Goodies {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: space-around;
  padding: 0px;
  margin: 0px;
  width: 300px;
  height: 300px;
}

.Goodies h3 {
  text-align: center;
  background: rgba(0, 10, 55, 0.75);
  padding: 10px;
}

.Goodies h3 a {
  text-decoration: none;
  color: white;
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-size: 1.5rem;
}

.Goodies h3 a:hover,
.Goodies h3 a:focus{
  text-align: center;
  color: rgba(0, 10, 55, 1);
  background: white;
}

.Goodies img {
  width: 250px; /* Ensures consistent width */
  border: 3px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adds hover animation */
}

.Goodies img:hover {
  transform: scale(1.05); /* Slight zoom effect */
  box-shadow: 0 0 25px 5px rgba(255, 255, 255, 1);
}

/*----------------------					 CONTACT                  ----------------------*/



/* ----------------------           FOOTER                  ----------------------*/

footer {
 background: rgba(0, 10, 55, 0.75);
 border: solid 3px white;
 width: 100%;
bottom: 1;
 margin-top: 25px;
}

/* ----------------------           TO IMPLEMENT            ----------------------*/

img {
  opacity: 0.75;
}
img:hover {
  opacity: 1.0;
}
/*------------------             ANIMATION            -------------------- */
@keyframes glowAnimation {
  0%, 100% {
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 25px 10px rgba(255, 255, 255, 1);
  }
}
 .no-animations * {
      animation: none !important;
      transition: none !important;
}

#toggleAnimations {
  	display: flex;
   	 position: relative;
     height: 75px;
     width: 125px;
     padding: 5px 5px;
     background-color: rgba(0, 10, 55, 1);
     color: white;
  	font-family: "Arial", sans-serif;
  	font-size: 18px;
     border: 4px solid white;
     border-radius: 50%;
     cursor: pointer;
     z-index: 2;
  transition: background-color 0.1s ease, color 0.1s ease;


}

#toggleAnimations:hover,
#toggleAnimations:focus{
	background-color: white;
  color: navy;
}

/*------------------         starry cursor animation        -------------------- */

.cursor-star {
  position: absolute;
  pointer-events: none;
  color: #fff;
  font-size: 16px;
  user-select: none;
  will-change: transform, opacity;
  animation: starFade 1s ease-out forwards;
  animation: starFall 2s ease-out forwards;
  z-index: 3;

}

@keyframes starFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes starFall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(50px) scale(2);
    opacity: 0;
  }
}