:root {
    --primary-bg: #0f172a;
    /* Dark slate blue background */
    --card-bg: transparent;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    /* Modern purple/indigo gradient */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay to match theme */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Grid */
.team-container {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-card {
    background: rgba(30, 41, 59, 0.4);
    /* Semi-transparent default */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 280px;
    /* Slightly wider */
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.8);
    /* Darker, more solid on hover */
    border-color: rgba(99, 102, 241, 0.5);
    /* Accent border */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(99, 102, 241, 0.2);
    /* Glow */
}

.team-card:hover::before {
    opacity: 1;
}

.image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
    position: relative;
    transition: transform 0.4s ease;
}

.team-card:hover .image-wrapper {
    transform: scale(1.05) rotate(5deg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-bg);
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.team-card:hover h3 {
    color: #38bdf8;
}

.team-card p.role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Entry Animation Class (to be added by JS) */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0ea5e9;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}

.scroll-top:hover {
    opacity: 1;
    background-color: #0284c7;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}