/* General Styles */
.projects-section {
    padding: 4rem 0;
    background: #f9f9f9;
}
#all-projects {
    display: none;
}

.view-all-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-all-button {
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: rgba(102, 166, 255, 0.7); /* Blaue Farbe */
    border: 2px solid rgba(102, 166, 255, 0.5); /* Blaue Farbe */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(102, 166, 255, 0.3); /* Blaue Farbe */
}

.view-all-button:hover {
    transform: translateY(-3px);
    background: rgba(102, 166, 255, 1); /* Blaue Farbe */
    box-shadow: 0 6px 15px rgba(102, 166, 255, 0.5); /* Blaue Farbe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: rgb(102, 166, 255); /* Blaue Farbe */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: rgb(102, 166, 255); /* Blaue Farbe */
    margin: 10px auto 0;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: rgb(102, 166, 255); /* Blaue Farbe */
    transform: translateX(-50%);
}

.timeline-card {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:nth-child(odd) {
    margin-left: auto;
    text-align: right;
}

.timeline-card:nth-child(even) {
    margin-right: auto;
    text-align: left;
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.timeline-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid rgb(102, 166, 255); /* Blaue Farbe */
    box-shadow: 0 4px 15px rgba(102, 166, 255, 0.3); /* Blaue Farbe */
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.1);
}

.timeline-content {
    position: relative;
}

.project-title {
    font-size: 1.75rem;
    color: rgb(102, 166, 255); /* Blaue Farbe */
    margin-bottom: 1rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgb(102, 166, 255); /* Blaue Farbe */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgb(102, 166, 255); /* Blaue Farbe */
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s ease;
}

.project-button:hover {
    background: rgba(102, 166, 255, 0.8); /* Blaue Farbe */
    color: black;
}

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

    .timeline-card {
        width: 100%;
        margin-left: 0 !important;
        text-align: left !important;
    }

    .timeline-card:nth-child(odd),
    .timeline-card:nth-child(even) {
        margin-right: 0;
    }

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