/* Developers & Musicians Page Styles */

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-top: 70px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Team Section */
.team-section, .musicians-section {
    padding: 80px 0;
}

.team-section {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 142, 251, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 119, 227, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.musicians-section {
    background-color: #fff;
}

.founders-section {
    background-color: #fefefe;
    position: relative;
    overflow: hidden;
}

.founders-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 142, 251, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: #6e8efb;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(110, 142, 251, 0.2);
}

.member-image {
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    padding: 5px;
    border: 3px solid rgba(110, 142, 251, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1) 0%, rgba(167, 119, 227, 0.1) 100%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 0;
}

.team-member:hover .member-image {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(110, 142, 251, 0.3);
    border-color: rgba(110, 142, 251, 0.4);
}

.team-member:hover .member-image::before {
    opacity: 1;
}

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

.social-links {
    position: absolute;
    bottom: -50px;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
}

.team-member:hover .social-links {
    bottom: 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.member-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.name-with-website {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.member-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.website-link-container {
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.website-link {
    color: #6e8efb;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.website-link:hover {
    color: #fff;
    background: #6e8efb;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

.website-link i {
    transition: transform 0.3s ease;
}

.website-link:hover i {
    transform: rotate(-45deg);
}

/* Tooltip styling */
.website-link .tooltip {
    visibility: hidden;
    width: 90px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 8px 12px;
    position: absolute;
    z-index: 2;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    border: none;
}

.website-link .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #6e8efb transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.website-link:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1);
    transition-delay: 0.1s;
}

/* Pulsing animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 142, 251, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0);
    }
}

.website-link {
    animation: pulse 2s infinite;
}

.website-link:hover {
    animation: none;
}

.member-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    transition: width 0.3s ease;
}

.team-member:hover .member-info h3::after {
    width: 80px;
}

.member-info > p {
    color: #6e8efb;
    font-weight: 500;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(110, 142, 251, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.team-member:hover .member-info > p {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

/* Member Actions Container */
.member-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(110, 142, 251, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Social Media Icons in Member Info */
.member-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.member-social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5f7ff;
    color: #6e8efb;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.member-social-links .social-icon:hover {
    background: #6e8efb;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3);
}

.member-social-links .social-icon i {
    transition: transform 0.3s ease;
}

.member-social-links .social-icon:hover i {
    transform: scale(1.1);
}

/* Hide the original social links on hover */
.social-links {
    display: none;
}

/* Website icon specific styles */
.website-icon {
    background: rgba(110, 142, 251, 0.1) !important;
    color: #6e8efb !important;
}

.website-icon:hover {
    background: #6e8efb !important;
    color: white !important;
}

.member-bio {
    color: #666 !important;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 10px 0 0 0;
    padding: 0 10px 10px;
    flex-grow: 1;
    position: relative;
    text-align: right;
    transition: all 0.3s ease;
}

.bio-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.member-bio.collapsed .bio-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.8em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    background: rgba(110, 142, 251, 0.1);
    border: 1px solid rgba(110, 142, 251, 0.3);
    color: #6e8efb;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px 12px;
    margin: 0 auto;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    width: auto;
    min-width: 120px;
}

.read-more-btn:hover {
    background: rgba(110, 142, 251, 0.2);
    color: #4a6cf7;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.read-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.3);
}

.read-more-btn i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateY(1px);
}

/* Join Us Section */
.join-us {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.join-us h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.join-us p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 20px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #6e8efb;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .join-us h2 {
        font-size: 2rem;
    }
}
