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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle .icon-dark,
.theme-toggle .icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-light {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-dark,
:root:not([data-theme="dark"]) .theme-toggle .icon-dark {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-light,
:root:not([data-theme="dark"]) .theme-toggle .icon-light {
    display: none;
}

:root {
    --primary: #4ea8de;
    --secondary: #caf0f8;
    --background: #ffffff;
    --text: #222;
    --accent: #0077b6;
    --text-muted: #666;
    --card-bg: #ffffff;
    --border-color: #ccc;
    --footer-bg: #0a0f1a;
    --footer-text: #666;
    --footer-border: #1e293b;
    --shadow-alpha: 0.05;
}

[data-theme="dark"] {
    --primary: #58a6ff;
    --secondary: #21262d;
    --background: #0d1117;
    --text: #e6edf3;
    --accent: #79c0ff;
    --text-muted: #8b949e;
    --card-bg: #161b22;
    --border-color: #30363d;
    --footer-bg: #010409;
    --footer-text: #8b949e;
    --footer-border: #21262d;
    --shadow-alpha: 0.35;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Push footer to bottom when content is short */
body > nav + section,
body > nav + div {
    flex: 1;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 10%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main:focus {
  outline: none;
}

.text {
  max-width: 600px;
}

.text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text h1 span {
  color: var(--primary);
}

.text h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 1rem;
  cursor: pointer;
}

.btn.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--background);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(78, 168, 222, 0.5);
}

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

.btn:active {
  transform: scale(0.98);
}

.socials {
  margin-top: 2rem;
}

.socials a {
  color: var(--primary);
  font-size: 2rem;
  margin-right: 1rem;
  transition: color 0.3s;
}

.socials a:hover {
  color: var(--accent);
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(78, 168, 222, 0.6));
}

.socials a {
  display: inline-block;
  transition: color 0.3s, transform 0.2s ease;
}

.socials a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.journal-section {
  padding: 4rem 10%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.journal-section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.journal-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.journal-section h2 {
  text-align: center;
}

.journal-section .journal-list,
.journal-section .journal-placeholder {
  text-align: left;
}

.journal-placeholder {
  margin-top: 0.5rem;
}

.journal-placeholder.journal-loading {
  color: var(--primary);
  font-style: italic;
}

.journal-placeholder.journal-error {
  color: var(--accent);
}

.journal-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
}

.journal-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, var(--shadow-alpha));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.journal-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.journal-card-title a {
  color: var(--primary);
  text-decoration: none;
}

.journal-card-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.journal-card-date {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.journal-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.journal-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.journal-card-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Journal page: flexbox — journal centered in remaining space, music sidebar on the right */
.journal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  min-height: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  align-items: start;
}

.journal-layout .journal-section {
  flex: 1 1 400px;
  min-width: 0;
  margin: 0 auto;
  max-width: 700px;
  padding: 0;
  text-align: center;
}

.journal-layout .journal-section .journal-list,
.journal-layout .journal-section .journal-placeholder {
  text-align: left;
}

.journal-layout .music-sidebar {
  flex: 0 0 320px;
}

@media (max-width: 900px) {
  .journal-layout {
    flex-direction: column;
    padding: 4rem 10%;
    align-items: stretch;
  }

  .journal-layout .journal-section {
    max-width: none;
  }

  .journal-layout .music-sidebar {
    flex: 0 0 auto;
  }
}

/* Music sidebar */
.music-sidebar {
  position: sticky;
  top: 5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, var(--shadow-alpha));
  text-align: center;
}

.music-sidebar-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.music-playlist-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.music-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.music-placeholder.music-loading {
  color: var(--primary);
  font-style: italic;
}

.music-placeholder.music-error {
  color: var(--accent);
}

.music-current {
  margin-bottom: 0;
}

.music-current[hidden],
.music-playlist[hidden] {
  display: none;
}

.music-thumb-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
  background: var(--border-color);
}

