/* CSS переменные */
:root {
    --titan-orange: #ff7b25;
    --titan-blue: #1a237e;
    --space-dark: #0a0a1a;
    --space-light: #1a1a2e;
    --methane-blue: #4fc3f7;
    --text-light: #e0e0e0;
}

/* Стили для главной страницы */
.hero-section {
    background: linear-gradient(rgba(10, 10, 26, 0.8), rgba(26, 26, 46, 0.9)), 
                url('../images/hero-bg.jpg') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Стили для герой секции с 3D */
.titan-hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

#titan3dContainer {
    height: 100vh;
    width: 100%;
    position: relative;
}

#titan3dContainer canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.titan-hero-section .hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

/* Контейнер для контента с колонками */
.hero-content .container {
    position: relative;
    z-index: 20;
}

/* Правая колонка для 3D модели */
.titan-3d-column {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Fallback изображение */
.titan-fallback-image {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--titan-orange);
    border-radius: 15px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.titan-fallback-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 123, 37, 0.3);
}

/* Обеспечиваем правильное выравнивание текста */
.titan-hero-section .hero-content.text-lg-start h1,
.titan-hero-section .hero-content.text-lg-start p {
    text-align: left;
}



/* Убедимся, что контейнер занимает всю высоту */
.titan-hero-section .container.h-100 {
    height: 100% !important;
}

.titan-hero-section .row.h-100 {
    height: 100% !important;
}
/* Стили для секции фактов */
.facts-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 123, 37, 0.1);
    border-bottom: 1px solid rgba(255, 123, 37, 0.1);
}

.fact-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 123, 37, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.fact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 123, 37, 0.2);
    background: rgba(255, 123, 37, 0.1);
}

.fact-icon {
    font-size: 2.5rem;
    color: var(--titan-orange);
    display: block;
    margin-bottom: 0.5rem;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--titan-orange);
    display: block;
    line-height: 1;
    margin: 0.5rem 0;
}

.dop {
    padding-top: 26px;
}

.fact-label {
    color: var(--text-light) !important;
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

.znach {
    padding-top: 60px;
}

/* Контролы для 3D модели */
.titan-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 30;
    display: flex;
    gap: 10px;
}

.btn-control {
    background: rgba(255, 123, 37, 0.3);
    border: 2px solid var(--titan-orange);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-control:hover,
.btn-control.active {
    background: var(--titan-orange);
    transform: scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 123, 37, 0.4);
}

/* Стили для карточек с изображениями */
.image-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.3);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-caption {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(255, 123, 37, 0.3);
}

.feature-badge {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 123, 37, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 123, 37, 0.2);
    transition: all 0.3s ease;
    flex: 1;
}

.feature-badge:hover {
    background: rgba(255, 123, 37, 0.2);
    transform: translateY(-3px);
}

.feature-badge div {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--titan-orange);
}

/* Карточки с изображениями для фич */
.feature-card-with-image {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 123, 37, 0.2);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card-with-image:hover .feature-image img {
    transform: scale(1.1);
}

.feature-content {
    padding: 1.5rem;
}

/* Инфографика */
.infographic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.3);
    backdrop-filter: blur(10px);
}

.infographic-item {
    padding: 1rem;
    background: rgba(255, 123, 37, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 123, 37, 0.2);
}

.infographic-icon {
    width: 50px;
    height: 50px;
    background: var(--titan-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.infographic-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Научные изображения */
.science-image-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.3);
    transition: transform 0.3s ease;
}

.science-image-card:hover {
    transform: translateY(-5px);
}

.science-caption {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(255, 123, 37, 0.3);
}

.science-caption h5 {
    color: var(--titan-orange);
    margin-bottom: 0.5rem;
}

/* Стили для контентных изображений */
.content-image {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.content-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 123, 37, 0.2);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image .image-caption {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(255, 123, 37, 0.3);
    font-size: 0.875rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Стили для страницы строения */
.structure-diagram {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.atmosphere-composition .progress {
    height: 10px;
    margin-bottom: 1rem;
}

/* Стили для страницы исследований */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--titan-orange);
}

.miss {
    padding-top: 50px;
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--titan-orange);
    border-radius: 50%;
    border: 3px solid var(--space-dark);
}

.timeline-date {
    color: var(--titan-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Стили для галереи */
.gallery-section {
    padding: 80px 0 40px;
}

.gallery-filters {
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    background: transparent;
    border: 2px solid var(--titan-orange);
    color: var(--titan-orange);
    padding: 8px 20px;
    border-radius: 25px;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--titan-orange);
    color: white;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 123, 37, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 123, 37, 0.3);
    border-color: var(--titan-orange);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    background: rgba(10, 10, 26, 0.9);
}

.gallery-caption h6 {
    color: var(--titan-orange);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-light);
    opacity: 0.8;
}

/* Стили для модального окна галереи */
.gallery-modal .modal-content {
    background: var(--space-dark);
    border: 1px solid var(--titan-orange);
}

.gallery-modal .modal-header {
    border-bottom: 1px solid rgba(255, 123, 37, 0.3);
}

.gallery-modal .modal-title {
    color: var(--titan-orange);
    font-weight: 600;
}

.gallery-modal .btn-close {
    filter: invert(1);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.6s ease forwards;
}

.content-image {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.5s; }

.content-image:nth-child(1) { animation-delay: 0.1s; }
.content-image:nth-child(2) { animation-delay: 0.2s; }
.content-image:nth-child(3) { animation-delay: 0.3s; }

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .titan-hero-section {
        height: 70vh;
    }
    
    .titan-hero-section .hero-content {
        height: 70vh;
        text-align: center;
    }
    
    .titan-3d-column {
        display: none; /* На мобильных скрываем 3D/изображение */
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .fact-number {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .titan-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-badge {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-filters {
        text-align: center;
    }
    
    .gallery-filter-btn {
        margin: 0 3px 8px;
        padding: 6px 15px;
        font-size: 0.875rem;
    }
    
    .content-image {
        margin-bottom: 1.5rem;
    }
    
    .content-image .image-caption {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .fact-item {
        padding: 1rem;
    }
    
    .fact-icon {
        font-size: 2rem;
    }
}