/* title bar*/
.title {
  height: 3em; /* thinner bar */
  display: flex;
  justify-content: left;
  align-items: center;
  font-family: Calibri;
  width: 100%;
  background-color: rgb(10, 10, 10);
  position: absolute; /* Changed from fixed to absolute */
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 80px rgba(6, 60, 255, 0.25);
  padding: 0 0.4em; /* slight horizontal breathing room */
}
.titlelink {
  text-decoration: none;
  font-weight: lighter;
  color: azure;
  font-size: 1.25em; /* smaller text */
  margin-left: 0.85em; /* tighten spacing */
  line-height: 1; /* keep compact vertically */
  padding: 0.35em 0 0.2em; /* ensure click target despite thinner bar */
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.titlelink:hover {
  color: white;
  text-shadow: 0 0 1px #009dc4, 0 0 2px #009dc4, 0 0 2px #009dc4,
  0 0 2px #2c00be, 0 0 3px #003bc486, 0 0 3px #009dc4, 0 0 2px #009dc4;
  font-weight: 400;
  transform: scale(1.1); /* Makes the words pop up */
}


/* footer styling*/
.footer {
  height: 4.2em;
  display: flex;
  justify-content: left;
  align-items: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  gap: 10px; /* add more space between footer buttons */
  padding: 0 8px; /* slightly reduced horizontal padding */
}


/* dropdown menu */
.menu-container {
  position: absolute;
  right: 0.7em;
  top: 3.75%;
  transform: translateY(-50%);
  z-index: 1000; /* Ensures the menu hovers over every other container */
}
.menu-button {
  background: url('/images/menu.png') no-repeat center center;
  background-size: contain;
  width: 30px; /* smaller */
  height: 30px; /* smaller */
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 12%; /* subtle rounding */
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.65); /* scaled shadow */
}
.menu-button:hover {
  box-shadow: 0 0 10px #00aeffa9;
  transform: scale(1.1); /* Slightly enlarges the menu button */
}
.menu-content {
  display: none;
  position: absolute;
  right: 0;
  font-family: "Calibri";
  background-color: #1e1e1e9b;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1001; /* Ensures the menu content hovers over every other container */
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}
.menu-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.menu-content a:hover {
  background-color: #5757579f;
}
.menu-container:hover .menu-content,
.menu-container .menu-content:hover {
  display: block;
  opacity: 1;
}
.menu-container:hover .menu-content {
  animation: stayVisible 5s forwards;
}

/* Keep menu open when toggled and make hover more forgiving */
.menu-container.open .menu-content,
.menu-container.hover-open .menu-content {
  display: block;
  opacity: 1;
}


/* text formatting */
h1 {
  color: rgb(228, 228, 228);
  font-family:  Calibri;
  margin: 1;
  padding: 1;
  font-size: 2.5rem;
  text-shadow: 
   -2px -2px 0 rgb(23, 39, 39), 
    2px -2px 0 rgb(23, 39, 39),
   -2px 2px 0 rgb(23, 39, 39), 
    2px 2px 0 rgb(23, 39, 39);
}


/* body formatting */
body {
  background-image: url("/images/back.jpg");
  background-size: 110% auto;
  background-position: center top;
  background-color: rgb(0, 0, 0);
  background-attachment: fixed; 
  padding-bottom: 475px; /* Default bottom padding for most pages */
}
body::after {
  content: "";
  display: block;
  height: 0; /* Spacer disabled; use padding-bottom per page */
}

/* Page-specific bottom padding overrides */
body.page-projects { padding-bottom: 900px; }
body.page-resume { padding-bottom: 100px; }
body.page-about { padding-bottom: 100px; }


/* profile pic format */
.center {
  position: absolute;
  top: 17%; 
  left: 13%;
  transform: translateX(-50%);
  width: 13%;
  height: auto;
  border-radius: 20%;
  object-fit: cover;
}


/* bio-box for page2 */
.bio-box {
  font-family: Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.7);
  left:30%;
  top:50%;
  color: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 10px;
}
.center2 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  height: 30%;
}


