body {
    margin: 0;
    padding: 20px;
    background-color: #050406;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.bg-deco-window {
    position: absolute;
    background-color: #0c0a0f;
    border: 1px solid #1f1a24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    z-index: 1;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    overflow: hidden;
}

.bg-deco-window.active {
    opacity: 0.35;
    transform: scale(1) translateY(0);
}

.window-header {
    background-color: #14111a;
    border-bottom: 1px solid #1f1a24;
    padding: 3px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 8px;
    color: #8e869c;
    letter-spacing: 0.5px;
    user-select: none;
}

.window-controls span {
    margin-left: 4px;
    opacity: 0.5;
}

.window-content {
    flex-grow: 1;
    background-color: #050406;
    padding: 8px;
    font-family: monospace;
    font-size: 8px;
    color: #a78bfa;
    line-height: 1.5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.window-content .deco-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.7) contrast(1.2) brightness(0.85);
    border: 1px solid #1f1a24;
    box-sizing: border-box;
}

.log-line {
    opacity: 0;
    animation: printLine 0.25s forwards;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

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

.poster-container {
    container-type: inline-size;
    width: 90vmin;
    max-width: 1000px;
    aspect-ratio: 1 / 1;
    background-color: #0b090e;
    border: 1px solid #1f1a24;
    padding: 4cqw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    z-index: 10;
}

.poster-container.animate {
    opacity: 0;
    animation: fadeInScale 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bg-unleash-text {
    position: absolute;
    top: 2cqw;
    left: 50%;
    transform: translateX(-50%) scaleY(2); 
    transform-origin: top center;
    font-family: 'Oswald', sans-serif;
    font-size: 23cqw;
    font-weight: 900;
    letter-spacing: -0.5cqw;
    text-align: center;
    width: 100%;
    background: linear-gradient(180deg, #58338a 0%, #1c0a30 75%, #0b090e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 0;
}

.poster-container.animate .bg-unleash-text {
    animation: bgTextEntry 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.poster-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8cqw;
    font-weight: 500;
    letter-spacing: 0.2cqw;
    color: #8e869c;
    z-index: 6;
    opacity: 0;
}

.poster-container.animate .poster-header {
    animation: headerEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.clickable-domain {
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.clickable-domain:hover {
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.poster-main {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    margin-top: 2cqw;
}

.character-wrapper {
    position: absolute;
    top: -2cqw;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 95%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
}

.poster-container.animate .character-wrapper {
    animation: wrapperEntry 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.character-img {
    --glow-color: rgba(0, 255, 200, 0.6); 
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: glowPulse 4s ease-in-out infinite;
}

.text-overlay {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 1cqw;
    background: linear-gradient(to top, rgba(11, 9, 14, 0.95) 40%, rgba(11, 9, 14, 0) 100%);
    padding-top: 6cqw;
    opacity: 0;
}

.poster-container.animate .text-overlay {
    animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.text-left h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 8.2cqw;
    font-weight: 700;
    line-height: 0.85;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.1cqw;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

.text-right {
    max-width: 48%;
    text-align: left;
    padding-bottom: 0.5cqw;
    background: radial-gradient(circle at center, rgba(11, 9, 14, 0.6) 0%, rgba(11, 9, 14, 0) 100%);
    text-shadow: 0 2px 8px rgba(5, 4, 6, 0.9);
}

.desc-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.1cqw;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.8cqw;
    letter-spacing: 0.05cqw;
    text-transform: uppercase;
}

.desc-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35cqw;
    font-weight: 500;
    line-height: 1.3;
    color: #d1d5db;
    margin: 0;
    letter-spacing: 0.03cqw;
    text-transform: uppercase;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2cqw;
    z-index: 6;
    margin-top: 1cqw;
}

.bottom-card {
    aspect-ratio: 16 / 10;
    border: 2px solid #5b21b6;
    border-radius: 2px;
    overflow: hidden;
    background-color: #14111a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: border-color 0.3s, transform 0.3s;
    opacity: 0;
}

.poster-container.animate .bottom-card {
    animation: cardEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.poster-container.animate .bottom-card:nth-child(1) {
    animation-delay: 1.1s;
}
.poster-container.animate .bottom-card:nth-child(2) {
    animation-delay: 1.25s;
}
.poster-container.animate .bottom-card:nth-child(3) {
    animation-delay: 1.4s;
}

.bottom-card:hover {
    border-color: #a78bfa;
    transform: translateY(-2px);
}

.bottom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5cqw;
    z-index: 6;
    opacity: 0;
}

.poster-container.animate .poster-footer {
    animation: footerEntry 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.footer-line-left, .footer-line-right {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.footer-line-left .line, .footer-line-right .line {
    height: 1px;
    background-color: #5b21b6;
    flex-grow: 1;
}

.wing-svg {
    width: 6cqw;
    height: auto;
}

.wing-svg.flipped {
    transform: scaleX(-1);
}

.footer-line-left .line {
    margin-left: 1.5cqw;
}

.footer-line-right .line {
    margin-right: 1.5cqw;
}

.footer-logo {
    position: relative;
    padding: 0 1cqw;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 2cqw;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 4.2cqw;
    font-weight: 700;
    letter-spacing: 0.4cqw;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
}

.logo-sub {
    font-family: 'Pinyon Script', cursive;
    font-size: 4.8cqw;
    color: #d8b4fe;
    position: absolute;
    bottom: -2.2cqw;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-arrow {
    background: none;
    border: none;
    color: #5b21b6;
    font-size: 4.5cqw;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    padding: 0 1.5cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -0.2cqw;
    line-height: 1;
    z-index: 10;
    transition: gap 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                color 0.3s, 
                text-shadow 0.3s, 
                transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.arrow-char {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-arrow:hover .arrow-char {
    animation-play-state: paused !important;
    opacity: 1 !important;
    color: inherit !important;
    text-shadow: inherit !important;
}

.next-btn .arrow-char {
    animation: arrowPulseRight 1.6s infinite;
}
.next-btn .arrow-char:nth-child(1) { animation-delay: 0s; }
.next-btn .arrow-char:nth-child(2) { animation-delay: 0.25s; }
.next-btn .arrow-char:nth-child(3) { animation-delay: 0.5s; }

.prev-btn .arrow-char {
    animation: arrowPulseLeft 1.6s infinite;
}
.prev-btn .arrow-char:nth-child(3) { animation-delay: 0s; }
.prev-btn .arrow-char:nth-child(2) { animation-delay: 0.25s; }
.prev-btn .arrow-char:nth-child(1) { animation-delay: 0.5s; }

.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 4, 6, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
}

.about-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.about-content {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    background-color: #0b090e;
    border: 1px solid #5b21b6;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(91, 33, 182, 0.2);
    box-sizing: border-box;
}

.about-content::-webkit-scrollbar {
    width: 4px;
}

.about-content::-webkit-scrollbar-track {
    background: #0b090e;
}

.about-content::-webkit-scrollbar-thumb {
    background: #5b21b6;
    border-radius: 2px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

.about-modal.open .about-content {
    transform: translateY(0);
}

.about-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #8e869c;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.about-close:hover {
    color: #ffffff;
}

.about-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8b5cf6;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f1a24;
    padding-bottom: 10px;
}

.about-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 25px;
}

.accent-text {
    color: #a78bfa;
    font-weight: 700;
}

.about-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #8e869c;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.about-section {
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background-color: #14111a;
    border: 1px solid #5b21b6;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.about-link {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    font-weight: 500;
}

.about-link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(167, 139, 250, 0.8);
}

.viewport-decor {
    position: fixed;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.05;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s;
}

@media (orientation: landscape) {
    .deco-left {
        left: 30px;
        top: 50%;
        transform: translateY(-50%) rotate(180deg);
        writing-mode: vertical-rl;
    }
    .deco-right {
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
    }
}

@media (orientation: portrait) {
    .deco-left {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .deco-right {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bgTextEntry {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(1.4);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(2);
        filter: blur(0);
    }
}

@keyframes headerEntry {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wrapperEntry {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--glow-color));
    }
    50% {
        filter: drop-shadow(0 0 25px var(--glow-color));
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEntry {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes footerEntry {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowPulseRight {
    0%, 100% {
        opacity: 0.25;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(3px);
        color: #a78bfa;
        text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    }
}

@keyframes arrowPulseLeft {
    0%, 100% {
        opacity: 0.25;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-3px);
        color: #a78bfa;
        text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    }
}
