:root {
    --color-peach: #e6a885;
    --color-rose: #cc9999;
    --color-dark: #5a3a3a;
    --bg-color: #faf6f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg-color);
    color: var(--color-dark);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(0px);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.sidebar {
    width: 140px;
    height: 100vh;
    background: linear-gradient(135deg, #e6a885, #cc9999, #e6a885);
    background-size: 300% 300%;
    animation: sidebarGradient 6s ease infinite;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 15px rgba(230, 168, 133, 0.3);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.sidebar:hover {
    width: 320px;
    box-shadow: 5px 0 25px rgba(204, 153, 153, 0.5);
}

@keyframes sidebarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 100px;
    background: repeating-linear-gradient(
        -45deg, transparent, transparent 10px,
        rgba(255, 255, 255, 0.6) 10px, rgba(255, 255, 255, 0.6) 15px
    );
    pointer-events: none;
}

.nav-links {
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    width: fit-content;
    text-shadow: 0 2px 5px rgba(90, 58, 58, 0.3);
    opacity: 0.7;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar:hover .nav-links a {
    opacity: 1;
    transform: translateX(0);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ffffff;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateX(10px);
    text-shadow: 0 0 10px #ffffff, 0 0 20px #e6a885;
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px #ffffff;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    z-index: 1;
}

.title-wrapper {
    position: absolute;
    top: 8%;
    left: 12%;
    z-index: 2;
}

.halo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1800px;
    height: 350px;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: spinHalo 60s linear infinite;
}

@keyframes spinHalo {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.summer-title {
    font-family: 'Caveat', cursive;
    font-size: 12rem;
    letter-spacing: 6px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 10%, #e6a885 50%, #cc9999 90%);
    background-size: 200% 200%;
    color: #e6a885;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        3px 3px 0 #cc9999,
        -3px -3px 0 #cc9999,
        3px -3px 0 #cc9999,
        -3px 3px 0 #cc9999,
        0 0 25px rgba(230, 168, 133, 0.8);
    filter: url(#wavy) drop-shadow(0 10px 15px rgba(204, 153, 153, 0.6));
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.art-wrapper {
    position: absolute;
    bottom: 5%;
    right: 10%;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.artwork-image {
    width: 85vw;
    max-width: 1300px;
    max-height: 95vh;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(204, 153, 153, 0.5));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.art-wrapper.clicked {
    animation: sillyJump 0.6s ease-in-out;
}

@keyframes sillyJump {
    0% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    20% { transform: translateY(-15px) scale(0.95, 1.05) rotate(-3deg); }
    50% { transform: translateY(-40px) scale(0.9, 1.1) rotate(3deg); }
    80% { transform: translateY(-5px) scale(1.05, 0.95) rotate(-2deg); }
    100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
}

.about-text-box {
    padding: 40px;
    border-radius: 30px;
    background: rgba(250, 246, 242, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(230, 168, 133, 0.4);
    text-align: left;
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 750px;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    margin-top: 60px;
}

.about-text-box h3 {
    color: #cc9999;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.3rem;
    text-shadow: 0 0 5px rgba(230, 168, 133, 0.3);
}

.about-text-box ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.about-text-box li {
    margin-bottom: 5px;
}

.about-text-box::-webkit-scrollbar { width: 8px; }
.about-text-box::-webkit-scrollbar-track { background: rgba(230, 168, 133, 0.2); border-radius: 10px; }
.about-text-box::-webkit-scrollbar-thumb { background: #e6a885; border-radius: 10px; }
.about-text-box::-webkit-scrollbar-thumb:hover { background: #cc9999; }

.fandom-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.fandom-logos img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 15px;
    background: rgba(250, 246, 242, 0.8);
    padding: 10px;
    box-shadow: 0 6px 15px rgba(204, 153, 153, 0.3);
    cursor: pointer;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    border: 2px solid #e6a885;
}

.fandom-logos img:hover {
    transform: scale(1.25) translateY(-8px);
    box-shadow: 0 15px 30px rgba(204, 153, 153, 0.5);
    border-color: #cc9999;
    background: rgba(255, 255, 255, 1);
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(204, 153, 153, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #e6a885;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(204, 153, 153, 0.5);
    border-color: #cc9999;
}

.dev-note {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: #a88a8a;
    max-width: 250px;
    text-align: right;
    line-height: 1.4;
    z-index: 10;
}

#intro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: invert(1) hue-rotate(180deg) brightness(0.35) contrast(1.4);
    -webkit-backdrop-filter: invert(1) hue-rotate(180deg) brightness(0.35) contrast(1.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0%, black 0%);
    mask-image: radial-gradient(circle at 50% 50%, transparent 0%, black 0%);
    will-change: mask-image, -webkit-mask-image;
    overflow: hidden;
}

.boombox-container {
    position: relative;
    z-index: 10;
}

.boombox {
    width: 280px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(230, 168, 133, 0.8));
    transform-origin: center center;
    will-change: transform;
}

.boombox.jump {
    animation: sillyJump 0.6s ease-in-out infinite;
}

#notes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.note {
    position: absolute;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    opacity: 0;
    text-shadow: 0 0 15px #cc9999, 0 0 5px #e6a885;
    animation: floatNote 0.8s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes floatNote {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0.2) rotate(var(--rot)); opacity: 0; }
}

#charge-effect {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    box-shadow: 0 0 50px #ffffff, 0 0 100px #e6a885;
    transition: all 0.2s ease;
    z-index: 5;
}

#charge-effect.charging {
    animation: chargeUp 0.4s ease-in forwards;
}

@keyframes chargeUp {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(15); opacity: 1; box-shadow: 0 0 200px #ffffff, 0 0 400px #cc9999; }
}

#soundwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 25px solid #ffffff;
    box-shadow:
        0 0 60px #ffffff,
        0 0 120px #e6a885,
        0 0 180px #cc9999,
        inset 0 0 60px #e6a885;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity, border-width;
}

#soundwave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 18px solid #e6a885;
    box-shadow: 0 0 40px #e6a885;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

#soundwave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid #cc9999;
    box-shadow: 0 0 60px #cc9999;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

#soundwave.boom {
    animation: boomExpand 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes boomExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        border-width: 40px;
    }
    60% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(90);
        opacity: 0;
        border-width: 2px;
    }
}

#flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
}

#flash.active {
    animation: flashAnim 0.8s ease-out forwards;
}

@keyframes flashAnim {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

.etc-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 80%;
    max-width: 1200px;
    max-height: 75vh;
    overflow-y: auto;
    margin-top: 130px;
    padding: 20px;
    z-index: 2;
}

.etc-content::-webkit-scrollbar {
    width: 8px;
}

.etc-content::-webkit-scrollbar-track {
    background: rgba(230, 168, 133, 0.2);
    border-radius: 10px;
}

.etc-content::-webkit-scrollbar-thumb {
    background: #e6a885;
    border-radius: 10px;
}

.etc-content::-webkit-scrollbar-thumb:hover {
    background: #cc9999;
}

.socials-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 2px dashed rgba(230, 168, 133, 0.6);
}

.social-link {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 15px;
    background: rgba(250, 246, 242, 0.9);
    border: 2px solid #e6a885;
    box-shadow: 0 6px 15px rgba(204, 153, 153, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link i {
    font-size: 1.3rem;
}

.social-link:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: #cc9999;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(204, 153, 153, 0.4);
    color: #cc9999;
}

.featured-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    z-index: 2;
}

.featured-art img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 4px solid #cc9999;
    box-shadow: 0 15px 40px rgba(204, 153, 153, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.featured-art img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 50px rgba(230, 168, 133, 0.6);
    border-color: #e6a885;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 58, 58, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    border: 3px solid #e6a885;
    box-shadow: 0 0 60px rgba(230, 168, 133, 0.6);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px #cc9999;
    line-height: 1;
}

.close:hover {
    color: #e6a885;
    transform: scale(1.2) rotate(90deg);
}