/* Project Slider Styles */
.project-slider-section {
    margin-bottom: 6rem;
    padding-top: 3rem;
    scroll-margin-top: 2rem;
}

.slider-headline {
    text-align: center;
    margin-bottom: 1rem;
}

.slider-subheader {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 3rem;
}

.glider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.glider {
    margin: 0 auto;
}

.glider-slide {
    padding: 1rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.project-card__logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.project-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.project-card__description {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex: 1;
    max-height: calc(1.5em * 6);
}

/* Glider navigation buttons */
.glider-prev,
.glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.glider-prev {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%23ffffff' d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E");
}

.glider-next {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%23ffffff' d='M247.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L179.2 256 41.9 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z'/%3E%3C/svg%3E");
}

.glider-prev:hover,
.glider-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Glider dots */
.glider-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.glider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.glider-dot:hover,
.glider-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glider-container {
        padding: 0 50px;
    }
    
    .project-card {
        height: 380px;
    }
    
    .project-card__logo {
        width: 80px;
        height: 80px;
    }
    
    .project-card__title {
        font-size: 1.2rem;
    }
    
    .project-card__description {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        max-height: calc(1.4em * 5);
    }
}

/* Mobile landscape: make slides much shorter */
@media screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    .glider-container {
        padding: 0 80px !important;
    }
    
    .glider-prev {
        left: 10px !important;
    }
    
    .glider-next {
        right: 10px !important;
    }
    
    .glider-prev,
    .glider-next {
        width: 50px !important;
        height: 50px !important;
        background-size: 18px 18px !important;
    }
    
    .project-card {
        height: 300px !important;
        padding: 1.5rem !important;
    }
    
    .project-card__logo {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 1rem !important;
    }
    
    .project-card__title {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .project-card__description {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        max-height: calc(1.4em * 3) !important;
    }
}
