* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    color: #000;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.mobile-overlay p {
    margin: 0;
}

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

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #f8f8f8 0%, #e8e8e8 50%, #d8d8d8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.dark {
    background: radial-gradient(circle at center, #1a1a1a 0%, #111 50%, #0a0a0a 100%);
}

.loading-content {
    text-align: center;
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
}

.loading-branding {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    position: relative;
    animation: breathe 2s ease-in-out infinite;
}

.loading-screen.dark .loading-branding {
    color: #fff;
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(34, 34, 34, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.loading-screen.dark .pulse-ring {
    border-color: rgba(255, 255, 255, 0.3);
}

.pulse-ring.delay-1 {
    animation-delay: 0.4s;
}

.pulse-ring.delay-2 {
    animation-delay: 0.8s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

@keyframes pulseRing {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
        border-width: 2px;
    }
    50% {
        width: 60px;
        height: 60px;
        opacity: 0.6;
        border-width: 1px;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
        border-width: 0px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: 'Inter', sans-serif;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95vh; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(12px);
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 99%);
}

.banner-toggle {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2;
    font-size: 1.2rem;
    user-select: none;
}

body.dark .banner-footer {
    color: #bbb;
}

.spotify-link {
    color: #1db954;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 24px;
}

body.dark .footer-container {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-separator {
    width: 1px;
    height: 16px;
    background-color: #666;
    opacity: 0.3;
}

body.dark .navbar-separator {
    background-color: #bbb;
    opacity: 0.3;
}

.navbar-button {
    font-family: 'Lexend', serif;
    font-size: 0.85rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 16px;
    transition: all 0.2s ease;
    font-weight: 400;
    opacity: 0.8;
}

.navbar-button:hover {
    opacity: 1;
    background-color: rgba(102, 102, 102, 0.1);
}

.navbar-button.active {
    opacity: 1;
    background-color: rgba(102, 102, 102, 0.15);
    font-weight: 500;
}

body.dark .navbar-button {
    color: #bbb;
}

body.dark .navbar-button:hover {
    background-color: rgba(187, 187, 187, 0.1);
}

body.dark .navbar-button.active {
    background-color: rgba(187, 187, 187, 0.15);
}

.status-footer {
    font-family: 'Lexend', serif;
    font-size: 0.59rem;
    color: #666;
    font-weight: 400;
    opacity: 0.95;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.clock-display {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.clock-display i {
    font-size: 0.75rem;
}

body.dark .clock-display {
    color: #bbb;
}

.status-line i {
    margin-right: -0.2px;
}

.spotify-link:hover {
    color: #1ed760;
    text-decoration: underline;
}

body.dark .status-footer {
    color: #bbb;
}

body.dark .spotify-link {
    color: #1db954;
}

.text-green { color: #2ecc71; }
.text-yellow { color: #f1c40f; }
.text-red { color: #e74c3c; }
.text-gray { color: #7f8c8d; }

.wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 15vh;
    padding: 0 20px;
    gap: 60px;
    z-index: 10;
}

.branding {
    margin-top: 2.4rem;
}

.branding .initials {
    margin-top: -5.7rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    user-select: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.2em;
    transform: rotate(180deg);
    cursor: pointer;
    z-index: 10;
}

span.initials {}

.branding.hidden {
    display: none;
}

.side-icon {
    font-size: 0.55rem;
    display: inline-block;
    transform: rotate(90deg) translateY(-1px);
    opacity: 0.6;
    line-height: 1;
    margin-top: -0.7em;
    margin-left: .6em;
    align-self: flex-end;
    transition: color 0.3s ease;
    z-index: 10;
}

.content {
    max-width: 700px;
    text-align: left;
    margin-top: -4.7rem;
    /* margin-bottom: 2rem; */
    z-index: 10;
}

.techbox {
    max-width: 700px;
    text-align: left;
    margin-top: 7.2rem;
    z-index: 10;
    margin-left: 5rem;
}

.techcontent {
    max-width: 700px;
    text-align: left;
    margin-top: 3.2rem;
    z-index: 10;
    margin-left: 5rem;
}

.content.hidden {
    display: none;
}

.techcontent.hidden {
    display: none;
}

.hcontent.hidden {
    display: none;
}

.intro p {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 1.2em;
    z-index: 10;
}

.separator {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 1.5em 0;
    margin-top: -0.2rem;
}

.notice p {
    font-family: 'Playfair Display', serif;
    margin-top: -0.8rem;
    font-size: 0.9rem;
    color: #5d5252;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    position: relative;
    z-index: 10;
}

.notice a {
    color: #21262e;
    text-decoration: none;
    font-weight: 500;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    position: relative;
    z-index: 10;
}

.notice a:hover {
    color: #000;
}

.timeline {
    margin-top: 4em;
    z-index: 10;
}

.timeline h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.8em;
    z-index: 10;
}

.timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1em;
    z-index: 10;
}

.entry-icon {
    width: 24px;
    height: 24px;
    border: 1px solid #0000;
    border-radius: 4px;
    object-fit: contain;
    margin-top: -.2em;
    z-index: 10;
}

.entry-text {
    font-size: 1rem;
    z-index: 10;
}

.entry-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    z-index: 10;
}

.arrow-icon {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-left: 8px;
    transition: transform 0.3s ease;
    z-index: 10;
}

.project-details {
    font-family: 'Lexend', serif;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.entry-text:hover .project-details {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.entry-text:hover .arrow-icon {
    transform: rotate(180deg);
    opacity: 0.9;
}

body.dark .project-details {
    color: #aaa;
}

body.dark .arrow-icon {
    color: #ccc;
}

body.dark {
    background-color: #111;
    color: #eee;
}

body.dark .branding .initials {
    color: #fff;
}

body.dark .intro p,
body.dark .entry-text,
body.dark .timeline h2 {
    color: #ddd;
}

body.dark .notice a {
    color: #dcd9d9;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body.dark .notice p {
    color: #aeabab;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body.dark .separator {
    background-color: #333;
}

body.dark .entry-icon {
    border-color: #0000;
}

body.dark .year {
    color: #666;
}

body.dark .side-icon {
    color: #bbb;
    opacity: 0.7;
}

.dark-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
}

.dark-toggle input {
    display: none;
}

.dark-toggle span {
    cursor: pointer;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 2em 0;
    z-index: 10;
}

.quicklink-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.5em;
    z-index: 10;
}

.quicklink-entry .entry-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 0.1em;
    z-index: 10;
}

.quick-link-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.quick-link-name:hover .redirect-icon {
    transform: scale(1.1);
    opacity: 1;
}

.redirect-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quicklink-description {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    color: #555;
}

body.dark .quick-link-name {
    color: #ddd;
}

body.dark .quicklink-description {
    color: #aaa;
}

.topright-toggle-panel {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    z-index: 100;
}

body.dark .topright-toggle-panel {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.topright-toggle-panel button {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.topright-toggle-panel button:hover {
    background-color: rgba(102, 102, 102, 0.1);
    color: #000;
}

body.dark .topright-toggle-panel button {
    color: #bbb;
}

body.dark .topright-toggle-panel button:hover {
    background-color: rgba(187, 187, 187, 0.1);
    color: #fff;
}

.banner-pack-menu {
    position: absolute;
    top: 0;
    right: 100%;
    transform: translateX(-4px);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    z-index: 200;
    display: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateX(-4px) scale(0.95);
}

.banner-pack-menu.active {
    display: block;
    opacity: 1;
    transform: translateX(-4px) scale(1);
    margin-right: 0.60rem;
}

body.dark .banner-pack-menu {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.banner-pack-list {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.banner-pack-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 32px;
    height: 32px;
    color: #666;
    position: relative;
    overflow: hidden;
}

.banner-pack-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(102, 102, 102, 0);
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.8);
    opacity: 0;
}

.banner-pack-item:hover::before {
    background-color: rgba(102, 102, 102, 0.1);
    transform: scale(1);
    opacity: 1;
}

.banner-pack-item:hover {
    color: #000;
    transform: translateY(-1px);
}

.banner-pack-item:active {
    transform: translateY(0) scale(0.95);
}

body.dark .banner-pack-item {
    color: #bbb;
}

body.dark .banner-pack-item::before {
    background-color: rgba(187, 187, 187, 0);
}

body.dark .banner-pack-item:hover::before {
    background-color: rgba(187, 187, 187, 0.1);
}

body.dark .banner-pack-item:hover {
    color: #fff;
}

.banner-pack-icon {
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-pack-item:hover .banner-pack-icon {
    transform: scale(1.05);
}

.bottomright-toggle-panel {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    z-index: 100;
}

body.dark .bottomright-toggle-panel {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.bottomright-toggle-panel button {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.bottomright-toggle-panel button:hover {
    background-color: rgba(102, 102, 102, 0.1);
    color: #000;
}

body.dark .bottomright-toggle-panel button {
    color: #bbb;
}

body.dark .bottomright-toggle-panel button:hover {
    background-color: rgba(187, 187, 187, 0.1);
    color: #fff;
}

.tooltip {
    position: absolute;
    bottom: 120%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'Lexend', serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

body.dark .tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    color: #222;
}

body.dark .tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.9);
}

button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.main-site {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-site.loaded {
    opacity: 1;
}

#backBtn i {
    margin-right: 6px;
}

.hcontent {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

.more-branding {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
}

.more-initials {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.3em;
    cursor: pointer;
    z-index: 100;
}

.more-side-icon {
    font-size: 0.55rem;
    display: inline-block;
    opacity: 0.6;
    line-height: 2;
    margin-top: 0.8em;
    margin-left: -0.4em;
    align-self: flex-end;
    transition: color 0.3s ease;
    z-index: 10;
}

body.dark .more-initials {
    color: #fff;
}

.more-initials .side-icon {
    font-size: 0.45rem;
    opacity: 0.6;
    transform: none;
    margin: 0;
    margin-left: 0.2em;
}

.more-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
}

.more-left-column,
.more-right-column {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 6px;
}

.footer-container {
    z-index: 1000;
}

.interests-section {
    margin-bottom: 2.5em;
    z-index: 10;
}

.interests-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1em;
    z-index: 10;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    z-index: 10;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
    z-index: 10;
}

.interest-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

body.dark .interest-item {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark .interest-item:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.interest-item i {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #666;
    z-index: 10;
}

body.dark .interest-item i {
    color: #bbb;
}

.interest-item span {
    font-family: 'Lexend', serif;
    font-size: 0.85rem;
    font-weight: 400;
    z-index: 10;
}

.music-section {
    margin-bottom: 0;
    z-index: 10;
}

.music-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.time-period {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    z-index: 10;
}

body.dark .time-period {
    color: #666;
}

.music-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    z-index: 10;
}

.music-grid.compact {
    grid-template-columns: 1fr 1fr;
}

.music-artist {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 8px;
    /* transition: all 0.2s ease; */
    z-index: 10;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 8px;
    /* transition: all 0.2s ease; */
    z-index: 10;
}

.music-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}


body.dark .music-item:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.music-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    z-index: 10;
}

.music-info {
    flex: 1;
    min-width: 0;
    z-index: 10;
}

.music-name {
    font-family: 'Lexend', serif;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

.music-plays {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    z-index: 10;
}

body.dark .music-plays {
    color: #666;
}

.music-item.loading {
    pointer-events: none;
}

.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

body.dark .loading-placeholder {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

.loading-text {
    height: 0.85rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.15rem;
}

body.dark .loading-text {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

.loading-text:last-child {
    width: 60%;
    height: 0.75rem;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.quick-links-section {
    margin-bottom: 0;
    z-index: 10;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.quick-links-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    z-index: 10;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.quicklink-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    z-index: 10;
}

.quicklink-entry:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

body.dark .quicklink-entry:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.quicklink-entry .entry-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    z-index: 10;
}

.quicklink-content {
    flex: 1;
    z-index: 10;
}

.quick-link-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.quick-link-name:hover .redirect-icon {
    transform: scale(1.1);
    opacity: 1;
}

.redirect-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quicklink-description {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    color: #555;
    opacity: 0.9;
}

body.dark .quick-link-name {
    color: #ddd;
}

body.dark .quicklink-description {
    color: #aaa;
}

.music-link-wrapper {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.music-link-wrapper:hover,
.music-link-wrapper:focus {
    color: inherit;
    text-decoration: none;
}

.music-name,
.music-plays {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-info {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }

    .banner {
        height: 60vh;
    }

    .banner-toggle {
        top: 0.8rem;
        right: 0.8rem;
        font-size: clamp(1rem, 4vw, 1.1rem);
    }

    .footer-container {
        position: fixed;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
        margin-top: 0;
        padding: 0.6rem 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.8rem;
        border-radius: 20px;
        z-index: 1000;
    }

    .navbar-button {
        font-size: clamp(0.75rem, 3.5vw, 0.8rem);
        padding: 6px 12px;
        border-radius: 14px;
        touch-action: manipulation;
    }

    .navbar-separator {
        height: 14px;
    }

    .status-footer {
        font-size: clamp(0.5rem, 2.5vw, 0.55rem);
    }

    .clock-display {
        font-size: clamp(0.7rem, 3vw, 0.75rem);
    }

    .clock-display i {
        font-size: clamp(0.65rem, 2.5vw, 0.7rem);
    }

    .wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 3rem;
        padding: 0 1rem;
        gap: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: calc(100vh - 3rem);
        height: auto;
    }

    .branding {
        position: fixed;
        top: 0.8rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 99;
    }

    .branding .initials {
        font-size: clamp(1.8rem, 6vw, 2rem);
        writing-mode: horizontal-tb;
        transform: none;
    }

    .side-icon {
        font-size: clamp(0.5rem, 2vw, 0.55rem);
        transform: none;
        margin: 0 0.4em;
        align-self: center;
    }

    .content,
    .techbox,
    .techcontent {
        max-width: 100%;
        width: calc(100% - 2rem);
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .intro p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .separator {
        margin: 1em 0;
    }

    .notice p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        margin-top: 0;
    }

    .timeline {
        margin-top: 1.5em;
    }

    .timeline h2 {
        font-size: clamp(1.2rem, 4vw, 1.3rem);
        margin-bottom: 0.6em;
    }

    .entry {
        gap: 8px;
        margin-bottom: 0.5em;
    }

    .entry-icon {
        width: 20px;
        height: 20px;
        margin-top: 0.1em;
    }

    .entry-text {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        cursor: pointer;
        width: 100%;
    }

    .entry-title {
        justify-content: space-between;
        padding: 0.2em 0;
        gap: 0.3em;
        align-items: center;
    }

    .year {
        font-size: clamp(0.75rem, 3vw, 0.8rem);
        margin-left: 0.2em;
        flex-shrink: 0;
    }

    .arrow-icon {
        font-size: 0.7rem;
        margin-left: 0.3em;
    }

    .project-details {
        font-size: clamp(0.85rem, 3vw, 0.9rem);
        pointer-events: auto;
        margin-top: 0.2em;
    }

    .entry-text:has(.project-details.open) .project-details {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
    }

    .entry-text:has(.project-details.open) .arrow-icon {
        transform: rotate(180deg);
        opacity: 0.9;
    }

    .loading-branding {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 2rem;
    }

    .loading-animation {
        width: clamp(50px, 15vw, 60px);
        height: clamp(50px, 15vw, 60px);
    }

    .topright-toggle-panel {
        top: 0.8rem;
        right: auto;
        left: 0.8rem;
        flex-direction: row;
        gap: 8px;
        border-radius: 14px;
        padding: 8px;
    }

    .topright-toggle-panel button {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        padding: 6px;
    }

    .bottomright-toggle-panel {
        bottom: auto;
        right: 0.8rem;
        top: 0.8rem;
        gap: 8px;
        border-radius: 14px;
        padding: 8px;
    }

    .bottomright-toggle-panel button {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        padding: 6px;
    }

    .banner-pack-menu {
        position: fixed;
        top: 3.5rem;
        left: 0.8rem;
        right: auto;
        width: auto;
        min-width: 200px;
        transform: translateX(0);
        border-radius: 14px;
        padding: 8px;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 200;
    }

    .banner-pack-menu.active {
        display: flex;
        opacity: 1;
        transform: translateX(0);
        margin-right: 0;
        margin-left: 0;
    }

    body.dark .banner-pack-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .banner-pack-list {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .banner-pack-item {
        width: 36px;
        height: 36px;
    }

    .banner-pack-icon {
        font-size: 0.9rem;
    }

    .tooltip {
        font-size: clamp(0.65rem, 2.5vw, 0.7rem);
        padding: 6px 10px;
        border-radius: 6px;
    }

    .tooltip::after {
        border: 4px solid transparent;
        right: 10px;
    }

    .hcontent {
        height: auto;
        min-height: calc(100vh - 3rem);
        width: 100%;
        padding: 0 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .more-branding {
        top: 0.8rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .more-initials {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
        gap: 0.2em;
    }

    .more-side-icon {
        font-size: clamp(0.5rem, 2vw, 0.55rem);
        margin-left: 0.2em;
    }

    .more-initials .side-icon {
        font-size: clamp(0.4rem, 1.8vw, 0.45rem);
    }

    .more-content-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: calc(100vh - 5rem);
    }

    .more-left-column,
    .more-right-column {
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }

    .interests-section {
        margin-bottom: 1.5em;
    }

    .interests-section h2 {
        font-size: clamp(1.1rem, 4vw, 1.2rem);
        margin-bottom: 0.6em;
    }

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

    .interest-item {
        gap: 0.5rem;
        padding: 0.5rem 0.7rem;
        border-radius: 8px;
    }

    .interest-item i {
        font-size: 1rem;
    }

    .interest-item span {
        font-size: clamp(0.8rem, 3vw, 0.85rem);
    }

    .music-section h2 {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
        margin-bottom: 0.6rem;
        gap: 0.2rem;
    }

    .time-period {
        font-size: clamp(0.75rem, 2.5vw, 0.8rem);
    }

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

    .music-grid.compact {
        grid-template-columns: 1fr;
    }

    .music-item {
        gap: 0.6rem;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .music-image,
    .loading-placeholder {
        width: 36px;
        height: 36px;
    }

    .music-name {
        font-size: clamp(0.8rem, 3vw, 0.85rem);
        margin-bottom: 0.1rem;
    }

    .music-plays {
        font-size: clamp(0.7rem, 2.5vw, 0.75rem);
    }

    .quick-links-section h2 {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
        margin-bottom: 0.8rem;
    }

    .quicklink-entry {
        gap: 8px;
        margin-bottom: 0.6em;
        padding: 0.6rem;
        border-radius: 8px;
    }

    .quicklink-entry .entry-icon {
        width: 20px;
        height: 20px;
    }

    .quick-link-name {
        font-size: clamp(0.9rem, 3.5vw, 0.95rem);
        gap: 0.2em;
    }

    .quicklink-description {
        font-size: clamp(0.75rem, 3vw, 0.8rem);
        margin-top: 0.2rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 50vh;
    }

    .banner-toggle {
        top: 0.6rem;
        right: 0.6rem;
    }

    .footer-container {
        bottom: 0.5rem;
        max-width: 95%;
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 16px;
    }

    .navbar-button {
        font-size: clamp(0.7rem, 3vw, 0.75rem);
        padding: 5px 10px;
        border-radius: 12px;
    }

    .navbar-separator {
        height: 12px;
    }

    .status-footer {
        font-size: clamp(0.45rem, 2.2vw, 0.5rem);
    }

    .clock-display {
        font-size: clamp(0.65rem, 2.8vw, 0.7rem);
    }

    .clock-display i {
        font-size: clamp(0.6rem, 2.2vw, 0.65rem);
    }

    .wrapper {
        margin-top: 2.5rem;
        padding: 0 0.5rem;
        min-height: calc(100vh - 2.5rem);
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .branding {
        top: 0.6rem;
    }

    .branding .initials {
        font-size: clamp(1.6rem, 5vw, 1.8rem);
    }

    .side-icon {
        font-size: clamp(0.45rem, 1.8vw, 0.5rem);
    }

    .content,
    .techbox,
    .techcontent {
        width: calc(100% - 1rem);
        margin-top: 0.4rem;
    }

    .intro p {
        font-size: clamp(0.85rem, 3.2vw, 0.9rem);
    }

    .separator {
        margin: 0.8em 0;
    }

    .notice p {
        font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    }

    .timeline h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.2rem);
        margin-bottom: 0.5em;
    }

    .entry {
        gap: 6px;
        margin-bottom: 0.4em;
    }

    .entry-text {
        font-size: clamp(0.85rem, 3.2vw, 0.9rem);
    }

    .entry-title {
        padding: 0.1em 0;
        gap: 0.2em;
    }

    .year {
        font-size: clamp(0.7rem, 2.8vw, 0.75rem);
        margin-left: 0.1em;
    }

    .arrow-icon {
        font-size: 0.65rem;
        margin-left: 0.2em;
    }

    .project-details {
        margin-top: 0.1em;
    }

    .loading-branding {
        font-size: clamp(1.8rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .loading-animation {
        width: clamp(40px, 12vw, 50px);
        height: clamp(40px, 12vw, 50px);
    }

    .topright-toggle-panel {
        top: 0.6rem;
        left: 0.6rem;
        padding: 6px;
    }

    .bottomright-toggle-panel {
        top: 0.6rem;
        right: 0.6rem;
        padding: 6px;
    }

    .banner-pack-menu {
        top: 3rem;
        left: 0.6rem;
        right: auto;
        min-width: 180px;
        padding: 8px;
        background-color: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    body.dark .banner-pack-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .banner-pack-item {
        width: 32px;
        height: 32px;
    }

    .banner-pack-icon {
        font-size: 0.85rem;
    }

    .tooltip {
        font-size: clamp(0.6rem, 2.2vw, 0.65rem);
        padding: 5px 8px;
    }

    .tooltip::after {
        border: 3px solid transparent;
        right: 8px;
    }

    .hcontent {
        height: auto;
        min-height: calc(100vh - 2rem);
        width: 100%;
        padding: 0 0.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .more-branding {
        top: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .more-initials {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .more-side-icon {
        font-size: clamp(0.45rem, 1.8vw, 0.5rem);
    }

    .more-initials .side-icon {
        font-size: clamp(0.35rem, 1.5vw, 0.4rem);
    }

    .more-content-grid {
        margin-top: 1.5rem;
        gap: 0.8rem;
        min-height: calc(100vh - 4rem);
    }

    .interests-section h2 {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
        margin-bottom: 0.5em;
    }

    .interests-grid {
        gap: 0.4rem;
    }

    .interest-item {
        padding: 0.4rem 0.6rem;
    }

    .interest-item i {
        font-size: 0.9rem;
    }

    .interest-item span {
        font-size: clamp(0.75rem, 2.8vw, 0.8rem);
    }

    .music-section h2 {
        font-size: clamp(0.9rem, 3.2vw, 1rem);
        margin-bottom: 0.5rem;
    }

    .time-period {
        font-size: clamp(0.7rem, 2.2vw, 0.75rem);
    }

    .music-grid {
        gap: 0.5rem;
    }

    .music-item {
        padding: 0.4rem;
    }

    .quick-links-section h2 {
        font-size: clamp(0.9rem, 3.2vw, 1rem);
        margin-bottom: 0.6rem;
    }

    .quicklink-entry {
        padding: 0.5rem;
    }

    .quicklink-entry .entry-icon {
        width: 18px;
        height: 18px;
    }

    .quick-link-name {
        font-size: clamp(0.85rem, 3.2vw, 0.9rem);
    }

    .quicklink-description {
        font-size: clamp(0.7rem, 2.8vw, 0.75rem);
        margin-top: 0.1rem;
    }
}