/* -------------- General Reset -------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== GLOBAL STYLING (BODY, CONTAINER, SECTION, TEXT, FOOTER ===================== */

/* -------------- Global Font -------------- */
body {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-style: normal;
  font-weight: 400;
  background-color: #1f1b3f;
  color: #ffffff;
}

/* -------------- Container Styling -------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
}

/* -------------- Section Styles -------------- */

.section {
  padding: 60px 20px;
  font-size: 1.1em;
  line-height: 1.6;
}

h1,
h2,
h3 {
  /* font-size: 2em; */
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Fascinate Inline", system-ui;
  /* font-size: 32px; */
  letter-spacing: 2px;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
  font-family: "Darker Grotesque", serif;
}

/* -------------- Footer Styling -------------- */
footer {
  background-color: #2b244f;
  text-align: center;
  padding: 20px;
}

footer p {
  font-size: 1em;
  color: #ff0080;
}

/* ===================== HEADER BACKGROUND STYLING ===================== */

/* -------------- Header with Background Image -------------- */
@keyframes moveBackground {
  0% {
    background-position: center;
  }
  50% {
    background-position: top;
  }
  100% {
    background-position: center;
  }
}

header {
  background-color: #2b244f;
  padding: 120px 0;
  text-align: center;
  background: url("image/pressplaymain1.3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  animation: moveBackground 15s infinite alternate ease-in-out;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 36, 79, 0.7); /* Overlay with opacity */
  z-index: -1;
}

header h1 {
  color: #ffffff;
  font-size: 6em; /* Increased size for a more prominent title */
  font-family: "Press Start 2P", cursive; /* Pixel-style font */
  letter-spacing: 4px; /* Increased letter spacing for better readability */
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1; /* Ensure the title is above the overlay */
}

/* ===================== GLOBAL NAVBAR STYLING ===================== */

/* -------------- Navbar Styling -------------- */
.navbar-container {
  /* background-color: rgba(175, 2, 255, 0.7); */
  background-color: #2b244f;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: abosulte; /* or absolute */
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  padding: 10px 25px;
  transition: all 0.5s ease;
  font-family: "Darker Grotesque", serif;
}

.nav-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px;
  font-size: 18px;
  background-color: #3a3aaf;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
}

.nav-button:hover {
  background-color: #5b5be1;
}

.navbar ul li a:hover {
  color: #ff0080;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.7), 0 0 25px rgba(255, 0, 128, 0.4);
  border-radius: 5px;
}

/* ===================== ABOUT PAGE ===================== */

/* General Section Styling for Consistency */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* About Section */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
}

/* About Text and Image Styling */
.about-text,
.about-image {
  flex: 1;
  padding: 10px;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 100%;
}

.about-image img {
  max-width: 900%; /* Increase image size */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
  cursor: pointer; /* Indicate that the image is clickable */
}

/* Lightbox effect */
.image-lightbox {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.image-lightbox img:hover {
  box-shadow: 0 0 30px rgba(255, 0, 128, 0.4); /* Highlight on hover */
}

/* Consistent Styling for Other Sections */
.concept-container,
.vision-container,
.join-container,
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.concept-container h2,
.vision-container h2,
.join-container h2,
.contact-container h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.concept-container p,
.vision-container p,
.join-container p,
.contact-container p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 80%;
}

/* About Video Section */
.about-video {
  width: 100%;
  max-width: 1200px; /* Ensures container width remains consistent */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto; /* Centers the container horizontally */
  padding: 0 20px; /* Adds padding to prevent any side alignment shift */
  box-sizing: border-box; /* Ensures padding doesn’t affect the width */
}

.about-video video {
  width: 100%;
  max-width: 100%; /* Ensures video stays within container bounds */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

.about-image img {
  max-width: 50%;
  height: auto;
  border: 0;
  box-shadow: 0 0 40px #ff0080;
  object-fit: cover;
  border-radius: 12px; /* Adds rounded corners */
}

/* -------------- Instagram Button Styling -------------- */
.btn-instagram {
  display: inline-block;
  background-color: #ff0080; /* Instagram pink color */
  color: #fff;
  font-size: 1.1em;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
  box-shadow: 4px 4px 0px #000;
}

.btn-instagram:hover {
  background-color: #e6006e; /* Darker pink for hover effect */
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* -------------- Credits Section -------------- */

#credits {
  padding: 60px 20px;
  background-color: #5b5be1;
  border-radius: 12px; /* Adds rounded corners */
  box-shadow: 4px 4px 0px #000;
}

#credits h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.credits-table td {
  padding: 10px;
  font-size: 1.1em;
  line-height: 1.6;
  font-family: "Darker Grotesque", serif;
  /* border-radius: 12px; Adds rounded corners */
}

