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

:root {
  --bg-primary: #0d0821;
  --bg-secondary: #1a0f3d;
  --bg-elevated: #251652;
  --text-primary: #f5f3ff;
  --text-secondary: #ddd6fe;
  --accent-primary: #7c3aed;
  --accent-hover: #8b5cf6;
  --border-subtle: rgba(124, 58, 237, 0.18);

  /* for dark mode high contrast */
  --hc-bg-primary: #000000;
  --hc-bg-secondary: #0a0a0a;
  --hc-bg-elevated: #1a1a1a;
  --hc-text-primary: #ffffff;
  --hc-text-secondary: #e0e0e0;
  --hc-accent-primary: #a78bfa;
  --hc-accent-hover: #c4b5fd;
  --hc-border-subtle: rgba(255, 255, 255, 0.3);
}

:root.light-mode {
  --bg-primary: #f5f1eb;
  --bg-secondary: #ebe4db;
  --bg-elevated: #f9f6f1;
  --text-primary: #2d2520;
  --text-secondary: #6b5d52;
  --accent-primary: #d97706;
  --accent-hover: #f59e0b;
  --border-subtle: rgba(0, 0, 0, 0.08);

  /* for l mode high contrast */
  --hc-bg-primary: #ffffff;
  --hc-bg-secondary: #f0f0f0;
  --hc-bg-elevated: #e0e0e0;
  --hc-text-primary: #000000;
  --hc-text-secondary: #333333;
  --hc-accent-primary: #0056b3;
  --hc-accent-hover: #003d82;
  --hc-border-subtle: rgba(0, 0, 0, 0.6);
}

*:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

.hero {
  background: linear-gradient(135deg, #1a0f3d 0%, #0d0821 40%, #140b30 100%);
}

.experience-section {
  background: linear-gradient(180deg, #1a0f3d 0%, #140b30 100%);
}

.sidebar {
  background: linear-gradient(180deg, #0d0821 0%, #1a0f3d 100%);
  border-right: 1px solid rgba(124, 58, 237, 0.25);
}

.play-btn-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.6);
}

.album-cover {
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.35);
}

.track:hover {
  background: rgba(124, 58, 237, 0.1);
}

.project-card:hover {
  box-shadow: 0 12px 40px var(--bg-elevated);
  transform: translateY(-8px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Circular", "Spotify",
    "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Loading Page */
.loading-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  opacity: 1;
  transition: opacity 1s ease-in-out;
  z-index: 9999;
}

.loading-page.hide {
  opacity: 0;
  pointer-events: none;
}

.vinyl-record {
  width: 250px;
  height: 250px;
  background: url("assets/mock-vinyl .png") no-repeat center center;
  background-size: cover;
  opacity: 0;
  animation: fadeIn 0.5s forwards, spin 2s linear infinite 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(940deg);
  }
}

.vinyl-record.zoom-out {
  animation: zoomOut 0.5s forwards;
}

@keyframes zoomOut {
  to {
    transform: scale(0);
    opacity: 0;
  }
}

