/* PaperCraft Boutique - Main CSS */

/* Color Variables - Pastel High Contrast Palette */
:root {
    --primary-color: #6b73ff;
    --primary-light: #9196ff;
    --primary-dark: #4c54d0;
    
    --secondary-color: #ff6b9d;
    --secondary-light: #ff9bb8;
    --secondary-dark: #e04d85;
    
    --accent-color: #50e3c2;
    --accent-light: #7eebdb;
    --accent-dark: #3bc7a3;
    
    --warning-color: #ffd93d;
    --warning-light: #ffe666;
    --warning-dark: #e6c535;
    
    --success-color: #6bcf7f;
    --success-light: #8dd999;
    --success-dark: #5ab36c;
    
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-400: #ced4da;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;
    
    --paper-texture: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="paper"><feTurbulence baseFrequency="0.04" numOctaves="5" result="noise"/><feDiffuseLighting in="noise" lighting-color="white" surfaceScale="1"><feDistantLight azimuth="45" elevation="60"/></feDiffuseLighting></filter></defs><rect width="100%" height="100%" fill="white" filter="url(%23paper)" opacity="0.05"/></svg>');
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-100);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--paper-texture);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--neutral-800);
    font-weight: 600;
    margin-bottom: 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Bootstrap Color Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

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

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

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

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

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    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(107, 115, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-300);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: var(--neutral-700);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(107, 115, 255, 0.1);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, rgba(107, 115, 255, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(80, 227, 194, 0.1) 0%, transparent 70%);
    transform: rotate(-15deg);
}

#hero .display-4 {
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

#hero .h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

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

.card-img-top {
    border-radius: 0;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--neutral-800);
    font-weight: 600;
}

.card-text {
    color: var(--neutral-600);
}

/* Service Cards Special Styling */
#services .card {
    border-left: 4px solid var(--primary-color);
}

#services .card:nth-child(even) {
    border-left-color: var(--secondary-color);
}

/* Reviews Section */
#reviews .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-left: 4px solid var(--accent-color);
}

#reviews .blockquote-footer {
    color: var(--primary-color);
    font-weight: 500;
}

/* Price Plan Cards */
#priceplan .card.border-primary {
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

#priceplan .card.border-primary::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Team Section */
.rounded-circle {
    border: 4px solid var(--primary-light);
    transition: all 0.3s ease;
}

.rounded-circle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Process Section */
.rounded-circle.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(107, 115, 255, 0.3);
    font-size: 1.25rem;
}

/* Features Icons */
.fa-3x {
    font-size: 2.5rem;
}

.fa-2x {
    font-size: 1.75rem;
}

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

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 115, 255, 0.25);
}

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

/* Contact Info */
.contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info i {
    width: 20px;
    margin-right: 0.75rem;
}

/* Gallery Styles */
#gallery img {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Footer */
footer {
    background: #000000 !important; /* Полностью черный фон для максимальной контрастности */
    color: #ffffff !important; /* Чисто белый текст */
    border-top: 3px solid var(--primary-color); /* Цветная верхняя граница */
}

footer h5 {
    color: #ffffff !important; /* Чисто белые заголовки */
    font-weight: 700; /* Жирнее шрифт для лучшей читаемости */
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Легкая тень для глубины */
}

footer p {
    color: #f8f9fa !important; /* Очень светлый серый для основного текста */
    font-weight: 500; /* Немного жирнее обычного текста */
    line-height: 1.7; /* Увеличенная высота строки для лучшей читаемости */
}

footer .text-muted {
    color: #e9ecef !important; /* Переопределяем text-muted на более контрастный цвет */
    font-weight: 500;
}

footer a {
    color: #ffffff !important; /* Белые ссылки */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--primary-light) !important; /* Яркий цвет при наведении */
    border-bottom: 1px solid var(--primary-light);
    text-shadow: 0 0 5px rgba(145, 150, 255, 0.5);
    transform: translateY(-1px);
}

/* Дополнительные стили для контрастности подвала */
footer hr {
    border-color: #495057 !important; /* Более контрастная линия разделения */
    border-width: 2px !important;
    opacity: 1 !important;
}

footer small {
    color: #ced4da !important; /* Светлый цвет для мелкого текста */
    font-weight: 500;
    font-size: 0.9rem !important;
}

footer .text-center {
    color: #ffffff !important;
}

/* Специальные стили для списков в подвале */
footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    display: block;
    padding: 0.25rem 0;
}

/* Контактная информация в подвале */
footer .contact-info,
footer .contact-info p {
    color: #f8f9fa !important;
}

/* Иконки Font Awesome в подвале */
footer i.fas, footer i.fab {
    color: var(--primary-light) !important;
    margin-right: 0.5rem;
    min-width: 20px;
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
}

/* Animation Classes for Sal.js */
[data-sal] {
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

[data-sal="fade"] {
    opacity: 0;
}

[data-sal="fade"].sal-animate {
    opacity: 1;
}

[data-sal="slide-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-sal="slide-up"].sal-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-sal="slide-left"] {
    opacity: 0;
    transform: translateX(30px);
}

[data-sal="slide-left"].sal-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-sal="slide-right"] {
    opacity: 0;
    transform: translateX(-30px);
}

[data-sal="slide-right"].sal-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-sal] {
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

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

.text-craft-secondary {
    color: var(--secondary-color);
}

.bg-craft-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-craft {
    box-shadow: 0 8px 30px rgba(107, 115, 255, 0.15);
}

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

.breadcrumb-item img {
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.breadcrumb-item img:hover {
    filter: grayscale(0);
}



/* 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;
    }
}