/* video formatting */
video{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.indent {
  text-indent: 50px;
}


/* audio formatting */
audio {
  filter: invert(1); /* Inverse colors */
  border-radius: 25px;
}
.audio-style {
  margin-left: 40px;
  box-shadow: 0 0 10px rgba(255, 81, 0, 0.507);
}
/* Scoped audio enhancements for content sections */
section.bio-box audio {
  margin-left: 40px;
  box-shadow: 0 0 10px rgba(255, 81, 0, 0.507);
}


/* button formatting for bottom left*/
/* Unified footer button style (matches Spotify toggle look) */
/* Moved up a bit using relative bottom offset */
.footer .footer-btn {
  position: relative;
  bottom: 6px; /* move the button up a little */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; /* unify to Spotify original toggle size */
  height: 54px;
  margin: 4px 6px; /* tighter outer margin */
  padding: 6px; /* match toggle padding */
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.footer .footer-btn:hover {
  background: rgba(0,0,0,0.7);
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  transform: translateY(-4px) scale(1.03); /* pop up on hover */
}
.footer .footer-btn:active {
  transform: translateY(2px) scale(0.98); /* press down on click */
}
.footer .footer-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
  border-radius: 6px; /* slight rounding for images inside buttons */
}

/* YouTube button: use a solid white tile behind the red app icon */
.footer .footer-btn#btnYouTube {
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  box-shadow: none; /* remove button-level glow */
  padding: 0px; /* maximize icon size within the tile */
  margin-right: 14px; /* extra space before Spotify button */
}
/* Prevent generic hover glow on the button tile */
.footer .footer-btn#btnYouTube:hover { box-shadow: none; }

/* Move glow to the YouTube icon image itself */
.footer .footer-btn#btnYouTube img {
  /* Restore original icon colors and keep dark grey glow */
  filter: drop-shadow(0 0 9px rgba(60, 60, 60, 0.6));
}
.footer .footer-btn#btnYouTube:hover img {
  filter: drop-shadow(0 0 12px rgba(45, 45, 45, 0.8));
}



/* glowing border for face icon, icon cards, and bottom of */
@keyframes borderColorChange {
  0% { box-shadow: 0 0 10px rgba(6, 6, 255, 0.15); }
  10% { box-shadow: 0 0 15px rgba(6, 6, 255, 0.17); }
  20% { box-shadow: 0 0 25px rgba(6, 7, 255, 0.19); }
  30% { box-shadow: 0 0 40px rgba(6, 8, 255, 0.21); }
  40% { box-shadow: 0 0 65px rgba(6, 9, 255, 0.23); }
  50% { box-shadow: 0 0 80px rgba(6, 10, 255, 0.25); }
  60% { box-shadow: 0 0 95px rgba(6,11, 255, 0.27); }
  70% { box-shadow: 0 0 80px rgba(6, 10, 255, 0.25); }
  80% { box-shadow: 0 0 65px rgba(6, 9, 255, 0.23); }
  90% { box-shadow: 0 0 45px rgba(6, 8, 255, 0.21); }
  95% { box-shadow: 0 0 35px rgba(6, 7, 255, 0.17); }
  100% { box-shadow: 0 0 25px rgba(6, 7, 255, 0.17); }
}
.colorful-border {
  animation: borderColorChange 5s infinite;
  animation-fill-mode: forwards;
  border: none;
}


/* profile bio for main page */
.subtitle-text {
  font-size: 32px;
  position: absolute;
  left: 45%;
  top: 29%;
  text-shadow: 1px 1px 2px rgb(51, 51, 51);
}
.subtitle-bar {
  position: absolute;
  left: 46.5%;
  top: 18%;
  width: 45%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0,0,0,0.8);
  color: #eaeaea;
  font-family: Calibri, Arial, sans-serif;
  font-size: 28px; /* slightly larger */
  font-weight: 350;
  letter-spacing: 0.2px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(0, 0, 0, 0.146) inset;
}
.bio-textbox {
  font-family: 'Calibri';
  position: absolute;
  left: 46.5%;
  top: 16%;
  transform: translateX(-50%);
  width: 45%;
  height: 60%; /* 70% of viewport height */
  padding: 16px 18px;
  font-weight: 250;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.45); /* slightly darker overlay */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.417), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  overflow: auto; /* scrollable */
  z-index: 2;
}
.bio-textbox::-webkit-scrollbar { width: 8px; }
.bio-textbox::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 8px; }
.bio-textbox::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }


/* rainbow button for resume*/
@keyframes rainbowBorder {
  0% { border-color: rgba(255, 0, 0, 0.09); }
  14% { border-color: rgba(255, 166, 0, 0.09); }
  28% { border-color: rgba(255, 255, 0, 0.09); }
  42% { border-color: rgba(0, 128, 0, 0.09); }
  57% { border-color: rgba(0, 0, 255, 0.09); }
  71% { border-color: rgba(76, 0, 130, 0.09); }
  85% { border-color: rgba(238, 130, 238, 0.09); }
  100% { border-color: rgba(255, 0, 0, 0.09); }
}
@keyframes rainbowText {
  0% { text-shadow: 0 0 3px rgba(255, 0, 0, 0.25); }
  14% { text-shadow: 0 0 3px rgba(255, 166, 0, 0.25); }
  28% { text-shadow: 0 0 3px rgba(255, 255, 0, 0.25); }
  42% { text-shadow: 0 0 3px rgba(0, 128, 0, 0.25); }
  57% { text-shadow: 0 0 3px rgba(0, 0, 255, 0.25); }
  71% { text-shadow: 0 0 3px rgba(76, 0, 130, 0.25); }
  85% { text-shadow: 0 0 3px rgba(238, 130, 238, 0.25); }
  100% { text-shadow: 0 0 3px rgba(255, 0, 0, 0.25); }
}
.rainbow-button {
  font-size: 20px;
  padding: 10px 20px;
  border: 1.5px solid; /* slightly thinner border */
  border-radius: 8px;  /* less rounded */
  background: transparent;
  cursor: pointer;
  font-family: Calibri;
  animation: rainbowText 5s linear infinite, rainbowBorder 5s linear infinite;
  text-decoration: none;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: absolute;
  left: 34.9%;
  top: 56%;
  color: rgba(255, 255, 255, 0.718); /* Transparent white text */
}
.rainbow-button:hover {
  background: linear-gradient(45deg, #1118537c, #29687c86);
  transform: scale(1.1);
  color: white; /* White text on hover */
  animation: rainbowText 5s linear infinite, rainbowBorder 5s linear infinite; /* Continue animation on hover */
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.3); /* Blue hue glow */
}
/* Stack buttons vertically and make them size to their text */
.bio-actions {
  position: absolute;
  left: 11%;
  transform: translateX(-50%);
  top: 50%;
  display: flex;
  flex-direction: column; /* vertical stack */
  gap: 10px; /* tighter spacing */
  justify-content: flex-start;
  width: auto;
  z-index: 2;
}

/* Ensure buttons inside .bio-actions shrink to their text width */
.bio-actions .rainbow-button,
.bio-actions .cool-button {
  border: 2px solid rgba(35, 35, 35, 0.262);
  width: auto !important;
  display: inline-flex;
  align-self: flex-start;
  box-sizing: border-box;
  padding: 8px 12px; /* maintain a comfortable click target */
}

/* Let the buttons participate in the flex column and scale down */
.bio-actions .rainbow-button {
  position: static; /* participate in flex layout */
  left: auto;
  top: auto;
  width: 100%; /* full width of the column */
  font-size: 16px; /* a bit smaller */
  padding: 8px 14px; /* slightly smaller padding */
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.197);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

/* Slightly reduced hover scale to match smaller size */
.bio-actions .rainbow-button:hover {
  background: rgba(249, 249, 249, 0.204);
  transform: scale(1.05);
}

/* Ensure any ID-based top offsets don't override the stacked layout when inside .bio-actions */
.bio-actions #btnContact,
.bio-actions #btnResume {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

/* cool button */
.cool-button {
  font-size: 20px;
  padding: 10px 20px;
  border: 1.5px solid;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: Calibri;
  animation: rainbowText 5s linear infinite, rainbowBorder 5s linear infinite;
  text-decoration: none;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  color: rgba(255, 255, 255, 0.718); /* Transparent white text */
  display: inline-block; /* Allows it to exist anywhere on the page */
}
.cool-button:hover {
  background: linear-gradient(45deg, #1118537c, #29687c86);
  transform: scale(1.1);
  color: white; /* White text on hover */
  animation: rainbowText 5s linear infinite, rainbowBorder 5s linear infinite; /* Continue animation on hover */
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.3); /* Blue hue glow */
}