.main-content {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.main-content.show {
  opacity: 1;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: var(--bg-primary);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  transition: width 0.3s ease;
  border-right: 1px solid var(--border-subtle);
}

.sidebar:hover {
  width: 280px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
  min-width: 28px;
}

.logo-text {
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar:hover .logo-text {
  opacity: 1;
}

.collapse-btn {
  display: none;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-icon {
  font-size: 24px;
  min-width: 24px;
}

.nav-text {
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.sidebar:hover .nav-text {
  opacity: 1;
}

.add-track-btn {
  margin-top: auto;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-hover) 100%
  );
  border: none;
  padding: 14px 24px;
  border-radius: 500px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  opacity: 0;
  text-align: center;
}

.sidebar:hover .add-track-btn {
  opacity: 1;
}

.add-track-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.add-track-icon {
  display: block;
  opacity: 1;
  font-size: 24px;
  padding: 8px;
}

.sidebar:hover .add-track-icon {
  display: none;
}

.add-track-text {
  display: none;
}

.sidebar:hover .add-track-text {
  display: block;
}

/* Main Content */
.main-content {
  margin-left: 72px;
  min-height: 100vh;
  padding-bottom: 100px;
  transition: margin-left 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 180px 80px 120px;
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  position: relative;
}

.hero-content {
  display: flex;
  align-items: flex-end;
  gap: 54px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-image {
  width: 320px;
  height: 320px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.hero-info {
  flex: 1;
  padding-bottom: 8px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.verified-icon {
  color: var(--accent-primary);
  font-size: 20px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -2px;
  line-height: 1;
}

.hero-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.play-btn-hero {
  width: 56px;
  height: 56px;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  position: relative;
}

.play-btn-hero:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

.play-btn-hero:hover .tooltip {
  color: var(--text-primary);
  opacity: 1;
  transform: translateY(-10px);
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.connect-btn {
  background: transparent;
  border: 2px solid var(--text-primary);
  padding: 12px 32px;
  border-radius: 500px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.connect-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Content Sections */
.content-section {
  padding: 60px 90px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

#contact .section-title {
  text-align: center;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-metadata {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.metadata-item {
  padding-bottom: 14px;
}

.metadata-item:last-child {
  border-bottom: none;
}

.metadata-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.metadata-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 400;
}

/* Experience Section */
.experience-section {
  padding: 80px 60px;
  background: var(--bg-secondary);
}

.experience-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 2fr;
  gap: 48px;
  /* align-items: stretch; */
}

.album-cover {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  box-shadow: 0 5px 32px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.album-cover:hover {
  transform: scale(1.02);
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.album-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 26px;
}

.album-info h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.album-info h2 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
}

.album-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track {
  display: grid;
  grid-template-columns: 50px 1fr 300px 100px;
  padding: 16px 24px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 4px;
  gap: 16px;
}

.track:hover {
  background: rgba(255, 255, 255, 0.1);
}

.album-art {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.track-num {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

.track:hover .track-num {
  display: none;
}

.play-icon {
  display: none;
  font-size: 16px;
  color: var(--accent-primary);
  text-align: center;
}

.track:hover .play-icon {
  display: block;
}

.track-info h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
}

.track-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.track-company {
  font-size: 14px;
  color: var(--text-secondary);
}

.track-date {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
}

/* Projects Section */
.projects-carousel {
  position: relative;
  margin-top: 24px;
  padding: 0 30px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  color: var(--text-primary);
  font-size: 20px;
}

.carousel-nav:hover {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.carousel-nav:disabled {
  opacity: 0.3;
}

.carousel-nav:disabled:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%);
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 4px;
}

.carousel::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: 4px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.carousel::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.project-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
  background-color: var(--bg-secondary);
  border: var(--accent-primary);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  min-width: 250px;
}

.project-card:hover {
  background: var(--bg-primary);
  transform: translateY(-4px);
}

.project-cover {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.project-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.project-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.project-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.project-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.project-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.play-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 16px;
}

.project-card:hover .play-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-info {
  padding: 16px;
}

.project-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact Section */
.content-section h2 {
  font-size: 2em;
}
.contact-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section .section-title {
  text-align: center;
  width: 100%;
}

.contact-content {
  max-width: 600px;
  margin: 24px auto 0;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.social-btn {
  position: relative;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-btn img {
  width: 45px;
  height: 45px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s;
}

.dark-icon {
  display: block;
}

.light-icon {
  display: none;
}

:root.light-mode .dark-icon {
  display: none;
}

:root.light-mode .light-icon {
  display: block;
}

.social-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.contact-form {
  background: var(--bg-elevated);
  padding: 32px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-hover);
  border: none;
  padding: 14px 48px;
  border-radius: 500px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
}

#successMessage {
  text-align: center;
  display: none;
  /* margin: 20px auto; */
  padding-top: 10px;
  font-weight: bold;
  font-size: 1em;
  color: var(--text-secondary);
}

#successMessage.error {
  color: var(--text-error);
}

/* Footer */
footer {
  background: var(--bg-primary);
  padding: 32px 60px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Bottom Playback Bar */
.playback-bar {
  position: fixed;
  bottom: 0;
  left: 72px;
  right: 0;
  height: 90px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 99;
  transition: left 0.3s ease;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.now-playing-cover img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  /* background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-hover) 100%
  ); */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.now-playing-info h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

.playback-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 2;
  gap: 8px;
  max-width: 600px;
}

.control-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.control-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.control-btn.play-pause {
  width: 32px;
  height: 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.control-btn.play-pause:hover {
  transform: scale(1.06);
}

.progress-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: #4d4d4d;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-track:hover .progress-fill {
  background: var(--accent-hover);
}

.extra-controls {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.theme-icon {
  font-size: 20px;
}

.theme-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  margin-right: 8px;
  z-index: 1000;
}

.theme-toggle:hover .theme-tooltip {
  color: var(--text-primary);
  opacity: 1;
  transform: translateY(-50px);
}

/* Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  z-index: 4000;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Modal Scrollbar */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}

/* Close Button */
.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Modal Header */
.modal h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.modal a:hover {
  color: var(--accent-hover);
}

/* Spotify Embed */
.modal iframe {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

/* Login Button Section */
#spotify-actions {
  margin-bottom: 20px;
  text-align: center;
}

#spotify-login-modal {
  padding: 12px 32px;
}

/* Search Section */
#spotify-search-section {
  margin-top: 20px;
}

.search-container {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#trackSearchInput {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

#trackSearchInput:focus {
  outline: none;
  border-color: var(--accent-primary);
}

#trackSearchInput::placeholder {
  color: var(--text-secondary);
}

#searchBtn {
  padding: 12px 24px;
  white-space: nowrap;
}

/* Search Results */
#searchResults {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#searchResults::-webkit-scrollbar {
  display: none;
}

