* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', monospace;
    color: #ffffff;
    background-image: url('images/kyberx-background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
a {
    color: #ed4f4f;
}
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2rem;
    position: relative;
}

header>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

header img {
    border-radius: 8px;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 5rem;
}

.m-0 {
    margin: 0 !important;
}

nav {
    margin-top: 2rem;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

nav a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

header,
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: normal;
}

h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
    font-weight: normal;
}

.content {
    padding: 1rem 0;
}

.content section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content section:first-child {
    margin-top: 0;
}

.content p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.content section:first-child p {
    text-align: center;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.flex.columns-3 {
    flex-wrap: wrap;
}

/* Override for 2-column layout: col-1-2 takes remaining space, col-3 fixed at 300px */
.flex.columns-3 .col-1-2 {
    flex: 1 1 auto;
    min-width: 0;
}

.flex.columns-3 .col-3 {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 300px;
}

/* Prevent wrapping when using col-1-2 and col-3 */
.flex.columns-3:has(.col-1-2) {
    flex-wrap: nowrap;
}

.flex.columns-3>div {
    flex: 1;
    min-width: 250px;
}

.flex.columns-3>div:first-child,
.flex.columns-3>div:last-child {
    flex: 0 0 auto;
    max-width: 300px;
}

.flex.columns-3>div:nth-child(2) {
    flex: 1;
    min-width: 300px;
}

/* Override for 2-column layout: col-1-2 takes remaining space, col-3 fixed at 300px */
.flex.columns-3 .col-1-2 {
    flex: 1 1 auto !important;
    max-width: none !important;
    min-width: 0;
}

.flex.columns-3 .col-3 {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 300px;
}

/* Prevent wrapping when using col-1-2 and col-3 */
.flex.columns-3:has(.col-1-2) {
    flex-wrap: nowrap;
}

.content img {
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

.content small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-style: italic;
}

.content b {
    font-weight: bold;
}

.content i {
    font-style: italic;
}

footer {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

/* Team page styles */
.team-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0 3rem;
    font-weight: normal;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: block;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.member-role {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

@media (max-width: 1076px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    header>div {
        flex-direction: column;
        gap: 0;
    }

    header img {
        margin-bottom: 0rem;
    }

    header h1 {
        position: static;
        transform: none;
        width: auto;
        margin-top: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1rem;
    }

    .content section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .flex.columns-3 {
        flex-direction: column;
    }

    .flex.columns-3>div {
        width: 100%;
        max-width: 100%;
    }

    .flex.columns-3>div:first-child,
    .flex.columns-3>div:last-child {
        max-width: 100%;
    }

    .flex.columns-3:has(.col-1-2) {
        flex-wrap: wrap;
    }

    .col-1-2,
    .col-3 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .team-title {
        font-size: 1.8rem;
        margin: 1.5rem 0 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .member-image {
        width: 150px;
        height: 150px;
    }
}
