/* ===== INFO ABOUT CSS ===== */
/* Стили для страницы "Про компанію" */

/* Основные переменные */
:root {
    --primary-color: #4A3AFF;
    --primary-dark: #3829D6;
    --secondary-color: #6B4EFF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --text-muted: #64748B;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: float 30s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-10px, -5px); }
    66% { transform: translate(5px, -10px); }
    100% { transform: translate(0, 0); }
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.company-badge i {
    color: #FFD93D;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD93D;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.company-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.server-rack {
    width: 120px;
    height: 200px;
    background: linear-gradient(145deg, #2D3748, #4A5568);
    border-radius: 8px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
}

.server-unit {
    height: 25px;
    background: linear-gradient(145deg, #1A202C, #2D3748);
    border-radius: 4px;
    position: relative;
    border: 1px solid #4A5568;
}

.server-unit.active {
    background: linear-gradient(145deg, #1A365D, #2C5282);
    border-color: #3182CE;
}

.server-unit.active::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.network-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, rgba(255, 217, 61, 0.8), rgba(255, 217, 61, 0.3));
    height: 2px;
    animation: dataFlow 3s infinite;
}

.connection-line:nth-child(1) {
    top: 30%;
    left: 0;
    width: 100px;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.connection-line:nth-child(2) {
    top: 50%;
    right: 0;
    width: 80px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.connection-line:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 90px;
    transform: rotate(15deg);
    animation-delay: 2s;
}

@keyframes dataFlow {
    0% { 
        opacity: 0.3;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
    50% { 
        opacity: 1;
        transform: scale(1.1) rotate(var(--rotation, 0deg));
    }
    100% { 
        opacity: 0.3;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
}

.cloud-icon {
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: cloudFloat 4s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Timeline Section */
.company-story {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: timelineSlideIn 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

@keyframes timelineSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-year {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 0 2rem;
    flex: 1;
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -20px;
    border-right-color: white;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -20px;
    border-left-color: white;
    transform: translateY(-50%);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Mission & Values Section */
.mission-values {
    background: var(--light-bg);
}

.mission-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.team-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-role {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 35px;
    height: 35px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Infrastructure Section */
.infrastructure {
    background: var(--light-bg);
}

.infrastructure-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Infrastructure Visual */
.infrastructure-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.datacenter-building {
    position: relative;
    width: 120px;
    height: 200px;
}

.building-floor {
    height: 50px;
    background: linear-gradient(145deg, #2D3748, #4A5568);
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

.building-floor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.server-light {
    width: 8px;
    height: 8px;
    background: #64748B;
    border-radius: 50%;
    position: relative;
}

.server-light.active {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: serverBlink 2s infinite;
}

@keyframes serverBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.building-base {
    height: 20px;
    background: linear-gradient(145deg, #1A202C, #2D3748);
    border-radius: 0 0 8px 8px;
}

.network-globe {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: globeRotate 20s linear infinite;
}

@keyframes globeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.globe-connections {
    position: relative;
    width: 100%;
    height: 100%;
}

.connection-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

.connection-dot:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.connection-dot:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 0.7s;
}

.connection-dot:nth-child(3) {
    bottom: 30%;
    left: 50%;
    animation-delay: 1.4s;
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Achievements Section */
.achievements {
    padding: 5rem 0;
}

.achievement-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.achievement-card h5 {
    color: #1F2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievement-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-hero {
        padding: 80px 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .company-illustration {
        width: 250px;
        height: 250px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-year {
        position: absolute;
        left: -20px;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-content::before {
        left: -20px !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .infrastructure-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .company-illustration {
        width: 200px;
        height: 200px;
    }
    
    .mission-card,
    .team-card,
    .achievement-card {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
        left: -15px;
    }
    
    .achievement-number {
        font-size: 2.5rem;
    }
    
    .contact-cta .row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 1.5rem;
    }
    
    .mission-card,
    .team-card,
    .achievement-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .datacenter-building {
        width: 100px;
        height: 160px;
    }
    
    .building-floor {
        height: 40px;
    }
}

/* Print styles */
@media print {
    .about-hero,
    .contact-cta {
        background: white !important;
        color: black !important;
    }
    
    .timeline::before,
    .server-light,
    .connection-line {
        display: none;
    }
    
    .achievement-card,
    .mission-card,
    .team-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}