#searchResults::-webkit-scrollbar-track {
  background: transparent;
}

#searchResults::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

#searchResults > p {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 14px;
}

/* Search Result Item */
.search-result {
  margin-bottom: 8px;
}

.track-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.track-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
}

/* Album Art */
.track-item .album-art {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Track Info */
.track-item .track-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* gap: 2px; */
}

.track-item .track-info strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-item .track-info .artist {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Add Button */
.track-item .add-btn {
  padding: 8px 20px;
  background: var(--accent-primary);
  border: none;
  border-radius: 500px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.track-item .add-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.track-item .add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* General Button Styles */
.btn {
  background: var(--accent-primary);
  border: none;
  padding: 12px 32px;
  border-radius: 500px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 3000;
}

/* Hidden State */
.hidden {
  display: none !important;
}

/* Responsive */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 150;
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.mobile-menu-btn span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn span:nth-child(1) {
  transform: translateY(-7px);
}

.mobile-menu-btn span:nth-child(2) {
  transform: translateY(0);
}

.mobile-menu-btn span:nth-child(3) {
  transform: translateY(7px);
}

/* Active state - X button */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

.mobile-menu-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-primary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .experience-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .album-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .album-header {
    padding-left: 0;
    text-align: center;
  }

  .track {
    grid-template-columns: 50px 1fr 120px;
  }

  .track-company {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }
  .carousel {
    gap: 16px;
  }

  .carousel-nav {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }

  .project-card {
    flex: 0 0 calc(85% - 8px);
    min-width: 280px;
  }

  /* Sidebar mobile styles */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Always show nav text on mobile when sidebar is open */
  .sidebar.mobile-open .nav-text {
    opacity: 1;
  }

  .sidebar.mobile-open .logo-text {
    opacity: 1;
  }

  .sidebar.mobile-open .add-track-btn {
    opacity: 1;
  }

  /* Adjust main content */
  .main-content {
    margin-left: 0;
  }

  .playback-bar {
    left: 0;
  }

  /* Hero section */
  .hero {
    padding: 120px 32px 80px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Content sections */
  .content-section {
    padding: 48px 24px;
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Experience section */
  .experience-section {
    padding: 60px 24px;
  }

  .album-cover {
    max-width: 250px;
  }

  .album-info h2 {
    font-size: 36px;
    text-align: center;
  }

  .track {
    grid-template-columns: 40px 1fr 80px;
    padding: 12px 16px;
    gap: 12px;
  }

  .track-info h4 {
    font-size: 14px;
  }

  .track-info p {
    font-size: 12px;
  }

  /* Projects carousel */
  .projects-carousel {
    padding: 0;
  }

  .carousel {
    gap: 16px;
  }

  .carousel-nav {
    display: none; /* Hide arrows on mobile, use swipe */
  }

  .project-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 160px;
  }

  /* Playback controls */
  .playback-controls {
    display: none;
  }

  .playback-bar {
    height: 70px;
    padding: 0 12px;
  }

  .now-playing-cover img {
    width: 44px;
    height: 44px;
  }

  .now-playing-info h4 {
    font-size: 12px;
  }

  .now-playing-info p {
    font-size: 10px;
  }

  .extra-controls {
    gap: 12px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .theme-icon {
    font-size: 18px;
  }

  /* Modal */
  .modal {
    width: calc(100vw - 32px);
    max-width: 400px;
    padding: 24px;
    max-height: 85vh;
  }

  .modal h3 {
    font-size: 20px;
  }

  .track-item {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    padding: 10px;
  }

  .track-item .album-art {
    width: 48px;
    height: 48px;
  }

  .track-item .track-info strong {
    font-size: 13px;
  }

  .track-item .track-info .artist {
    font-size: 11px;
  }

  .track-item .add-btn {
    padding: 6px 16px;
    font-size: 11px;
  }

  /* Contact form */
  .social-btn img {
    width: 40px;
    height: 40px;
  }

  .contact-form {
    padding: 24px;
  }

  /* Footer */
  footer {
    padding: 24px 20px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-meta {
    font-size: 12px;
  }

  .album-info h2 {
    font-size: 28px;
  }

  .project-card {
    flex: 0 0 calc(100% - 8px);
  }

  .section-title {
    font-size: 20px;
  }
}

/* Accessible */
/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Accessibility (ax) button */
.a11y-toggle-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
}

.a11y-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.a11y-toggle-btn:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

.a11y-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  color: var(--text-primary);
  margin-right: 8px;
  z-index: 1000;
}

.a11y-toggle-btn:hover .a11y-tooltip {
  color: var(--text-primary);
  opacity: 1;
  transform: translateY(-50px) translateX(+5px);
}

/* AX Panel */
.a11y-panel {
  position: fixed;
  bottom: 110px;
  right: 80px;
  width: 320px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 24px;
  z-index: 201;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

.a11y-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-subtle);
}

.a11y-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-close-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.a11y-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Panel Content */
.a11y-section {
  margin-bottom: 20px;
}

.a11y-section:last-child {
  margin-bottom: 0;
}

.a11y-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

/* Text Size Controls */
.text-size-controls {
  display: flex;
  gap: 8px;
}

.text-size-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.text-size-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.text-size-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.text-size-btn:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Toggle Switches */
.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.a11y-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-primary);
}

