*{
    margin: 0;
    padding: 0;
}
html{
color: #33ff33;
scroll-behavior: smooth;
}

#introScreen{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    min-height: 100vh;
    scroll-margin-top: 40px;
}

.startText {
    font-size: 14px;
    white-space: pre-wrap;
    overflow: hidden;
}

.typewriter p {
  overflow: hidden; 
  white-space: nowrap; 
  margin: 0 auto; 
  letter-spacing: .15em; 
  width: 0;
  animation: typing 3.5s steps(40, end) forwards;
  position: relative;
}

.typewriter p::after {
  content: "."; 
  opacity: 0;
  animation: blink-period 0.75s step-end infinite;
  animation-delay: 1.4s;
  animation-fill-mode: forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-period {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
} 

#pressStart{
    margin: 50px;
}

#pressStart a{
    margin: 50px;
    text-decoration: none;

}

body {  
  font-family: 'Press Start 2P', cursive;
  background-color: #1d1d1d;
}

.crt {
    padding: 20px;
}
.crt::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: repeating-linear-gradient(rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
}

#bigNav {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 1000;
  background-color: #1d1d1d;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  display: none;
}

#bigNav h4{
  font-size: 26px;
}

#bigNav:hover {
  cursor: pointer;
}

.menuPannel {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 15px;
  min-width: 180px;
}

.activePannel {
  display: block;
  opacity: 1;
  text-align: left;
}

.menuPannel a {
  display: block;
  padding: 8px 12px;
  color: #1d1d1d;
  text-decoration: none;
  border-radius: 6px;
}

.menuPannel a:hover {
  background-color: #1d1d1d;
  color: #ffffff;

}

.menuPannel ul{
  list-style-type: none;
}

#toggleSetting {
  margin-top: 10px;
  padding-top: 10px;
  list-style: none;
  padding-left: 0;
}

#toggleSetting li {
  margin: 8px 0;
}

#toggleSetting button {
  width: 100%;
  background-color: #f5f5f5;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

#toggleSetting button:hover {
  background-color: #1d1d1d;
  color: #fff;
  transform: translateX(3px);
}

#toggleSetting button:active {
  transform: translateX(1px) scale(0.98);
}

.button {
  display: inline-block;
  background: #ff004d;
  border: 4px solid #fff;
  color: #fff;
  padding: 15px 30px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.1s;
  
  animation: float 2s ease-in-out infinite;
}

.button:hover {
  transform: scale(1.1);
  background: #ff77a8;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.homeNav{
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 5;

}

.homeNav ul{
  width: 100%;
  margin: auto;
  text-align: center;
  padding: 30px 0px;
  background-color: #1d1d1d;
}

.homeNav li{
  display: inline-block;
  margin: 0px 50px;
  font-size: 25px;
} 

.homeNav a{
  color: #33ff33;
  text-decoration: none;
}

.homeNav a:hover{
  color: #ffffff;
}

/*About me*/
#aboutMe {
    background-image: url('sprite/origbig.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 90vh;
    width: 100%; 
    padding-bottom: 40px;
    scroll-margin-top: 100px;    
}

#aboutMeContainer {
    max-width: 800px !important;
    min-height: 650px;
    margin: 100px auto;
    max-width: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #00ffea;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    line-height: 1.6;
    
}

#aboutMeContainer h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff004d;
    text-align: center;
}

#aboutMeContainer p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #00ffea;
}

.Slides {
  display: none;
}

.fade {
  animation-name: fade;
  animation-duration: 1.2s;
}

@keyframes fade {
  from {opacity: .01}
  to {opacity: 1}
}

.levelControls {
  display: none;
  margin: 20px auto 0;
  justify-content: space-around;
  width: 800px;
  max-width: 90%;
}

.next, .back{
    display: inline-block;
  background: #ff004d;
  border: 4px solid #fff;
  color: #fff;
  padding: 15px 30px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.1s;
  animation: float 2s ease-in-out infinite;
}

.next:hover, .back:hover {
  transform: scale(1.1);
  background: #ff77a8;
}

#projects {
    background-image: url('sprite/ocean.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 90vh;
    width: 100%;
    padding-bottom: 40px; 
    scroll-margin-top: 100px;
}

.projectsTitle {
    text-align: center;
    background-color: #1d1d1d;
    color: #ff004d;
    position: relative;
    margin-top: 40px;
    height: 150px;
}

.projectsTitle h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff004d;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s forwards 0.2s;
}

.projectsTitle p {
    font-size: 16px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s forwards 0.4s;
}

