/* Base Styles and Variables */
:root {
    --primary-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-hover) 100%);
    --card-shadow: 0 10px 30px rgba(3, 4, 94, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container Styles */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    gap: 3rem;
    background-color: var(--color-white);
}

/* Header Styles */
.team-container h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    text-align: center;
    color: var(--color-primary);
    margin: 0;
    grid-column: 1 / -1;
    position: relative;
}

.team-container h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

/* Story Section Styles */
.story-section {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.story-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(3, 4, 94, 0.12);
}

.story-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    font-family: var(--font-primary);
}

.story-section p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Team Members Grid */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(3, 4, 94, 0.15);
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit:cover;
    justify-content:flex-start;
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.5rem;
    font-family: var(--font-primary);
}

.team-member p {
    margin: 0.5rem 1.5rem;
    line-height: 1.6;
}

.team-member p:first-of-type {
    color: var(--color-hover);
    font-weight: 500;
    font-size: 1.1rem;
}

.team-member p:last-of-type {
    color: var(--color-text);
    padding-bottom: 1.5rem;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member, .story-section {
    animation: fadeIn 0.8s ease-out forwards;
    animation-fill-mode: both;
}

.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.4s; }
.team-member:nth-child(4) { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-container {
        padding: 3rem 1.5rem;
    }

    .team-container h1 {
        font-size: 2.5rem;
    }

    .story-section {
        padding: 2rem;
    }

    .story-section h2 {
        font-size: 1.8rem;
    }

    .team-member {
        margin: 0 auto;
        max-width: 400px;
    }
}

/* Add Playfair Display font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');