.a11y-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-toggle-description {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Custom Switch */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  transition: background 0.3s;
  border: 2px solid var(--border-subtle);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.3s;
}

.a11y-toggle input:checked + .switch {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.a11y-toggle input:checked + .switch::after {
  left: 22px;
  background: #fff;
}

.a11y-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.a11y-toggle input:focus-visible + .switch {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reset Button */
.a11y-reset-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.a11y-reset-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* AX modes */
/* Text Size Variations */

/* Small Text Size */
body.text-small {
  font-size: 14px;
}

body.text-small .hero h1 {
  font-size: 60px;
}

body.text-small .hero-meta {
  font-size: 13px;
}

body.text-small .verified-badge {
  font-size: 11px;
}

body.text-small .connect-btn {
  font-size: 13px;
}

body.text-small .section-title {
  font-size: 20px;
}

body.text-small .about-text,
body.text-small .metadata-value {
  font-size: 13px;
}

body.text-small .metadata-label {
  font-size: 10px;
}

body.text-small .album-info h2 {
  font-size: 40px;
}

body.text-small .album-info h3 {
  font-size: 11px;
}

body.text-small .album-meta {
  font-size: 13px;
}

body.text-small .track-info h4 {
  font-size: 14px;
}

body.text-small .track-info p {
  font-size: 12px;
}

body.text-small .track-company,
body.text-small .track-date {
  font-size: 12px;
}

body.text-small .project-info h3 {
  font-size: 13px;
}

body.text-small .project-info p {
  font-size: 11px;
}

body.text-small .contact-form input,
body.text-small .contact-form textarea,
body.text-small .contact-form button {
  font-size: 13px;
}

body.text-small footer {
  font-size: 11px;
}

body.text-small .sidebar {
  font-size: 13px;
}

body.text-small .logo-text {
  font-size: 20px;
}

body.text-small .nav-item {
  font-size: 12px;
}

body.text-small .nav-icon {
  font-size: 20px;
}

body.text-small .add-track-btn {
  font-size: 12px;
}

body.text-small .now-playing-info h4 {
  font-size: 12px;
}

body.text-small .now-playing-info p {
  font-size: 10px;
}

body.text-small .control-btn {
  font-size: 16px;
}

body.text-small .time {
  font-size: 10px;
}

body.text-small .modal {
  font-size: 13px;
}

body.text-small .modal h3 {
  font-size: 20px;
}

body.text-small .modal p {
  font-size: 12px;
}

body.text-small .btn,
body.text-small #trackSearchInput {
  font-size: 12px;
}

body.text-small .track-item .track-info strong {
  font-size: 13px;
}

body.text-small .track-item .track-info .artist {
  font-size: 11px;
}

body.text-small .track-item .add-btn {
  font-size: 11px;
  padding: 6px 16px;
}

body.text-small .a11y-panel {
  font-size: 13px;
}

body.text-small .a11y-panel-title {
  font-size: 18px;
}

body.text-small .text-size-btn {
  font-size: 12px;
  padding: 8px;
}

body.text-small .a11y-toggle-label {
  font-size: 12px;
}

body.text-small .a11y-toggle-description {
  font-size: 10px;
}

body.text-small .a11y-reset-btn {
  font-size: 12px;
}

/* Large Text Size */
body.text-large {
  font-size: 17px;
}

body.text-large .hero h1 {
  font-size: 84px;
}

body.text-large .hero-meta {
  font-size: 15px;
}

body.text-large .verified-badge {
  font-size: 13px;
}

body.text-large .connect-btn {
  font-size: 15px;
}

body.text-large .section-title {
  font-size: 28px;
}

body.text-large .about-text,
body.text-large .metadata-value {
  font-size: 16px;
}

body.text-large .metadata-label {
  font-size: 12px;
}

body.text-large .album-info h2 {
  font-size: 56px;
}

body.text-large .album-info h3 {
  font-size: 13px;
}

body.text-large .album-meta {
  font-size: 15px;
}

body.text-large .track-info h4 {
  font-size: 16px;
}

body.text-large .track-info p {
  font-size: 14px;
}

body.text-large .track-company,
body.text-large .track-date {
  font-size: 14px;
}

body.text-large .project-info h3 {
  font-size: 15px;
}

body.text-large .project-info p {
  font-size: 13px;
}

body.text-large .contact-form input,
body.text-large .contact-form textarea,
body.text-large .contact-form button {
  font-size: 15px;
}

body.text-large footer {
  font-size: 13px;
}

body.text-large .sidebar {
  font-size: 15px;
}

body.text-large .logo-text {
  font-size: 22px;
}

body.text-large .nav-item {
  font-size: 14px;
}

body.text-large .nav-icon {
  font-size: 22px;
}

body.text-large .add-track-btn {
  font-size: 14px;
}

body.text-large .now-playing-info h4 {
  font-size: 14px;
}

body.text-large .now-playing-info p {
  font-size: 12px;
}

body.text-large .control-btn {
  font-size: 18px;
}

body.text-large .time {
  font-size: 12px;
}

body.text-large .modal {
  font-size: 15px;
}

body.text-large .modal h3 {
  font-size: 22px;
}

body.text-large .modal p {
  font-size: 14px;
}

body.text-large .btn,
body.text-large #trackSearchInput {
  font-size: 14px;
}

