/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
      Change favorite color
      Default: hsl(162, 100%, 40%)
      Orange: hsl(14, 100%, 65%) - Blue: hsl(210, 100%, 70%)
      Pink: hsl(356, 100%, 75%) - Purple: hsl(250, 100%, 75%)

      For more colors visit: https://colors.dopely.top/color-pedia
      -> Choose any color 
      -> click on tab (Color Conversion)
      -> Copy the color mode (HSL)
  */

  --hue: 0;
  --first-color: hsl(var(--hue), 70%, 50%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsl(228, 15%, 20%);
  --container-color: hsl(228, 15%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-si5ze: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 2rem;
    --bigger-font-size: 1.25rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
  width: 100%;
  overflow: hidden;
}

.section__title,
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

/* ==================== CUSTOM SECTION TITLES ==================== */

/* My Journey - Subtle cosmic shimmer */
.about .section__title {
  background: linear-gradient(
    120deg,
    var(--title-color) 0%,
    #8b7fbf 50%,
    var(--title-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: subtleCosmicShimmer 10s ease-in-out infinite;
}

@keyframes subtleCosmicShimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Technologies & Skills - Subtle tech glow */
.logo-loop-header h1 {
  color: var(--title-color);
  position: relative;
  transition: text-shadow 0.3s ease;
}

.logo-loop-header h1:hover {
  text-shadow: 0 0 15px var(--strike-color, var(--first-color));
}

/* My Work - just uses span for red accent like nav logo */

.main {
  overflow-x: hidden; /* For animation ScrollReveal */
  overflow-y: visible; /* Allow sticky positioning for Journey section */
}

/* White Mode Styles */
.white-mode {
  --first-color: hsl(
    var(--hue),
    70%,
    45%
  ); /* Slightly darker for better contrast */
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: #000000; /* Darker gray for titles */
  --text-color: #000000; /* Medium gray for text */
  --body-color: #f8f8f8; /* Light gray background */
  --container-color: #ffffff; /* White container background */

  /* Additional adjustments */
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
}

/* Adjust specific elements for white mode */
.white-mode .toggle-slot {
  background-color: #e0e0e0; /* Light gray for toggle background */
}

/* Add these to your CSS file */
.white-mode .text-black {
  color: black !important;
}

.white-mode .text-black-secondary {
  color: #333 !important;
}

.text-white {
  color: white;
}

.text-gray {
  color: grey;
}

/* Default dark mode styles */
.title-text {
  color: white;
}

.description-text {
  color: grey;
}

/* Light mode overrides */
.white-mode .title-text {
  color: black;
}

.white-mode .description-text {
  color: #333;
}

.white-mode .toggle-button {
  background-color: #ffffff;
  box-shadow: inset 0px 0px 0px 0.75em var(--first-color);
}

.white-mode .sun-icon,
.white-mode .moon-icon {
  color: var(--first-color);
}

/* Old header styles removed - using modern-header.css instead */

.white-mode .home {
  background-color: var(--body-color);
}

.white-mode .button {
  background-color: var(--first-color);
  color: #ffffff;
}

.white-mode .button:hover {
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, 0.25);
}

.white-mode .about__blob path {
  stroke: var(--first-color);
}

/* Contact input styles moved to main contact section */

.white-mode .skills__box,
.white-mode .card,
.white-mode .services__card {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.white-mode .footer {
  background-color: #f0f0f0; /* Light gray footer background */
}

.white-mode .header__skills {
  text-align: center;
  color: var(--title-color);
  padding: 1rem;
  position: relative;
  background-color: var(--container-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.white-mode .skills__box p {
  color: var(--title-color);
  margin: 0;
}

.white-mode .header__skills:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 100px;
  background-color: var(--first-color);
  border-radius: 2px;
}

.white-mode .skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: var(--container-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.white-mode .skills__box {
  padding: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.3s ease;
  background-color: var(--body-color);
  border-radius: 8px;
}

.white-mode .skills__box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 69, 58, 0.3);
}

.white-mode .skills__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.white-mode .skills__name {
  color: var(--title-color);
  font-weight: 500;
}

.white-mode .img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 50%;
  background-color: var(--container-color);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.white-mode .img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(180deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 50%;
}

.white-mode .skills__icon {
  width: 50px;
  z-index: 2;
}

/* White mode nav styles moved to modern-header.css */
/* Mobile-specific styles */
@media (max-width: 768px) {
  .white-mode .header__skills {
    padding: 0.5rem;
  }

  .white-mode .header__skills:after {
    width: 60px;
  }

  .white-mode .skills__container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .white-mode .skills__box {
    padding: 0.5rem;
  }

  .white-mode .img {
    width: 60px;
    height: 60px;
  }

  .white-mode .img:after {
    height: 60px;
    background: rgb(0, 0, 0);
    background: linear-gradient(
      180deg,
      rgb(0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    );
  }

  .white-mode .skills__icon {
    width: 40px;
  }
}

/* Duplicate contact input style removed */

/* White mode mobile nav styles moved to modern-header.css */

/*=============== HEADER & NAV ===============*/
/* Header styles moved to modern-header.css */

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-slot {
  font-size: 9px;
  position: relative;
  height: 3.5em;
  width: 7em;
  border: 0px solid transparent;
  border-radius: 10em;
  background-color: #374151;
  transition: background-color 250ms;
}

.toggle-checkbox:checked ~ .toggle-slot {
  background-color: #ffeccf;
}

.toggle-button {
  transform: translate(0.3em, 0.25em);
  position: absolute;
  height: 3em;
  width: 3em;
  border-radius: 50%;
  background-color: #485367;
  box-shadow: inset 0px 0px 0px 0.75em white;
  transition: background-color 250ms, border-color 250ms,
    transform 500ms cubic-bezier(0.26, 2, 0.46, 0.71);
}

.toggle-checkbox:checked ~ .toggle-slot .toggle-button {
  background-color: #ffeccf;
  box-shadow: inset 0px 0px 0px 0.75em #ffbb52;
  transform: translate(3.65em, 0.25em);
}

.sun-icon {
  position: absolute;
  height: 6em;
  width: 6em;
  color: #ffbb52;
}

.sun-icon-wrapper {
  position: absolute;
  height: 6em;
  width: 6em;
  opacity: 1;
  transform: translate(2em, 2em) rotate(15deg);
  transform-origin: 50% 50%;
  transition: opacity 150ms, transform 500ms cubic-bezier(0.26, 2, 0.46, 0.71);
}

.toggle-checkbox:checked ~ .toggle-slot .sun-icon-wrapper {
  opacity: 0;
  transform: translate(3em, 2em) rotate(0deg);
}

.moon-icon {
  position: absolute;
  height: 6em;
  width: 6em;
  color: #ffbb52;
}

.moon-icon-wrapper {
  position: absolute;
  height: 6em;
  width: 6em;
  opacity: 0;
  transform: translate(11em, 2em) rotate(0deg);
  transform-origin: 50% 50%;
  transition: opacity 150ms, transform 500ms cubic-bezier(0.26, 2.5, 0.46, 0.71);
}

.toggle-checkbox:checked ~ .toggle-slot .moon-icon-wrapper {
  opacity: 1;
  transform: translate(2em, 2em) rotate(-15deg);
}

/*=============== NAV ===============*/
/* All nav and header styles are in modern-header.css */
/*=============== HOME ===============*/
.home {
  background-color: var(--container-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; /* Center text content */
  height: 100vh; /* Full viewport height */
  padding: 0; /* Remove any default padding */
  margin: 0; /* Remove any default margin */
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Galaxy Background */
.galaxy-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: all;
}

.galaxy-background canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Center the .container */
.container {
  max-width: 1120px;
  margin: 0 auto; /* Center horizontally */
}

/* Center the content within sections */
.section__title,
.section__subtitle {
  text-align: center; /* Center text content */
}

/* Center the .home__data and .home__social elements within the .home section */
.home__container {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.home__content {
  display: grid;
  row-gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Zoom out hero section on larger screens */
@media screen and (min-width: 1024px) {
  .home__container {
    transform: scale(0.93);
    transform-origin: center top;
    padding-top: 8rem !important;
  }
}

.home__subtitle,
.home__education {
  font-size: var(--bigger-font-size);
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: 'wght' 400;
}

.hidden {
  display: none;
}

.home__container h1 {
  font-size: 40px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  margin-bottom: 5px;
  color: var(--title-color);
}

span {
  color: var(--title-color);
}

.home__title {
  color: var(--first-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: 'wght' 400;
}

.home__description {
  margin-block: 1rem 1.5rem;
  color: var(--first-color); /* Specify your text color here */
  margin-bottom: 20em;
}

.home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home__social-link {
  display: flex;
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
}

.home__social-link:hover {
  transform: translate(-0.25rem);
}

.home__blob {
  width: 265px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, 0.2));
  margin: 1rem auto 0;
  display: block;
  max-width: 100%;
}

.label {
  background-color: rgb(200, 17, 17);
  display: flex;
  align-items: center;
  border-radius: 50px;
  width: 160px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 5px;
  position: relative;
  margin: 0 auto;
  margin-top: 20px;
}

.label:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px hsla(var(--hue), 100%, 40%, 0.5);
}

.label.active {
  width: 57px;
  animation: installed 0.4s ease 3.5s forwards;
}

.label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  width: 8px;
  height: 8px;
  transition: all 0.4s ease;
  border-radius: 100%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
}

.label.active::before {
  animation: rotate 3s ease-in-out 0.4s forwards;
}

.label .title {
  font-size: 13px;
  color: #fff;
  transition: all 0.4s ease;
  position: absolute;
  right: 18px;
  bottom: 14px;
  text-align: center;
  opacity: 1; /* Initially visible */
  visibility: visible;
}

.label.active .title {
  opacity: 0;
  visibility: hidden;
}

.label .installer-btn {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background-color: rgb(-91, -91, 24);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  overflow: hidden;
}

.label.active .installer-btn {
  animation: pulse 1s forwards, installerBtnDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}

.label .installer-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #3333a8;
  width: 100%;
  height: 0;
  transition: all 0.4s ease;
}

.label.active .installer-btn::before {
  animation: installing 3s ease-in-out forwards;
}

.label .installer-btn .icon {
  color: #fff;
  width: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label.active .installer-btn .icon {
  opacity: 0;
  visibility: hidden;
}

.label .installer-btn .square {
  aspect-ratio: 1;
  width: 15px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label.active .installer-btn .square {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse {
  0% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    scale: 1;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes installing {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(-90deg) translate(27px) rotate(0);
    opacity: 1;
    visibility: visible;
  }
  99% {
    transform: rotate(270deg) translate(27px) rotate(270deg);
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes installed {
  100% {
    width: 150px;
    border-color: rgb(35, 174, 35);
  }
}

@keyframes installerBtnDelete {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Media query for screens up to 768px (adjust as needed) */
@media (max-width: 768px) {
  /* Center the .home__container */
  .home__container {
    text-align: center;
  }

  /* Adjust font size and margin for .home__container h1 */
  .home__container h1 {
    font-size: 32px; /* Adjust the font size for smaller screens */
    margin-bottom: 20px; /* Adjust the margin as needed */
  }

  /* Adjust font size for .home__subtitle and .home__education */
  .home__subtitle,
  .home__education {
    font-size: 18px; /* Adjust the font size for smaller screens */
  }

  /* Add padding to .home__description to increase space between elements */
  .home__description {
    padding: 1rem;
    margin-bottom: 2rem; /* Adjust the margin as needed */
  }

  /* Adjust font size for .home__title on smaller screens */
  .home__title {
    font-size: 24px; /* Adjust the font size for smaller screens */
  }

  /* Adjust margin for .button on smaller screens */
  .label {
    margin-top: 1em; /* Adjust the margin as needed */
    -webkit-tap-highlight-color: transparent;
  }
}

@media screen {
  .home__social {
    margin-bottom: 2.5rem;
  }

  .white-mode .home__social {
    margin-bottom: 3rem;
  }
}
/*===================ABOUT=====================*/
/* Default styles (for larger screens) */
.about__container {
  row-gap: 2.5rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
  text-align: justify;
  font-size: 16px;
  margin-left: 20px;
  margin-right: 20px;
  color: var(--title-color);
}

.about__image {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  justify-content: center;
}

.about__blob {
  width: 300px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.about__blob path {
  stroke: var(--first-color);
}

/* Mobile styles */
@media (max-width: 768px) {
  .about__description {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
  }

  .about__image {
    margin-left: 10px;
    margin-right: 10px;
  }

  .about__blob {
    width: 250px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .about__description {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 14px;
  }

  .about__image {
    margin-left: 10px;
    margin-right: 10px;
  }

  .about__blob {
    width: 300px;
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  .about__description {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 16px;
  }

  .about__image {
    margin-left: 20px;
    margin-right: 20px;
  }

  .about__blob {
    width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .about__description {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
  }
}

/*===================Contact=====================*/

.contact__container {
  padding-top: 1rem;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(20, 20, 30, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--title-color);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.white-mode .contact__input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.contact__input:focus {
  border: 2px solid #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  outline: none;
}

.contac_input::placeholder {
  color: var(--text-color);
}

.contact__form textarea {
  height: 11rem;
  resize: none;
  margin-bottom: 2rem;
}

.contact__button {
  justify-self: center;
  cursor: pointer;
  background-color: var(--first-color); /* Main background color */
  color: #fff; /* Text color */
  font-size: 16px; /* Font size */
  padding: 12px 24px; /* Padding for better click area */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  text-align: center; /* Center text */
}

.contact__button:hover {
  background-color: #fc0707d4; /* Darker shade on hover */
  transform: translateY(-2px); /* Slight lift effect on hover */
}

.contact__button:active {
  transform: translateY(0); /* Reset on click */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce shadow on click */
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.wrapper {
  width: 200px;
  height: 60px;
  position: relative;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.circle {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left: 15%;
  transform-origin: 50%;
  animation: circle7124 0.5s alternate infinite ease;
}

@keyframes circle7124 {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0%;
  }
}

.circle:nth-child(2) {
  left: 45%;
  animation-delay: 0.2s;
}

.circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.9);
  position: absolute;
  top: 62px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: shadow046 0.5s alternate infinite ease;
}

@keyframes shadow046 {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    transform: scaleX(1);
    opacity: 0.7;
  }

  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

.shadow:nth-child(4) {
  left: 45%;
  animation-delay: 0.2s;
}

.shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

/*===================Skills =====================*/
.header__skills {
  text-align: center;
  color: #fff;
  padding: 1rem;
  position: relative;
  background-color: hsla(
    0,
    0%,
    10%,
    0.4
  ); /* Increased transparency for a lighter effect */
  border-radius: 10px; /* Added rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.skills__box p {
  color: var(--title-color);
  margin: 0; /* Remove default margin for cleaner spacing */
}

.header__skills:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 100px;
  background-color: #2ecc71; /* Highlight color for emphasis */
  border-radius: 2px; /* Soft edges for the line */
}

.skills__container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* Responsive columns */
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem; /* Use gap for spacing instead of grid-gap */
  padding: 1rem 2rem; /* Reduced padding for cleaner appearance */
  font-size: 1rem; /* Smaller font size for improved readability */
  background-color: hsla(0, 0%, 10%, 0.4);
  border-radius: 10px; /* Rounded corners for the container */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.skills__box {
  padding: 1rem;
  color: #ddd;
  cursor: pointer;
  transition: transform 0.3s ease; /* Smooth hover effect */
}

.skills__box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(50, 205, 50, 0.3);
}

.skills__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.skills__name {
  color: var(--title-color);
}

.img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 50%; /* Fully round shape */
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Clip overflowing parts */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.929); /* Shadow for depth */
}

.img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%; /* Adjust height to fill the image */
  background: rgba(100, 100, 100, 0.5);
  border-radius: 50%; /* Fully round for the overlay */
}

.skills__icon {
  width: 50px;
  z-index: 2;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .header__skills {
    padding: 0.5rem;
  }

  .header__skills:after {
    width: 60px;
  }

  .skills__container {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    padding: 1rem;
  }

  .skills__box {
    padding: 0.5rem;
  }

  .img {
    width: 60px;
    height: 60px;
  }

  .img:after {
    height: 60px;
  }

  .skills__icon {
    width: 40px;
  }
}

/*===================PROJECTS =====================*/
/* Existing project container styles */
.project__container {
  row-gap: 2rem;
  text-align: center;
}

.swiper-wrapper p {
  color: var(--title-color);
}

/* Swiper styles */
.swiper {
  width: 100%;
  background: var(--body-color);
  padding: 60px 5%;
}

.swiper-wrapper {
  width: 100%;
  height: 30em;
  display: flex;
  align-items: center;
  transform: translate3d(0, 0, 0);
}

.swiper-container {
  overflow: visible;
}

/* Card styles */
.card {
  width: 16em;
  height: auto;
  background: rgba(20, 20, 30, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1.5rem 1em;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 1em;
  margin-top: 3em;
  margin-bottom: 5em;
}

.white-mode .card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.swiper-slide:not(.swiper-slide-active) {
  filter: blur(1px);
}

.swiper-slide {
  pointer-events: none; /* Disable pointer events on non-active slides */
}

/* Bounce effect for the selected card */
.swiper-slide-active {
  pointer-events: all; /* Enable pointer events only on the active slide */
  z-index: 10; /* Ensure the active slide is above others */
  animation: slowBounce 2.5s ease-in-out infinite; /* Slower and smoother animation */
}

@keyframes slowBounce {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-8px); /* Slight upward movement */
  }
  40% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-4px); /* Subtle smaller bounce */
  }
  80% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.card__image {
  width: 10em;
  height: 10em;
  border-radius: 50%;
  border: 2px solid var(--first-color);
  padding: 3px;
  margin-bottom: 1.5em;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  z-index: 1;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}

.card__image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5em;
}

.card_title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--first-color);
}

.card__text {
  text-align: left;
  font-size: 1rem;
  max-width: 180px;
  margin: 0;
  color: var(--title-color);
  line-height: 1.15;
  padding: 0 0.5em;
}

.card__btn {
  background: var(--first-color);
  color: var(--title-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  padding: 0.75em 2em;
  border-radius: 2em;
  margin-top: 0.25em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  /* Glow effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(var(--hue), 50%, 60%, 0.3);
  animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
      0 0 10px rgba(var(--hue), 50%, 60%, 0.3);
  }
  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(var(--hue), 50%, 60%, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
      0 0 10px rgba(var(--hue), 50%, 60%, 0.3);
  }
}

.card__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(var(--hue), 70%, 45%, 0.7);
  background: linear-gradient(
    to right,
    var(--first-color),
    hsl(var(--hue), 70%, 45%)
  );
}

.card__btn:active {
  transform: translateY(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(var(--hue), 50%, 60%, 0.3);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .card {
    width: 14em;
    margin: 0.5em;
    margin-top: 2em;
    margin-bottom: 3em;
  }

  .card__image {
    width: 8em;
    height: 8em;
  }

  .card__text {
    font-size: 0.9rem;
    font-weight: bold;
  }
}

/* Tablet styles - zoom out cards for better overview */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .swiper {
    padding: 40px 3%;
  }

  .swiper-wrapper {
    height: 24em;
  }

  .card {
    width: 13em;
    padding: 1.2rem 0.8em;
    margin: 0 0.8em;
    margin-top: 2.5em;
    margin-bottom: 4em;
    transform: scale(0.85);
  }

  .card__image {
    width: 8.5em;
    height: 8.5em;
    margin-bottom: 1.2em;
  }

  .card_title {
    font-size: 1.1rem;
  }

  .card__text {
    font-size: 0.9rem;
    max-width: 160px;
  }

  .card__btn {
    font-size: 0.85rem;
    padding: 0.65em 1.8em;
  }
}

/* Modal styles */
.project-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  /* Remove overscroll-behavior and handle scroll lock via JS instead */
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal__content {
  background: var(--container-color);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  scroll-behavior: smooth;
}

.project-modal.active .project-modal__content {
  transform: scale(1);
  opacity: 1;
}

/* Lock body scroll when modal is open */
body.modal-open {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--first-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--container-color);
  z-index: 1;
}

.project-modal__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.project-modal__close {
  background: none;
  border: none;
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.project-modal__close:hover {
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.1);
}

.project-modal__body {
  padding: 1.5rem;
}

.project-modal__video {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--body-color);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.project-modal__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal__description {
  color: var(--title-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  white-space: pre-line;
  font-size: var(--normal-font-size);
}

.project-modal__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-modal__tech-item {
  background: var(--first-color);
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  transition: transform 0.3s ease;
}

.project-modal__tech-item:hover {
  transform: translateY(-2px);
  will-change: transform;
}

.project-modal__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-modal__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--first-color);
  color: var(--title-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.project-modal__button:hover {
  background: hsl(var(--hue), 70%, 45%);
  transform: translateY(-2px);
  transform: scale(1.05);
  transition: all 0.2s ease;
  will-change: transform;
}

.project-modal__button--outline {
  background: transparent;
  border: 2px solid var(--first-color);
}

.project-modal__button--outline:hover {
  background: var(--first-color);
}

/* Stories-Modal styles */

/* Story Modal Base */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.story-modal.hidden {
  display: none;
}

/* Modal Content */
.story-modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform-origin: center;
  perspective: 1000px;
  overflow: hidden;
  background: transparent;
}

/* Sliding Animations */
.story-modal-content.sliding-left {
  transform: translate3d(-100%, 0, 0) rotateY(30deg);
  opacity: 0;
}

.story-modal-content.sliding-right {
  transform: translate3d(100%, 0, 0) rotateY(-30deg);
  opacity: 0;
}

/* Progress Bar Container */
.story-progress-container {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 4px;
}

/* Progress Bar */
.story-progress-bar {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: white;
  transition: width linear;
  will-change: width;
  transform: translateZ(0);
}

/* Video Player */
.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Control Buttons */
.close-btn,
.menu-btn {
  position: absolute;
  top: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  line-height: 1;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.close-btn:hover,
.menu-btn:hover {
  opacity: 0.8;
}

.close-btn {
  right: 20px;
}

.menu-btn {
  left: 20px;
}

/* Play/Pause Indicator */
.play-pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.play-pause-indicator.hidden {
  opacity: 0;
  visibility: hidden;
}

.pause-icon {
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Touch Areas */
.story-touch-area {
  position: absolute;
  top: 0;
  height: 100%;
  width: 33.333%;
  z-index: 5;
}

.story-touch-area-left {
  left: 0;
}

.story-touch-area-center {
  left: 33.333%;
}

.story-touch-area-right {
  right: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .story-modal-content {
    width: 100%;
    height: 100vh;
    max-width: none;
  }

  .close-btn,
  .menu-btn {
    top: 20px;
  }

  .close-btn {
    right: 10px;
  }

  .menu-btn {
    left: 10px;
  }

  .story-progress-container {
    top: 10px;
    left: 10px;
    right: 10px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Additional Utility Classes */
.story-modal .prevent-scroll {
  overflow: hidden;
  touch-action: none;
}

.story-modal .disable-interaction {
  pointer-events: none;
}

.story-modal .enable-interaction {
  pointer-events: auto;
}

/* Dropdown Menu */
.story-menu {
  position: absolute;
  top: 80px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  z-index: 11;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.story-menu.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.story-menu-item {
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.story-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.story-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Swiper scrollbar */
.swiper-scrollbar {
  width: 100%;
  height: 5px;
  background-color: #ccc;
}

.swiper-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 5px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .project-modal {
    padding: 0.5rem;
  }

  .project-modal__content {
    max-height: 85vh;
    width: 95%;
  }

  .project-modal__buttons {
    flex-direction: column;
  }

  .project-modal__button {
    width: 100%;
    justify-content: center;
  }

  .card {
    width: 14em;
    margin: 0.5em;
    margin-top: 2em;
    margin-bottom: 3em;
  }

  .card__image {
    width: 8em;
    height: 8em;
  }

  .card__text {
    font-size: 0.9rem;
  }
  .spinner {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
}

/* Animation for modal opening */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-modal.active .project-modal__content {
  animation: modalFadeIn 0.3s ease forwards;
}

.project-modal__video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--container-color);
}

.project-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.5);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header variant of the project badge (placed next to title) */
.project-badge--header {
  position: static;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

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

.project-modal__video .project-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  cursor: not-allowed;
  border-radius: 50%;
  border: 2px solid #444;
  box-shadow: -10px -10px 10px #6359f8, 0px -10px 10px 0px #9c32e2,
    10px -10px 10px #f36896, 10px 0 10px #ff0b0b, 10px 10px 10px 0px #ff5500,
    0 10px 10px 0px #ff9500, -10px 10px 10px 0px #ffb700;
  animation: rot55 0.7s linear infinite;
  margin-bottom: 1rem;
}

.spinnerin {
  border: 2px solid #444;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rot55 {
  to {
    transform: rotate(360deg);
  }
}

.loading-message {
  font-size: 1.2rem;
  color: #444;
  font-weight: 600;
}

.dots span {
  opacity: 0;
  animation: dotsAppear 1.5s infinite;
}

.dots span:nth-child(1) {
  animation-delay: 0s;
}

.dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotsAppear {
  0%,
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.project-modal__button i {
  font-size: 1.1rem;
}

.project-modal__button span {
  line-height: 1;
}

.project-modal__content::-webkit-scrollbar {
  width: 8px;
}

.project-modal__content::-webkit-scrollbar-track {
  background: var(--container-color);
}

.project-modal__content::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 20px;
  border: 2px solid var(--container-color);
}

/*===================PIANO =====================*/

/* Base Piano Container */
.piano__container {
  max-width: 584px; /* Match piano width */
  margin: 0 auto;
  padding: 0;
}

.section__subtitle-piano {
  font-family: "Georgia", serif;
  color: #8b7355;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.section__title-keys {
  font-family: "Georgia", serif;
  font-size: 2.5rem;
  text-align: center;
  color: #5c4934;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

.section__title-keys span {
  color: #8b7355;
  position: relative;
  display: inline-block;
}

.section__title-keys span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d4b594;
}

/* Piano Container Styles */
.career__container {
  position: relative;
  min-height: 50vh;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.piano-container {
  position: relative;
  width: 584px;
  height: 15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
  /* Use material color for solid, physical appearance */
  background: linear-gradient(to bottom,
    rgba(var(--piano-material-rgb), 0.9),
    rgba(var(--piano-material-rgb), 0.7));
  border: 2px solid rgba(var(--piano-material-rgb), 1);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: visible; /* Ensure button is visible outside container */
  transition: background 0.3s ease, border-color 0.3s ease;
}

#piano-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 1rem;
}

.piano-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle shimmer using material color - no glow, just texture */
  background: radial-gradient(circle, rgba(var(--piano-material-rgb), 0.3), transparent 60%);
  opacity: 0.4;
  pointer-events: none; /* Prevent interaction */
  transform: scale(1.2);
  animation: shine 6s infinite ease-in-out; /* Shimmer animation */
  transition: background 0.3s ease;
}

@keyframes shine {
  0%,
  100% {
    transform: scale(1.2) rotate(0deg);
  }
  50% {
    transform: scale(1.4) rotate(180deg);
  }
}

/* Piano Keys Container */
.keys-container {
  position: relative;
  width: 500px;
  height: 12rem;
  margin: 0 auto;
  padding: 0.1rem 0;
  background: linear-gradient(to bottom, #5c4934, #4a3a2a);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.4);
}

/* Piano Key Base Styles */
.piano-key {
  position: absolute;
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.15s ease-out;
}

/* White Keys */
.piano-key.white {
  width: 3.5rem;
  height: 12rem;
  background: linear-gradient(to bottom, #f4e4d4 0%, #e8d5c4 100%);
  border-radius: 0 0 6px 6px;
  z-index: 1;
  border: 1px solid #a69585;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.1),
    inset 0 5px 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.piano-key.white:hover {
  background: linear-gradient(to bottom, #f8eae0 0%, #efe0d4 100%);
}

.piano-key.white:active,
.piano-key.white.active {
  background: linear-gradient(to bottom, #e8d5c4 0%, #dcc7b4 100%);
  transform: translateY(2px);
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* Black Keys */
.piano-key.black {
  width: 2rem;
  height: 7rem;
  background: linear-gradient(to bottom, #333333 0%, #000000 100%);
  border-radius: 0 0 4px 4px;
  z-index: 2;
  margin-left: -1rem;
  box-shadow: -1px 0 2px rgba(0, 0, 0, 0.8), 1px 0 2px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8), inset 0 -8px 12px rgba(255, 255, 255, 0.05);
}

.piano-key.black:hover {
  background: linear-gradient(to bottom, #404040 0%, #1a1a1a 100%);
}

.piano-key.black:active,
.piano-key.black.active {
  background: linear-gradient(to bottom, #000000 0%, #1a1a1a 100%);
  transform: translateY(2px);
  box-shadow: -1px 0 1px rgba(0, 0, 0, 0.6), 1px 0 1px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.6), inset 0 -4px 8px rgba(255, 255, 255, 0.05);
}

/* Glow Effect */
.glow-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(255, 217, 0, 0.3),
    rgba(255, 217, 0, 0.1) 40%,
    transparent
  );
  opacity: 0;
  animation: pianoGlow 0.6s ease-out;
  border-radius: inherit;
}

@keyframes pianoGlow {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Sound Control Button */
.sound-control {
  position: absolute;
  top: 15px; /* Moved up slightly */
  right: 15px; /* Moved right slightly */
  width: 35px; /* Slightly smaller base size */
  height: 35px;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f4e4d4, #e8d5c4);
  border: none;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
    -5px -5px 10px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.sound-control:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25),
    -6px -6px 12px rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.sound-control:active {
  transform: translateY(0);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2),
    -3px -3px 6px rgba(255, 255, 255, 0.4), inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -2px -2px 4px rgba(255, 255, 255, 0.4);
}

.sound-control svg {
  width: 20px;
  height: 20px;
  stroke: #8b7355;
  transition: all 0.3s ease;
}

.sound-control.muted svg {
  stroke: #ff3b30;
}

/* Hover animation */
.sound-control:hover svg {
  transform: scale(1.1);
}

/* Pulse animation when playing */
@keyframes soundPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.sound-control.playing:not(.muted) {
  animation: soundPulse 2s infinite ease-in-out;
}

/* Status Dot - RED when not playing, WHITE when playing */
.status-dot {
  background: #ff3b30 !important;
  transition: all 0.3s ease;
}

.status-dot.playing {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Journey Cards */
.journey-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.career-journey-card {
  position: absolute;
  width: 280px;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(92, 73, 52, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(139, 115, 85, 0.3);
  box-shadow: 0 0 30px rgba(139, 115, 85, 0.2),
    inset 0 0 30px rgba(139, 115, 85, 0.1);
  transform-style: preserve-3d;
  z-index: 10;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
}

/*
OLD STYLE
background: #f4e4d4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
*/

/* Shine effect */
.career-journey-card::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(5px);
  transform: rotate(45deg);
  animation: modernShineAnimation 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes modernShineAnimation {
  0% {
    top: -150%;
    left: -50%;
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    top: 150%;
    left: 150%;
    opacity: 0.5;
  }
}

.career-journey-card.visible {
  opacity: 1;
  transform: none;
}

/* Hover effect - white glow on dark mode */
.career-journey-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Hover effect - black glow on light mode */
body.light-theme .career-journey-card:hover {
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Card Content Styles */
.career-journey-card .font-bold {
  font-size: 1.1rem;
  color: #5c4934;
  margin-bottom: 0.5rem;
}

.career-journey-card .text-lg {
  font-size: 1.2rem;
  color: #8b7355;
  margin-bottom: 0.5rem;
}

.career-journey-card .text-sm {
  font-size: 0.9rem;
  color: #a69585;
  line-height: 1.4;
}

html {
  scroll-behavior: smooth;
}

.career.section {
  scroll-margin-top: 2rem; /* Adjusts scroll stopping point */
  padding-bottom: 1rem; /* Reduce gap to services section */
}

/* Journey Cards - Desktop - keep centered with margin auto */
@media screen and (min-width: 769px) {
  .career-journey-card {
    /* No transform needed, margin: auto handles centering */
  }
}

@media screen and (max-width: 768px) {
  .sound-control {
    top: -2.5rem;
    right: 0.5rem;
  }

  .piano-container {
    transform-origin: center center;
    margin-bottom: 3rem;
    width: 584px; /* Keep original width, let scale handle the resizing */
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) scale(0.7) !important;
  }

  .career.section {
    scroll-margin-top: 2rem;
  }
}

/* Tablet and Small Screens */
@media screen and (max-width: 768px) {
  .piano__container {
    padding: 1rem;
  }

  .piano-container {
    transform-origin: center center;
    margin-bottom: 3rem;
    width: fit-content;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) scale(1) !important;
  }

  .keys-container {
    transform: scale(1);
    margin: 0 auto;
  }

  .sound-control {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 6px;
    transform: scale(1.3);
  }

  .journey-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 180px;
    width: 100%;
  }

  .career-journey-card {
    width: 250px;
    padding: 0.875rem;
  }

  .career-journey-card .font-bold {
    font-size: 1rem;
  }

  .career-journey-card .text-lg {
    font-size: 1.1rem;
  }

  .career-journey-card .text-sm {
    font-size: 0.85rem;
  }
}

/* Mobile Screens */
@media screen and (max-width: 480px) {
  .piano__container {
    padding: 0.5rem;
  }

  .piano-container {
    transform: scale(0.5);
    transform-origin: center center;
    margin-bottom: 2rem;
    width: 584px; /* Keep original width, let scale handle the resizing */
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) scale(0.5) !important;
  }

  .keys-container {
    transform: scale(1);
    margin: 0 auto;
  }

  .sound-control {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 5px;
    transform: scale(1.5);
  }

  #piano-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  .career-journey-card {
    width: 260px;
    padding: 0.9rem;
  }

  .career-journey-card .font-bold {
    font-size: 1rem;
  }

  .career-journey-card .text-lg {
    font-size: 1.1rem;
  }

  .career-journey-card .text-sm {
    font-size: 0.85rem;
  }
  .career.section {
    scroll-margin-top: 0.5rem;
  }
}

/* Animation for cards appearing one by one */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Add JS animation classes */
.career-journey-card[data-index="0"] {
  animation-delay: 0s;
}
.career-journey-card[data-index="1"] {
  animation-delay: 0.3s;
}
.career-journey-card[data-index="2"] {
  animation-delay: 0.6s;
}

@keyframes cardShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .career__container {
    padding: 0.25rem;
  }
  .status-dot {
    left: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
  }

  .piano-container {
    transform: scale(0.8);
    transform-origin: center center;
    margin-bottom: 6rem;
    margin-left: auto;
    margin-right: auto;
  }

  .career-journey-card {
    width: 160px;
    padding: 1rem;
  }

  .section__title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .piano-container {
    transform: scale(0.6);
    transform-origin: center center;
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
  }

  .career-journey-card {
    width: 140px;
    padding: 0.8rem;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .key-letter {
    font-size: 1rem;
  }

  .piano-key.black .key-letter {
    font-size: 0.875rem;
  }
}

/* Timeline */
.timeline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(166, 149, 133, 0.3);
}

/* Vintage Paper Texture */
.vintage-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvB");
  border-radius: inherit;
  pointer-events: none;
}

/*===================Piano Hologram =====================*/

/* Piano Hologram Effect Additional Styles */

/* Piano Hologram Effect Styles */

/* Main container */
/* =================== HOLOGRAM STYLES =================== */

/* Hologram wrapper - new container for proper positioning */
.hologram-wrapper {
  position: relative;
  width: 100%;
  height: 250px; /* Extra height to accommodate the hologram */
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

/* Main hologram container */
.hologram-container {
  position: absolute;
  width: 90%;
  max-width: 500px; /* Increased from 400px for better visibility */
  height: 220px; /* Increased from 180px for better visibility */
  z-index: 25;
  perspective: 1000px;
  opacity: 0; /* Initially invisible */
  transition: opacity 0.7s ease; /* Smoother fade-in */
}

/* Active state for hologram container */
.hologram-active {
  opacity: 1 !important;
}

/* Holographic display */
.hologram-projection {
  position: relative;
  width: 100%;
  height: 180px; /* Increased from 140px */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px 12px 0 0; /* Slightly rounder corners */
  transform-style: preserve-3d;
  transform: rotateX(5deg);
  box-shadow: 0 0 60px rgba(var(--piano-primary-rgb), 0.6); /* Stronger glow */
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(var(--piano-primary-rgb), 0.2);
  animation: hologramFloat 3s ease-in-out infinite;
}

/* Content inside hologram */
.hologram-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  padding-top: 25px !important;
  align-items: center;
  color: rgba(var(--piano-primary-rgb), 0.8);
  text-align: center;
  padding: 10px;
  pointer-events: none;
}

/* Audio visualizer canvas */
#visualizer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Song information text */
.song-info {
  margin-bottom: 30px !important;
  position: relative;
  z-index: 10;
  text-shadow: 0 0 10px rgba(var(--piano-primary-rgb), 0.8);
  transition: all 0.3s ease;
}

.song-info.changing {
  opacity: 0;
  transform: translateY(10px);
}

.song-title {
  font-size: 1.5rem !important;
  margin-bottom: 8px !important;
  font-weight: 600;
  color: rgba(var(--piano-primary-rgb), 0.9);
  text-shadow: 0 0 15px rgba(var(--piano-primary-rgb), 0.6);
}

.song-artist {
  font-size: 1.1rem !important;
  opacity: 0.85;
}

/* Hologram base */
.hologram-base {
  position: relative;
  height: 50px; /* Increased from 40px */
  background: linear-gradient(
    to bottom,
    rgba(var(--piano-primary-rgb), 0.5),
    /* Made more visible */ rgba(var(--piano-primary-rgb), 0.1)
  );
  border-radius: 0 0 50% 50%;
  transform: perspective(500px) rotateX(40deg);
  transform-origin: center top;
  filter: blur(2px);
  box-shadow: 0 15px 25px rgba(var(--piano-primary-rgb), 0.4); /* Enhanced glow */
}

/* Playback controls */
.hologram-controls {
  position: absolute;
  bottom: 12px !important;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  z-index: 20;
  pointer-events: auto;
}

.hologram-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(var(--piano-primary-rgb), 0.4); /* Thicker, more visible border */
  color: rgba(var(--piano-primary-rgb), 0.8);
  width: 42px; /* Increased from 36px */
  height: 42px; /* Increased from 36px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(var(--piano-primary-rgb), 0.4);
}

.hologram-btn:hover {
  background: rgba(var(--piano-primary-rgb), 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--piano-primary-rgb), 0.6);
}

.hologram-btn i {
  font-size: 1.3rem; /* Increased from 1.2rem */
}

/* Play/pause button states */
.play-btn i.ri-pause-fill {
  display: none;
}

.play-btn.playing i.ri-play-fill {
  display: none;
}

.play-btn.playing i.ri-pause-fill {
  display: block;
}

/* Special styling for play button to make it stand out */
.play-btn {
  width: 50px; /* Larger than other buttons */
  height: 50px;
  background: rgba(var(--piano-primary-rgb), 0.2); /* Slightly different background */
}

/* Hologram glow effect */
.hologram-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(var(--piano-primary-rgb), 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hologram-active .hologram-glow {
  opacity: 1;
}

/* Hand indicator for first-time users */
.hand-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -30%);
  width: 40px;
  height: 40px;
  z-index: 110;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  animation: float 2s ease-in-out infinite;
  pointer-events: none;
}

.hand-indicator svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hand-indicator .pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-out infinite;
}

.hand-indicator.fadeout {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Animations */
@keyframes hologramFloat {
  0%,
  100% {
    transform: rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateX(5deg) translateY(-5px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-30%, -30%);
  }
  50% {
    transform: translate(-30%, -40%);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

@keyframes songChange {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  20% {
    transform: translateY(10px) scale(0.9);
    opacity: 0;
  }
  80% {
    transform: translateY(-10px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .hologram-wrapper {
    height: 220px;
    margin-bottom: 2.5rem;
  }

  .hologram-container {
    height: 200px;
  }

  .hologram-projection {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .hologram-wrapper {
    height: 200px;
    margin-bottom: 2rem;
  }

  .hologram-container {
    max-width: 400px;
    height: 180px;
  }

  .hologram-projection {
    height: 140px;
  }

  .song-title {
    font-size: 1.3rem !important;
  }

  .song-artist {
    font-size: 1rem !important;
  }

  .hologram-controls {
    gap: 25px;
    bottom: 12px;
  }

  .hologram-btn {
    width: 36px;
    height: 36px;
  }

  .play-btn {
    width: 44px;
    height: 44px;
  }

  .hologram-btn i {
    font-size: 1.2rem;
  }

  .hologram-content {
    padding-top: 20px !important;
  }

  .song-info {
    margin-bottom: 25px !important;
  }
}

@media (max-width: 480px) {
  .hologram-wrapper {
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .hologram-container {
    max-width: 320px;
    height: 160px;
  }

  .hologram-projection {
    height: 120px;
  }

  .hologram-base {
    height: 40px;
  }

  .hologram-btn {
    width: 32px;
    height: 32px;
  }

  .play-btn {
    width: 38px;
    height: 38px;
  }

  .hologram-btn i {
    font-size: 1rem;
  }

  .hologram-controls {
    gap: 20px;
    bottom: 10px;
  }

  .hologram-content {
    padding-top: 15px !important;
  }

  .song-info {
    margin-bottom: 20px !important;
  }

  .song-title {
    font-size: 1.1rem !important;
  }

  .song-artist {
    font-size: 0.9rem !important;
  }
}

/* White mode styles */
.white-mode .hologram-projection {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(var(--piano-primary-rgb), 0.8) !important;
  border: 2px solid rgba(var(--piano-primary-rgb), 0.6) !important;
}

.white-mode .hologram-content {
  color: rgba(var(--piano-primary-rgb), 0.95) !important;
}

.white-mode .song-info {
  text-shadow: 0 0 15px rgba(var(--piano-primary-rgb), 0.8) !important;
}

.white-mode .song-title {
  color: rgba(var(--piano-primary-rgb), 1) !important;
}

.white-mode .song-artist {
  color: rgba(var(--piano-primary-rgb), 0.9) !important;
}

.white-mode .hologram-base {
  background: linear-gradient(
    to bottom,
    rgba(var(--piano-primary-rgb), 0.6),
    rgba(var(--piano-primary-rgb), 0.2)
  ) !important;
  box-shadow: 0 15px 30px rgba(var(--piano-primary-rgb), 0.6) !important;
}

.white-mode .hologram-btn {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 2px solid rgba(var(--piano-primary-rgb), 0.6) !important;
  color: rgba(var(--piano-primary-rgb), 1) !important;
  box-shadow: 0 0 15px rgba(var(--piano-primary-rgb), 0.5) !important;
}

.white-mode .hologram-btn:hover {
  background: rgba(var(--piano-primary-rgb), 0.3) !important;
  box-shadow: 0 0 25px rgba(var(--piano-primary-rgb), 0.8) !important;
}

.white-mode .hologram-glow {
  background: radial-gradient(
    circle,
    rgba(var(--piano-primary-rgb), 0.3) 0%,
    transparent 70%
  ) !important;
}

.white-mode .hologram-projection::before,
.white-mode .hologram-projection::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--piano-primary-rgb), 0.3) 20%,
    rgba(var(--piano-primary-rgb), 0.9) 50%,
    rgba(var(--piano-primary-rgb), 0.3) 80%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 6px rgba(var(--piano-primary-rgb), 1) !important;
}

.white-mode .hologram-base::before,
.white-mode .hologram-base::after {
  background: rgba(var(--piano-primary-rgb), 0.9) !important;
  box-shadow: 0 0 10px rgba(var(--piano-primary-rgb), 1) !important;
}

.white-mode .hologram-active .hologram-projection {
  box-shadow: 0 0 60px rgba(var(--piano-primary-rgb), 1),
    0 0 30px rgba(var(--piano-primary-rgb), 0.5) inset !important;
  border: 2px solid rgba(var(--piano-primary-rgb), 0.8) !important;
}

.white-mode .hologram-active .hologram-base {
  background: linear-gradient(
    to bottom,
    rgba(var(--piano-primary-rgb), 0.7),
    rgba(var(--piano-primary-rgb), 0.3)
  ) !important;
}

/* Fix for piano container spacing */
#piano-container.career__container {
  margin-top: 2rem; /* Space after the hologram */
}

/* Make the whole career section better arranged */
.career.section {
  position: relative;
  overflow: visible; /* Allow hologram to overflow if needed */
}

/* Create space for section titles */
.section__subtitle-piano,
.section__title-keys {
  position: relative;
  z-index: 10;
}
/*===================SCROLLUPSTYLE =====================*/

#scrollTopButton {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  text-decoration: none;
  border-radius: 50%;
  display: none; /* Initially hidden */
  height: 60px;
  width: 60px;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

#scrollTopButton:hover {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}



.scroll-show {
  display: flex; /* Make visible with flex for centering */
  transform: scale(1); /* Zoom in */
  opacity: 1; /* Fully visible */
}

.scroll-hide {
  transform: scale(0.7); /* Zoom out */
  opacity: 0; /* Fade out */
  pointer-events: none; /* Prevent interaction when hidden */
}

#scrollTopButton svg {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: color 0.3s ease;
  display: block;
  margin: auto;
  flex-shrink: 0;
}

/* White mode styles for scroll button */
.white-mode #scrollTopButton {
  border-color: rgba(0, 0, 0, 0.3);
}

.white-mode #scrollTopButton svg {
  color: #000;
}

/*===================Services =====================*/
.services__container {
  row-gap: 2rem;
  padding-block: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 2rem;
}

.services__card {
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: border 0.4s;
  width: 100%;
  max-width: 100%;
}

.services__icon {
  display: block;
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: 0.75rem;
}

.services__title {
  font-size: var(--h2-font-size);
  border: 2px solid var(--first-color);
}

.services__card:hover {
  border: 2px solid var(--first-color);
}

.section__title span {
  color: var(--first-color);
}

.section__subtitle {
  font-size: var(--h3-font-size);
}

.services__description {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 1090px) {
  .services__container {
    /* Adjust the number of columns and gap for mobile */
    grid-template-columns: 1fr; /* Single column for mobile */
    padding-block: 1.5rem;
    gap: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .services__card {
    /* Update card styles for mobile */
    padding: 2rem 1rem;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1090px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*===================footer =====================*/

.footer {
  background-color: hsla(0, 0%, 10%, 0.3);
  padding-block: 3.5rem 2rem;
  position: relative;
}

/* Top gradient border */
.footer__top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--first-color),
    transparent
  );
  opacity: 0.6;
}

.footer__container {
  row-gap: 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* Brand Section */
.footer__brand {
  text-align: left;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.75rem;
}

.footer__title span {
  color: var(--first-color);
}

.footer__tagline {
  font-size: var(--small-font-size);
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  opacity: 0.9;
}

.footer__location i {
  font-size: 1.25rem;
  color: var(--first-color);
}

/* Quick Links Section */
.footer__links {
  text-align: left;
}

.footer__links-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--first-color);
  transform: translateX(5px);
}

/* Social Section */
.footer__social-section {
  text-align: left;
}

.footer__social-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  display: flex;
  background-color: var(--first-color);
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 8px 16px rgba(var(--first-color), 0.3);
}

/* Bottom Section */
.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__rights {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  opacity: 0.7;
}

/* Light Theme */
body.light-theme .footer {
  background-color: hsla(0, 0%, 95%, 0.8);
}

body.light-theme .footer__bottom {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Footer Styles */
@media screen and (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__brand,
  .footer__links,
  .footer__social-section {
    text-align: center;
  }

  .footer__location {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__nav {
    align-items: center;
  }

  .footer__link:hover {
    transform: translateX(0);
  }
}

@media screen and (max-width: 480px) {
  .footer {
    padding-block: 2.5rem 1.5rem;
  }

  .footer__content {
    gap: 1.5rem;
  }

  .footer__title {
    font-size: var(--h2-font-size);
  }

  .footer__tagline,
  .footer__location {
    font-size: var(--smaller-font-size);
  }

  .footer__links-title,
  .footer__social-title {
    font-size: var(--normal-font-size);
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
  }

  .footer__bottom {
    padding-top: 1.5rem;
  }
}

/* --- Blob Hover Effects --- */
.home__blob {
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.home__blob:hover {
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 20px 24px hsla(var(--hue), 100%, 40%, 0.4));
}

.home__img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  transform-origin: center;
}

.home__blob:hover .home__img {
  transform: translate(30px, 35px) scale(0.95);
  filter: saturate(1.2) brightness(1.1);
}
