/* Resume Modal Styles - Matching Project Modal with enhancements */

/* Main Modal Container - identical overlay style */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Content Box - Matching Project Modal styling */
.resume-modal-content {
    background-color: rgb(30, 30, 31);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 153, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 30px;
    animation: modalEntry 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalEntry {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Header Area */
.resume-modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    background: transparent;
}

/* Close Button - Top Right */
.resume-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.resume-modal-close:hover {
    color: #fff;
    transform: none;
    text-shadow: none;
}

/* Title Styling */
#resume-modal-title {
    margin: 0;
    font-family: 'Milker', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 153, 0, 0.5);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}

/* Subtitle (Company/School) */
.resume-modal-subtitle {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Meta Info (Date, Location) */
.resume-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #888;
}

.resume-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}

.resume-meta-item i {
    color: #009900;
}

.resume-meta-item span {
    color: #fff;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* Body Content */
.resume-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    color: #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 0;
    /* Custom Scrollbar for inner content */
    scrollbar-width: thin;
    scrollbar-color: #009900 rgba(30, 30, 31, 0.5);
}

/* Description Text */
#resume-modal-description {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#resume-modal-description p {
    margin-bottom: 15px;
}

/* Related Projects Section */
.related-projects-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-projects-title {
    color: #aaa;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    font-family: inherit;
    border: none;
    padding: 0;
}

/* Projects Grid */
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Project Card Link */
.related-project-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.related-project-card:hover {
    border-color: #009900;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.related-project-title {
    display: block;
    color: #fff;
    font-weight: bold;
    font-family: inherit;
    margin-bottom: 5px;
    font-size: 1rem;
}

.related-project-desc {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar Styling for Modal Body */
.resume-modal-body::-webkit-scrollbar {
    width: 8px;
}

.resume-modal-body::-webkit-scrollbar-track {
    background: rgba(30, 30, 31, 0.5);
}

.resume-modal-body::-webkit-scrollbar-thumb {
    background: #009900;
    border-radius: 4px;
}

.resume-modal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .resume-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    #resume-modal-title {
        font-size: 1.5rem;
    }
    
    .resume-modal-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline Item Interactivity */
.timeline-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

/* Specifically target the content box for border highlight on hover */
.timeline-item:hover .timeline-content {
    border-color: #009900; /* Matrix Green highlight */
    box-shadow: 0 0 15px rgba(0, 153, 0, 0.15);
}
