* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --minecraft-brown: #8B4513;
    --dark-brown: #654321;
    --grass-green: #7CB342;
    --dirt-brown: #D2691E;
    --stone-gray: #696969;
    --bg-dark: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-green);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "⛏️";
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-green);
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Staff Page Styles */
.staff-section {
    margin-bottom: 3rem;
}

.staff-category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    display: inline-block;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.staff-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.staff-card:hover .staff-card-inner {
    transform: rotateY(180deg);
}

.staff-card-front, .staff-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.staff-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--bg-card), rgba(76, 175, 80, 0.1));
}

.staff-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-green);
}

.staff-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.staff-role {
    color: var(--text-gray);
    font-weight: 500;
}

.staff-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: var(--text-gray);
    margin-top: 1rem;
}

.error-message {
    text-align: center;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(45, 45, 45, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-card {
        height: 300px;
    }

    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    main {
        padding: 1rem;
    }

    .page-header {
        padding: 1rem 0;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

    .staff-card {
        height: 280px;
    }

    .staff-card-front, .staff-card-back {
        padding: 1.5rem;
    }

    .staff-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .staff-name {
        font-size: 1.3rem;
    }

    .staff-category-title {
        font-size: 1.5rem;
    }
}