
/* Секция похожих проектов */
.related-projects-section {
    margin: 4rem 0 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1s forwards;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
}

.related-subtitle {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-no-image {
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 2rem;
}

.project-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.project-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.project-card-description {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-card-button {
    margin-top: auto;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card:hover .view-details-btn {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.view-details-btn::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover .view-details-btn::after {
    transform: translateX(3px);
}

/* Секция "Показать все проекты" */
.view-all-section {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-all-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.view-all-btn::after {
    content: "→";
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover::after {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .related-projects-section {
        margin: 3rem 0 1rem 0;
    }

    .related-title {
        font-size: 1.6rem;
    }

    .related-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card-image {
        height: 180px;
    }

    .project-card-content {
        padding: 1.2rem;
    }

    .project-card-title {
        font-size: 1.1rem;
    }

    .project-card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 1rem;
    }

    .project-card-image {
        height: 160px;
    }

    .project-card-content {
        padding: 1rem;
    }
}