html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #1e1e2f;  /* Dark background matching About Us page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f1f1f1;
}

/* Hero Section */
.team-hero {
    background: url('assets/team.jpg') no-repeat center center/cover;
    height: 60vh;
    min-height: 300px;
    position: relative;
}


.team-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-title {
    font-size: 48px;
    color: #f9cc5a;
    font-weight: bold;
    text-align: center;
}

/* Team Section */
.team-section {
    background-color: #1e1e2f;
    padding: 60px 10%;
}

.team-heading {
    font-size: 36px;
    text-align: center;
    color: #f9cc5a;
    margin-bottom: 60px;
}


.team-member {
    background-color: #282840;
    color: #f1f1f1;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px; /* 💡 Adds vertical gap between cards */
    display: flex;
    gap: 30px; /* 💡 Adds horizontal spacing inside card */
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member img {
    width: 200px;
    height: auto;
    border-radius: 12px; /* Rectangular with soft corners */
    object-fit: cover;
    flex-shrink: 0;
}


.member-photo {
    flex: 1 1 300px;
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 1.5rem;
    color: #f9cc5a;
    margin-bottom: 10px;
}

.member-info h4 {
    font-size: 1rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.member-info p {
    font-size: 1rem;
    color: #dddddd;
    line-height: 1.6;
}

.member-name {
    font-size: 28px;
    color: #f9cc5a;
    margin-bottom: 10px;
}

.member-role {
    font-size: 18px;
    color: #00d4ff;
    margin-bottom: 20px;
}

.member-desc {
    font-size: 16px;
    color: #dddddd;
    line-height: 1.6;
}



/* Responsive */
@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .team-member img {
        margin-bottom: 20px;
    }
}