@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/jost-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/jost-v20-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/outfit-v15-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/outfit-v15-latin-500.woff2') format('woff2');
}

:root {
    --black: #000000;
    --near-black: #111111;
    --white: #FFFFFF;
    --light-blue: #007BFF;
    --dark-blue: #00007B;
    --grey-text: #e2e2e2;
    --overlay-bg: rgba(0, 0, 0, 0.9);
    --border-dim: rgba(255, 255, 255, 0.2);
    --scroll-track: rgba(255, 255, 255, 0.1);
    --shadow-modal: rgba(0, 0, 0, 0.5);

    --font-main: 'Futura', 'Jost', sans-serif;
    --font-text: 'Outfit', sans-serif;

    --bg-c1: #404eed;
    --bg-c2: #5865f2;
    --bg-size: 50px;
    --bg-speed: 3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    
    outline: none;
}

*:focus, *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; 
}

body {
    font-family: var(--font-main);
    height: 100vh;
    height: 100dvh;
    
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    
    overflow: hidden; 
    display: flex;
    user-select: none;
    -webkit-user-select: none;
    background-color: var(--bg-c1);
    background-image:
        linear-gradient(45deg, var(--bg-c2) 25%, transparent 25%, transparent 75%, var(--bg-c2) 75%, var(--bg-c2)),
        linear-gradient(45deg, var(--bg-c2) 25%, transparent 25%, transparent 75%, var(--bg-c2) 75%, var(--bg-c2));
    background-size: var(--bg-size) var(--bg-size);
    animation: checkerScroll var(--bg-speed) linear infinite;
}

@keyframes checkerScroll {
    0% { background-position: 0 0, calc(var(--bg-size) / 2) calc(var(--bg-size) / 2); }
    100% { background-position: var(--bg-size) var(--bg-size), calc(var(--bg-size) * 1.5) calc(var(--bg-size) * 1.5); }
}

#cursor-dot, #cursor-ring {
    display: none; 
    position: fixed;
    pointer-events: none;
    z-index: 20001;
    transform: translate(-50%, -50%);
}

@media (pointer: fine) {
    * {
        cursor: none !important;
    }
    
    #cursor-dot, #cursor-ring {
        display: block;
    }
}

#cursor-dot {
    width: 15px;
    height: 15px;
    background-color: var(--light-blue);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

#cursor-dot.active {
    transform: translate(-50%, -50%) scale(2.2);
    mix-blend-mode: hard-light;
}

#cursor-ring {
    width: 54px; 
    height: 54px;
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 20002; 
    box-sizing: border-box;
    transition: left 0.075s ease-out, top 0.075s ease-out, width 0.1s ease, height 0.1s ease;
}

#cursor-ring.clicking {
    width: 35px;
    height: 35px;
}

.sidebar {
    width: 300px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
    z-index: 1; 
    flex-shrink: 0;
}

.logo-container { margin-bottom: 20px; }
.logo-container img { width: 100px; height: auto; }

h1.name {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 60px;
    font-weight: 700;
}

nav ul { list-style: none; }
nav li { margin-bottom: 30px; }

nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 1.2rem;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    top: -15px;
    bottom: -15px;
    left: -20px;
    right: -100px;
    z-index: 1;
}

nav a.active, nav a:hover { color: var(--light-blue); }

.copyright {
    margin-top: auto;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 40px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
    text-align: center;
        font-family: var(--font-text);

}

.stage {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    z-index: 10;
    padding: 100px 0 80px 0; 
    height: 100%;
}

.character-body {
    background-color: var(--black);
    width: 90%;
    height: 100%;
    position: relative;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    padding: 40px;
}

.section-title {
    text-transform: uppercase;
    font-size: 3rem;
    letter-spacing: -3px;
    margin-bottom: 10px;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    border-top: 2px solid var(--grey-text);
    padding-top: 20px;
    display: grid;
    gap: 20px;
    align-content: start; 
    scrollbar-color: var(--light-blue) var(--scroll-track);
    overflow-x: hidden;
}

.content-area p, .content-area li {
    font-family: var(--font-text);
    font-weight: 200;
    font-size: 1.3rem;
    line-height: 1.6; 
    color: var(--grey-text);
}

.content-area a {
    font-family: var(--font-text);
    font-size: 1.8rem;
    line-height: 1.6; 
    color: var(--white);
    transition: color 0.3s;
    text-align: center;
}

