@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;600&display=swap');

/* --- 1. General Page Styling --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* --- DYNAMIC BACKGROUND --- */
    color: #fff; /* Changed default text color for better contrast */
    background: linear-gradient(-45deg, #483d8b, #8a2be2, #4169e1, #00008b);
    background-size: 400% 400%;
    animation: gradientAnimation 18s ease infinite;
}

/* Keyframes for the animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif; /* Set new font for all headings */
    font-weight: 700;
}

h1 {
    font-size: 2.8rem; /* Make the main title larger */
    letter-spacing: -1px; /* Tighter spacing for a modern feel */
    color: #ffffff; /* Ensured title is white */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); /* Added shadow for readability */
    margin-bottom: 30px;
}

/* --- 2. Team Grid Styling --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light edge for definition */
    border-radius: 15px; /* Slightly more rounded */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Deeper shadow for 3D "lift" */
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background 0.2s ease-in-out;
}

.team-member-card:hover {
    transform: translateY(-8px); /* Lift higher on hover */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); /* Enhance shadow */
    background: rgba(255, 255, 255, 0.2); /* Brighten the glass effect */
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    margin-bottom: 15px;
}

.team-member-card h3 {
    margin: 10px 0 5px;
    font-size: 1.25rem;
    color: #ffffff; /* Changed to white for contrast */
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Text shadow for readability */
    font-family: 'Poppins', sans-serif; /* Ensure heading font is applied */
}

.team-member-card p {
    margin: 0;
    color: #e2e8f0; /* Lighter text for a softer look */
    font-size: 0.9rem;
}

/* --- 3. Modal Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex; /* Using flexbox for layout */
    color: #333; /* Reset modal text color to dark */
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* --- 4. Modal Content Layout & Styling --- */
.modal-sidebar {
    flex: 0 0 280px;
    background-color: #f8fafc;
    padding: 30px;
    border-right: 1px solid #e2e8f0;
    text-align: center;
}

.modal-sidebar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.modal-sidebar h2 {
    margin: 10px 0 5px;
    font-size: 1.5rem;
    color: #1a202c;
    letter-spacing: -0.5px; /* Refine heading spacing */
}

.modal-sidebar p.title {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-sidebar .links a {
    display: block;
    margin: 10px 0;
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.modal-sidebar .links a:hover {
    color: #2b6cb0;
}

.modal-main {
    padding: 30px 40px;
    flex-grow: 1;
}

.modal-main h3 {
    font-size: 1.4rem;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px; /* Refine heading spacing */
}

.modal-main .section + .section {
    margin-top: 30px;
}

.modal-main .about-text {
    line-height: 1.6;
    color: #4a5568;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #edf2f7;
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}
.project:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project h4 {
    margin: 0 0 8px;
    color: #2b6cb0;
    font-size: 1.1rem;
    font-weight: 600; /* Use a slightly lighter weight for sub-headings */
}

.project p {
    margin: 0 0 12px;
    color: #4a5568;
    font-size: 0.95rem;
}

.project .project-links a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
}
.project .project-links a:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}
.close-button:hover {
    color: #4a5568;
}