/* image cards for resources*/
.image-text-title{
  color: rgb(228, 228, 228);
  font-family:  Calibri;
  font-weight: lighter;
  margin: 1;
  padding: 1;
  font-size: 2.5rem;
  text-shadow: 
   -2px -2px 0 rgb(23, 39, 39), 
    2px -2px 0 rgb(23, 39, 39),
   -2px 2px 0 rgb(23, 39, 39), 
    2px 2px 0 rgb(23, 39, 39);
  position: absolute;
  left: 5.5%;
  top: 12%;
}
.image-text-1{
  color: rgb(228, 228, 228);
  font-family:  Calibri;
  font-weight: lighter;
  margin: 1;
  padding: 1;
  font-size: 1.75rem;
  text-shadow: 
  -2px -2px 0 #0217ff2f,
  2px -2px 0 #0217ff83,
 -2px 2px 0 #0217ff3f,
  2px 2px 0 #0217ff83,
 0 0 10px rgba(0, 123, 255, 0.26); /* Light dark-blue glow */
  position: absolute;
  left: 5.5%;
  top: 21%;
}
.image-text-2{
  color: rgb(228, 228, 228);
  font-family:  Calibri;
  font-weight: lighter;
  margin: 1;
  padding: 1;
  font-size: 1.75rem;
  text-shadow: 
   -2px -2px 0 #ff02022f,
   2px -2px 0 #ff020283,
  -2px 2px 0 #ff02023f,
   2px 2px 0 #ff020283,
  0 0 10px rgba(255, 0, 0, 0.26); /* Light dark-red glow */
  position: absolute;
  left: 5.5%;
  top: 53%;
}
.image-text-3{
  color: rgb(228, 228, 228);
  font-family:  Calibri;
  font-weight: lighter;
  margin: 1;
  padding: 1;
  font-size: 1.75rem;
  text-shadow: 
   -2px -2px 0 #d502ff2f,
   -2px -2px 0 #d502ff98,
   -2px -2px 0 #d502ff2f,
   -2px -2px 0 #d502ff77,
  0 0 10px rgba(255, 0, 0, 0.26); /* Light dark-red glow */
  position: absolute;
  left: 5.5%;
  top: 85%;
}
.image-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 85%;
  top: 15%;
  transform: translateX(-50%);
  padding-bottom: 13px;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}
