body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: url('/images/background1.png') no-repeat center center fixed;
    background-size: cover;
    color: #e4e4e4;
}

/* Header with centered logo and nav on the right */
header {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.top-logo {
    height: 64px;
    margin-bottom: 1rem;
}

.nav-below-logo {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-below-logo a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

.nav-below-logo a:hover {
    text-decoration: underline;
}

/* Left spacer to balance nav */
.spacer {
    flex: 1;
}

/* Navigation sticks to the right */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    z-index: 2;
}

/* Centered logo sits in the middle of header */
.center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 64px;
    z-index: 1;
    pointer-events: none;
}



header img {
    height: 64px;
}

/* Base styles */

/* Navigation links */
nav a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 0rem 0rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.2rem;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #ccc;
}

/* Team page layout */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container h1 {
    text-align: center;

}

.team-member {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 1.5rem;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.team-member h3 {
    margin: 0;
    font-size: 1.5rem;
}

.team-member p {
    margin: 0.5rem 0 0;
    color: #ccc;
}

.project-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-section h1 {
    text-align: center;
}

.project img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.project-content {
    flex: 1;
}

.project-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e90ff;
}

.project-content p {
    font-size: 1.1rem;
    color: #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    color: #888;
}

/* === Logo Glitch Styles === */
.logo-container {
    position: relative;
    display: inline-block;
    width: 200px;
    margin-top: 20px;
}

.logo-container img {
    width: 100%;
    display: block;
    transition: transform 0.2s ease;
    z-index: 2;
    position: relative;
}

.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.logo-container:hover img {
    animation: logoGlitch 0.3s steps(2, end) infinite;
}

.logo-container:hover::before {
    background-image: url('/images/root anarchy logo trans.png');
    filter: hue-rotate(180deg);
    transform: translate(-2px, 0);
    opacity: 0.3;
    animation: logoGlitchBefore 0.3s steps(2, end) infinite;
}

.logo-container:hover::after {
    background-image: url('/images/root anarchy logo trans.png');
    filter: hue-rotate(90deg);
    transform: translate(2px, 0);
    opacity: 0.3;
    animation: logoGlitchAfter 0.3s steps(2, end) infinite;
}

@keyframes logoGlitch {
    0% {
        transform: none;
    }

    25% {
        transform: scale(1.01) skewX(-2deg);
    }

    50% {
        transform: scale(0.99) skewY(1deg);
    }

    75% {
        transform: scale(1.02) skewX(1deg);
    }

    100% {
        transform: none;
    }
}

@keyframes logoGlitchBefore {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-1px, 0);
    }

    50% {
        transform: translate(-3px, -1px);
    }
}

@keyframes logoGlitchAfter {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(1px, 0);
    }

    50% {
        transform: translate(3px, 1px);
    }
}