/* 📦 Pokémon Dialog Box Style */
.pokemon-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  color: black;
}


.dialog-box {
  background-color: #dcdcdc;
  border: 4px solid #6379eb;
  padding: 1.5rem 2rem;
  margin: 2rem;
  max-width: 600px;
  width: 80%;
  text-align: left;
  font-size: 0.7rem;


  /* Pixel-style borders */
  box-shadow:
    0 0 0 4px #6379eb,
    0 0 0 8px #000,
    0 0 0 12px #6379eb,
    0 0 0 16px #000;


  image-rendering: pixelated;
  border-radius: 12px;
}


.dialog-box p {
  margin: 0;
  line-height: 1.6;
}


.start-btn {
  display: inline-block;
  margin-top: 1rem; /* Adjust for spacing */
  animation: blink 1.2s steps(1) infinite;
}




/* 🌄 Global Background */
body {
  background: url('images/pixel-background.gif') center top repeat-x fixed;
  background-size: cover;
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  padding: 0;
  color: white;
  overflow-x: hidden;
}


/* Force custom cursor on everything */
* {
  cursor: url('images/pixel-cursor.png'), auto !important;
}




/* Dimmer inside main content */
#bgDimmer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* adjust as needed */
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}


#bgDimmer.visible {
  opacity: 1;
}


/* Make main content appear above dimmer */
#mainContent {
  position: relative;
  z-index: 1;
}


/* Make sure start menu is on top and not dimmed */
#startMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}




#startMenu h1 {
  font-size: 2rem;
  color: #f9a826;
  text-shadow: 2px 2px #000;
  margin-bottom: 2rem;
  animation: popIn 1s ease-in-out;
}


#startMenu .blink {
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.8rem 1.5rem;
  border: 2px solid #f9a826;
  border-radius: 10px;
  animation: blink 1s steps(1) infinite, pulse 1.5s infinite;
  cursor: pointer;
  color: #fff;
  text-shadow: 1px 1px #000;
}


@keyframes blink {
  50% { opacity: 0; }
}


@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* Fade transitions from start to main*/
#startMenu, #mainContent {
  transition: opacity 1s ease-in-out;
  opacity: 1;
}


/* Hidden state (fades out) */
.fade-out {
  opacity: 0;
  pointer-events: none;
}


/* Faded-in main content */
#mainContent.fade-in {
  opacity: 1;
}


/* Music */
#toggleMusic {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  background: #eee;
  border: 3px solid #000;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 6px;
}




/* About card */
.about-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 800px;
  margin: 100px auto;
  text-align: center;
  font-size: 0.9rem; /* Try 0.75rem, 0.7rem, etc. for smaller */
}


.about-frame {
  width: 100%;
  max-width: 800px;
  height: auto;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}


.about-text {
  position: absolute;
  top: 44%; /* This pushes the text lower */
  left: 50%;
  transform: translate(-50%, -35%);
  z-index: 2;
  padding: 20px;
  color: #333;
  font-family: 'Uni 05_53', sans-serif; /* or any font you’re using */
  width: 75%;
  background: rgba(255, 255, 255, 0);
  border-radius: 12px;
}




.about-text h2 {
  margin-bottom: 10px;
  color: #000;
}


.about-text p {
  margin-bottom: 1rem; /* adds spacing between paragraphs */
  text-align: center; /* optional: center or left */
}


.about-section-wrapper {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
}


.about-flex-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}


.about-card {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}


.about-sprite {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}


@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


@media (max-width: 768px) {
  .about-flex-layout {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .about-card {
    width: 600%;
    margin-top: 1rem;
    position: relative;
    top: 80px;
    right: 40px;
    z-index: 1;
    
  }

  .about-text {
    position: relative; /* 🔄 was absolute — change to relative! */
    transform: none;     /* 🔄 remove translate */
    top: unset;          /* 🔄 undo absolute positioning */
    bottom: 470px;
    left: unset;
    right: 5px;
    width: 81%;
    padding: 1rem;
    z-index: 3; /* highest so it's always visible */
  }

  .about-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
  }

  .about-sprite {
    position: relative;
    margin-top: 1rem !important;  /* Use !important to override the large value */
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    max-width: 200px;
    width: 200%;
    bottom: 400px;
    z-index: 2;

     /* ✨ Animation added below */
    animation: bounce 2s infinite;
  }
  
.icon-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

#experienceIcon {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -825px !important;
  left: -260px !important; /* Pushes it a bit from the left */
}

