:root {
  --primary: #275B81;
  --accent: #185c8d;
  --light: #f8f9fa;
  --dark: #1b2a38;
  --neutral-light: #ffffff;
  --text-grey: #6c757d;
}

@keyframes scrollPattern {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100px;
    }
}

.mainsection {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    text-align: left;
    width: 100%;
    position: relative;
}

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

.mainsection p {
    color: var(--neutral-light);
    font-size: 15rem; 
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    max-width: 1200px; 
    z-index: 2;
    margin: auto 0;
    text-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
    text-transform: uppercase;
}

.team-page {
    padding: 1.5rem;
    background-color: var(--light);
    background-image: url('https://www.transparenttextures.com/patterns/geometry.png');
    background-attachment: fixed;
    animation: scrollPattern 10s linear infinite;
}

/* General Info and About the Team in the same row */
.team-general-about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

h3 i{
    vertical-align: middle;
}

.team-general, .team-description {
    padding: 60px;
    background-color: var(--light);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
}

.team-general h3, .team-description h3 {
    font-size: 3.6rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.team-general ul {
    list-style-type: none;
    padding: 0;
}

.team-general li {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-grey);
}

/* Research Areas Section */
.team-goals {
    background-color: var(--light);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.team-goals h3 {
    font-size: 4rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.team-goals ul {
    list-style-type: none;
    padding: 0;
}

.team-goals li {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-grey);
}

/* General Styling for the Team Members section */
.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background-color: var(--neutral-light);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 60px;
}

/* Styling the 'Team Members' title */
.team-members h2 {
    font-size: 4rem;
    margin-bottom: 40px;
    color: var(--dark);
    text-align: center;
    grid-column: span 2;
}

/* Styling for each member item */
.member-item {
    display: flex;
    flex-direction: row;
    background-color: var(--neutral-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-item:hover {
    transform: translateY(-20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Photo styling */
.photo {
    width: 200px;
    height: 200px;
    margin-right: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

/* Member info styling */
.member-info {
    flex: 1;
}

.member-info h4 {
    margin: 0 0 20px;
    font-size: 2.1rem;
    color: var(--dark);
}

.member-info p {
    font-size: 1.5rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.more-details {
    background-color: var(--accent);
    color: var(--neutral-light);
    border: none;
    padding: 24px 50px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 60px;
    transition: background-color 0.3s ease;
}

.more-details:hover {
    background-color: var(--primary);
}