body.text-large .track-item .track-info strong {
  font-size: 15px;
}

body.text-large .track-item .track-info .artist {
  font-size: 13px;
}

body.text-large .track-item .add-btn {
  font-size: 13px;
  padding: 8px 20px;
}

body.text-large .a11y-panel {
  font-size: 15px;
}

body.text-large .a11y-panel-title {
  font-size: 22px;
}

body.text-large .text-size-btn {
  font-size: 14px;
  padding: 10px;
}

body.text-large .a11y-toggle-label {
  font-size: 14px;
}

body.text-large .a11y-toggle-description {
  font-size: 11px;
}

body.text-large .a11y-reset-btn {
  font-size: 14px;
}

/* Extra Large Text Size */
body.text-xlarge {
  font-size: 19px;
}

body.text-xlarge .hero h1 {
  font-size: 96px;
}

body.text-xlarge .hero-meta {
  font-size: 17px;
}

body.text-xlarge .verified-badge {
  font-size: 15px;
}

body.text-xlarge .connect-btn {
  font-size: 17px;
}

body.text-xlarge .section-title {
  font-size: 32px;
}

body.text-xlarge .about-text,
body.text-xlarge .metadata-value {
  font-size: 18px;
}

body.text-xlarge .metadata-label {
  font-size: 14px;
}