.music-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-thumb-wrap + .music-actions {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.music-song-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.music-author {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.music-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.music-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.music-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.music-play-btn:hover,
.music-play-btn:focus-visible {
  background: var(--accent);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.music-play-btn:focus:not(:focus-visible) {
  outline: none;
}

.music-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

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

.music-empty,
.music-playlist-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Music playlist cards */
.music-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.music-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.music-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, var(--shadow-alpha));
}

.music-card-info {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.music-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.music-card-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.music-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.music-card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.music-play-btn-sm {
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
}

.music-play-btn-sm i {
  font-size: 0.75rem;
}

/* Music modal (YouTube player) */
.music-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.music-modal.music-modal-open {
  visibility: visible;
  opacity: 1;
}

.music-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.music-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.music-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.music-modal-close:hover,
.music-modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.85);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.music-modal-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.music-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Single journal entry page */
.journal-post-wrapper {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 10% 2rem;
  position: relative;
  z-index: 1;
}

.journal-back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.journal-back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.journal-post-loading,
.journal-post-error {
  color: var(--text-muted);
  font-style: italic;
}

.journal-post-error {
  color: var(--accent);
}

.journal-post-article {
  margin-top: 0;
}

.journal-post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.journal-post-date {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.journal-post-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.journal-post-body br {
  display: block;
  margin-bottom: 0.5em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.9rem;
  border-top: 1px solid var(--footer-border);
  position: relative;
}

footer .socials {
  position: absolute;
  left: 2rem;
  margin: 0;
}


/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    top: 0;
    color: var(--primary);
    animation: animate 6s linear infinite;
}

.star::before {
    content: '\f005';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    text-shadow: 
        0 0 5px var(--primary),
        0 0 15px var(--primary),
        0 0 30px var(--primary);
}
@keyframes animate{
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    80%{
        opacity: 1;
    }
    100%{
        transform: translateY(150vh) rotate(360deg);
        opacity: 0;
    }
}

/* Bubbles background */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(78, 168, 222, 0.15);
    border: 1px solid rgba(78, 168, 222, 0.25);
    animation: bubble-float 16s ease-in-out infinite;
}

@keyframes bubble-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/*Gallery (used in About page) */
.gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.gallery h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.gallery .about-photo {
  max-width: 280px;
  width: 100%;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--secondary);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .navbar.open .nav-links {
    display: flex;
  }

  .navbar.open .nav-toggle i.fa-bars::before {
    content: "\f00d";
  }

  .main {
    flex-direction: column;
    text-align: center;
  }

  .gallery {
    padding: 1rem 0;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

/* Projects Section (used in Projects page) */
.projects-wrapper {
  position: relative;
  z-index: 1;
  padding: 2rem 20px 20px;
}

.projects-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.project {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, var(--shadow-alpha));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 20px rgba(78, 168, 222, 0.2);
  border-color: var(--primary);
}

.project h2 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.project img {
  width: 100px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.project p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.project .pbtn {
  margin-top: auto;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  margin-bottom: 8px;
  background: var(--secondary);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
}

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 10px;
  text-decoration: none;
  background-color: var(--accent);
  color: var(--background);
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pbtn:hover {
  background-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(78, 168, 222, 0.5);
}

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

.pbtn:active {
  transform: scale(0.98);
}

@media (min-width: 900px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Page */
.contact {
  max-width: 700px;
  margin: 6rem auto;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.contact-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-email a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

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

.contact-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row input,
.form-row textarea {
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text);
  background: transparent;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: var(--primary);
}

textarea {
  resize: none;
}

/* Submit button */
.submit-btn {
  background: none;
  border: 2px solid var(--primary);
  border-radius: 25px;
  padding: 0.6rem 2rem;
  min-height: 44px;
  box-sizing: border-box;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--primary);
  color: #fff;
}

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

.form-success {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--secondary);
}

.form-success[hidden] {
  display: none;
}

.form-error {
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--secondary);
}

/* About page: Tech I use */
.skills-section {
  margin-top: 2rem;
}

.skills-section h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.skills-subhead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.skills-section .skills-subhead:first-of-type {
  margin-top: 0.5rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-list li {
  margin: 0;
}

.skill-tag {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: var(--secondary);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .star::before {
    animation: none;
    opacity: 0.6;
  }

  .bubble {
    animation: none;
    opacity: 0.2;
  }

  .btn,
  .pbtn,
  .socials a,
  .project,
  .gallery img {
    transition-duration: 0.01ms;
  }
}
