@font-face {
    font-family: 'AtkinsonHyperlegible';
    src: url('../assets/AtkinsonHyperlegible.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../assets/OpenDyslexic.otf') format('opentype');
    font-weight: 400;   
    font-style: normal;
    font-display: auto;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--site-font, 'AtkinsonHyperlegible'), system-ui, sans-serif;
}

main {
    min-height: calc(100vh - 100px);
}

body {
    color: #eef4ef;
    position: relative;
    overflow-x: hidden;
    background-color: #060D0D;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(10, 18, 40, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.logo {
    width: 60px;
    height: 60px;
}

.studio-name {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    color: #c0ccff;
}

.site-nav {
    display: flex;
    justify-content: center;
}

.site-nav a {
    font-weight: 600;
    margin: 0 16px;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #e8eaf6;
    text-decoration: none;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease, text-shadow 0.25s ease;
}

.divider {
    content: '|';
    margin: 0 8px;
    color: #7a9fd4;
    pointer-events: none;
}

.site-nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 1px 1px 6px #9b2323;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.social-links a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.font-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.font-switch input {
    display: none;
}

.font-switch-track {
    width: 52px;
    height: 28px;
    background: rgba(155, 35, 35, 0.15);
    border: 1.5px solid #9b2323;
    border-radius: 999px;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.font-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: #9b2323;
    background-image: url('../assets/EyeSymbolSlash.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.font-switch input:checked + .font-switch-track {
    background: rgba(122, 159, 212, 0.15);
    border-color:#7a9fd4;
}


.font-switch input:checked + .font-switch-track .font-switch-thumb {
    transform: translateX(24px);
    background-color: #7a9fd4;
    background-image: url('../assets/EyeSymbol.png');
}

.page-header {
    padding: 140px 5% 40px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: #00bfff;
    margin-bottom: 20px;
}

.page-header-line {
    width: 80px;
    height: 2px;
    background: rgba(100, 140, 255, 0.4);
    margin: 0 auto;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(10, 18, 40, 0.95);
    color: #e8eaf6;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(100, 140, 255, 0.2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.site-footer {
    text-align: center;
    padding: 40px 5%;
    background: rgba(10, 18, 40, 0.9);
    color: #e8eaf6;
}

.footer-contact h2 {
    font-size: 55px;
    font-weight: 800;
    color: #00bfff;
    margin-bottom: 32px;
}

.footer-contact hr {
    border: none;
    border-top: 1px solid #7a9fd4;
    margin-bottom: 24px;
}

.footer-contact a {
    color: #c0ccff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #e05555;
}

.site-footer hr {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-top: 1px solid #7a9fd4;
    margin: 24px 0;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

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

body.page-fade {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.page-fade.loaded {
    opacity: 1;
}

.page-fade {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-fade.loaded {
    opacity: 1;
}

a.fade-link {
    cursor: pointer;
}

.img-fade{
    opacity: 0;
    transition: opacitu 0.4s ease;
}

.img-fade.loaded {
    opacity: 1;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        height: auto;
        padding: 16px 5%;
        gap: 16px;
        row-gap: 12px;
    }

    .header-left {
        justify-content: center;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav a {
        margin: 4px 8px;
    }

    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    main {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .studio-name {
        font-size: 20px;
    }

    .logo {
        width: 44px;
        height: 44px;
    }

    .site-nav a {
        font-size: 14px;
        margin: 4px 6px;
    }

    .social-links {
        gap: 24px;
    }

    .social-links img {
        width: 32px;
        height: 32px;
    }

    .footer-contact h2 {
        font-size: 36px;
    }

    .page-header {
        padding: 100px 5% 30px;
    }
}