body {
    font-family: "Helvetica Neue", Tahoma, sans-serif;
}
/* HEADER START */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    /* slightly wider max-width for modern feel */
    width: min(1200px, calc(100% - 48px));
    z-index: 1000;
}

header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    /* Adjusted padding: less on right to accommodate the button inside the pill */
    padding: 0 8px 0 24px;

    /* DARK GLASS EFFECT */
    background: rgba(20, 20, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */

    /* Subtle inner border for definition */
    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Pill shape */
    border-radius: 100px;

    /* Deep, soft shadow for depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.logo {
    height: 32px; /* Slightly smaller for better proportion */
    width: auto;
    display: block;
    /* Inverts dark logo to white and boosts brightness */
    filter: invert(1) brightness(2);
    opacity: 0.95;
}

.links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 15px;
}

.links a {
    color: rgba(255, 255, 255, 0.72); /* calmer */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 99px;
    /*background: transparent;*/
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.links a:active {
    transform: scale(0.98);
}

.GitHub {
    /* Ghost/outline button: low color by default */
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.GitHub:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.GitHub:active {
    background-color: rgba(255, 255, 255, 0.05);
}

    /* ADAPTIVE HEADER */
    @media (max-width: 768px) {
        header {
            top: 16px;
            width: calc(100% - 32px);
        }

        header .nav {
            padding: 0 6px 0 16px;
            gap: 12px;
        }

        .links {
            gap: 8px;
        }

        .links a {
            padding: 8px 12px;
            font-size: 14px;
        }

        .GitHub {
            padding: 8px 18px;
            font-size: 13px;
        }
    }

    @media (max-width: 580px) {
        .links {
            display: none; /* Hide links on very small screens to maintain the pill shape */
        }

        header .nav {
            justify-content: space-between;
            padding: 0 8px 0 20px;
        }
    }

    /* HEADER END */
main {
    margin-top: 100px;
}

#signature {
    font-family: "Herr Von Muellerhoff", cursive;
    font-size: 3rem;
    font-weight: 400; /* or normal */
    font-synthesis: none; /* prevents fake bold/italic differences */
    font-kerning: none;
    font-variant-ligatures: none;
}

/* Footer (shared with setup) */
.site-footer {
    border-top: 1px solid #1a1a1a;
    background: #070707;
    padding: 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'Work Sans', sans-serif;
}

.footer-links a {
    color: #a9a9a9;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.footer-links a:hover, .footer-links a:focus {
    color: #e5e5e5;
}

.footer-links a:hover::after, .footer-links a:focus::after {
    transform: scaleX(1);
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Split‑flap effect styles */
.sf {
    display: inline-block;
    white-space: pre-wrap; /* preserve spaces and line breaks */
}

.sf-ch {
    display: inline-block;
    transform-origin: center top;
    will-change: transform;
    backface-visibility: hidden;
}

.sf-ch.flip {
    animation: sf-flip 120ms ease-in;
}

@keyframes sf-flip {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-90deg);
    }
}