.credits-table td:first-child {
  font-weight: bold;
  text-align: left;
  width: 40%;
}

.credits-table td:last-child {
  text-align: left;
}

.credits-table tr:nth-child(even) {
  background-color: #6841a2;
}

/* ===================== HOME PAGE ===================== */

/* -------------- Home Poster -------------- */

#home-p .home-p-container {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.home-p-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===================== EVENTS PAGE ===================== */

/* -------------- Progress Gallery Section -------------- */
#progress-gallery {
  padding: 30px;
  background-color: #3a3aaf;
  color: #ffffff;
  text-align: center;
}

#progress-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#progress-gallery .gallery-item {
  background-color: #5b5be1;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 4px 4px 0px #000;
  overflow: hidden;
}

#progress-gallery .gallery-item img,
#progress-gallery .gallery-item video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#progress-gallery .gallery-item:hover img,
#progress-gallery .gallery-item:hover video {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.7), 0 0 25px rgba(255, 0, 128, 0.4);
}

/* ===================== WORKS PAGE ===================== */

/* -------------- Projects Page with Filter Buttons -------------- */
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* margin-bottom: 40px; */
}

button {
  padding: 10px 20px;
  font-family: "Darker Grotesque", serif;
  font-size: 18px;
  background: #ffecfa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  transition: all 0.3s ease;
}

button.active {
  background: #ff0080;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.7), 0 0 25px rgba(255, 0, 128, 0.4);
}

button:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* -------------- Project Grid Image Gallery -------------- */

/* Grid layout for filterable cards */
.filterable-cards {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(200px, 1fr)
  ); /* Automatically adjusts card count based on screen size */
  gap: 20px; /* Space between cards */
  margin-top: 20px; /* Space above the grid */
}

/* Card styling */
.card {
  border-radius: 8px;
  background-color: #5b5be1;
  padding: 10px;
  box-shadow: 4px 4px 0px #000;
  position: relative;
  overflow: hidden;
  width: 100%; /* Allow card width to adapt to grid */
}

.card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  background-color: #3a3aaf;
  color: #ffffff;
  text-align: center;
}

.card:hover img {
  transform: scale(1.1);
  /* box-shadow: 0 0 15px rgba(255, 0, 128, 0.7), 0 0 30px rgba(255, 0, 128, 0.4); */
}

.overlay {
  position: absolute;
  top: 0; /* Covers the entire image */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
  font-size: 1.5em;
  border-radius: 8px; /* Matches the image's rounded corners */
}

.card:hover .overlay {
  opacity: 1;
}

.overlay .text {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff0080;
  font-family: "Fascinate Inline", system-ui;
}

.card.hide {
  display: none;
}

/* ===================== STUDENT PROJECT PAGE ===================== */

/* -------------- General styles for artwork description section -------------- */
.artwork-detail {
  background-color: #2b244f;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.artwork-detail h2 {
  font-size: 1.75em;
  margin-bottom: 10px;
  font-family: "Ribeye Marrow", serif;
}

.artwork-detail p {
  font-size: 1.2em;
}

/* -------------- Project Gallery Styling -------------- */
.project-gallery {
  margin: 40px 0;
  text-align: center;
  justify-content: center;
}

/* Artwork Images and Video Containers */
.artwork-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.artwork-images img,
.artwork-images video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
}

.artwork-images img:hover,
.artwork-images video:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

/* -------------- Clickable Images/Videos - Zoom -------------- */

/* Lightbox Background */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark overlay */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Show Lightbox */
.lightbox:target {
  display: flex;
}

/* Lightbox Content */
.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 90%;
  max-height: 80%;
  padding: 10px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  flex-direction: column;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-content iframe {
  width: 100%;
  height: 100%;
  max-width: 100%; /* Ensure iframe doesn't exceed the width of its container */
  max-height: 100%; /* Ensure iframe doesn't exceed the height of its container */
  aspect-ratio: 16 / 9; /* Maintain a proper aspect ratio for YouTube videos */
  border-radius: 10px; /* Optional: rounded corners */
  display: flex;
}

.lightbox-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #fff; /* Light gray color */
  text-align: center;
  font-family: "Darker Grotesque", serif;
}

/* Hover Play Button for Video */
.play-button-image {
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  box-shadow: none;
  filter: none;
  background: none;
}

/* Youtube Wrapper for the thumbnail */
.video-thumbnail-wrapper {
  width: 100%;
  height: auto;
  /* max-height: 100%; */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  object-fit: contain;
}

.video-thumbnail {
  width: 100%;
  height: auto;
  /* max-height: 100%; */
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 4px 0px 0px #000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  object-fit: contain;
}