/* Keyframes for fade & slide */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    max-width: 1800px;
    margin: auto;
}


.projectContainer {
    position: relative;
    width: 475px;
    min-height: 150px;
    margin: 20px auto;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #00ffea;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

.projectContainer h3 {
    font-size: 20px;
    color: #ff004d;
    transition: color 0.6s ease;
}

.projectContainer p {
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.4;
    color: #00ffea;
    transition: color 0.6s ease;
}

.projectContainer:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1d1d1d;
    cursor: pointer;
}

.projectContainer:hover h3 {
    color: #ff004d;
}

.projectContainer:hover p {
    color: #1d1d1d;
}
/*levels / project showcase*/
.level{
  display: flex;
  background-color: rgba(0, 0, 0, 0.9); 
  align-items: center;
}

.levelInfo{
  margin: 0px 20px;
  display: flex;
  flex-direction: column;
}

.levelInfo h2{
  color: #ff004d;
  margin-bottom: 5px;
}

.levelInfo p{
  color: #00ffea;
  line-height: 25px;
}

.levelContainer{
  text-decoration: none;
}

.level:hover {
  background-color: #fff; 
  transition: background-color 0.3s ease;
}

.level:hover p{
  color: #000;
}

/*Resume CSS*/
#resume {
    background-image: url('sprite/goldenCloud.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 90vh;
    width: 100%; 
    padding-bottom: 40px;
    scroll-margin-top: 100px;
}
    
.jobContainer {
  width: 80%;
  max-width: 1800px;
  margin: 50px auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #00ffea;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  line-height: 1.6;


}

.jobContainer :hover {
  cursor: pointer;
}

.jobSubContainer {
  margin-top: 10px;
  display: none;
}

.jobSubContainer h3{
    color: #ff004d;
}

.jobSubContainer h5 {
  font-size: 14px;
  color: #ff33cc
}

.job{
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #00ffea;
}
@keyframes floatArrow {
  0%, 100% {
    transform: translateY(0) rotate(90deg);
  }
  50% {
    transform: translateY(-8px) rotate(90deg);
  }
}

.rotateArrow{
    position: relative;
    transform: rotate(90deg);
    float: right;
    right: 25px;
    animation: floatArrow 2s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.rotateArrow.active {
  animation: floatArrowRotate 2s ease-in-out infinite;
}

@keyframes floatArrowRotate {
  0%, 100% {
    transform: translateY(0) rotate(270deg);
  }
  50% {
    transform: translateY(-8px) rotate(270deg);
  }
}


#contact {
    background-image: url('sprite/city.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 90vh;
    width: 100%; 
    padding-bottom: 40px;
    scroll-margin-top: 100px;
}

.contactContainer {
    max-width: 800px !important;
    margin: 200px auto;
    max-width: 80%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1d1d1d;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.contactContainer h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff004d;
    text-align: center;
}

#contactForm label {
    display: block;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #1d1d1d;
    border-radius: 10px;
    font-size: 14px;
    color: #1d1d1d;
    background-color: #ffffff;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#contactForm textarea {
    resize: vertical;
    height: 100px;
}

#contactForm button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    border: 2px solid #ff004d;
    background-color: #ffffff;
    color: #ff004d;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#contactForm button:hover {
    background-color: #ff004d;
    color: #ffffff;
}

/*CSS for Mobile*/
@media screen and (max-width: 600px) {



  #bigNav{
    display: block;
    position: fixed;
  }

  .homeNav{
    display: none;
  }

  #welcomeTitle{
    font-size: 20px;
  }

  .startText{
    font-size: 12px;
  }

  /*About Me Mobile*/
  .projectsTitle{
    margin-top: 120px;
  }

  .projectsTitle h1{
    font-size: 28px;
  }

  .projectsTitle p{
    font-size: 16px;
  }


  #aboutMeContainer p{
    font-size: 12px;
  }


  /*Resume Mobile*/
  .jobContainer h2{
    font-size: 20px;
  }

  .jobSubContainer {
  max-height: 600px;
  overflow: scroll;
  }

  .jobSubContainer h5{
    font-size: 12px;
  }

  .jobSubContainer h3{
    font-size: 16px;
  }

  .jobSubContainer li{
    font-size: 13px;
  }

  /*Levels Mobile*/
  .level{
  flex-direction: column;
  }
  .levelInfo{
    margin-top: 20px;
  }

  .levelInfo h2{
    line-height: 30px;
  }
.backButton{
  display: none;
}

.levelControls{
  display: none;
}

}