#socialsIcon {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -825px !important;
  left: -160px !important;
}

#projectsIcon {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -825px !important;
  left: -60px;
}
}


.pixel-button {
  margin-top: 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #fff;
  background-color: #6379eb; /* retro purple */
  border: 2px solid #000;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px #000; /* pixel-style border illusion */
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.1s ease;
}


.pixel-button:hover {
  background-color: #6379eb;
  transform: translateY(-2px);
}


.pixel-button:active {
  transform: translateY(1px);
  background-color: #6379eb;
}


.about-section-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Space between text and sprite */
}


.about-card {
  flex: 1;
}


.about-sprite {
  max-width: 500px; /* Adjust this value to control the size of the sprite */
  align-self: flex-start; /* Align the sprite to the top of the section */
  margin-top: 350px; /* Move the sprite down by 20px */
  margin-left: -400px; /* Move the sprite a little to the left (adjust as needed) */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
  animation: bounce 2s infinite; /* 🎯 Add this line */
}




.section {
  display: none;
  transition: opacity 0.5s ease-in-out;
}


#aboutMeSection, #experienceSection {
  display: block;
}


/* 🌟 Floating Lock Icons */
.floating-icon {
  display: block; /* Initially hidden */
  position: absolute;
  left: 0px; /* Distance from the left side */
  width: 100px; /* Adjust width for better responsiveness */
  height: 100px; /* Adjust height for better responsiveness */
  cursor: pointer;
  z-index: 999; /* Stay above everything */
  transition: transform 0.2s;
  image-rendering: pixelated;
}


/* Specific vertical positions */
#experienceIcon {
  top: 150px;
}


#socialsIcon {
  top: 300px;
}


#projectsIcon {
  top: 450px;
}


/* Hover animation */
.floating-icon:hover {
  transform: scale(1.1);
}


/* Adjust icon size for larger screens */
@media (min-width: 1024px) {
  .floating-icon {
    width: 300px;  /* Increase size for larger screens */
    height: 300px; /* Adjust height proportionally */
    left: 80px;


  }


  #experienceIcon {
    top: 150px; /* Adjust vertical position */
  }


  #socialsIcon {
    top: 325px; /* Adjust vertical position */
  }


  #projectsIcon {
    top: 500px; /* Adjust vertical position */
  }
}


/* Adjust the About Me card and sprite for large screens */
@media (min-width: 1024px) {
  .about-card {
    width: 80%; /* Increase width for larger screens */
    max-width: 700px; /* Increase max-width for larger screens */
    margin-top: 50px; /* Increase top margin for better spacing */
    position: relative;
    left: 100px;
  }


  .about-sprite {
    max-width: 500px; /* Increase size of sprite */
    width: 100%; /* Ensure it takes up full width within constraints */
    margin-top: 230px; /* Adjust positioning to align properly */
    position: relative;
    left: 200px;
  }
}




/* ✨ Popups */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}


.popup-content {
  background-color: #dcdcdc;
  border: 4px solid #6379eb;
  padding: 1.5rem 2rem;
  margin: 2rem;
  max-width: 600px;
  width: 80%;
  text-align: center;
  font-size: 0.7rem;
  color: black;
  box-shadow:
    0 0 0 4px #6379eb,
    0 0 0 8px #000,
    0 0 0 12px #6379eb,
    0 0 0 16px #000;
  image-rendering: pixelated;
  border-radius: 12px;
}


/* Layout for the page */
.page-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  position: relative; /* Ensure positioning is respected for child elements */
}


/* Social icon images */
.side-by-side-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}

.social-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 🎯 Only second image zooms */
.hover-zoom:hover {
  transform: scale(1.1);
}