.video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-thumbnail-wrapper img.overlay {
  pointer-events: none;
  width: 50%;
  height: auto;
  position: absolute;
  top: 5%;
  left: 25%;
  opacity: 1;
}

.video-thumbnail img.overlay {
  pointer-events: none;
  width: 50%;
  height: auto;
  position: absolute;
  top: 5%;
  left: 25%;
  opacity: 1;
}

.video-thumbnail-wrapper .overlay {
  background: none;
  box-shadow: none;
}

.video-thumbnail .overlay {
  background: none;
  box-shadow: none;
}

/* Thumbnail Hover Effect */
.video-thumbnail-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}
/* Youtube Lightbox iframe styling */
/* .lightbox-content iframe.youtube-iframe {
  width: 100%;
  height: calc(100% - 100px);
  max-width: 1280px;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
} */

/* Close Button */
.close-lightbox {
  position: absolute;
  top: 10px;
  right: 10px;
  text-decoration: none;
  font-size: 2em;
  color: #fff;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.close-lightbox:hover {
  background: rgba(255, 0, 128, 0.7);
}

/* -------------- Profile Section -------------- */
.student-profile {
  display: flex; /* Use flexbox to position the profile image and bio/contact table next to each other */
  justify-content: flex-start; /* Align the items to the left */
  gap: 30px; /* Space between the profile image and bio/contact table */
  padding: 40px 20px;
  color: #ffffff;
}

/* Profile Container */
.profile-container {
  display: flex;
  flex-direction: column; /* Stack profile image and name vertically */
  align-items: center;
  gap: 15px;
  flex: 1; /* Allow profile image container to take up remaining space */
}

/* Profile Image Styling */
.profile-image-container {
  text-align: center;
}

.profile-image-container h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.profile-image-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ff0080;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
}

/* -------------- Bio & Contact Section -------------- */
.bio-contact-container {
  display: flex; /* Align bio-contact table next to profile */
  flex-direction: column; /* Stack table rows vertically */
  flex: 2; /* Allow the bio/contact container to take up more space */
}

/* Table Styles */
.bio-contact-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: "Ribeye Marrow", serif;
  table-layout: auto; /* Allow the table to adjust column widths */
}

/* Title Column Styling */
.bio-contact-table td.bio-title,
.bio-contact-table td.contact-title {
  width: 10%; /* Make title column narrower */
  padding: 10px 15px;
  font-weight: bold;
  vertical-align: top;
  /* box-shadow: 4px 4px 0px #000; */
}

/* Details Column Styling */
.bio-contact-table td.bio-detail,
.bio-contact-table td.contact-detail {
  padding: 10px 15px;
  /* box-shadow: 4px 4px 0px #000; */
  font-family: "Darker Grotesque", serif;
  font-size: 1.2em;
  line-height: 1.6;
  text-align: left;
  display: flex;
  width: 100%; /* Increase width of the details column to take more space */
}

/* Title Column Styling  */
.bio-title,
.contact-title {
  font-weight: bold;
}

/* Details Column */
.bio-contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio-detail,
.contact-detail {
  padding: 10px;
  font-family: "Darker Grotesque", serif;
  /* box-shadow: 4px 4px 0px #000; */
}

.bio-contact-details p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* -------------- Portfolio Section -------------- */

.portfolio-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff0080;
  color: #fff;
  text-decoration: none;
  font-size: 1.3em;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 4px 4px 0px #000;
  font-family: "Darker Grotesque", serif;
}

.portfolio-button:hover {
  background-color: #e60073;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.7), 0 0 25px rgba(255, 0, 128, 0.4);
}

/* -------------- Social Icons -------------- */

.social-icons {
  display: flex;
  justify-content: center; /* Center align the icons */
  gap: 25px; /* Space between icons */
  margin: 20px 20px; /* Add spacing around the section */
  padding: 0px 20px;
}

.social-icons a {
  text-decoration: none; /* Remove underline from links */
  color: #ffffff; /* Icon color */
  font-size: 40px; /* Adjust size of icons */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #ff0080; /* Change color on hover */
  transform: scale(1.2); /* Slightly enlarge icon on hover */
  box-shadow: 1px rgba(255, 0, 128, 0.7), 2px rgba(255, 0, 128, 0.4);
}

/* -------------- Media Queries for Responsiveness -------------- */

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  header h1 {
    font-size: 1.5em;
  }

  .section {
    padding: 20px;
  }

  /* About Page */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .credits-table td {
    padding: 8px;
    font-size: 1em;
  }

  /* Home Page */
  .home-p-image img {
    max-width: 100%; /* Makes the image full-width for smaller screens */
    width: auto; /* Overrides fixed width for better responsiveness */
  }

  .bio-contact-details {
    margin-top: 20px;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Custom settings for project pages */

#Sabrina-Video {
  justify-content: center;
}
