/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --info-color: #8B5CF6;
    --success-color: #059669;
    
    /* Light Shades */
    --primary-light: #DBEAFE;
    --secondary-light: #D1FAE5;
    --accent-light: #FEF3C7;
    --info-light: #EDE9FE;
    --success-light: #ECFDF5;
    
    /* Dark Shades */
    --primary-dark: #1E40AF;
    --secondary-dark: #047857;
    --accent-dark: #D97706;
    --info-dark: #6D28D9;
    --success-dark: #047857;
    
    /* Typography */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #6B7280;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding-top: 80px;
    position: relative;
}

.hero-decorative-shape {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* ===== CARDS AND COMPONENTS ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.feature-card,
.feature-item,
.process-step,
.timeline-item,
.info-item {
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover,
.feature-item:hover,
.process-step:hover,
.timeline-item:hover,
.info-item:hover {
    transform: translateY(-2px);
}

/* Service Items */
.price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: var(--spacing-sm);
}

/* Process Steps */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

/* Team Members */
.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Icons */
.fas, .fab {
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ===== FORMS ===== */
.form-control {
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: var(--primary-light);
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.contact-info i {
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    padding-top: 100px;
}

.breadcrumb-icon {
    width: 24px;
    height: 24px;
}

/* ===== GALLERY ===== */
#gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
}

/* ===== SECTIONS ===== */
section {
    scroll-margin-top: 80px;
}

.bg-light {
    background-color: #F9FAFB !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: #111827 !important; /* Более темный фон для лучшего контраста */
    color: #F9FAFB !important; /* Светлый основной текст */
}

/* Основной текст подвала */
footer p,
footer h5 {
    color: #F9FAFB !important; /* Очень светлый серый вместо чистого белого для снижения напряжения глаз */
}

/* Стили ссылок в подвале */
footer a {
    color: #D1D5DB !important; /* Светло-серый вместо полупрозрачного белого */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #60A5FA !important; /* Более яркий синий для ховера */
}

/* Улучшенный контраст для списков */
footer ul li a {
    color: #E5E7EB !important; /* Еще более светлый серый для лучшей читаемости */
    padding: 2px 0;
    display: inline-block;
}

footer ul li a:hover {
    color: #93C5FD !important; /* Светло-синий при наведении */
}

/* Дополнительные улучшения для читаемости */
footer hr {
    border-color: #374151 !important; /* Более контрастная разделительная линия */
    opacity: 1;
}

/* Улучшение текста копирайта */
footer small {
    color: #D1D5DB !important; /* Улучшенный контраст для мелкого текста */
    font-size: 0.875rem;
}

/* Hover эффекты для заголовков */
footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Улучшение spacing для текста подвала */
footer p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ===== ANIMATIONS (SAL.JS SUPPORT) ===== */
[data-sal] {
    transition-duration: 0.5s;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-success { color: var(--success-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-success { background-color: var(--success-color) !important; }

/* ===== ADDITIONAL PAGE STYLES ===== */
.insight-item,
.practice-item,
.case-item,
.opinion-item,
.resource-item,
.specialization-item,
.delivery-item,
.industry-item,
.tech-item,
.quality-item {
    padding: var(--spacing-md);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-item:hover,
.practice-item:hover,
.case-item:hover,
.opinion-item:hover,
.resource-item:hover,
.specialization-item:hover,
.delivery-item:hover,
.industry-item:hover,
.tech-item:hover,
.quality-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 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 for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    height: auto;
    max-width: 100%;
}

.img-fluid {
    height: auto;
    max-width: 100%;
}

/* Prevent layout shift */
.card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
} 

.hero-section h1 {
    padding-top: 125px;
}


/* Team Social Links - Neon Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.social-icons-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.7;
}

.social-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
    box-shadow: 0 0 20px currentColor;
}

.facebook-link {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.linkedin-link {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
}

.instagram-link {
    border-color: #e4405f;
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.x-link {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
