/* ==============================================
   3Dev - Современные стили для сайта 3D печати
   Неоновые цвета, хайтек эффекты и анимации
   ============================================== */

/* Сброс и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0f14;
    color: #e0e0e0;
    overflow-x: hidden;
}

a.wcommunity_name_link {
    font-size: 40px !important;
    line-height: 30px !important;
}
/* ==============================================
   Навигация
   ============================================== */
#main-header {
    background: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00f3ff;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
}

#main-header .navbar-brand {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#main-header .nav-link {
    position: relative;
    transition: all 0.3s ease;
    margin: 0 5px;
}

#main-header .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#main-header .nav-link:hover::after,
#main-header .nav-link.active::after {
    width: 100%;
}

.custom-toggler {
    border-color: #00f3ff;
}

.custom-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2300f3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* ==============================================
   Hero-секция с хайтек эффектами
   ============================================== */
#hero {
    background-image: url("http://3dprint-lg.ru/img/hero-3d-printer.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-gradient,
.glow-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.container.position-relative.z-index-2 {
    position: relative;
    z-index: 10;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 6s infinite alternate;
}

.circle-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: linear-gradient(45deg, #00f3ff, #3333ff);
}

.circle-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(45deg, #ff00cc, #00f3cc);
    animation-delay: -3s;
}

.circle-3 {
    top: 20%;
    right: 10%;
    width: 30vw;
    height: 30vw;
    background: linear-gradient(45deg, #ff9900, #ff00cc);
    animation-delay: -1s;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.2); opacity: 0.5; }
}

.highlight-text {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8),
                 0 0 20px rgba(0, 243, 255, 0.6),
                 0 0 30px rgba(0, 243, 255, 0.4);
}

.shadow-glow {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3),
                0 0 20px rgba(0, 243, 255, 0.2);
}

/* Анимации для Hero-секции */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.animation-delay {
    animation-delay: 0.3s;
}

.animation-delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* ==============================================
   Кнопки с неоновыми эффектами
   ============================================== */
.btn-primary {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border: none;
    box-shadow: 0 2px 7px rgba(0, 243, 255, 0.4),
                0 0 5px rgba(51, 51, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.6),
                0 0 10px rgba(51, 51, 255, 0.5);
}

.btn-outline-light {
    border: 2px solid #00f3ff;
    color: #fff;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4),
                0 0 10px rgba(51, 51, 255, 0.3);
}

/* ==============================================
   Секция О нас
   ============================================== */
#about {
    position: relative;
    z-index: 1;
}

table {
     --bs-table-bg: rgb(255 255 255 / 5%) !important;
}


#about p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}
.shadow-glow {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3),
                0 0 20px rgba(0, 243, 255, 0.2);
}

/* ==============================================
   Карточки услуг
   ============================================== */
.service-card {
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 7px 20px rgba(0, 243, 255, 0.4),
                0 0 12px rgba(51, 51, 255, 0.3);
}

.service-card:hover::before {
    left: 100%;
}

/* ==============================================
   Секция услуг
   ============================================== */
#services {
    position: relative;
    background: linear-gradient(135deg, #0a0f14 0%, #0d1620 100%);
}

#services h2,
#services h4,
#services i {
    color: #e0e0e0 !important;
}

#services p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==============================================
   Секция материалов
   ============================================== */
#materials {
    position: relative;
}

#materials p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.table-responsive {
    overflow-x: inherit;
}

.table-responsive table.custom-table-dark {
    color: #ffffff;
    border-radius: 12px;
    /*box-shadow: 0 4px 10px rgba(0, 243, 255, 0.3) !important;*/
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
}

.table-responsive table.custom-table-dark thead th {
    background: transparent;
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-responsive table.custom-table-dark tbody tr {
    transition: all 0.3s ease;
    background: transparent !important;
    color: #ffffff !important;
}

.table-responsive table.custom-table-dark tbody tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    color: white;
}

