* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'Poppins', sans-serif;
  background-image: url('Images/Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}


/* Background swap for phones */
@media (max-width: 600px) {
  body {
    background-image: url("Images/Phone.png");
  }
}

/* =======================
   Main Content Layout
======================= */
.content {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Title */
.title {
  width: 50vw;
  max-width: 600px;
  min-width: 300px;
  margin-top: 5vh;
  z-index: 2;
  position: relative;
  animation: floatTitle 5s ease-in-out infinite;
}

@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =======================
   Buttons (Vertical Layout)
======================= */
.button-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
  margin-top: 6vh;
  position: relative;
  z-index: 2;
  max-width: 90vw;
}

.button-grid button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button-grid button:hover {
  transform: scale(1.07);
}

.button-grid button img {
  width: 160px;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

/* =======================
   Stationary Bubbles
======================= */
.stationary-bubble {
  position: absolute;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.stationary1 { left: 3%; top: 10%; width: 4vw; }
.stationary2 { right: 5%; top: 25%; width: 3vw; }
.stationary3 { left: 12%; top: 35%; width: 2.8vw; }
.stationary4 { right: 10%; top: 45%; width: 3.5vw; }
.stationary5 { left: 18%; top: 55%; width: 3vw; }

/* =======================
   Animated Floating Bubbles
======================= */
.bubble {
  position: absolute;
  animation: float 18s linear infinite;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.bubble1  { left: 8%;   bottom: -100px; width: 4vw;  animation-delay: 0s;    animation-duration: 15s; }
.bubble2  { left: 14%;  bottom: -150px; width: 4.5vw;animation-delay: 1s;    animation-duration: 14s; }
.bubble3  { left: 10%;  bottom: -120px; width: 4vw;  animation-delay: 2s;    animation-duration: 12s; }
.bubble4  { left: 86%;  bottom: -100px; width: 4.5vw;animation-delay: 0.5s;  animation-duration: 16s; }
.bubble5  { left: 90%;  bottom: -160px; width: 5vw;  animation-delay: 1.5s;  animation-duration: 13s; }
.bubble6  { left: 84%;  bottom: -130px; width: 4vw;  animation-delay: 2.5s;  animation-duration: 17s; }
.bubble7  { left: 12%;  bottom: -110px; width: 3.5vw;animation-delay: 3s;    animation-duration: 12s; }
.bubble8  { left: 88%;  bottom: -170px; width: 3.8vw;animation-delay: 3.5s;  animation-duration: 15s; }
.bubble9  { left: 11%;  bottom: -140px; width: 4vw;  animation-delay: 1.7s;  animation-duration: 14s; }
.bubble10 { left: 93%;  bottom: -120px; width: 3.8vw;animation-delay: 0.8s;  animation-duration: 12s; }
.bubble11 { left: 7%;   bottom: -150px; width: 4.2vw;animation-delay: 2.3s;  animation-duration: 13s; }
.bubble12 { left: 89%;  bottom: -130px; width: 3.6vw;animation-delay: 1.1s;  animation-duration: 16s; }
.bubble13 { left: 13%;  bottom: -110px; width: 4vw;  animation-delay: 3s;    animation-duration: 11s; }
.bubble14 { left: 87%;  bottom: -100px; width: 4vw;  animation-delay: 4.2s;  animation-duration: 15s; }
.bubble15 { left: 15%;  bottom: -140px; width: 3.7vw;animation-delay: 2.6s;  animation-duration: 13s; }

@keyframes float {
  0%   { transform: translateY(0) scale(0.95); opacity: 0; }
  15%  { opacity: 0.9; }
  70%  { transform: translateY(-90vh) scale(1.05); opacity: 1; }
  100% { transform: translateY(-120vh) scale(1); opacity: 0; }
}

/* =======================
   Floating Stars
======================= */
.star {
  position: absolute;
  animation: drift 8s infinite ease-in-out;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.star1 { left: 8%; top: 12vh; width: 40px; animation-delay: 1s; }
.star2 { left: 88%; top: 10vh; width: 45px; animation-delay: 3s; }
.star3 { left: 5%; top: 18vh; width: 35px; animation-delay: 5s; }

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0.7; }
  50%  { transform: translateY(-10px) translateX(10px); opacity: 1; }
  100% { transform: translateY(0) translateX(0); opacity: 0.7; }
}

/* =======================
   Responsive Tweaks
======================= */
@media (max-width: 600px) {
  .title {
    width: 80vw;
    margin-top: 5vh;
  }

  .button-grid {
  margin-top: 9vh; /* <-- this adds additional space above the buttons */
   gap: 9vh; /* <-- space between each button */

}
  .button-grid button img {
    width: 200px;
  }

  .bubble {
    opacity: 0.95;
  }

  .stationary1, .stationary2, .stationary3,
  .stationary4, .stationary5 {
    width: 8vw;
  }
}


/*====== Projects =======*/

.projects-page {
  overflow: auto !important;
  height: auto !important;
  background-image: url('Images/Background_Projects.png');
}

.projects-page .projects {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  position: relative;
}

/* Section Titles */
.projects-page .section-main-title,
.projects-page .section-title {
  width: 50%;
  height: auto;
  margin: 40px auto 24px;
  display: block;
}

/* Each Row */
.projects-page .project-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Each Block */
.projects-page .project-block {
  width: 38%;  
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-page .project-title,
.projects-page .project-photo,
.projects-page .project-description {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: block;
  object-fit: contain;
  max-width: 300px; 
}


/* Button */
.projects-page .learn-btn {
  width: 160px;
  cursor: pointer;
  transition: transform .2s ease;
}

.projects-page .learn-btn:hover {
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 700px) {
  .projects-page .project-row {
    flex-direction: column;
    gap: 28px;
  }

  .projects-page .project-block {
    width: 90%;
  }

  .projects-page .learn-btn {
    width: 220px; /* Larger tap target */
  }

.projects-page .project-title,
.projects-page .project-photo,
.projects-page .project-description {
  max-width: 250px;
}

}

/* =======================
   Bubbles - Projects Page
======================= */
.projects-page .bubble {
  position: fixed;
  bottom: -150px;       /* start below the screen */
  pointer-events: none;
  z-index: -1;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Keyframes for continuous upward movement */
@keyframes floatUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-670vh); /* float completely off the screen */
  }
}

/* Each bubble: position, size, delay, duration */
.bubble1  { left: 5%;  width: 4vw;  animation-duration: 40s; animation-delay: 0s; }
.bubble2  { left: 15%; width: 3.5vw; animation-duration: 22s; animation-delay: 2s; }
.bubble3  { left: 9%; width: 4.2vw; animation-duration: 44s; animation-delay: 4s; }
.bubble4  { left: 18%; width: 3.8vw; animation-duration: 21s; animation-delay: 6s; }
.bubble5  { left: 17%; width: 4vw;  animation-duration: 43s; animation-delay: 8s; }
.bubble6  { left: 10%; width: 3.5vw; animation-duration: 25s; animation-delay: 10s; }
.bubble7  { left: 7%; width: 4.2vw; animation-duration: 42s; animation-delay: 12s; }
.bubble8  { left: 2%; width: 3.8vw; animation-duration: 44s; animation-delay: 14s; }
.bubble9  { left: 12%; width: 4vw;  animation-duration: 26s; animation-delay: 16s; }
.bubble10 { left: 15%; width: 3.6vw; animation-duration: 43s; animation-delay: 1s; }
.bubble11 { left: 93%; width: 4.1vw; animation-duration: 21s; animation-delay: 3s; }
.bubble12 { left: 89%; width: 3.7vw; animation-duration: 42s; animation-delay: 5s; }
.bubble13 { left: 85%; width: 4vw;  animation-duration: 24s; animation-delay: 7s; }
.bubble14 { left: 98%; width: 3.8vw; animation-duration: 25s; animation-delay: 9s; }
.bubble15 { left: 93%; width: 4vw;  animation-duration: 43s; animation-delay: 11s; }
.bubble16 { left: 85%; width: 3.6vw; animation-duration: 22s; animation-delay: 13s; }
.bubble17 { left: 82%; width: 4.1vw; animation-duration: 44s; animation-delay: 15s; }
.bubble18 { left: 90%; width: 3.7vw; animation-duration: 26s; animation-delay: 17s; }

/* Mobile tweaks */
@media (max-width: 700px) {
  .projects-page .bubble {
    width: 6vw;
  }
}


/*About Me*/

body.about-page {
  background-image: url('Images/Background_Projects.png');
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh;
}

.about-section {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
}

/* Title Image */
.about-title-img {
  width: 55%;
  max-width: 600px;
  height: auto;
  margin-bottom: 30px;
}

/* Photo Row */
.about-img-row {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.about-photo {
  width: 200px;
  height: auto;
  border-radius: 25px; /* Only if yours has rounded corners */
  display: block;
}

/* Text Box Image */
.about-text-box-img {
  width: 50%;
  max-width: 750px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .about-title-img {
    width: 75%;
  }

  .about-photo {
    width: 200px;
  }

  .about-text-box-img {
    width: 85%;
  }
}

.about-bubble {
  position: fixed;       /* stays floating even while scrolling */
  bottom: -150px;        /* start below screen */
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  animation: aboutFloat 18s linear infinite;
}

.bubble1 { left: 8%;  width: 4vw;  animation-delay: 0s;  animation-duration: 10s; }
.bubble2 { left: 18%; width: 3.5vw; animation-delay: 3s; animation-duration: 22s; }
.bubble3 { left: 12%; width: 4.2vw; animation-delay: 1.5s; animation-duration: 19s; }
.bubble4 { left: 80%; width: 5vw;   animation-delay: 4s; animation-duration: 14s; }
.bubble5 { left: 89%; width: 4vw;   animation-delay: 2.5s; animation-duration: 21s; }
.bubble6 { left: 92%; width: 3vw;   animation-delay: 5s; animation-duration: 23s; }
.bubble7 { left: 97%; width: 5vw;   animation-delay: 2s; animation-duration: 13s; }
.bubble8 { left: 4%; width: 4vw;   animation-delay: 6s; animation-duration: 23s; }

@keyframes aboutFloat {
  0%   { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-120vh) scale(1.05); }
}

/* Mobile sizing */
@media (max-width: 700px) {
  .about-bubble { width: 7vw; opacity: 0.9; }
}

/*My Super Day*/

/* PAGE BASE */
body.resources-page {
  background-image: url('Images/Background_Projects.png');
  background-size: cover;
  background-attachment: fixed;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* CONTENT WRAPPER */
.superday-section {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  z-index: 3; /* ensures content appears ABOVE bubbles */
}

/* TITLE */
.superday-title {
  width: 60%;
  max-width: 650px;
  height: auto;
  margin-bottom: 40px;
}

/* TOP IMAGE ROW */
.superday-image-row {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.superday-photo {
  width: 260px;
  height: auto;
  border-radius: 20px;
}

/* DESCRIPTION IMAGE */
.superday-description {
  width: 65%;
  max-width: 850px;
  display: block;
  margin: 0 auto 50px auto;
}

/* RESOURCE BUTTONS */
.resource-btn-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.resource-btn-row button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.resource-btn-row button:hover {
  transform: scale(1.08);
}

.resource-btn-row img {
  width: 260px;
  height: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .superday-title { width: 80%; }
  .superday-description { width: 85%; }
  .resource-btn-row img { width: 210px; }
}

/* FLOATING BUBBLES */
.bubble {
  position: absolute;
  bottom: -150px;
  animation: floatUp linear infinite;
  opacity: 1;
}

.bubble1 { left: 10%; animation-duration: 14s; animation-delay: 0s; }
.bubble2 { left: 25%; animation-duration: 17s; animation-delay: 3s; }
.bubble3 { left: 40%; animation-duration: 13s; animation-delay: 6s; }
.bubble4 { left: 60%; animation-duration: 19s; animation-delay: 2s; }
.bubble5 { left: 75%; animation-duration: 15s; animation-delay: 5s; }
.bubble6 { left: 90%; animation-duration: 18s; animation-delay: 1s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-120vh) scale(1); }
}


/*STEM Library*/

/* Background */
body.stem-library-page {
  background-image: url('Images/Background_Projects.png');
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Layout container */
.stem-library-container {
  width: 90%;
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 40px 0;
}

/* Title image */
.title-img {
  width: 80%;
  max-width: 500px;
  height: auto;
  margin-bottom: 40px;
}

/* Universal images */
.library-img,
.middle-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 6px;
}

/* Rows of images */
.top-img-row,
.middle-img-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Description image centered & larger */
.description-img {
  width: 90%;
  max-width: 500px;
  display: block;
  margin: 40px auto;
}

/* Bottom button */
.bottom-button {
  max-width: 300px;
  width: 80%;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.bottom-button:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .library-img,
  .middle-img {
    max-width: 150px;
  }
}

/* SCROLL ENABLED ALWAYS */
body.stem-library-page {
  background-image: url('Images/Background_Projects.png');
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Bubble Container - behind everything */
.bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* prevents blocking clicks */
  overflow: hidden;
  z-index: -1;
}

/* Bubble Styling */
.bubble {
  position: fixed;
  animation: floatUp linear infinite;
  opacity: 0.8;
}

/* You can adjust speeds and sizes if needed */
.bubble1 { width: 130px; animation-duration: 18s; left: 10%; }
.bubble2 { width: 90px; animation-duration: 22s; left: 20%; }
.bubble3 { width: 60px; animation-duration: 16s; left: 12%; }
.bubble4 { width: 140px; animation-duration: 20s; left: 80%; }
.bubble5 { width: 110px; animation-duration: 26s; left: 89%; }
.bubble6 { width: 75px; animation-duration: 19s; left: 95%; }
.bubble7 { width: 110px; animation-duration: 26s; left: 97%; }
.bubble8 { width: 75px; animation-duration: 19s; left: 5%; }

/* Floating Animation */
@keyframes floatUp {
  0% { transform: translateY(110vh); }
  100% { transform: translateY(-120vh); }
}

