/* Profile CSS */

/* Profile Banner Section */
.profile-banner {
    position: relative;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
}

.profile-banner .parallax-bg {
    min-height: 300px;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-banner .parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 12, 27, 0.7), rgba(2, 12, 27, 0.9));
    z-index: 1;
}

.profile-banner .container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    color: var(--light-text);
}

.profile-avatar-container {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    overflow: hidden;
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 5px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    color: var(--light-text);
}

.profile-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.profile-did {
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-did code {
    background: rgba(0, 255, 157, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    white-space: nowrap;
    display: inline-block;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.profile-actions {
    display: flex;
    gap: 15px;
}

/* Profile Content Section */
.profile-content {
    padding: 50px 0;
    background-color: var(--dark-color);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.overview-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.overview-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.5rem;
}

.overview-summary p {
    line-height: 1.7;
    color: var(--text-color);
}

.overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.overview-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-card h4 i {
    color: #1e88e5;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.stars-container {
    color: #ffc107;
}

.rating-count {
    color: var(--text-color);
    font-size: 0.9rem;
}

.availability {
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.availability-status.available {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.availability-status.unavailable {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.availability-status.limited {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.availability-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.availability-status.available::before {
    background-color: #4caf50;
}

.availability-status.unavailable::before {
    background-color: #f44336;
}

.availability-status.limited::before {
    background-color: #ff9800;
}

.skills-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.skills-list li {
    margin-bottom: 5px;
}

/* Expertise Tab */
.expertise-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card,
.tool-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-name,
.tool-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.skill-level {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-level-fill {
    height: 100%;
    background-color: #1e88e5;
    border-radius: 3px;
}

.skill-years {
    font-size: 0.8rem;
    color: #777;
}

.tool-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 15px;
}

.tool-icon img {
    max-height: 40px;
    max-width: 40px;
}

.tool-icon i {
    font-size: 2rem;
    color: #1e88e5;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.certification-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.certification-logo {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.certification-logo img {
    max-width: 45px;
    max-height: 45px;
}

.certification-details {
    flex: 1;
}

.certification-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.certification-issuer {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.certification-date {
    font-size: 0.8rem;
    color: #888;
}

.certification-verify {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #1e88e5;
    cursor: pointer;
}

/* Experience Tab */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -38px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1e88e5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #1e88e5;
}

.timeline-date {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #777;
}

.timeline-role {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.timeline-company {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

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

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-img {
    width: 100%;
    height: 160px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    padding: 20px;
}

.project-name {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.project-category {
    display: inline-block;
    margin-bottom: 15px;
    padding: 3px 10px;
    background-color: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1e88e5;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.education-timeline {
    margin-top: 20px;
}

.education-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
}

.education-logo {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.education-logo img {
    max-width: 45px;
    max-height: 45px;
}

.education-details {
    flex: 1;
}

.education-degree {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.education-institution {
    margin-bottom: 10px;
    color: #555;
}

.education-dates {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.education-description {
    color: #666;
    line-height: 1.6;
}

/* Smart Contracts Tab */
.contracts-explanation {
    margin-bottom: 30px;
}

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

.contract-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contract-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contract-header {
    padding: 20px;
    background-color: #1e88e5;
    color: #fff;
}

.contract-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-title i {
    font-size: 1.1rem;
}

.contract-body {
    padding: 20px;
}

.contract-qr-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contract-qr-code {
    width: 200px;
    height: 200px;
}

.contract-qr-code img {
    width: 100%;
    height: 100%;
}

.contract-details {
    margin-bottom: 20px;
}

.contract-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.contract-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
}

.contract-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.contract-actions {
    display: flex;
    gap: 10px;
}

/* Offer Uploader Section */
.offer-uploader {
    background-color: #1e88e5;
    color: #fff;
    padding: 50px 0;
}

.uploader-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.uploader-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2rem;
}

.uploader-container p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.upload-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

#file-name {
    font-size: 0.9rem;
    opacity: 0.8;
}

.or-divider {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.offer-paste {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.offer-paste input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    font-size: 1rem;
}

.offer-paste button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.upload-error {
    color: #ffcdd2;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

/* Placeholder Styling */
.skill-placeholder,
.cert-placeholder,
.tool-placeholder,
.timeline-placeholder,
.project-placeholder,
.education-placeholder,
.contract-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 100px;
}

.timeline-placeholder {
    height: 150px;
}

.project-placeholder {
    height: 300px;
}

.contract-placeholder {
    height: 350px;
}

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

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styling */
@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-did code {
        max-width: 200px;
    }

    .profile-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .contract-card {
        width: 100%;
    }

    .upload-options {
        flex-direction: column;
        width: 100%;
    }

    .offer-paste {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 150px;
        height: 150px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .certification-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .certification-logo {
        margin-bottom: 15px;
    }

    .education-item {
        flex-direction: column;
    }

    .education-logo {
        margin-bottom: 15px;
    }
}