/* Staff Page Styles */

.staff-page {
    background-color: #000;
    color: white;
}

.staff-intro {
    padding: 180px 0;
    background-color: #000;
}

.staff-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Gill Sans', sans-serif;
}

.staff-intro .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

.staff-gallery {
    padding: 0 0 100px;
    background-color: #000;
}

.staff-gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 1400px;
    align-items: stretch;
}

.staff-badge {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-badge:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.staff-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(0.3) brightness(0.9);
}

.staff-badge:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.staff-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 30px 15px 15px;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Gill Sans', sans-serif;
    transition: all 0.4s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #111;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFD700;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFF700;
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    min-height: 500px;
}

.modal-image {
    flex: 1;
    background: #000;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    padding: 40px;
    background: #111;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
}

.modal-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .modal-text {
        padding: 30px;
    }
    
    .modal-text h3 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .modal-text {
        padding: 20px;
    }
    
    .modal-text h3 {
        font-size: 1.8rem;
    }
    
    .modal-text p {
        font-size: 1rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .staff-intro {
        padding: 40px 0;
    }
    
    .staff-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }
    
    .intro-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 0 auto;
        align-items: stretch;
    }
    
    .staff-name {
        padding: 20px 10px 10px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .close {
        top: 15px;
        right: 20px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin: 0 auto;
        align-items: stretch;
    }
    
    .staff-intro {
        padding: 30px 0;
    }
    
    .staff-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .staff-name {
        padding: 15px 8px 8px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .modal-content {
        width: 98%;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin: 0 auto;
        align-items: stretch;
    }
    
    .staff-name {
        padding: 12px 6px 6px;
        font-size: 0.7rem;
        letter-spacing: 0px;
    }
    
    .modal-content {
        width: 99%;
        max-height: 99vh;
        margin: 0.5vh auto;
    }
    
    .close {
        top: 8px;
        right: 12px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}