body.text-xlarge .album-info h2 {
  font-size: 64px;
}

body.text-xlarge .album-info h3 {
  font-size: 15px;
}

body.text-xlarge .album-meta {
  font-size: 17px;
}

body.text-xlarge .track-info h4 {
  font-size: 18px;
}

body.text-xlarge .track-info p {
  font-size: 16px;
}

body.text-xlarge .track-company,
body.text-xlarge .track-date {
  font-size: 16px;
}

body.text-xlarge .project-info h3 {
  font-size: 17px;
}

body.text-xlarge .project-info p {
  font-size: 15px;
}

body.text-xlarge .contact-form input,
body.text-xlarge .contact-form textarea,
body.text-xlarge .contact-form button {
  font-size: 17px;
}

body.text-xlarge footer {
  font-size: 15px;
}

body.text-xlarge .sidebar {
  font-size: 17px;
}

body.text-xlarge .logo-text {
  font-size: 24px;
}

body.text-xlarge .nav-item {
  font-size: 16px;
}

body.text-xlarge .nav-icon {
  font-size: 24px;
}

body.text-xlarge .add-track-btn {
  font-size: 16px;
}

body.text-xlarge .now-playing-info h4 {
  font-size: 16px;
}

body.text-xlarge .now-playing-info p {
  font-size: 14px;
}

body.text-xlarge .control-btn {
  font-size: 20px;
}

body.text-xlarge .time {
  font-size: 14px;
}

body.text-xlarge .modal {
  font-size: 17px;
}

body.text-xlarge .modal h3 {
  font-size: 24px;
}

body.text-xlarge .modal p {
  font-size: 16px;
}

body.text-xlarge .btn,
body.text-xlarge #trackSearchInput {
  font-size: 16px;
}

body.text-xlarge .track-item .track-info strong {
  font-size: 17px;
}

body.text-xlarge .track-item .track-info .artist {
  font-size: 15px;
}

body.text-xlarge .track-item .add-btn {
  font-size: 15px;
  padding: 10px 24px;
}

body.text-xlarge .a11y-panel {
  font-size: 17px;
}

body.text-xlarge .a11y-panel-title {
  font-size: 24px;
}

body.text-xlarge .text-size-btn {
  font-size: 16px;
  padding: 12px;
}

body.text-xlarge .a11y-toggle-label {
  font-size: 16px;
}

body.text-xlarge .a11y-toggle-description {
  font-size: 12px;
}

body.text-xlarge .a11y-reset-btn {
  font-size: 16px;
}

