/* ==================== PAGE HEADER ==================== */
.page-header {
    padding: 12rem 3rem 6rem;
    position: relative;
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: visible;
    max-width: 100%;
}

/* Allow CV title to wrap on mobile/tablet */
@media (max-width: 768px) {
    .page-title {
        white-space: normal;
        word-spacing: 9999px; /* Forces break between words */
    }
}

.page-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    border-left: 3px solid #888;
    padding-left: 1rem;
    max-width: 600px;
}

/* ==================== CV CONTENT ==================== */
.cv-content {
    padding: 0 3rem 6rem;
    position: relative;
}

.cv-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
}

/* ==================== SIDEBAR ==================== */
.cv-sidebar {
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.sidebar-list {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-link:hover {
    color: #ffffff;
}

/* ==================== MAIN CONTENT ==================== */
.cv-main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.cv-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ==================== CV ITEM ==================== */
.cv-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    font-weight: 700;
}

.cv-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cv-title {
    font-family: 'Archivo', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.cv-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.cv-description {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cv-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download-section {
    padding: 4rem 3rem;
    text-align: center;
}

.download-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .page-header {
        padding: 8rem 1.5rem 4rem;
    }
    
    .page-title {
        font-size: clamp(2rem, 6vw, 5rem);
    }

    .cv-content {
        padding: 0 1.5rem 4rem;
    }

    .cv-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cv-sidebar {
        position: relative;
        top: 0;
    }

    .cv-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .download-section {
        padding: 3rem 1.5rem;
    }

    .download-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1rem 3rem;
    }
    
    .page-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .cv-content {
        padding: 0 1rem 3rem;
    }
    
    .cv-container {
        gap: 2rem;
    }
    
    .cv-main {
        gap: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cv-item {
        padding: 1rem 0;
    }
    
    .cv-year {
        font-size: 0.8rem;
    }
    
    .cv-title {
        font-size: 1.1rem;
    }
    
    .cv-subtitle {
        font-size: 0.95rem;
    }
    
    .cv-description {
        font-size: 0.9rem;
    }
    
    .cv-tag {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
    
    .download-section {
        padding: 2rem 1rem;
    }
    
    .download-container {
        padding: 1.5rem;
    }
    
    .download-btn {
        font-size: 0.75rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 5rem 1rem 2rem;
    }
    
    .page-title {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .cv-content {
        padding: 0 0.75rem 2rem;
    }
    
    .cv-main {
        gap: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cv-title {
        font-size: 1rem;
    }
    
    .cv-subtitle {
        font-size: 0.9rem;
    }
    
    .cv-description {
        font-size: 0.85rem;
    }
}