/* Общие стили для секций */
.games-section,
.bots-section,
.tech-section {
    margin: 3rem 0;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #e8b4e1;
    margin: 0 0 1rem 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(228, 180, 225, 0.3);
}

.title-decoration {
    height: 3px;
    background: linear-gradient(90deg, transparent, #e8b4e1, #c47aff, transparent);
    width: 150px;
    margin: 0 auto;
    border-radius: 3px;
}

/* Сетка разработок с фиксированными размерами карточек */
.developments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 550px));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Карточка разработки с фиксированной высотой */
.development-card {
    background: rgba(45, 27, 78, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(196, 122, 255, 0.3);
    box-shadow: 0 8px 25px rgba(156, 89, 209, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    width: 550px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.development-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(156, 89, 209, 0.4);
    border-color: rgba(228, 180, 225, 0.5);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.sd-bg {
    background-image: url("../img/SD/SD_wallpaper.jpg");
}

.qlake-bg {
    background-image: url("../img/Qlake/Qlake_wallpaper.jpg");
}

.bot-bg {
    background-image: url("../img/Bot/Bot_wallpaper.jpg");
}

.xc-bg {
    background-image: url("../img/XenoClock/XC_wallpaper.jpg");
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-image img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 2px solid rgba(228, 180, 225, 0.3);
    box-shadow: 0 4px 15px rgba(156, 89, 209, 0.3);
    transition: all 0.3s ease;
}

.development-card:hover .card-image img {
    transform: scale(1.05);
    border-color: rgba(228, 180, 225, 0.6);
}

.card-info {
    flex: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-info h3 {
    color: #e8b4e1;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    text-align: center;
    text-shadow: 0 2px 6px rgba(228, 180, 225, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    width: 94%;
}

.status-badge.deprecated {
    background: rgba(241, 148, 138, 0.2);
    color: #f1948a;
    border: 1px solid rgba(241, 148, 138, 0.4);
}

.card-info p {
    color: #f8f0ff;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    font-size: 0.95rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    --webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.card-action {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.card-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, rgba(228, 180, 225, 0.8), rgba(196, 122, 255, 0.8));
    color: #5a3a7a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(156, 89, 209, 0.3);
    position: relative;
    overflow: hidden;
}

.card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card-btn:hover {
    background: linear-gradient(45deg, #e8b4e1, #c47aff);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(228, 180, 225, 0.4);
    color: #3d2a5e;
}

.card-btn:hover::before {
    left: 100%;
}

/* Анимации */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.development-card {
    animation: cardAppear 0.6s ease-out;
}

.developments-grid .development-card:nth-child(2) {
    animation-delay: 0.1s;
}

/* Адаптивность */
@media (max-width: 968px) {
    .developments-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
        gap: 1.5rem;
    }
    
    .development-card {
        width: 400px;
        height: 520px;
    }
    
    .games-section,
    .bots-section,
    .tech-section {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .developments-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    
    .development-card {
        width: 100%;
        max-width: 550px;
        height: 560px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-image img {
        width: 100px;
        height: 100px;
    }
    
    .card-info h3 {
        font-size: 1.5rem;
    }
    
    .card-info p {
        font-size: 0.9rem;
        text-align: left;
        --webkit-line-clamp: 5;
    }
}

@media (max-width: 480px) {
    .developments-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .development-card {
        height: 520px;
        max-width: 100%;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .card-info p {
        --webkit-line-clamp: 4;
    }
}

/* Декоративные элементы */
.development-card::after {
    content: '❀';
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(228, 180, 225, 0.3);
    font-size: 1.5rem;
    z-index: 3;
}