.image-cards-container-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px; /* increased spacing between cards */
  position: absolute;
  left: 50%;
  top: 29%;
  width: 88.5%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px; /* extra space so scrollbar doesn't overlap text */
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  scrollbar-gutter: stable both-edges; /* reserve space for scrollbar */
}
.image-cards-container-horizontal-2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px; /* increased spacing between cards */
  position: absolute;
  left: 50%;
  top: 61%;
  width: 88.5%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px; /* extra space so scrollbar doesn't overlap text */
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  scrollbar-gutter: stable both-edges; /* reserve space for scrollbar */
}
.image-cards-container-horizontal-2::-webkit-scrollbar {
  height: 5px;
}
.image-cards-container-horizontal-2::-webkit-scrollbar-thumb {
  background: #55555578;
  border-radius: 1px;
}
.image-cards-container-horizontal-2::-webkit-scrollbar-thumb:hover {
  background:  #55555578;
}
.image-cards-container-horizontal-3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px; /* increased spacing between cards */
  position: absolute;
  left: 50%;
  top: 92.5%;
  width: 88.5%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px; /* extra space so scrollbar doesn't overlap text */
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  scrollbar-gutter: stable both-edges; /* reserve space for scrollbar */
}
.image-cards-container-horizontal-3::-webkit-scrollbar {
  height: 5px;
}
.image-cards-container-horizontal-3::-webkit-scrollbar-thumb {
  background: #55555578;
  border-radius: 1px;
}
.image-cards-container-horizontal-3::-webkit-scrollbar-thumb:hover {
  background:  #55555578;
}
.image-cards-container-horizontal::-webkit-scrollbar {
  height: 5px;
}
.image-cards-container-horizontal::-webkit-scrollbar-thumb {
  background: #55555578;
  border-radius: 1px;
}
.image-cards-container-horizontal::-webkit-scrollbar-thumb:hover {
  background:  #55555578;
}
.image-card {
  position: relative;
  border: 2px solid rgba(77, 77, 77, 0.44);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 4px 0 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  width: fit-content;
  flex: 0 0 auto;
}
.image-card:hover {
  box-shadow: 0 4px 16px #00a2ffef, 4px 0 16px rgba(34, 208, 231, 0.732);
  transform: scale(1.05);
}
.image-card img {
  width: 300px;
  height: 150px;
  object-fit: cover; /* zoom to fill without distortion */
  object-position: center; /* center the crop */
}
/* Optional utility for logo-style images to avoid cropping */
.image-card img.object-contain {
  object-fit: contain;
  background: #000;
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;   /* thinner */
  height: 72px;  /* taller */
  display: none; /* toggled via .show */
  align-items: center;
  justify-content: center;
  font-size: 18px; /* smaller arrow glyph */
  line-height: 1;
  color: rgba(255,255,255,0.9);
  background: rgba(0, 0, 0, 0.18);
  border: none;
  border-radius: 6px;
  z-index: 20;
  cursor: pointer;
  user-select: none;
}
.scroll-arrow.left { left: 6px; }
.scroll-arrow.right { right: 6px; }
.scroll-arrow.show { display: flex; }
.scroll-arrow:focus { outline: 2px solid #00a2ff; outline-offset: 2px; }
@media (hover:hover) {
  .scroll-arrow:hover { background: rgba(0, 0, 0, 0.3); }
}

/* Overlay container that anchors arrows over the scroll row without moving */
.scroll-arrows-overlay {
  position: fixed;
  pointer-events: none; /* allow clicks to pass through except on arrows */
  z-index: 19;
}
.scroll-arrows-overlay .scroll-arrow { pointer-events: auto; }
.text-box {
  margin: 0 auto;
  display: flex; /* center contents vertically */
  align-items: center;
  position: absolute;
  bottom: 0;
  background: rgba(5, 5, 5, 0.71);
  width: 93%;
  height: 34px; /* thicker by ~10px */
  font-family: "Calibri";
  font-size: 1.1em; /* slightly smaller to fit comfortably */
  color: rgba(255, 255, 255, 0.594);
  padding: 0 8px; /* horizontal padding only to keep text centered */
  text-align: left;
  transition: color 0.3s;
}
.text-box p { margin: 0; line-height: 1; }
.image-card:hover .text-box {
  color: rgba(255, 255, 255, 1);
}


/* resume formatting */
.resume{
  border-radius:20px; 
  width:900px; 
  height: auto; 
  position: absolute; 
  top:20%; 
  bottom:10%; 
  left:50%; 
}
/* Bottom-left Spotify embed container */
.spotify-embed {
  position: fixed;
  bottom: 14px;
  right: 14px; /* open next to right-aligned button */
  width: 300px; /* iframe uses width:100% */
  z-index: 50;
  padding: 6px 8px 4px;
  background: rgba(11, 26, 58, 0.70); /* dark navy tint */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07) inset;
  opacity: 1;
  transform: translateY(0) translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.spotify-embed iframe { display: block; width: 100%; border: 0; }
/* Hidden state */
.spotify-embed.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px) translateX(12px); }

/* Toggle button */
.spotify-toggle-btn {
  position: fixed;
  bottom: 14px;
  right: 14px; /* move button to right */
  width: 54px;
  height: 54px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  cursor: pointer;
  z-index: 51;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.spotify-toggle-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 4px rgba(0,0,0,0.6)); }
.spotify-toggle-btn:hover { background: rgba(0,0,0,0.7); box-shadow: 0 0 12px rgba(0,0,0,0.6); }
.spotify-toggle-btn:active { transform: scale(0.92); }