/* Mobile Responsive Text Sizes */
@media (max-width: 768px) {
  body.text-small .hero h1 {
    font-size: 42px;
  }

  body.text-large .hero h1 {
    font-size: 56px;
  }

  body.text-xlarge .hero h1 {
    font-size: 54px;
  }

  body.text-small .album-info h2 {
    font-size: 32px;
  }

  body.text-large .album-info h2 {
    font-size: 38px;
  }

  body.text-xlarge .album-info h2 {
    font-size: 42px;
  }

  .a11y-panel {
    bottom: 90px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  .text-size-controls {
    gap: 6px;
  }

  body.text-small .text-size-btn {
    padding: 6px;
    font-size: 11px;
  }

  body.text-large .text-size-btn {
    padding: 8px;
    font-size: 13px;
  }

  body.text-xlarge .text-size-btn {
    padding: 10px;
    font-size: 15px;
  }
}

/* High Contrast Mode */
body.high-contrast {
  --bg-primary: var(--hc-bg-primary);
  --bg-secondary: var(--hc-bg-secondary);
  --bg-elevated: var(--hc-bg-elevated);
  --text-primary: var(--hc-text-primary);
  --text-secondary: var(--hc-text-secondary);
  --accent-primary: var(--hc-accent-primary);
  --accent-hover: var(--hc-accent-hover);
  --border-subtle: var(--hc-border-subtle);
}

body.high-contrast .hero {
  background: var(--hc-bg-primary);
}

body.high-contrast .experience-section {
  background: var(--hc-bg-secondary);
}

body.high-contrast *:focus-visible {
  outline: 4px solid var(--hc-accent-primary);
  outline-offset: 3px;
}

body.high-contrast .track:hover {
  background: rgba(167, 139, 250, 0.2);
}

body.high-contrast .nav-item:hover,
body.high-contrast .nav-item.active {
  background: rgba(167, 139, 250, 0.2);
}

/* Dyslexia-Friendly Font */
@import url("https://fonts.cdnfonts.com/css/opendyslexic");

body.dyslexia-font {
  font-family: "OpenDyslexic", "Comic Sans MS", sans-serif !important;
}

body.dyslexia-font * {
  font-family: "OpenDyslexic", "Comic Sans MS", sans-serif !important;
}

/* Increase letter spacing for dyslexia mode */
body.dyslexia-font {
  letter-spacing: 0.05em;
  line-height: 1.8;
}

body.dyslexia-font .hero h1,
body.dyslexia-font .album-info h2 {
  letter-spacing: 0;
}

/* docused indicators */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.carousel-nav:focus-visible {
  outline: 4px solid var(--accent-primary);
  outline-offset: 4px;
}

/* responsive adjustments */
@media (max-width: 768px) {
  .a11y-panel {
    bottom: 90px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: 400px;
    margin: 0 auto;
  }

  .a11y-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Ensure text sizes work on mobile */
  body.text-xlarge .hero h1 {
    font-size: 54px;
  }

  body.text-large .hero h1 {
    font-size: 56px;
  }
}

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

  .text-size-controls {
    gap: 6px;
  }

  .text-size-btn {
    padding: 8px;
    font-size: 12px;
  }
}

/*  */
@media (max-width: 768px) {
  body.text-xlarge .hero h1 {
    font-size: 54px;
  }

  body.text-large .hero h1 {
    font-size: 56px;
  }

  body.text-small .hero h1 {
    font-size: 42px;
  }

  body.text-xlarge .album-info h2 {
    font-size: 42px;
  }

  body.text-large .album-info h2 {
    font-size: 38px;
  }

  body.text-small .album-info h2 {
    font-size: 32px;
  }
}

/* Better contrast for text-secondary in light mode */
:root.light-mode {
  --text-secondary: #5a4a3f;
}

/* Better contrast for disabled buttons */
button:disabled,
.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* print styles */

@media print {
  .sidebar,
  .playback-bar,
  .a11y-panel,
  .loading-page,
  .mobile-menu-btn {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  body {
    background: white;
    color: black;
  }
}
