/* ===========================================
   TEAM DETAILS PAGE
============================================== */
.team-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 60px;
}

.profile-content {
    padding: 30px;
}

/* Left Card */
.profile-card {
    background: linear-gradient(340.65deg, #0f0f10 -12.99%, #0b0573 91.84%);
    border: 1px solid;
    border-image-source: linear-gradient(
        150.09deg,
        rgba(49, 249, 187, 0.3) -3.04%,
        rgba(79, 70, 229, 0.3) 80.38%
    );
    border-radius: 20px;
    padding: 10px 10px 30px 10px;
    text-align: start;
    height: fit-content;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    color: var(--jdg-white);
}

.profile-title {
    font-size: 13px;
    color: var(--jdg-gray);
    margin-bottom: 25px;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: start;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Right Content */
.content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

.section-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #666666;
    margin-bottom: 12px;
}

.company-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.company-link:hover {
    text-decoration: underline;
}

/* Skills */
.skill-item {
    margin-bottom: 18px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.skill-percentage {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    transition: width 3s ease;
    width: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .team-grid {
        gap: 30px;
    }

    .profile-name {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* =====================================================
   TEAM DETAILS PAGE STYLES
   ===================================================== */

/* Banner Section */
.work-page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
    text-align: left;
}

.work-page-banner h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.work-page-banner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.work-page-banner .breadcrumb {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.work-page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-page-banner .breadcrumb a:hover {
    color: #6c5ce7;
}

/* =====================================================
   TEAM DETAILS SECTION
   ===================================================== */
.team-details {
    padding: 80px 0;
    background: #0f0f1a;
}

.team-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

/* Profile Card (Left Side) */
.profile-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.profile-content {
    padding: 30px;
    text-align: center;
}

.profile-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 0.9rem;
    color: #6c5ce7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a,
.social-links .social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links .social-icon:hover {
    background: #6c5ce7;
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   CONTENT SECTION (Right Side)
   ===================================================== */
.content-section {
    color: #fff;
}

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a855f7);
    border-radius: 2px;
}

.section-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-text p {
    margin-bottom: 15px;
}

.section-text a,
.company-link {
    color: #6c5ce7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-text a:hover,
.company-link:hover {
    color: #a855f7;
}

/* =====================================================
   PROFESSIONAL SKILLS
   ===================================================== */
.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.skill-percentage {
    font-size: 1rem;
    color: #6c5ce7;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a855f7);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-progress.animated {
    /* Width set by JS or inline style */
}

/* =====================================================
   CTA BUTTON
   ===================================================== */
.cta-section {
    margin-top: 40px;
}

.jdg-btn.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jdg-btn.quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.jdg-btn.quote-btn img {
    width: 20px;
    height: 20px;
}

/* =====================================================
   MEMBER NAVIGATION (Prev/Next)
   ===================================================== */
.member-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.nav-link:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: translateY(-3px);
}

.nav-link.prev-member {
    justify-content: flex-start;
}

.nav-link.next-member {
    justify-content: flex-end;
    text-align: right;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    color: #6c5ce7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-arrow {
    background: #6c5ce7;
    color: #fff;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.nav-position {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   OTHER TEAM MEMBERS SECTION
   ===================================================== */
.other-members-section {
    padding: 80px 0;
    background: #0a0a12;
}

.section-main-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.other-members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.other-member-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.other-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.other-member-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.other-member-content {
    padding: 25px;
    text-align: center;
}

.other-member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.other-member-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.other-member-name a:hover {
    color: #6c5ce7;
}

.other-member-position {
    font-size: 0.9rem;
    color: #6c5ce7;
    margin-bottom: 15px;
}

.other-member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.other-member-social a,
.other-member-social .social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.other-member-social a:hover,
.other-member-social .social-icon:hover {
    background: #6c5ce7;
}

.other-member-social svg {
    width: 14px;
    height: 14px;
}

/* View All Button */
.view-all-cta {
    text-align: center;
}

.view-all-cta .jdg-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid #6c5ce7;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-cta .jdg-btn:hover {
    background: #6c5ce7;
    transform: translateY(-3px);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1200px) {
    .other-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-card {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .other-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-navigation {
        flex-direction: column;
    }

    .nav-link {
        max-width: 100%;
    }

    .nav-link.next-member {
        flex-direction: row-reverse;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .work-page-banner {
        padding: 60px 0;
    }

    .work-page-banner h1 {
        font-size: 2.2rem;
    }

    .team-details {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .other-members-section {
        padding: 50px 0;
    }

    .section-main-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .work-page-banner h1 {
        font-size: 1.8rem;
    }

    .work-page-banner .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .profile-image {
        height: 280px;
    }

    .other-members-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        padding: 15px 20px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}