.profile-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(11, 14, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.profile-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.profile-avatar-container {
    flex-shrink: 0;
    line-height: 0;
    width: 200px;
    height: 200px;
}

.project-logo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-avatar {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--aurora-violet);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.profile-headline {
    font-size: 1.2rem;
    color: var(--aurora-violet);
    margin-bottom: 1.5rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.contact-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

.profile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: var(--aurora-violet);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(168, 85, 247, 0.1);
}

.skill-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.skill-level {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Work History */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(168, 85, 247, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--aurora-violet);
    box-shadow: 0 0 10px var(--aurora-violet);
}

.work-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.work-position {
    font-size: 1.2rem;
    font-weight: 600;
}

.work-company {
    color: var(--aurora-violet);
    font-weight: 500;
}

.work-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

.work-description {
    line-height: 1.6;
    opacity: 0.8;
}

.work-description p {
    margin-bottom: 1rem;
}

.work-description p:last-child {
    margin-bottom: 0;
}

.work-description ul, .work-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.work-description li {
    margin-bottom: 0.5rem;
}

/* Teams and Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36%, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--aurora-violet);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
    transform: translateY(-5px);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-header-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 64px;
    padding: 0.5rem 0;
}

.project-header-info .project-name,
.project-header-info .work-date {
    margin: 0;
}

.project-logo-small {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.project-logo-medium {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.project-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.project-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.project-card:hover .project-actions {
    opacity: 1;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-contact, .contact-header {
        justify-content: center;
        align-items: center;
    }
}

/* Editable Elements */
.editable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.editable:hover {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
}

.editable::after {
    content: "\f304";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: -25px;
    font-size: 0.8rem;
    color: var(--aurora-violet);
    opacity: 0;
    transition: opacity 0.3s;
}

.editable:hover::after {
    opacity: 1;
}

.profile-avatar-container.editable:hover::after {
    right: 10px;
    top: 10px;
    background: rgba(11, 14, 20, 0.8);
    padding: 5px;
    border-radius: 50%;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--midnight-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--aurora-violet);
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--aurora-violet);
}

.close {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-card {
    position: relative;
}

.skill-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover .skill-actions,
.timeline-item:hover .work-actions {
    opacity: 1;
}

.work-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.project-links {
    display: flex;
    gap: 0.8rem;
}

.project-links .action-btn {
    width: auto;
    height: auto;
    padding: 0.4rem 0.8rem;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.action-btn {
    background: rgba(11, 14, 20, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: var(--text-color);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--aurora-violet);
    color: white;
}

.action-btn.delete:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

.add-btn {
    background: transparent;
    border: 1px dashed var(--aurora-violet);
    color: var(--aurora-violet);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-left: 1rem;
}

.add-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.hidden {
    display: none !important;
}

/* EasyMDE Dark Mode Support */
.editor-toolbar {
    background: rgba(11, 14, 20, 0.9) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    opacity: 1 !important;
}

.editor-toolbar button {
    color: var(--text-color) !important;
}

.editor-toolbar button:hover, .editor-toolbar button.active {
    background: var(--aurora-violet) !important;
    border-color: var(--aurora-violet) !important;
}

.editor-toolbar i {
    color: var(--text-color) !important;
}

.CodeMirror {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: var(--text-color) !important;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.CodeMirror-cursor {
    border-left: 1px solid var(--text-color) !important;
}

.editor-preview {
    background: #0b0e14 !important;
    color: var(--text-color) !important;
}

.editor-preview p {
    margin-bottom: 1rem;
}

.editor-preview ul, .editor-preview ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.editor-preview li {
    margin-bottom: 0.5rem;
}

.avatar-upload-input {
    margin-top: 0.5rem;
    border: 1px dashed rgba(168, 85, 247, 0.4);
    padding: 2rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s;
}

.avatar-upload-input:hover {
    border-color: var(--aurora-violet);
    background: rgba(168, 85, 247, 0.05);
}
