/* ==================== СТРАНИЦА AI ТАПСЫРМАЛАР ==================== */
.ai-tasks-page {
    min-height: 100vh;
}

.ai-tasks-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0ebf8 50%, #fef5fb 100%);
    position: relative;
    overflow: hidden;
}

/* Анимированный фон */
.ai-tasks-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ai-tasks-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==================== ШАПКА ==================== */
.ai-header {
    text-align: center;
    margin-bottom: 60px;
}

.ai-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.ai-icon-wrapper i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-tasks-title {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 15px;
}

.ai-tasks-description {
    font-size: 1.4rem;
    color: #666;
}

/* ==================== СЕТКА КАРТОЧЕК ==================== */
.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==================== КАРТОЧКА ==================== */
.ai-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: cardAppear 0.8s ease forwards;
    opacity: 0;
}

.ai-card:nth-child(1) { animation-delay: 0.1s; }
.ai-card:nth-child(2) { animation-delay: 0.2s; }
.ai-card:nth-child(3) { animation-delay: 0.3s; }
.ai-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

/* Фоновый градиент */
.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.ai-card-purple::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.ai-card-blue::before {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.ai-card-green::before {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
}

.ai-card-orange::before {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

/* Иконка */
.ai-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.ai-card-purple .ai-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-card-blue .ai-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ai-card-green .ai-card-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ai-card-orange .ai-card-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ai-card:hover .ai-card-icon {
    transform: rotateY(360deg) scale(1.1);
}

.ai-card-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Контент */
.ai-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ai-card-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ai-card-description {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Футер карточки */
.ai-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.ai-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.ai-card-purple .ai-card-label {
    color: #667eea;
}

.ai-card-blue .ai-card-label {
    color: #4facfe;
}

.ai-card-green .ai-card-label {
    color: #43e97b;
}

.ai-card-orange .ai-card-label {
    color: #fa709a;
}

.ai-card-arrow {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.ai-card-purple .ai-card-arrow {
    color: #667eea;
}

.ai-card-blue .ai-card-arrow {
    color: #4facfe;
}

.ai-card-green .ai-card-arrow {
    color: #43e97b;
}

.ai-card-orange .ai-card-arrow {
    color: #fa709a;
}

.ai-card:hover .ai-card-arrow {
    transform: translateX(10px);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .ai-tasks-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .ai-tasks-section {
        padding: 60px 15px;
    }
    
    .ai-tasks-title {
        font-size: 3rem;
    }
    
    .ai-tasks-description {
        font-size: 1.2rem;
    }
    
    .ai-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ai-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .ai-icon-wrapper i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .ai-tasks-section {
        padding: 40px 15px;
    }
    
    .ai-tasks-title {
        font-size: 2.5rem;
    }
    
    .ai-tasks-description {
        font-size: 1.1rem;
    }
    
    .ai-card {
        padding: 30px;
    }
    
    .ai-card-icon {
        width: 70px;
        height: 70px;
    }
    
    .ai-card-icon i {
        font-size: 2rem;
    }
    
    .ai-card-title {
        font-size: 1.5rem;
    }
    
    .ai-card-description {
        font-size: 0.95rem;
    }
}

