/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.verified-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.verified-badge i {
    color: #28a745;
    filter: drop-shadow(0 0 3px rgba(40, 167, 69, 0.5));
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    }
    to {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    }
}

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 40%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* Gradient Overlay Animation */
.gradient-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Profile Image Enhancements */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: white;
}

.profile-status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #28a745;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Social Media Buttons */
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-btn.linkedin { background: rgba(0, 119, 181, 0.2); }
.social-btn.twitter { background: rgba(29, 161, 242, 0.2); }
.social-btn.facebook { background: rgba(24, 119, 242, 0.2); }

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: white;
}

/* Glassmorphism Card */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Quick Stats Bar */
.quick-stats-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stat Cards */
.enhanced-stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.enhanced-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.enhanced-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
}

.stat-icon.availability { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.stat-icon.hours { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.stat-icon.experience { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.stat-icon.status { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }

.stat-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #2d3748;
    letter-spacing: -1px;
}

.stat-content p {
    color: #718096;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    animation: progressFill 2s ease-out;
}

.availability-progress { width: 85%; background: linear-gradient(90deg, #667eea, #764ba2); }
.hours-progress { width: 70%; background: linear-gradient(90deg, #f093fb, #f5576c); }
.experience-progress { width: 60%; background: linear-gradient(90deg, #4facfe, #00f2fe); }
.status-progress { width: 100%; background: linear-gradient(90deg, #43e97b, #38f9d7); }

@keyframes progressFill {
    from { width: 0; }
}

/* Modern Tabs */
.modern-tabs-container {
    background: white;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-tabs {
    border: none;
    background: none;
    gap: 4px;
}

.modern-tabs .nav-link {
    border: none;
    background: none;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-tabs .nav-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.modern-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 20px;
    min-width: 20px;
}

.tab-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tab-title {
    font-weight: 600;
    font-size: 1rem;
}

.tab-description {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 2px;
}

.modern-tabs .nav-link.active .tab-description {
    opacity: 0.95;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-tabs .nav-link.active .tab-indicator {
    transform: scaleX(1);
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Enhanced Card Styles */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.card:hover::before {
    opacity: 1;
}

/* Timeline Enhancements */
.timeline-marker {
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .modern-tabs .nav-link {
        padding: 12px 8px;
        gap: 8px;
        font-size: 0.85rem;
    }

    .tab-content-wrapper {
        align-items: center;
    }

    .tab-description {
        display: none;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .enhanced-stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .quick-stats-bar {
        padding: 15px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .action-buttons .btn {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

/* Badge Showcase Styles */
.badge-showcase {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.badge-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.badge-showcase:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.badge-showcase:hover::before {
    opacity: 0.1;
}

.badge-showcase > * {
    position: relative;
    z-index: 1;
}

.badge-name {
    color: var(--text-primary);
}

/* Impact Metrics Styles */
.impact-metric-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.impact-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.metric-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.metric-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.metric-progress {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.metric-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    animation: progressFill 2s ease-out;
}

/* Achievement Timeline Styles */
.achievement-timeline .timeline {
    position: relative;
    padding-left: 30px;
}

.achievement-timeline .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0.3;
}

.achievement-timeline .timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 30px;
}

.achievement-timeline .timeline-marker {
    position: absolute;
    left: -15px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--card-bg);
}

.achievement-timeline .timeline-content {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.achievement-timeline .timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.achievement-timeline .timeline-description {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.achievement-timeline .timeline-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Recommendations Grid Styles */
.recommendations-grid {
    display: grid;
    gap: 20px;
}

.recommendation-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.recommendation-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.recommendation-org {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.recommendation-description {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.recommendation-meta {
    margin-bottom: 15px;
}

.match-score {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
}

/* Review Item Styles */
.review-item {
    transition: all 0.3s ease;
}

.review-item:hover {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 10px !important;
    margin: -5px !important;
}

.stars i {
    font-size: 0.9rem;
}

/* Portfolio Gallery Styles */
.portfolio-gallery {
    margin-top: 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    color: white;
    width: 100%;
}

.portfolio-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.portfolio-description {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.portfolio-date {
    font-size: 0.75rem;
    opacity: 0.8;
}

.empty-portfolio {
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .impact-metric-card {
        padding: 15px;
    }
    
    .metric-content h3 {
        font-size: 1.5rem;
    }
    
    .achievement-timeline {
        padding-left: 20px;
    }
    
    .achievement-timeline .timeline-item {
        padding-left: 25px;
    }
    
    .recommendation-card {
        padding: 15px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-title {
        font-size: 0.9rem;
    }
    
    .portfolio-description {
        font-size: 0.8rem;
    }
}