/* When embed visible, raise button a bit so it doesn't overlap shadow too harshly */
.spotify-embed:not(.is-hidden) + .spotify-toggle-btn { transform: translateY(-4px); }
@media (max-width: 700px) {
  .spotify-embed { width: 240px; bottom: 10px; right: 10px; left: auto; }
  .spotify-toggle-btn { bottom: 10px; right: 10px; left: auto; width: 48px; height: 48px; }
  .spotify-embed iframe { height: 140px; }
}
@media (max-width: 480px) {
  .spotify-embed { width: 200px; }
  .spotify-toggle-btn { width: 44px; height: 44px; }
  .spotify-embed iframe { height: 120px; }
}


/* Phone Friendly Style Vertical */
@media (max-width: 500px) {
  /* Add top padding so content clears the profile image on phones */
  .layout-home { position: relative; padding-top: 270px; }
  .title {
    font-size: 12px;
    font-weight: bolder;
  }
  .menu-container{
    top:3.75%
  }
  .menu-button {
    margin-top: 1%;
    width: 30px;
    height: 30px;
  }
  .center {
    position: absolute;
    left: 50%;
    top: 5%;
    width: 200px;
    height: auto;
    transform: translateX(-50%);
  }
  /* Home layout: stack bio box and actions, center them, avoid absolute positioning where possible */
  .layout-home { position: relative; }
  .bio-textbox {
    position: relative;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    width: min(92vw, 380px);
    height: auto;
    max-height: 52vh;
    text-align: left;
    margin-top: 15px;
  }
  /* Keep buttons in a neat column below the bio box */
  .bio-actions {
    position: relative;
    left: 80%; /* center container horizontally */
    top: auto;
    transform: translateX(-50%);
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .bio-actions .rainbow-button { width: 100%; font-size: 16px; }
  /* Cards area below buttons */
  .image-cards-container {
    position: relative;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    margin-top: 16px;
  }
  /* Make cards a bit taller and allow full-width image fit on small screens */
  .image-card img { width: 90vw; max-width: 360px; height: 180px; }
  .resume {
    border-radius: 20px;
    width: 375px;
    height: auto;
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
  }
  .menu-content{
    min-width: 60px;
    font-size: .9em;
    text-align: center;
  }
  body {
    font-size: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: black; /* Change background color to black */
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  /* Ensure content clears the profile image in small landscape */
  .layout-home { padding-top: 220px; }
  .title {
    font-weight: bolder;
  }
  .menu-container {
    top: 9%;
  }
  .menu-button {
    margin-top: 10%;
    width: 35px;
    height: 35px;
  }
  .center {
    position: absolute;
    left: 30%;
    top: 25%;
    width: 150px;
    height: auto;
    transform: translateX(-50%);
  }
  /* Landscape on small widths: keep centered column layout */
  .bio-textbox { position: relative; left: 50%; top: auto; transform: translateX(-50%); width: min(92vw, 460px); max-height: 56vh; text-align: left; }
  .bio-actions { position: relative; left: 50%; top: auto; transform: translateX(-50%); margin-top: 12px; flex-direction: column; align-items: stretch; }
  .bio-actions .rainbow-button { width: 100%; font-size: 16px; }
  .image-cards-container { position: relative; left: 50%; top: auto; transform: translateX(-50%); margin-top: 16px; }
  .image-card img { width: 88vw; max-width: 520px; height: 190px; }
  .resume {
    border-radius: 20px;
    width: 800px;
    height: auto;
    position: absolute;
    top: 45%;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
  }
  .menu-content {
    min-width: 150px;
    font-size: 1em;
    text-align: center;
  }
  body {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: black;
  }
  .bio-box{
    max-width: 600px;;
  }
  body::after {
    content: "";
    display: block;
    height: 500px; /* Adjust this value to add more space */
  }
}

/*
  Utility classes to reduce inline styles and repeated code
  ----------------------------------------------------------------------------
*/
/* Spacing */
.mt-20 { margin-top: 20px !important; }
.mt-110 { margin-top: 110px !important; }
.mt-150 { margin-top: 150px !important; }

/* Text alignment and color */
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.fw-light { font-weight: lighter !important; }

/* Font sizes */
.fs-115 { font-size: 1.15rem !important; }
.fs-125 { font-size: 1.25rem !important; }
.fs-150 { font-size: 1.5rem !important; }

/* Indentation and left margins */
.ml-50 { margin-left: 50px !important; }
.ml-75 { margin-left: 75px !important; }
