:root {
    --primary: #004080;
    --accent: #f0c000;
    --text: #e0e8f0;
    --text-muted: #8090a0;
    --bg-main: #001020;
    --bg-card: #001830;
    --border: #003050;
    --accent-hover: #ffd020;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-main) 100%);
    border-bottom: 2px solid var(--accent);
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-main);
    z-index: 1;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    width: calc(100% - 40px);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 20px;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 20px;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-text {
    color: var(--text-muted);
}

/* Documents */
.documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.document-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.document-thumb {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.document-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.document-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.document-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--bg-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(240, 192, 0, 0.35);
}

/* Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tool-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 3px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.tool-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 0;
    }
    .timeline-item:nth-child(even) {
        padding-left: 0;
    }
    .timeline-item::after {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
    header h1 {
        font-size: 2rem;
    }
}
