@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('Developers Image/Developers_img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Space for navbar */
}

/* Header styles */
header {
    padding: 15px 20px;
    margin-bottom: 10px;
}

header h3 {
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-title {
    font-size: 42px;
    font-weight: bold;
    color: whitesmoke;
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff7200, transparent);
    border-radius: 2px;
}

/* Team container */
.team-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* Team member cards */
.team-member {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 350px;
    perspective: 1500px;
    margin: 0 auto;
}

/* Card container */
.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.team-member:hover .card {
    transform: rotateY(180deg);
}

/* Card faces */
.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    overflow: hidden;
}

.front::before, .back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.front img, .back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.back {
    transform: rotateY(180deg);
}

/* Info overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    width: 100%;
    padding: 15px 12px;
    border-radius: 0 0 15px 15px;
    z-index: 2;
    transition: all 0.4s ease;
    box-sizing: border-box;
    min-height: 120px;
}

.team-member:hover .overlay {
    background: rgba(0, 0, 0, 0.85);
}

.overlay h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 600;
}

.overlay p {
    font-size: 13px;
    margin: 0 0 12px;
    opacity: 0.9;
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.3;
    max-height: 60px;
    overflow: visible;
    white-space: normal;
}

/* Social icons */
/* Update the social-links class to ensure proper centering */
/* Update the social-links class to ensure proper centering */
.social-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Creates consistent spacing between the icons */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
    color: white;
    /* Remove margins since we're using gap for spacing */
    margin: 0;
}

.social-links a:hover {
    background: #ff7200;
    transform: translateY(-3px);
}

/* Footer styles */
footer {
    background-color: rgba(20, 20, 30, 0.9);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

footer a {
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff7200;
}

/* Update the social-links class to ensure proper centering */
.social-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Creates consistent spacing between the icons */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
    color: white;
    /* Remove margins since we're using gap for spacing */
    margin: 0;
}

.social-links a:hover {
    background: #ff7200;
    transform: translateY(-3px);
}

/* Responsive design */
@media (max-width: 1024px) {
    .team-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .team-row {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 320px;
    }
    
    .team-member {
        height: 300px;
        margin-bottom: 10px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .team-container {
        padding: 10px 15px 30px 15px;
    }
}

@media (max-width: 480px) {
    .team-container {
        padding: 5px 15px 40px 15px;
    }
    
    .team-member {
        height: 280px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .overlay h3 {
        font-size: 18px;
    }
}

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

.team-member {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.3s; }
.team-member:nth-child(3) { animation-delay: 0.5s; }
.team-member:nth-child(4) { animation-delay: 0.7s; }
