html,
body {
    height: 100%;
    margin: 0;
}

:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #5f5f5f;
    --border: #d9d9d9;
    --link: #111111;
    --accent: #4f8cff;
    --footer-text: #555555;
    --card-bg: #ffffff;
    --content-width: 680px;
    --side-padding: 20px;
}

html.dark-mode {
    --bg: #121212;
    --text: #f1f1f1;
    --muted: #b5b5b5;
    --border: #333333;
    --link: #f1f1f1;
    --accent: #7fb0ff;
    --footer-text: #bdbdbd;
    --card-bg: #1b1b1b;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Shared width */
.navbar,
.content,
.footer-navbar {
    max-width: var(--content-width);
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* Header */
.site-header {
    border-bottom: none;
}

.navbar {
    padding: 1rem var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    border-bottom: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 24px;
}

.nav-left a {
    text-decoration: none;
    color: var(--link);
    opacity: 0.72;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-left a:hover {
    opacity: 1;
}

.nav-left a.active {
    opacity: 1;
    font-weight: 600;
}

/* Main + Page Transition */
.container {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 2.5rem 0;

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.container.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.container.is-entering {
    opacity: 0;
    transform: translateY(8px);
}

.content {
    padding: 20px var(--side-padding);
    text-align: left;
}

.content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.content h2 {
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

.content p {
    font-size: 0.98rem;
    color: var(--muted);
    margin: 0 0 1rem 0;
}

.content a {
    color: var(--accent);
    text-underline-offset: 3px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.content a:hover {
    opacity: 0.75;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--muted);
}

.center-text-temp {
    text-align: center;
    font-size: 50px;
    margin-top: 35vh;
}

/* Projects */
.hero {
    margin-top: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid var(--border);
    padding: 20px;
    background-color: var(--card-bg);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

/* Footer */
.footer {
    border-top: none;
}

.footer-navbar {
    padding: 20px var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 2px solid var(--border);
    color: var(--footer-text);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-copy {
    color: var(--footer-text);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.footer-links img {
    position: absolute;
    inset: 0;
    width: 32px;
    height: 32px;
    display: block;
    transition: opacity 0.2s ease;
}

.icon-light {
    opacity: 1;
}

.icon-dark {
    opacity: 0;
}

html.dark-mode .icon-light {
    opacity: 0;
}

html.dark-mode .icon-dark {
    opacity: 1;
}

/* Theme toggle */
#theme-toggle {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#theme-toggle:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

#theme-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Optional contact page styles */
.contacts-navs a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.contacts-navs a:hover {
    opacity: 0.75;
}

.contact-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-links a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.skills {
    margin-top: 1rem;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.skill-label {
    min-width: 120px;
    font-size: 0.85rem;
    color: var(--muted);
}

.skill-badges img {
    height: 18px;
    margin: 1px 4px 1px 0;
}
.music-section {
  text-align: center;
  margin-top: 20px;
}

.music-section h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 5px;
  max-width: 500px;
  margin: 0 auto;
}

.album-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --side-padding: 16px;
        --content-width: 100%;
    }

    .navbar,
    .footer-navbar {
        font-size: 14px;
    }

    .container {
        padding: 2rem 0;
    }

    .content h1 {
        font-size: 1.8rem;
    }

    .content h2 {
        font-size: 1.25rem;
    }

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

    .contact-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

     .skill-label {
        min-width: 0;
    }
}