.table-responsive table.custom-table-dark tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive table.custom-table-dark tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table-responsive table.custom-table-dark tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}
/* ============================================== 
   Секция портфолио
   ============================================== */
#portfolio {
    position: relative;
    background: linear-gradient(135deg, #0a0f14 0%, #0d1620 100%);
}

#portfolio .row.g-4 {
    margin-bottom: 1rem;
}

#portfolio p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.portfolio-item {
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 8px;
    padding: 0; /* Убираем отступы внутри карточки */
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 7px 20px rgba(0, 243, 255, 0.4), 0 0 12px rgba(51, 51, 255, 0.4);
}

.portfolio-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0; /* Скругляем только верхние углы */
}

#portfolio h2 {
    color: #e0e0e0 !important;
}

.portfolio-item h5 {
    color: #e0e0e0 !important;
    margin: 1rem 1.25rem 0.5rem; /* Отступы от краев карточки */
}

.portfolio-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    margin: 0 1.25rem 1rem; /* Отступы от краев карточки */
    line-height: 1.4;
}

/* ============================================== 
   Секция контактов
   /*============================================== */
#contacts {
    position: relative;
    background: linear-gradient(135deg, #0a0f14 0%, #0d1620 100%);
}

.bg-dark-22 {
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
}
.form-control {
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(10, 15, 20, 1);
    border-color: #00f3ff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    color: #e0e0e0;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: #e0e0e0 !important;
}

.contact-info-item {
    padding: 1rem;
    background: linear-gradient(135deg, #1a2639, #0f1624);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

#contacts .text-white,
#contacts h4,
#contacts p.text-muted {
    color: #e0e0e0 !important;
}

#contacts .bg-dark {
    background-color: rgba(10, 15, 20, 0.95) !important;
}

/* ==============================================
   Футер
   ============================================== */
footer {
    background: linear-gradient(135deg, #0a0f14 0%, #0d1620 100%);
    border-top: 2px solid #00f3ff;
}

/* ============================================== 
   Модальное окно портфолио
   ============================================== */
.service-modal {
    --bs-modal-bg: #1a2639;
    --bs-modal-header-border-color: rgba(0, 243, 255, 0.3);
    --bs-modal-footer-border-color: rgba(0, 243, 255, 0.3);
}

.service-modal .modal-content {
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 243, 255, 0.1);
}

.service-modal .modal-header {
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding: 1rem 1.5rem;
}

.service-modal .modal-title {
    color: #e0e0e0 !important;
}

.service-modal-img {
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.2);
}

.service-modal .modal-body {
    padding: 2rem;
    color: #e0e0e0;
}

.service-modal .modal-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    padding: 1rem 1.5rem;
    justify-content: center;
}

.service-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.service-modal .btn-primary {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4), 0 0 10px rgba(51, 51, 255, 0.3);
}

/* ============================================== 
   Модальное окно портфолио
   ============================================== */
.portfolio-modal {
    --bs-modal-bg: #1a2639;
    --bs-modal-header-border-color: rgba(0, 243, 255, 0.3);
    --bs-modal-footer-border-color: rgba(0, 243, 255, 0.3);
}

.portfolio-modal .modal-content {
    background: linear-gradient(135deg, #1a2639 0%, #0f1624 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 243, 255, 0.1);
}

.portfolio-modal .modal-header {
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding: 1rem 1.5rem;
}

.portfolio-modal .modal-title {
    color: #e0e0e0 !important;
}

.portfolio-modal-img {
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.2);
}

.portfolio-modal .modal-body {
    padding: 2rem;
    color: #e0e0e0;
}

.portfolio-modal .modal-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    padding: 1rem 1.5rem;
    justify-content: center;
}

.portfolio-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.portfolio-modal .btn-primary {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4), 0 0 10px rgba(51, 51, 255, 0.3);
}

/* ============================================== 
   Адаптивность
   ============================================== */
