html {
    font-size: clamp(14px, 1.5vw, 18px);
  }

  body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    max-height: 1800px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #F4EFEF;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins', sans-serif;
  }

  
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }

  .nav-buttons {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 220px;
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-buttons.open {
    transform: translateX(0);
  }

  .nav-buttons a,
  .nav-buttons button {
    margin: 15px 0;
  }

  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 1rem 40px 1rem;
    gap: 20px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-subtext {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .hero-image img {
    width: 60%;
    margin-top: 20px;
  }

  .recently-played {
    padding: 20px 10px;
  }

  .song-list {
    gap: 15px;
  }

  .song-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .song-card img {
    width: 50px;
    height: 50px;
  }

  .song-info h3 {
    font-size: 1rem;
  }

  .song-info p {
    font-size: 0.85rem;
  }

  .spotify-widget iframe {
    height: 70px;
  }
}


.header-container {
    width: 100%;
    max-width: 1440px;
    padding: 80px 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items:center;
    padding: 20px;
}


.header-logo img {
    position:absolute;
    width: 80px;
    top:15px;
    left: 20px;
    cursor: pointer; 
    transition: transform 0.3s ease-in-out;
}


.header-logo img:hover {
    transform: scale(1.1);
}

.toggle-button {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.toggle-button:focus-visible,
.toggle-button img:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.nav-buttons {
  position: relative; 
  top: 0; 
  right: 0;
  display: flex;
  align-items: center; 
  gap: 2vw;
  font-size: 1.6rem;
  padding: 2rem;
  font-weight: bold;
  font-family: 'Jockey One', sans-serif;
}


.navbar a {
    text-decoration: none;
    color: #333;
}


.navbar a:hover {
    transform: scale(1.1);
}

.hamburger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}


.typing-heading {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Jockey One', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--text-color); 
  width: fit-content;
  animation: typing 2s steps(20, end), blink 0.75s step-end infinite;
}


.typing-text {
  display: inline-block;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* animation */
@keyframes typing {
  from { width: 0 }
  to { width: 10ch } 
}

/*blinking*/
@keyframes blink {
  50% { border-color: transparent }
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding-top: 120px; 
  padding-bottom: 80px;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
  gap:40px;
}

.hero-content {
  flex: 1;
}

.hero-subtext {
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: 300;
}

.hero-image img {
    width: clamp(100px, 30vw, 330px);
    height:auto;
    transform:scaleX(-1);
    margin-top:50px;
}

.hero-image {
    position: relative;
    display: inline-block;
}

/*  Light Mode (Default) */
:root {
    --card-bg: #E9D9D9; 
    --card-shadow: rgba(0, 0, 0, 0.1); 
}

/*  Dark Mode (Ensuring Similar Contrast to Light Mode) */
body.dark-mode {
    --card-bg: #292D33; 
    --card-shadow: rgba(255, 255, 255, 0.1);
}

.spotify-widget {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.spotify-widget iframe {
  width: 100%;
  max-width: 400px;
  height: 80px;
  border: none;
}

.recently-played {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
}

.recently-played h2 {
  font-family: 'Jockey One', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.song-card {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: transform 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
}

.song-card img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.song-info h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: var(--text-color);
}

.song-info p {
  font-size: 0.9rem;
  margin: 4px 0;
  color: var(--text-color);
}

.song-info a {
  font-size: 0.85rem;
  color: #1DB954;
  text-decoration: none;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none; 
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.2s ease-in-out;
}

#backToTop:hover {
  background-color: #555;
  transform: scale(1.1);
}
