/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* Main Container */
.main-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #3a5eb8);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header h1 {
    font-size: 2.8em;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3em;
    color: #5a6c7d;
    margin-bottom: 25px;
}

/* Company Stats */
.company-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e3c72;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
}

/* Navigation Styles */
.navigation {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.nav-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-size: 1em;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 20px;
    padding: 40px;
    min-height: 500px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loading-message h2 {
    color: #1e3c72;
    margin-bottom: 20px;
}

/* Section Container (for loaded content) */
.section-container {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2em;
    color: #1e3c72;
    margin-bottom: 10px;
}

.section-header .description {
    font-size: 1.1em;
    color: #6c757d;
}

/* Concept Blocks */
.concept-block {
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #1e3c72;
}

.concept-block h3 {
    color: #1e3c72;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.concept-block p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

.concept-block p:last-child {
    margin-bottom: 0;
}

/* Implementation Details */
.implementation-detail {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.implementation-detail h4 {
    color: #1e3c72;
    font-size: 1.3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.implementation-detail h4::before {
    content: '▶';
    color: #2a5298;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #1e3c72;
}

.detail-card h5 {
    color: #2a5298;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Detail Lists */
.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    padding-left: 25px;
    position: relative;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Technical Specifications */
.technical-spec {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
}

.technical-spec h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.technical-spec p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Example Scenarios */
.example-scenario {
    background: linear-gradient(135deg, #fff5eb, #fee6cf);
    border-left: 4px solid #fd7e14;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.example-scenario h4 {
    color: #d63031;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.scenario-content {
    color: #495057;
    line-height: 1.8;
}

.scenario-content p {
    margin-bottom: 12px;
}

.scenario-content p:last-child {
    margin-bottom: 0;
}

/* Tools Section */
.tools-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #1e3c72;
}

.tools-section h4 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-badge {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.tool-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Metrics Section */
.metrics-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    color: white;
}

.metrics-section h4 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: scale(1.05);
}

.metric-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.8em;
    font-weight: 700;
}

/* Phase Timeline */
.phase-timeline {
    position: relative;
    padding: 30px 0;
}

.phase-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.phase-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, #1e3c72, #2a5298);
}

.phase-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.phase-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.phase-title {
    color: #1e3c72;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.phase-description {
    color: #6c757d;
    margin-bottom: 15px;
}

.phase-tasks {
    list-style: none;
    padding: 0;
}

.phase-tasks li {
    padding: 8px 0;
    color: #495057;
    padding-left: 20px;
    position: relative;
}

.phase-tasks li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

/* Key Principles */
.key-principle {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.key-principle h4 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-principle h4::before {
    content: '💡';
    font-size: 1.3em;
}

.key-principle p {
    color: #1976d2;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .company-stats {
        flex-direction: column;
        align-items: center;
    }

    .header h1 {
        font-size: 2em;
    }

    .content-area {
        padding: 20px;
    }
}