/* Дополнительные стили для кибернетической анимации */

/* Улучшенные эффекты для контейнера */
.cyber-animation-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-animation-container:hover {
    transform: scale(1.01);
}

/* Canvas стили */
#cyberCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

/* Улучшенный оверлей */
.cyber-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.15);
    box-shadow: 
        0 15px 40px rgba(52, 152, 219, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.cyber-overlay:hover {
    transform: translate(-50%, -50%) translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 20px 50px rgba(52, 152, 219, 0.18),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(52, 152, 219, 0.25);
}

/* Иконка с дополнительными эффектами */
.cyber-icon {
    margin-bottom: 20px;
    position: relative;
}

.cyber-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconGlow 3s ease-in-out infinite;
}

.cyber-icon i {
    font-size: 3.2rem;
    color: #3498DB;
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Текстовые элементы */
.cyber-text h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.cyber-text p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Анимации */
@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

@keyframes iconGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Дополнительные декоративные элементы - убраны для органичной интеграции с белым фоном */

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .cyber-animation-container {
        height: 450px;
    }
    
    .cyber-overlay {
        padding: 35px;
    }
    
    .cyber-icon i {
        font-size: 2.8rem;
    }
    
    .cyber-text h4 {
        font-size: 1.3rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cyber-animation-container {
        height: 400px;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .cyber-overlay {
        padding: 30px;
        border-radius: 20px;
    }
    
    .cyber-icon i {
        font-size: 2.5rem;
    }
    
    .cyber-text h4 {
        font-size: 1.2rem;
    }
    
    .cyber-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .cyber-animation-container {
        height: 350px;
        max-width: 100%;
    }
    
    .cyber-overlay {
        padding: 25px;
        border-radius: 18px;
    }
    
    .cyber-icon i {
        font-size: 2.2rem;
    }
    
    .cyber-text h4 {
        font-size: 1.1rem;
    }
    
    .cyber-text p {
        font-size: 0.85rem;
    }
}

/* Улучшения для производительности */
.cyber-animation-container,
.cyber-overlay,
.cyber-icon i {
    will-change: transform;
}

/* Новые стили для переработанной секции About */
.about-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.6;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.service-icon {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
    color: #3498DB;
    background: rgba(52, 152, 219, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon i {
    background: #3498DB;
    color: #fff;
    transform: scale(1.05);
}

.service-content h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.service-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #3498DB;
    font-weight: bold;
    font-size: 1.1rem;
}

.about-summary .lead {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    line-height: 1.7;
    font-style: italic;
}

/* Адаптивность для новой структуры */
@media (max-width: 992px) {
    .about-content h3 {
        font-size: 2.2rem;
    }
    
    .service-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .about-content h3 {
        font-size: 2rem;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
    }
    
    .service-item {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .service-icon i {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
    
    .service-content h5 {
        font-size: 1.3rem;
    }
    
    .about-summary .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .about-content .lead {
        font-size: 1rem;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .service-icon i {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .service-content h5 {
        font-size: 1.2rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .about-summary .lead {
        font-size: 0.95rem;
    }
}

/* Центрирование анимации */
.cyber-animation-container {
    margin: 0 auto;
    max-width: 1000px;
}

@media (max-width: 1200px) {
    .cyber-animation-container {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .cyber-animation-container {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .cyber-animation-container {
        max-width: 100%;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .cyber-animation-container {
        background: transparent;
    }
    
    .cyber-overlay {
        background: rgba(44, 62, 80, 0.95);
        border-color: rgba(52, 152, 219, 0.3);
    }
    
    .cyber-text h4 {
        color: #ecf0f1;
    }
    
    .cyber-text p {
        color: #bdc3c7;
    }
    
    .service-item {
        background: #34495e;
        border-color: rgba(52, 152, 219, 0.2);
    }
    
    .about-content h3,
    .service-content h5 {
        color: #ecf0f1;
    }
    
    .about-content .lead,
    .service-content p,
    .service-list li,
    .about-summary .lead {
        color: #bdc3c7;
    }
}