/* 3D Parts Hub - Main CSS */

/* Color Palette Variables */
:root {
    --primary-color: #133ee3;
    --primary-light: #5d9ce1;
    --primary-dark: #1b58d2;
    --secondary-color: #64749e;
    --secondary-light: #b6bdd0;
    --secondary-dark: #3e5466;
    --accent-color: #00ede9;
    --accent-light: #76d5e8;
    --accent-dark: #1587a5;
    --success-color: #008250;
    --success-light: #2cca8c;
    --success-dark: #00664c;
    --warning-color: #f29100;
    --warning-light: #f7b731;
    --warning-dark: #c84b00;
    --light-gray: #f8fafc;
    --medium-gray: #f6faff;
    --dark-gray: #1b2334;
    --text-dark: #121e2d;
    --text-muted: #5f6d7c;
}

/* Фиксация отображения изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

img.card-img-top {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Устранение невидимости изображений */
.lozad {
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden; /* Disable horizontal scroll */
    max-width: 100%;
}

html {
    overflow-x: hidden; /* Ensure no horizontal scrolling */
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

/* Conservative font sizing */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

h1, .h1 {
    font-size: 2rem;
}

.display-4 {
    font-size: 2.5rem;
}

/* Custom Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

/* Card Styles */
.card {
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23e2e8f0" opacity="0.3"/></svg>') repeat;
    background-size: 30px 30px;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

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

/* Icon Styling */
.fa-2x {
    color: var(--primary-color);
}

.fa-3x {
    color: var(--primary-color);
}

/* Badge Styling */
.badge {
    border-radius: 20px;
    font-weight: 500;
    word-break: break-word; /* Allow badges to break words on small screens */
    white-space: normal; /* Allow badges to wrap on small screens */
    hyphens: auto;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 5px;
}

.bg-primary {
    background-color: var(--primary-color);
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(19, 117, 245, 0.25);
}

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

/* Footer */
footer {
    background-color: var(--dark-gray);
}

footer h5, footer h6 {
    color: #ffffff;
    font-weight: 600;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .text-white-50:hover {
    color: #ffffff;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.text-muted {
    color: var(--text-muted);
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Animation Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}

/* Star Rating */
.fas.fa-star.text-warning {
    color: #f6a926;
}

/* Border Styles */
.border {
    border: 1px solid var(--medium-gray);
}

.rounded {
    border-radius: 8px;
}

.rounded-circle {
    border-radius: 50%;
}

/* Spacing Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Team Images */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--medium-gray);
    transition: all 0.3s ease;
    display: block;
    opacity: 1 !important;
}

.team-member img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Process Timeline */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--medium-gray);
    z-index: -1;
}

.process-step:last-child::after {
    display: none;
}

/* FAQ Cards */
.faq-card {
    border-left: 4px solid var(--primary-color);
}

/* Gallery Images */
.gallery img {
    transition: all 0.3s ease;
    border-radius: 8px;
    display: block;
    opacity: 1 !important;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Icons */
.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
    display: inline-block;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        margin-top: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .col-lg-2 {
        margin-bottom: 2rem;
    }

    /* Career items fixes for mobile */
    #career-item-1-role,
    #career-item-2-role,
    #career-item-4-role {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Performance Optimizations */
.img-fluid {
    height: auto;
    max-width: 100%;
    display: block;
    opacity: 1 !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 for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
} 

.hero-section h1 {
    padding-top: 125px;
}


/* Team Social Links - Modern Style */
.team-social-links {
    margin-top: 25px;
    padding: 20px 0;
}

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

.social-link {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scale(0);
    border-radius: inherit;
    transition: transform 0.5s ease;
}

.social-link:hover::before {
    transform: scale(1.2);
}

.social-link:hover {
    transform: translateY(-8px) rotate(10deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #00c6ff);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #0099cc);
}

.instagram-link {
    background: linear-gradient(45deg, #e4405f, #f093fb, #f5576c);
}

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

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 24px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    
    .social-link {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}
