/* public/css/team.css - Team page specific styles */

/* Hero Section */
.hero-team {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #1565c0 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.8s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    letter-spacing: -1px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-label {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

.hero-small {
    padding: 3rem 2rem;
}

.members-intro,
.team-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Member Cards */
.members-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 3rem;
}

.member-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: var(--bg-light);
}

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

.member-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-initials {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

.member-info {
    padding: 0 1rem 1rem;
}

.member-info h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.member-department {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.member-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.member-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* Department Cards */
.departments-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.dept-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-top: 1rem;
}

.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dept-card h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.position-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dept-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.dept-details summary {
    cursor: pointer;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1rem;
    user-select: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.dept-details summary:hover {
    background: var(--bg-light);
}

.dept-details[open] summary {
    margin-bottom: 0.5rem;
}

.responsibilities-list {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

.responsibilities-list li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Join Section */
.join-section {
    padding: 5rem 0;
}

.join-card {
    text-align: center;
    background: white;
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.join-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.join-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.join-description {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #ff8c00;
}

/* Responsive */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .dept-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-initials {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}
