/* Titanic Project Specific Styles */

:root {
    --titanic-primary: #2563eb;
    --titanic-secondary: #1e40af;
    --titanic-accent: #3b82f6;
    --titanic-success: #10b981;
    --titanic-danger: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.titanic-project {
    background: var(--bg-light);
    min-height: 100vh;
}

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, var(--titanic-primary) 0%, var(--titanic-secondary) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-badge, .status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.status-badge {
    background: var(--titanic-success);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Project Overview Section */
.project-overview {
    padding: 4rem 0;
    background: var(--bg-white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overview-card i {
    color: var(--titanic-primary);
}

/* Technology Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: var(--titanic-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.tech-badge:hover {
    background: var(--titanic-secondary);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.metric:hover {
    border-color: var(--titanic-accent);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--titanic-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.demo-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-section > .container > p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.input-panel, .results-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.input-panel h3, .results-panel h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: var(--bg-white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--titanic-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Prediction Results */
.prediction-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

.prediction-result {
    text-align: center;
}

.prediction-result h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.prediction-result.survived h4 {
    color: var(--titanic-success);
}

.prediction-result.perished h4 {
    color: var(--titanic-danger);
}

.probability-bar {
    position: relative;
    background: var(--border-light);
    height: 2rem;
    border-radius: 1rem;
    margin: 1rem 0;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--titanic-danger) 0%, var(--titanic-success) 100%);
    border-radius: 1rem;
    transition: width 0.5s ease;
}

.probability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.factors {
    margin-top: 1.5rem;
    text-align: left;
}

.factors h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.factors ul {
    list-style: none;
    padding: 0;
}

.factors li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Challenges Section */
.challenges-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.challenges-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.challenge-card i {
    font-size: 2rem;
    color: var(--titanic-primary);
    margin-bottom: 1rem;
}

.challenge-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Project Navigation */
.project-nav {
    padding: 3rem 0;
    background: var(--bg-light);
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--titanic-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 200px;
        justify-content: center;
    }
}