/* Shared site styles: fonts, reset, navigation, footer and back-to-top button. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { font-family: 'Selawik'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/selawik-light.woff2') format('woff2'); }
@font-face { font-family: 'Selawik'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/selawik-bold.woff2') format('woff2'); }
button, input, textarea, select { font-family: inherit; }

body {
    font-family: 'Archivo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: #000000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1464px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Selawik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    letter-spacing: 0.15em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.logo-eureka {
    color: #7c6cf6;
    -webkit-text-stroke: 0.045em #7c6cf6;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.3rem;
}

.logo-engine {
    font-weight: 300;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-family: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer */
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    color: white;
}

.footer-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-follow { align-items: center; display: flex; gap: 0.9rem; justify-content: center; margin-top: 1.25rem; }
.footer-follow-label { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.footer-follow a { align-items: center; border: 1px solid rgba(147, 197, 253, 0.4); border-radius: 50%; color: #fff; display: inline-flex; height: 40px; justify-content: center; transition: all 0.3s; width: 40px; }
.footer-follow a:hover { background: linear-gradient(135deg, #3b82f6, #a855f7); border-color: transparent; transform: translateY(-2px); }
.footer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credit a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}
.nav-links .nav-social { display: none; }
.footer-logo { display: flex; justify-content: center; margin: 0 auto 1.5rem; width: fit-content; }

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    nav {
        padding: 0 1rem;
    }
    .nav-links .nav-social { display: flex; gap: 1rem; justify-content: center; }
    .nav-social a { align-items: center; border: 1px solid rgba(147, 197, 253, 0.4); border-radius: 50%; height: 44px; justify-content: center; width: 44px; }
}
