@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* Global reset removed to avoid conflicts with master layout */

/* Member Container with Glassmorphism */
.member-container {
    font-family: 'Tajawal', 'Open Sans', sans-serif;
    /* Applied locally */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0f4c75 0%, #2395a0 50%, #fcae30 100%);
}

.member-content {
    padding: 60px;
}

.member-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* Enhanced Image Section */
.member-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.member-image::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, rgba(35, 149, 160, 0.1) 0%, rgba(252, 174, 48, 0.1) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

.member-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 25px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.8),
        0 0 0 12px rgba(35, 149, 160, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-image img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(255, 255, 255, 0.9),
        0 0 0 12px rgba(35, 149, 160, 0.2);
}

.member-image .no-image {
    width: 100%;
    max-width: 380px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Enhanced Info Section */
.member-info h1 {
    font-size: 2.8rem;
    color: #1a1a2e;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f4c75 0%, #2395a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-position {
    font-size: 1.5rem;
    color: #2395a0;
    font-weight: 600;
    margin-bottom: 35px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(35, 149, 160, 0.08) 0%, rgba(252, 174, 48, 0.08) 100%);
    border-radius: 50px;
    border: 2px solid rgba(35, 149, 160, 0.15);
}

.member-position i {
    font-size: 1.3rem;
    color: #fcae30;
}

.member-position::before {
    display: none;
}

.member-bio {
    color: #4a5568;
    line-height: 2;
    margin-bottom: 35px;
    font-size: 1.1rem;
    text-align: justify;
    padding: 30px;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.6) 0%, rgba(226, 232, 240, 0.4) 100%);
    border-radius: 20px;
    border-right: 4px solid #2395a0;
    position: relative;
}

.member-bio::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: rgba(35, 149, 160, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Enhanced Social Section */
.social-section {
    margin-top: 45px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-radius: 20px;
    border: 2px solid rgba(35, 149, 160, 0.1);
}

.social-title {
    font-size: 1.4rem;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-title i {
    font-size: 1.5rem;
    color: #2395a0;
}

.social-title::before {
    display: none;
}

.social-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
    color: white;
}

.social-links a.facebook:hover {
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 20px 40px rgba(59, 89, 152, 0.4);
}

.social-links a.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #1a8cd8 100%);
    color: white;
}

.social-links a.twitter:hover {
    transform: translateY(-8px) rotate(-5deg);
    box-shadow: 0 20px 40px rgba(29, 161, 242, 0.4);
}

.social-links a.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-links a.instagram:hover {
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 20px 40px rgba(224, 148, 51, 0.5);
}

.social-links a.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
}

.social-links a.linkedin:hover {
    transform: translateY(-8px) rotate(-5deg);
    box-shadow: 0 20px 40px rgba(0, 119, 181, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .member-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .member-content {
        padding: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .member-info h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 100px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .member-content {
        padding: 30px 20px;
    }

    .member-info h1 {
        font-size: 1.8rem;
    }

    .member-position {
        font-size: 1.2rem;
    }

    .member-image::before {
        width: 320px;
        height: 320px;
    }

    .member-image img,
    .member-image .no-image {
        max-width: 280px;
        height: 280px;
    }

    .member-bio {
        padding: 20px;
        font-size: 1rem;
    }

    .social-section {
        padding: 25px 20px;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .member-info h1 {
        font-size: 1.5rem;
    }

    .member-image img,
    .member-image .no-image {
        max-width: 240px;
        height: 240px;
    }
}