/* Work Page Specific Styles */

.timeline-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #a1a1a6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.filter-btn:hover {
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    color: #f5f5f7;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(245, 87, 108, 0.3) 50%, 
        rgba(67, 233, 123, 0.3) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-section {
    position: relative;
    margin-bottom: 80px;
}

.year-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.year-dot {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(102, 126, 234, 0.8);
    }
}

.year-marker h2 {
    font-size: 3em;
    color: #f5f5f7;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 40px;
    border-radius: 50px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(50% - 40px);
    margin-left: auto;
}

.project-card:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

.project-card::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: rgba(102, 126, 234, 0.5);
    top: 50%;
    z-index: -1;
}

.project-card:nth-child(odd)::before {
    left: -40px;
}

.project-card:nth-child(even)::before {
    right: -40px;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(29, 29, 31, 0.9);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.project-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-icon {
    font-size: 4em;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.8em;
    color: #f5f5f7;
    margin-bottom: 5px;
}

.project-subtitle {
    color: #a1a1a6;
    font-size: 0.95em;
    margin-bottom: 15px;
    font-style: italic;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #86868b;
}

.project-desc {
    color: #a1a1a6;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.details-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(40px);
    padding: 50px;
    border-radius: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5em;
    color: #a1a1a6;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #f5f5f7;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 2.5em;
    color: #f5f5f7;
    margin-bottom: 10px;
}

.modal-header p {
    color: #a1a1a6;
    font-size: 1.1em;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section p,
.modal-section li {
    color: #a1a1a6;
    line-height: 1.8;
    margin-bottom: 10px;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    padding-left: 25px;
    position: relative;
}

.modal-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: #86868b;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.info-value {
    color: #f5f5f7;
    font-weight: 600;
}

/* Filter Animation */
.project-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .year-marker {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .year-dot {
        left: 30px;
    }

    .year-marker h2 {
        font-size: 2em;
        padding: 8px 25px;
    }

    .project-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .project-card::before {
        left: -40px !important;
        right: auto !important;
    }

    .project-content h3 {
        font-size: 1.4em;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 1.8em;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