@media (max-width: 992px) {
    .circle-1, .circle-2, .circle-3 {
        width: 60vw;
        height: 60vw;
    }
    
    #hero {
        text-align: center;
    }
    
    #hero .col-lg-7,
    #hero .col-lg-5 {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .highlight-text {
        font-size: 2.5rem;
    }
    
    .btn-primary,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .service-modal .modal-body {
        padding: 1rem;
    }
    
    .service-modal .service-modal-icon {
        font-size: 3rem;
    }
    
    .portfolio-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .portfolio-modal .modal-content {
        border-radius: 8px;
    }
    
    .portfolio-modal-img {
        max-height: 40vh;
    }
}


/* ============================================== 
   Дополнительные эффекты
   ============================================== */
.text-primary {
    color: #00f3ff !important;
}

.shadow-sm {
    box-shadow: 0 4px 10px rgba(0, 243, 255, 0.2) !important;
}


/* ============================================== 
   Светлая тема
   ============================================== */
body.light-theme {
    background-color: #f8f9fa;
    color: #333;
}

body.light-theme #main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00f3ff;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
}

body.light-theme .navbar-brand {
    color: #0a0f14 !important;
}

body.light-theme .nav-link {
    color: #333 !important;
}

body.light-theme .nav-link::after {
    background: linear-gradient(90deg, #ff00cc, #3333ff);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
    color: #00f3ff !important;
}

body.light-theme .custom-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

body.light-theme .highlight-text {
    color: #00f3ff;
    text-shadow: none;
}

body.light-theme .circle-1,
body.light-theme .circle-2,
body.light-theme .circle-3 {
    opacity: 0.15;
}

body.light-theme .service-card,
body.light-theme .portfolio-item,
body.light-theme .bg-dark-22 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
}

body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4,
body.light-theme .modal-title,
body.light-theme .portfolio-item h5 {
    color: #0a0f14 !important;
}

body.light-theme p.text-muted,
body.light-theme .portfolio-desc,
body.light-theme .form-label {
    color: #6c757d !important;
}

body.light-theme .btn-primary {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border: none;
    box-shadow: 0 2px 7px rgba(0, 243, 255, 0.4),
                0 0 5px rgba(51, 51, 255, 0.3);
}

body.light-theme .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.6),
                0 0 10px rgba(51, 51, 255, 0.5);
}

body.light-theme .btn-outline-light {
    border: 2px solid #00f3ff;
    color: #0a0f14;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

body.light-theme .btn-outline-light:hover {
    background: linear-gradient(45deg, #00f3ff, #3333ff);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4),
                0 0 10px rgba(51, 51, 255, 0.3);
}

body.light-theme .form-control {
    background: #f8f9fa;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #333;
}

body.light-theme .form-control:focus {
    background: #e9ecef;
    border-color: #00f3ff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

body.light-theme .form-label {
    color: #333 !important;
}

body.light-theme footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #00f3ff;
}

body.light-theme table.custom-table-dark,
body.light-theme .table-responsive table.custom-table-dark {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

body.light-theme table.custom-table-dark thead th,
body.light-theme .table-responsive table.custom-table-dark thead th {
    background: transparent;
    color: #0a0f14 !important;
    border-bottom: none;
}

body.light-theme table.custom-table-dark tbody tr td,
body.light-theme .table-responsive table.custom-table-dark tbody tr td {
    color: #333 !important;
}

body.light-theme .border-secondary {
    border-color: rgba(0, 243, 255, 0.3) !important;
}

/* ============================================== 
   Адаптивность светлой темы
   ============================================== */
@media (max-width: 768px) {
    body.light-theme .highlight-text {
        font-size: 2.5rem;
    }
    
    body.light-theme .btn-primary,
    body.light-theme .btn-outline-light {
        width: 100%;
        margin-bottom: 15px;
    }
}


a.wcommunity_name_link {
    font-size: 40px !important;
    line-height: 30px !important;
}













