body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f8fa;
  color: #333;
}

/* ===== MUSIC PLAYER BAR ===== */
.music-player-bar {
  background: linear-gradient(90deg, #023e8a, #0077b6);
  color: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.music-player-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.player-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.player-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.player-btn:active {
  transform: scale(0.95);
}

.music-info {
  flex: 1;
  min-width: 150px;
}

.song-title {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #00b4d8;
  width: 0%;
  transition: width 0.1s linear;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.volume-icon {
  font-size: 1.1rem;
}

.volume-slider {
  width: 100px;
  height: 4px;
  cursor: pointer;
  accent-color: #00b4d8;
}

/* Dark mode music player */
body.dark-mode .music-player-bar {
  background: linear-gradient(90deg, #0d1117, #161b22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .player-btn {
  background-color: rgba(88, 166, 255, 0.2);
  color: #58a6ff;
}

body.dark-mode .player-btn:hover {
  background-color: rgba(88, 166, 255, 0.3);
}

/* Responsive design for music player */
@media (max-width: 768px) {
  .music-player-content {
    gap: 0.75rem;
  }

  .volume-slider {
    width: 80px;
  }

  .song-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .music-player-bar {
    padding: 0.5rem;
  }

  .music-player-content {
    gap: 0.5rem;
  }

  .volume-control {
    gap: 0.25rem;
  }

  .volume-slider {
    width: 60px;
  }

  .player-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

header {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  overflow-x: hidden;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Profile picture styling */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 0 auto 1.5rem auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Dark mode profile picture styling */
body.dark-mode .profile-pic {
  border-color: rgba(88, 166, 255, 0.4);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

body.dark-mode .profile-pic:hover {
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.buttons {
  margin-top: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.button {
  text-decoration: none;
  color: white;
  background-color: #023e8a;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  max-width: calc(100% - 1rem);
}

.button:hover {
  background-color: #0077b6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.projects {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s, opacity 0.3s;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.95;
}

.project:hover {
  transform: translateY(-5px);
  opacity: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.project h3 {
  margin-top: 0;
  color: #0077b6;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: #00b4d8;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f1f1f1;
  font-size: 0.9rem;
  color: #666;
}

footer .button {
  margin-top: 0.5rem;
}

/* Changelog box */
.changelog {
  margin-top: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #ffffff;
  border: 2px solid #e1e4e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  text-align: left;
  animation: slideDown 0.3s ease-out;
}

.changelog h3 {
  margin-top: 0;
  color: #0077b6;
  border-bottom: 2px solid #0077b6;
  padding-bottom: 0.5rem;
}

.changelog pre {
  background-color: #f6f8fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}


body.dark-mode .changelog {
  background-color: #161b22;
  border-color: #30363d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .changelog h3 {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

body.dark-mode .changelog pre {
  background-color: #0d1117;
  color: #c9d1d9;
}

/* Hide by default */
.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#changelogToggle {
  transition: all 0.3s ease;
}

#changelogToggle:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 1rem auto;
  }

  .button {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    min-width: auto;
    max-height: 32px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills ul {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .skills li {
    max-width: 100%;
  }

  .about,
  .blog,
  .skills,
  .projects {
    padding: 1.5rem 1rem;
  }

  .about h2,
  .blog h2,
  .skills h2,
  .projects h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.85rem;
  }

  .buttons {
    max-width: 100%;
    padding: 0;
    width: 100%;
  }

  .button {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    margin: 0.25rem;
    width: calc(100% - 0.5rem);
    max-width: none;
  }

  .theme-toggle {
    position: fixed;
    top: auto;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    min-width: auto;
  }
}

body.dark-mode {
  background-color: #0d1117;
  color: #f0f0f0;
}

body.dark-mode header {
  background: linear-gradient(135deg, #1a2332, #2c3e50);
  color: #ffffff;
}

body.dark-mode .button {
  background-color: #2ea44f;
  color: #ffffff;
  border: 1px solid #3fb950;
}

body.dark-mode .button:hover {
  background-color: #3fb950;
  box-shadow: 0 4px 16px rgba(63, 185, 80, 0.4);
}

body.dark-mode .project {
  background-color: #161b22;
  color: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #30363d;
}

body.dark-mode .project:hover {
  border-color: #58a6ff;
  box-shadow: 0 6px 18px rgba(88, 166, 255, 0.15);
}

body.dark-mode .project h3 {
  color: #58a6ff;
}

body.dark-mode .project-link {
  color: #58a6ff;
}

body.dark-mode .project-link:hover {
  color: #79c0ff;
}

body.dark-mode footer {
  background-color: #161b22;
  color: #c9d1d9;
  border-top: 1px solid #30363d;
}
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  cursor: pointer;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: auto;
  height: auto;
  display: inline-block;
  line-height: 1;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .theme-toggle {
  background-color: rgba(88, 166, 255, 0.15);
  border-color: rgba(88, 166, 255, 0.3);
  color: #58a6ff;
}

body.dark-mode .theme-toggle:hover {
  background-color: rgba(88, 166, 255, 0.25);
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}
.about,
.blog,
.skills {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.about h2,
.blog h2,
.skills h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: auto;
  color: #333;
}

.about-image-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.about-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .about p,
body.dark-mode .skills h2,
body.dark-mode .blog h2,
body.dark-mode .about h2 {
  color: #f1f1f1;
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center;
  box-sizing: border-box;
}

.skills li {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 116, 217, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
  text-align: center;

  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.skills li:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 116, 217, 0.5);
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.skills li.info-box {
  cursor: help;
}

.skills li.clickable-box {
  cursor: pointer;
}

.skills li.clickable-box a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.skills li.clickable-box a:visited,
.skills li.clickable-box a:hover,
.skills li.clickable-box a:active {
  color: inherit;
}
/* OLD DARK MODE SKILL STYLES
body.dark-mode .skills li {
  background: linear-gradient(135deg, #1f6feb, #0969da);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(31, 111, 235, 0.4);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

body.dark-mode .skills li:hover {
  background: linear-gradient(135deg, #58a6ff, #1f6feb);
  box-shadow: 0 6px 12px rgba(88, 166, 255, 0.6);
  border-color: rgba(88, 166, 255, 0.5);
}
*/

body.dark-mode .skills li {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(14, 116, 144, 0.4);
  border: 1px solid rgba(8, 145, 178, 0.3);
}

body.dark-mode .skills li:hover {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  box-shadow: 0 6px 12px rgba(8, 145, 178, 0.6);
  border-color: rgba(6, 182, 212, 0.5);
}

header {
  position: relative;
}

/* Loading state for changelog */
#changelogContent.loading::before {
  content: "Loading...";
  opacity: 0.6;
  font-style: italic;
}
/* Version info styling */
#versionContent {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin: 0.3rem 0;
}

/* Smooth transitions for interactive elements */
.button,
.project,
.skills li {
  will-change: transform;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #0077b6;
  outline-offset: 2px;
}

body.dark-mode *:focus-visible {
  outline-color: #2ec4b6;
}

/* Improved button accessibility */
.button:focus,
.theme-toggle:focus {
  outline: 2px solid #58a6ff;
  outline-offset: 3px;
}

/* Skip to main content link (for screen readers) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0077b6;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
