/* CVVideo Pro - Main CSS */

:root {
    /* Primary Color Palette - Pastel High Contrast */
    --primary-color: #6366f1;
    --primary-light: #a5b4fc;
    --primary-dark: #4338ca;
    
    --secondary-color: #10b981;
    --secondary-light: #6ee7b7;
    --secondary-dark: #047857;
    
    --accent-color: #f59e0b;
    --accent-light: #fcd34d;
    --accent-dark: #d97706;
    
    --info-color: #06b6d4;
    --info-light: #67e8f9;
    --info-dark: #0891b2;
    
    --danger-color: #ef4444;
    --danger-light: #fca5a5;
    --danger-dark: #dc2626;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Conservative Typography */
.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

h1, .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--bg-white) !important;
}

.navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(99, 102, 241, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 1rem 1rem 0 0;
    height: 200px;
    object-fit: cover;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Background Variations */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Icon Styles */
.fas, .far, .fab {
    color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.text-warning {
    color: var(--accent-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Custom Badge Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.bg-warning {
    background-color: var(--accent-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Footer Styles */
#footer {
    background-color: #111827 !important; /* Более темный фон для лучшего контраста */
    color: #f9fafb !important; /* Светлый основной цвет текста */
}

#footer h5 {
    color: #ffffff !important; /* Белые заголовки для максимального контраста */
    font-weight: 600 !important;
}

#footer p {
    color: #e5e7eb !important; /* Светло-серый текст для обычных параграфов */
}

#footer small {
    color: #d1d5db !important; /* Чуть более темный для мелкого текста */
}

#footer a {
    color: #93c5fd !important; /* Светло-синий для ссылок - хорошо видимый */
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #dbeafe !important; /* Еще светлее при наведении */
}

/* Дополнительные стили для улучшения контрастности подвала */
#footer ul {
    color: #e5e7eb !important; /* Светлый цвет для списков */
}

#footer li {
    color: #e5e7eb !important; /* Светлый цвет для элементов списка */
}

#footer hr {
    border-color: #374151 !important; /* Более светлая линия разделения */
    opacity: 0.8 !important;
}

/* Обеспечение контрастности для всех дочерних элементов */
#footer * {
    color: inherit !important; /* Наследование цвета от родителя */
}

/* Переопределение для конкретных элементов, если нужно */
#footer .text-light,
#footer .text-muted {
    color: #d1d5db !important; /* Унифицированный светлый цвет */
}

/* Gallery Styles */
#gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Team Section */
#team img {
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#team img:hover {
    transform: scale(1.1);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item img:hover {
    opacity: 1;
}

/* Timeline Styles */
.timeline .card {
    border-left: 4px solid var(--primary-color);
}

/* Pricing Cards */
.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

/* Service Items */
[id*="services-item"] .card {
    transition: all 0.3s ease;
}

[id*="services-item"] .card:hover {
    border-color: var(--primary-color);
    border-width: 2px;
}

/* FAQ Cards */
#faq .card {
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-pink {
    color: #ec4899 !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Custom Spacing */
.mb-6 {
    margin-bottom: 4rem !important;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Animation Optimization */
@media (max-width: 768px) {
    [data-sal] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.instagram-link {
    background: linear-gradient(45deg, #e4405f, #f77737, #fcaf45, #ffdc80);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
