#team {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#team h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.member-image-wrapper {
    position: relative;
    padding: 30px 30px 0;
    overflow: hidden;
}

.member-image-wrapper img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    margin: 30px;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-overlay i {
    font-size: 3em;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

.team-member h3 {
    font-size: 1.6em;
    margin: 15px 0 10px;
    color: #2c3e50;
    font-weight: 700;
}

.team-member .role {
    font-size: 0.95em;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-member .role i {
    font-size: 0.9em;
}

.bio-preview {
    padding: 0 10px 20px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.view-profile-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.view-profile-btn i {
    transition: transform 0.3s ease;
}

.view-profile-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   PROFESSIONAL TEAM PROFILE PAGE - THREE SECTIONS
   ============================================ */

.team-profile-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Navigation */
.back-nav {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.back-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.back-link i {
    font-size: 0.9em;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    gap: 0;
}

/* Profile Image Section - Left Aligned */
.profile-image-section {
    flex-shrink: 0;
    width: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
}

.member-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Profile Content Section - Right Aligned */
.profile-content-section {
    flex: 1;
    padding: 50px;
}

/* Section 1: Basic Details */
.basic-details-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 35px;
    margin-bottom: 35px;
}

.member-name {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.member-designation {
    font-size: 1.3em;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 25px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
    color: #555;
}

.info-item i {
    width: 24px;
    color: #667eea;
    font-size: 1.1em;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Section 2: Introduction */
.introduction-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 35px;
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-content {
    color: #444;
    line-height: 1.8;
}

.section-content p {
    font-size: 1.05em;
    margin: 0;
    text-align: justify;
}

/* Product Link Section */
.product-link-section {
    margin-top: 25px;
}

.buy-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.buy-product-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.buy-product-btn i:first-child {
    font-size: 1.1em;
}

.buy-product-btn i:last-child {
    font-size: 0.85em;
}

/* Section 3: Experience */
.experience-section {
    margin-bottom: 0;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.experience-list li {
    position: relative;
    padding: 12px 0 12px 30px;
    font-size: 1.05em;
    color: #444;
    line-height: 1.7;
}

.experience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: #667eea;
    font-weight: 900;
    font-size: 1.2em;
}

/* Expertise Tags */
.expertise-tags {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.expertise-tags h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

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

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-card {
        flex-direction: column;
    }
    
    .profile-image-section {
        width: 100%;
        padding: 40px 30px;
    }
    
    .member-photo {
        width: 220px;
        height: 220px;
    }
    
    .profile-content-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .team-profile-page {
        padding: 20px 10px;
    }
    
    .profile-image-section {
        padding: 30px 20px;
    }
    
    .member-photo {
        width: 180px;
        height: 180px;
        border: 6px solid #fff;
    }
    
    .profile-content-section {
        padding: 30px 20px;
    }
    
    .member-name {
        font-size: 2em;
    }
    
    .member-designation {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 1.4em;
    }
    
    .section-content p {
        font-size: 1em;
        text-align: left;
    }
    
    .experience-list li {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .member-name {
        font-size: 1.6em;
    }
    
    .member-designation {
        font-size: 1em;
    }
    
    .contact-info {
        font-size: 0.9em;
    }
    
    .tags-container {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 0.85em;
        padding: 6px 14px;
    }
}

.profile-image-border {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
}

.image-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.image-decoration::before {
    content: '✦';
    font-size: 2em;
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.profile-info {
    flex: 1;
    color: #fff;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: slideInRight 0.6s ease-out 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.profile-role {
    font-size: 1.4em;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin: 0 0 20px 0;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.profile-company {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05em;
    font-family: 'Inter', sans-serif;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.profile-company .separator {
    opacity: 0.5;
}

/* Stats Section */
.profile-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* Content Wrapper */
.profile-content-wrapper {
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 30px 60px;
    position: relative;
    z-index: 2;
}

/* Quick Info Cards */
.quick-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.info-card:nth-child(1) { animation-delay: 0.9s; }
.info-card:nth-child(2) { animation-delay: 1s; }
.info-card:nth-child(3) { animation-delay: 1.1s; }

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.8em;
    color: #fff;
}

.info-content h4 {
    font-size: 1.2em;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.info-content p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Main Content */
.profile-main-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-section {
    padding: 50px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

.section-header {
    position: relative;
    margin-bottom: 35px;
}

.header-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 i {
    color: #667eea;
    font-size: 0.9em;
}

/* About Section */
.bio-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.9;
    color: #444;
}

.bio-paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.bio-paragraph:first-letter {
    font-size: 3em;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 8px 10px 0 0;
    color: #667eea;
    font-family: 'Playfair Display', serif;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 0;
}

.two-column-layout .content-section {
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
}

.two-column-layout .content-section:last-child {
    border-right: none;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInLeft 0.6s ease-out both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e8eaf6;
}

.marker-line {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 30px);
    background: linear-gradient(180deg, #e8eaf6 0%, transparent 100%);
}

.timeline-item:last-child .marker-line {
    display: none;
}

.timeline-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid #667eea;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon i {
    color: #fff;
    font-size: 1.1em;
}

.timeline-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #555;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.expertise-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 18px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.expertise-item:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.expertise-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expertise-icon i {
    color: #fff;
    font-size: 0.8em;
}

.expertise-item span {
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 0 0 20px 20px;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon i {
    font-size: 2.5em;
    color: #fff;
}

.cta-text {
    flex: 1;
    color: #fff;
}

.cta-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.cta-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05em;
    margin: 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #ffd700;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-name {
        font-size: 2.5em;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 50px;
        height: 2px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .two-column-layout .content-section {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .content-section {
        padding: 30px 25px;
    }
    
    .cta-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 60px 0 100px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .profile-image-border {
        width: 180px;
        height: 180px;
    }
    
    .image-decoration {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 2em;
    }
    
    .profile-role {
        font-size: 1.1em;
    }
    
    .section-header h2 {
        font-size: 1.6em;
    }
    
    .quick-info-section {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}