.content-area a:hover {
    color: var(--light-blue);
}

b {
    font-weight: 700;
}

#creations .content-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(25vh, 45%), 1fr));
    gap: 20px;
    align-content: start;
}

.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 2px; }
.content-area::-webkit-scrollbar-thumb { background-color: var(--light-blue); border-radius: 4px; }

.IconBox {
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    font-size: 1.2rem;
    cursor: pointer; 
    transition: background-color 0.2s;
    clip-path: inset(0);
}

.IconBox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.IconBox:hover img {
    transform: scale(1.075);
}

.eyes-container {
    position: absolute;
    top: -50px;
    right: 80px;
    display: flex;
    z-index: 20;
}

.eye {
    width: 80px;
    height: 90px;
    background-color: var(--white);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pupil {
    width: 45px;
    height: 45px;
    background-color: var(--light-blue);
    border-radius: 50%;
    position: absolute;
    transition: transform 0.1s ease-out, width 0.2s ease, height 0.2s ease;
}

.pupil.dilated { width: 54px; height: 54px; }

.hand {
    position: absolute;
    left: -135px;
    width: 175px;
    height: 80px;
    background-color: var(--black);
    border-radius: 40px 40px 40px 40px;
    z-index: 10;
    transition: top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hand::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 0px;
    width: 100px;
    height: 30px;
    background-color: var(--black);
    border-radius: 15px;
}

.legs-container {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 100px; 
}

.leg {
    width: 60px;
    height: 80px;
    background-color: var(--black);
    position: relative;
}

.leg::after {
    content: '';
    position: absolute;
    bottom: 0px;
    background-color: var(--black);
    border-radius: 100px 100px 0px 0px;
    transform: translateX(-50%);
}

.leg:first-child::after { left: 50%; width: 100px; height: 70px; }
.leg.second::after { left: 100%; width: 100px; height: 60px; }

.section-content { display: none; width: 100%; height: 100%; flex-direction: column; }
.section-content.active { display: flex; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.open {
    opacity: 1; 
    visibility: visible;
    pointer-events: all; 
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    height: 95vh;
}

.modal-card {
    background-color: var(--black);
    border: 2px solid var(--white);
    border-radius: 30px;
    padding: 0;
    width: 95%;
    height: 95%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-modal);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 20px 30px;
    border-bottom: 2px solid var(--border-dim);
    background-color: var(--black);
    z-index: 2;
    gap: 20px; 
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    margin: 0;
    flex: 1; 
    word-break: break-word; 
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 3.5rem; 
    cursor: pointer;
    width: 60px; 
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-family: sans-serif; 
    line-height: 1;
    flex-shrink: 0; 
}

.modal-close-btn:hover { color: var(--light-blue); }

.modal-viewer {
    flex: 1;
    background-color: var(--near-black);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    pointer-events: none;
}

.modal-overlay.open .modal-viewer img {
    pointer-events: auto;
}

.transition-fade {
    animation: softFade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes softFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.modal-footer {
    padding: 15px 30px;
    border-top: 2px solid var(--border-dim);
    background-color: var(--black);
    color: var(--grey-text);
    font-size: 0.9rem;
    display: flex;
    gap: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-footer span strong { color: var(--light-blue); }

.nav-btn {
    background: none;
    border: none;
    width: 60px;
    height: 80px;
    cursor: pointer;
    padding: 0;
    margin: 0 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
}

.nav-btn:hover { transform: scale(1.1); }

.nav-btn::before {
    content: '';
    display: block;
    width: 14px; 
    height: 40px;
    background-color: var(--white);
    transition: background-color 0.2s;
}

.nav-btn.prev::before { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.nav-btn.next::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }

.nav-btn:hover::before { background-color: var(--light-blue); }

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 15000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fullscreen-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.fullscreen-overlay.active img {
    opacity: 1;
    transform: scale(1);
}

.modal-viewer img {
    cursor: zoom-in;
    pointer-events: auto !important;
}

@media (max-width: 1280px) {
    .content-area p, .content-area li {
        font-size: 1.15rem;
    }

    .content-area a {
        font-size: 1.6rem;
    }
}

@media (max-width: 855px), (max-height: 468px) {
    body { flex-direction: column; height: 100dvh; min-height: -webkit-fill-available; overflow: hidden; }
    .sidebar { width: 100%; height: auto; padding: 15px 20px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; }
    .copyright, .hand { display: none; }
    h1.name { display: block; font-size: 1.2rem; margin: 0; line-height: 1; text-align: left; letter-spacing: -1px; padding: 0px 15px 0px 0px}
    h1.name br { display: none; }
    .logo-container { margin-bottom: 0; display: flex; align-items: center; }
    .logo-container img { width: 40px; }
    nav { margin-left: auto; }
    nav ul { display: flex; gap: 15px;  }
    nav li { margin-bottom: 0; }
    nav a { font-size: 0.85rem; white-space: nowrap; }
    nav a::after { top: -10px; bottom: -10px; left: -5px; right: -5px; }
    .stage { padding: 60px 20px 80px 20px; width: 100%; }
    .character-body { width: 100%; height: 100%; min-height: 0; padding: 25px; }
    .section-title { font-size: 2rem; }
    #creations .content-area { grid-template-columns: repeat(auto-fill, minmax(120px, 0.9fr)); gap: 10px; }
    .eyes-container { top: -35px; right: 40px; }
    .eye { width: 60px; height: 70px; }
    .pupil { width: 35px; height: 35px; }
    .pupil.dilated { width: 42px; height: 42px; }
    .leg:first-child::after { left: 50%; height: 70px; }
    .leg.second::after { left: 100%; height: 60px; }
    .content-area a {text-align: center;}
    
    .modal-wrapper { flex-direction: column; height: 100%; width: 100%; justify-content: center; }
    .modal-card { width: 95%; height: 90%; border-radius: 20px; }
    .modal-header { padding: 10px 15px; }
    .modal-header h2 { font-size: 1.1rem; }
    .modal-close-btn { font-size: 3rem; width: 60px; height: 60px; }
    .modal-footer { padding: 10px 15px; font-size: 0.75rem; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 70px;
        margin: 0;
        padding: 0;
        z-index: 20; 
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-btn:hover { transform: translateY(-50%) !important; }
    .nav-btn::before { height: 35px; }
    .nav-btn.prev { left: 5px; }
    .nav-btn.next { right: 5px; }
}

@media (max-width: 406px) {
    .sidebar .logo-container {
        display: none !important;
    }
    .legs-container {
        padding: 0 60px;
    }
    .content-area p, .content-area li {
        font-size: 1rem;
    }
    .content-area a {
        font-size: 1.4rem;
    }
}

@media (max-height: 507px) {
    .copyright {
        display: none;
    }
}

@media (max-width: 350px), (max-height: 468px) {
    body {
        flex-direction: column !important;
    }

    .copyright, .eyes-container,
    .hand,
    .legs-container,
    .copyright {
        display: none !important;
    }

    .sidebar {
        width: 100% !important; 
        height: auto !important;
        min-height: 0;
        padding: 5px 0 !important; 
        
        display: flex;
        flex-direction: row !important; 
        justify-content: center !important;
        align-items: center;
        flex-shrink: 0;
    }

    nav {
        width: auto;
        margin: 0;
    }

    nav ul {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 15px;
    }
    
    nav li {
        margin: 0;
    }

    nav a {
        font-size: 0.9rem;
        letter-spacing: 0;
        padding: 5px;
    }

    nav a::after {
        content: none;
    }

    .stage {
        padding: 0 !important;
        width: 100% !important;
        flex: 1;
        overflow: hidden;
    }

    .character-body {
        border-radius: 0;
        width: 100%;
        height: 100%;
        padding: 10px 20px;
    }

    #creations .content-area {
        grid-template-columns: repeat(auto-fill, minmax(120px, 0.9fr));
        gap: 10px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
        text-align: center;
        letter-spacing: -2px;
    }

}

@media (max-width: 350px) {
    .sidebar {
        flex-direction: column !important;
        height: auto !important;
        padding: 15px 0 !important;
        gap: 10px;
    }

    .sidebar .logo-container,
    .sidebar h1.name {
        display: block !important;
    }

    .sidebar .logo-container {
        display: flex;
        justify-content: center;
        margin: 0;
    }
    .sidebar .logo-container img {
        display: none;
    }

    .sidebar h1.name {
        text-align: center;
        margin: 0;
        padding: 0;
        line-height: 0.5;
    }

    nav {
        margin-top: 5px;
    }
    
    nav ul {
        gap: 10px;
        margin: 0;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .content-area a {
        font-size: 1.15rem;
    }
}